@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
|
@@ -126,7 +126,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
126
126
|
})
|
|
127
127
|
}));
|
|
128
128
|
}
|
|
129
|
-
process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
|
|
129
|
+
process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes /* remove-proptypes */ = {
|
|
130
130
|
// ----------------------------- Warning --------------------------------
|
|
131
131
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
132
132
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -118,7 +118,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
118
118
|
})
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
|
-
process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
|
|
121
|
+
process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes /* remove-proptypes */ = {
|
|
122
122
|
// ----------------------------- Warning --------------------------------
|
|
123
123
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
124
124
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -39,5 +39,8 @@ export interface GridLongTextCellProps extends GridRenderCellParams<any, string
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
declare function GridLongTextCell(props: GridLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare namespace GridLongTextCell {
|
|
43
|
+
var propTypes: any;
|
|
44
|
+
}
|
|
42
45
|
export { GridLongTextCell };
|
|
43
46
|
export declare const renderLongTextCell: (params: GridLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,5 +39,8 @@ export interface GridLongTextCellProps extends GridRenderCellParams<any, string
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
declare function GridLongTextCell(props: GridLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare namespace GridLongTextCell {
|
|
43
|
+
var propTypes: any;
|
|
44
|
+
}
|
|
42
45
|
export { GridLongTextCell };
|
|
43
46
|
export declare const renderLongTextCell: (params: GridLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ exports.GridLongTextCell = GridLongTextCell;
|
|
|
10
10
|
exports.renderLongTextCell = 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 _styles = require("@mui/material/styles");
|
|
@@ -185,6 +186,7 @@ function GridLongTextCell(props) {
|
|
|
185
186
|
children: value
|
|
186
187
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellCornerButton, (0, _extends2.default)({
|
|
187
188
|
ref: cornerButtonRef,
|
|
189
|
+
type: "button",
|
|
188
190
|
"aria-label": `${value}, ${apiRef.current.getLocaleText('longTextCellExpandLabel')}`,
|
|
189
191
|
"aria-haspopup": "dialog",
|
|
190
192
|
"aria-controls": popupOpen ? popupId : undefined,
|
|
@@ -236,6 +238,7 @@ function GridLongTextCell(props) {
|
|
|
236
238
|
'--_width': `${colDef.computedWidth}px`
|
|
237
239
|
}, slotProps?.popperContent?.style),
|
|
238
240
|
children: [renderContent ? renderContent(value) : value, /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellCornerButton, (0, _extends2.default)({
|
|
241
|
+
type: "button",
|
|
239
242
|
"aria-label": apiRef.current.getLocaleText('longTextCellCollapseLabel'),
|
|
240
243
|
"aria-keyshortcuts": "Escape"
|
|
241
244
|
}, slotProps?.collapseButton, {
|
|
@@ -249,6 +252,71 @@ function GridLongTextCell(props) {
|
|
|
249
252
|
}))]
|
|
250
253
|
}));
|
|
251
254
|
}
|
|
255
|
+
process.env.NODE_ENV !== "production" ? GridLongTextCell.propTypes /* remove-proptypes */ = {
|
|
256
|
+
// ----------------------------- Warning --------------------------------
|
|
257
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
258
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
259
|
+
// ----------------------------------------------------------------------
|
|
260
|
+
/**
|
|
261
|
+
* GridApi that let you manipulate the grid.
|
|
262
|
+
*/
|
|
263
|
+
api: _propTypes.default.object.isRequired,
|
|
264
|
+
/**
|
|
265
|
+
* The mode of the cell.
|
|
266
|
+
*/
|
|
267
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
268
|
+
/**
|
|
269
|
+
* The column of the row that the current cell belongs to.
|
|
270
|
+
*/
|
|
271
|
+
colDef: _propTypes.default.object.isRequired,
|
|
272
|
+
/**
|
|
273
|
+
* The column field of the cell that triggered the event.
|
|
274
|
+
*/
|
|
275
|
+
field: _propTypes.default.string.isRequired,
|
|
276
|
+
/**
|
|
277
|
+
* The cell value formatted with the column valueFormatter.
|
|
278
|
+
*/
|
|
279
|
+
formattedValue: _propTypes.default.string,
|
|
280
|
+
/**
|
|
281
|
+
* If true, the cell is the active element.
|
|
282
|
+
*/
|
|
283
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
284
|
+
/**
|
|
285
|
+
* The grid row id.
|
|
286
|
+
*/
|
|
287
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
288
|
+
/**
|
|
289
|
+
* If true, the cell is editable.
|
|
290
|
+
*/
|
|
291
|
+
isEditable: _propTypes.default.bool,
|
|
292
|
+
/**
|
|
293
|
+
* A function to customize the content rendered in the popup.
|
|
294
|
+
* @param {string | null} value The cell value.
|
|
295
|
+
* @returns {React.ReactNode} The content to render in the popup.
|
|
296
|
+
*/
|
|
297
|
+
renderContent: _propTypes.default.func,
|
|
298
|
+
/**
|
|
299
|
+
* The row model of the row that the current cell belongs to.
|
|
300
|
+
*/
|
|
301
|
+
row: _propTypes.default.any.isRequired,
|
|
302
|
+
/**
|
|
303
|
+
* The node of the row that the current cell belongs to.
|
|
304
|
+
*/
|
|
305
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
306
|
+
/**
|
|
307
|
+
* Props passed to internal components.
|
|
308
|
+
*/
|
|
309
|
+
slotProps: _propTypes.default.object,
|
|
310
|
+
/**
|
|
311
|
+
* the tabIndex value.
|
|
312
|
+
*/
|
|
313
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
314
|
+
/**
|
|
315
|
+
* The cell value.
|
|
316
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
317
|
+
*/
|
|
318
|
+
value: _propTypes.default.string
|
|
319
|
+
} : void 0;
|
|
252
320
|
const renderLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCell, (0, _extends2.default)({}, params));
|
|
253
321
|
exports.renderLongTextCell = renderLongTextCell;
|
|
254
322
|
if (process.env.NODE_ENV !== "production") renderLongTextCell.displayName = "renderLongTextCell";
|
|
@@ -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 { styled } from '@mui/material/styles';
|
|
@@ -177,6 +178,7 @@ function GridLongTextCell(props) {
|
|
|
177
178
|
children: value
|
|
178
179
|
})), /*#__PURE__*/_jsx(GridLongTextCellCornerButton, _extends({
|
|
179
180
|
ref: cornerButtonRef,
|
|
181
|
+
type: "button",
|
|
180
182
|
"aria-label": `${value}, ${apiRef.current.getLocaleText('longTextCellExpandLabel')}`,
|
|
181
183
|
"aria-haspopup": "dialog",
|
|
182
184
|
"aria-controls": popupOpen ? popupId : undefined,
|
|
@@ -228,6 +230,7 @@ function GridLongTextCell(props) {
|
|
|
228
230
|
'--_width': `${colDef.computedWidth}px`
|
|
229
231
|
}, slotProps?.popperContent?.style),
|
|
230
232
|
children: [renderContent ? renderContent(value) : value, /*#__PURE__*/_jsx(GridLongTextCellCornerButton, _extends({
|
|
233
|
+
type: "button",
|
|
231
234
|
"aria-label": apiRef.current.getLocaleText('longTextCellCollapseLabel'),
|
|
232
235
|
"aria-keyshortcuts": "Escape"
|
|
233
236
|
}, slotProps?.collapseButton, {
|
|
@@ -241,6 +244,71 @@ function GridLongTextCell(props) {
|
|
|
241
244
|
}))]
|
|
242
245
|
}));
|
|
243
246
|
}
|
|
247
|
+
process.env.NODE_ENV !== "production" ? GridLongTextCell.propTypes /* remove-proptypes */ = {
|
|
248
|
+
// ----------------------------- Warning --------------------------------
|
|
249
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
250
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
251
|
+
// ----------------------------------------------------------------------
|
|
252
|
+
/**
|
|
253
|
+
* GridApi that let you manipulate the grid.
|
|
254
|
+
*/
|
|
255
|
+
api: PropTypes.object.isRequired,
|
|
256
|
+
/**
|
|
257
|
+
* The mode of the cell.
|
|
258
|
+
*/
|
|
259
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
260
|
+
/**
|
|
261
|
+
* The column of the row that the current cell belongs to.
|
|
262
|
+
*/
|
|
263
|
+
colDef: PropTypes.object.isRequired,
|
|
264
|
+
/**
|
|
265
|
+
* The column field of the cell that triggered the event.
|
|
266
|
+
*/
|
|
267
|
+
field: PropTypes.string.isRequired,
|
|
268
|
+
/**
|
|
269
|
+
* The cell value formatted with the column valueFormatter.
|
|
270
|
+
*/
|
|
271
|
+
formattedValue: PropTypes.string,
|
|
272
|
+
/**
|
|
273
|
+
* If true, the cell is the active element.
|
|
274
|
+
*/
|
|
275
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
276
|
+
/**
|
|
277
|
+
* The grid row id.
|
|
278
|
+
*/
|
|
279
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
280
|
+
/**
|
|
281
|
+
* If true, the cell is editable.
|
|
282
|
+
*/
|
|
283
|
+
isEditable: PropTypes.bool,
|
|
284
|
+
/**
|
|
285
|
+
* A function to customize the content rendered in the popup.
|
|
286
|
+
* @param {string | null} value The cell value.
|
|
287
|
+
* @returns {React.ReactNode} The content to render in the popup.
|
|
288
|
+
*/
|
|
289
|
+
renderContent: PropTypes.func,
|
|
290
|
+
/**
|
|
291
|
+
* The row model of the row that the current cell belongs to.
|
|
292
|
+
*/
|
|
293
|
+
row: PropTypes.any.isRequired,
|
|
294
|
+
/**
|
|
295
|
+
* The node of the row that the current cell belongs to.
|
|
296
|
+
*/
|
|
297
|
+
rowNode: PropTypes.object.isRequired,
|
|
298
|
+
/**
|
|
299
|
+
* Props passed to internal components.
|
|
300
|
+
*/
|
|
301
|
+
slotProps: PropTypes.object,
|
|
302
|
+
/**
|
|
303
|
+
* the tabIndex value.
|
|
304
|
+
*/
|
|
305
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
306
|
+
/**
|
|
307
|
+
* The cell value.
|
|
308
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
309
|
+
*/
|
|
310
|
+
value: PropTypes.string
|
|
311
|
+
} : void 0;
|
|
244
312
|
export { GridLongTextCell };
|
|
245
313
|
export const renderLongTextCell = params => /*#__PURE__*/_jsx(GridLongTextCell, _extends({}, params));
|
|
246
314
|
if (process.env.NODE_ENV !== "production") renderLongTextCell.displayName = "renderLongTextCell";
|
|
@@ -98,7 +98,7 @@ function GridSkeletonCell(props) {
|
|
|
98
98
|
children: !empty && /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseSkeleton, (0, _extends2.default)({}, skeletonProps))
|
|
99
99
|
}));
|
|
100
100
|
}
|
|
101
|
-
process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
|
|
101
|
+
process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes /* remove-proptypes */ = {
|
|
102
102
|
// ----------------------------- Warning --------------------------------
|
|
103
103
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
104
104
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -111,7 +111,8 @@ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
|
|
|
111
111
|
empty: _propTypes.default.bool,
|
|
112
112
|
field: _propTypes.default.string,
|
|
113
113
|
height: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
114
|
-
|
|
114
|
+
skeletonProps: _propTypes.default.object,
|
|
115
|
+
type: _propTypes.default.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'longText', 'multiSelect', 'number', 'singleSelect', 'string']),
|
|
115
116
|
width: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
116
117
|
} : void 0;
|
|
117
118
|
const Memoized = exports.GridSkeletonCell = (0, _fastMemo.fastMemo)(GridSkeletonCell);
|
|
@@ -90,7 +90,7 @@ function GridSkeletonCell(props) {
|
|
|
90
90
|
children: !empty && /*#__PURE__*/_jsx(rootProps.slots.baseSkeleton, _extends({}, skeletonProps))
|
|
91
91
|
}));
|
|
92
92
|
}
|
|
93
|
-
process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
|
|
93
|
+
process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes /* remove-proptypes */ = {
|
|
94
94
|
// ----------------------------- Warning --------------------------------
|
|
95
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
96
96
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -103,7 +103,8 @@ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
|
|
|
103
103
|
empty: PropTypes.bool,
|
|
104
104
|
field: PropTypes.string,
|
|
105
105
|
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
106
|
-
|
|
106
|
+
skeletonProps: PropTypes.object,
|
|
107
|
+
type: PropTypes.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'longText', 'multiSelect', 'number', 'singleSelect', 'string']),
|
|
107
108
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
108
109
|
} : void 0;
|
|
109
110
|
const Memoized = fastMemo(GridSkeletonCell);
|
|
@@ -34,7 +34,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
34
34
|
}
|
|
35
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridColumnHeaderFilterIconButton, (0, _extends2.default)({}, props));
|
|
36
36
|
}
|
|
37
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
37
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButtonWrapped.propTypes /* remove-proptypes */ = {
|
|
38
38
|
// ----------------------------- Warning --------------------------------
|
|
39
39
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40
40
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -105,7 +105,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
105
105
|
})
|
|
106
106
|
}));
|
|
107
107
|
}
|
|
108
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButton.propTypes = {
|
|
108
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButton.propTypes /* remove-proptypes */ = {
|
|
109
109
|
// ----------------------------- Warning --------------------------------
|
|
110
110
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
111
111
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -26,7 +26,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
26
26
|
}
|
|
27
27
|
return /*#__PURE__*/_jsx(GridColumnHeaderFilterIconButton, _extends({}, props));
|
|
28
28
|
}
|
|
29
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
29
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButtonWrapped.propTypes /* remove-proptypes */ = {
|
|
30
30
|
// ----------------------------- Warning --------------------------------
|
|
31
31
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
32
32
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -97,7 +97,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
97
97
|
})
|
|
98
98
|
}));
|
|
99
99
|
}
|
|
100
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButton.propTypes = {
|
|
100
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButton.propTypes /* remove-proptypes */ = {
|
|
101
101
|
// ----------------------------- Warning --------------------------------
|
|
102
102
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
103
103
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -255,7 +255,7 @@ function GridColumnHeaderItem(props) {
|
|
|
255
255
|
style: style
|
|
256
256
|
}, mouseEventsHandlers));
|
|
257
257
|
}
|
|
258
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderItem.propTypes = {
|
|
258
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderItem.propTypes /* remove-proptypes */ = {
|
|
259
259
|
// ----------------------------- Warning --------------------------------
|
|
260
260
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
261
261
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -248,7 +248,7 @@ function GridColumnHeaderItem(props) {
|
|
|
248
248
|
style: style
|
|
249
249
|
}, mouseEventsHandlers));
|
|
250
250
|
}
|
|
251
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderItem.propTypes = {
|
|
251
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderItem.propTypes /* remove-proptypes */ = {
|
|
252
252
|
// ----------------------------- Warning --------------------------------
|
|
253
253
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
254
254
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -68,7 +68,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
68
68
|
}
|
|
69
69
|
const GridColumnHeaderSeparator = exports.GridColumnHeaderSeparator = /*#__PURE__*/React.memo(GridColumnHeaderSeparatorRaw);
|
|
70
70
|
if (process.env.NODE_ENV !== "production") GridColumnHeaderSeparator.displayName = "GridColumnHeaderSeparator";
|
|
71
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderSeparatorRaw.propTypes = {
|
|
71
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderSeparatorRaw.propTypes /* remove-proptypes */ = {
|
|
72
72
|
// ----------------------------- Warning --------------------------------
|
|
73
73
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
74
74
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -60,7 +60,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
60
60
|
}
|
|
61
61
|
const GridColumnHeaderSeparator = /*#__PURE__*/React.memo(GridColumnHeaderSeparatorRaw);
|
|
62
62
|
if (process.env.NODE_ENV !== "production") GridColumnHeaderSeparator.displayName = "GridColumnHeaderSeparator";
|
|
63
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderSeparatorRaw.propTypes = {
|
|
63
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderSeparatorRaw.propTypes /* remove-proptypes */ = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
66
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -21,7 +21,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
21
21
|
}
|
|
22
22
|
const GridColumnHeaderSortIcon = exports.GridColumnHeaderSortIcon = /*#__PURE__*/React.memo(GridColumnHeaderSortIconRaw);
|
|
23
23
|
if (process.env.NODE_ENV !== "production") GridColumnHeaderSortIcon.displayName = "GridColumnHeaderSortIcon";
|
|
24
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes = {
|
|
24
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /* remove-proptypes */ = {
|
|
25
25
|
// ----------------------------- Warning --------------------------------
|
|
26
26
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
27
27
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -13,7 +13,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
13
13
|
}
|
|
14
14
|
const GridColumnHeaderSortIcon = /*#__PURE__*/React.memo(GridColumnHeaderSortIconRaw);
|
|
15
15
|
if (process.env.NODE_ENV !== "production") GridColumnHeaderSortIcon.displayName = "GridColumnHeaderSortIcon";
|
|
16
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes = {
|
|
16
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /* remove-proptypes */ = {
|
|
17
17
|
// ----------------------------- Warning --------------------------------
|
|
18
18
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
19
19
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -85,7 +85,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
85
85
|
})
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes = {
|
|
88
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes /* remove-proptypes */ = {
|
|
89
89
|
// ----------------------------- Warning --------------------------------
|
|
90
90
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
91
91
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -78,7 +78,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
78
78
|
})
|
|
79
79
|
}));
|
|
80
80
|
}
|
|
81
|
-
process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes = {
|
|
81
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes /* remove-proptypes */ = {
|
|
82
82
|
// ----------------------------- Warning --------------------------------
|
|
83
83
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
84
84
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -120,7 +120,7 @@ const GridCellCheckboxForwardRef = exports.GridCellCheckboxForwardRef = (0, _for
|
|
|
120
120
|
}));
|
|
121
121
|
});
|
|
122
122
|
if (process.env.NODE_ENV !== "production") GridCellCheckboxForwardRef.displayName = "GridCellCheckboxForwardRef";
|
|
123
|
-
process.env.NODE_ENV !== "production" ? GridCellCheckboxForwardRef.propTypes = {
|
|
123
|
+
process.env.NODE_ENV !== "production" ? GridCellCheckboxForwardRef.propTypes /* remove-proptypes */ = {
|
|
124
124
|
// ----------------------------- Warning --------------------------------
|
|
125
125
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
126
126
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -113,7 +113,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer(
|
|
|
113
113
|
}));
|
|
114
114
|
});
|
|
115
115
|
if (process.env.NODE_ENV !== "production") GridCellCheckboxForwardRef.displayName = "GridCellCheckboxForwardRef";
|
|
116
|
-
process.env.NODE_ENV !== "production" ? GridCellCheckboxForwardRef.propTypes = {
|
|
116
|
+
process.env.NODE_ENV !== "production" ? GridCellCheckboxForwardRef.propTypes /* remove-proptypes */ = {
|
|
117
117
|
// ----------------------------- Warning --------------------------------
|
|
118
118
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
119
119
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -168,7 +168,7 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = (0, _forwardRef.forwardR
|
|
|
168
168
|
}));
|
|
169
169
|
});
|
|
170
170
|
if (process.env.NODE_ENV !== "production") GridHeaderCheckbox.displayName = "GridHeaderCheckbox";
|
|
171
|
-
process.env.NODE_ENV !== "production" ? GridHeaderCheckbox.propTypes = {
|
|
171
|
+
process.env.NODE_ENV !== "production" ? GridHeaderCheckbox.propTypes /* remove-proptypes */ = {
|
|
172
172
|
// ----------------------------- Warning --------------------------------
|
|
173
173
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
174
174
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -161,7 +161,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox(props, ref) {
|
|
|
161
161
|
}));
|
|
162
162
|
});
|
|
163
163
|
if (process.env.NODE_ENV !== "production") GridHeaderCheckbox.displayName = "GridHeaderCheckbox";
|
|
164
|
-
process.env.NODE_ENV !== "production" ? GridHeaderCheckbox.propTypes = {
|
|
164
|
+
process.env.NODE_ENV !== "production" ? GridHeaderCheckbox.propTypes /* remove-proptypes */ = {
|
|
165
165
|
// ----------------------------- Warning --------------------------------
|
|
166
166
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
167
167
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -29,7 +29,7 @@ const GridRowCheckbox = exports.GridRowCheckbox = (0, _forwardRef.forwardRef)(fu
|
|
|
29
29
|
}));
|
|
30
30
|
});
|
|
31
31
|
if (process.env.NODE_ENV !== "production") GridRowCheckbox.displayName = "GridRowCheckbox";
|
|
32
|
-
process.env.NODE_ENV !== "production" ? GridRowCheckbox.propTypes = {
|
|
32
|
+
process.env.NODE_ENV !== "production" ? GridRowCheckbox.propTypes /* remove-proptypes */ = {
|
|
33
33
|
// ----------------------------- Warning --------------------------------
|
|
34
34
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
35
35
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -22,7 +22,7 @@ const GridRowCheckbox = forwardRef(function GridRowCheckbox(props, ref) {
|
|
|
22
22
|
}));
|
|
23
23
|
});
|
|
24
24
|
if (process.env.NODE_ENV !== "production") GridRowCheckbox.displayName = "GridRowCheckbox";
|
|
25
|
-
process.env.NODE_ENV !== "production" ? GridRowCheckbox.propTypes = {
|
|
25
|
+
process.env.NODE_ENV !== "production" ? GridRowCheckbox.propTypes /* remove-proptypes */ = {
|
|
26
26
|
// ----------------------------- Warning --------------------------------
|
|
27
27
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
28
28
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -221,7 +221,7 @@ function GridColumnsManagement(props) {
|
|
|
221
221
|
}) : null]
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
|
|
224
|
+
process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes /* remove-proptypes */ = {
|
|
225
225
|
// ----------------------------- Warning --------------------------------
|
|
226
226
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
227
227
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -214,7 +214,7 @@ function GridColumnsManagement(props) {
|
|
|
214
214
|
}) : null]
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
|
|
217
|
+
process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes /* remove-proptypes */ = {
|
|
218
218
|
// ----------------------------- Warning --------------------------------
|
|
219
219
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
220
220
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -84,7 +84,7 @@ const ColumnsPanelTrigger = exports.ColumnsPanelTrigger = (0, _forwardRef.forwar
|
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
if (process.env.NODE_ENV !== "production") ColumnsPanelTrigger.displayName = "ColumnsPanelTrigger";
|
|
87
|
-
process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes = {
|
|
87
|
+
process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes /* remove-proptypes */ = {
|
|
88
88
|
// ----------------------------- Warning --------------------------------
|
|
89
89
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
90
90
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -76,7 +76,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger(props, ref)
|
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
if (process.env.NODE_ENV !== "production") ColumnsPanelTrigger.displayName = "ColumnsPanelTrigger";
|
|
79
|
-
process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes = {
|
|
79
|
+
process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes /* remove-proptypes */ = {
|
|
80
80
|
// ----------------------------- Warning --------------------------------
|
|
81
81
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
82
82
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -53,7 +53,7 @@ const GridFooterContainer = exports.GridFooterContainer = (0, _forwardRef.forwar
|
|
|
53
53
|
}));
|
|
54
54
|
});
|
|
55
55
|
if (process.env.NODE_ENV !== "production") GridFooterContainer.displayName = "GridFooterContainer";
|
|
56
|
-
process.env.NODE_ENV !== "production" ? GridFooterContainer.propTypes = {
|
|
56
|
+
process.env.NODE_ENV !== "production" ? GridFooterContainer.propTypes /* remove-proptypes */ = {
|
|
57
57
|
// ----------------------------- Warning --------------------------------
|
|
58
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
59
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -46,7 +46,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer(props, ref)
|
|
|
46
46
|
}));
|
|
47
47
|
});
|
|
48
48
|
if (process.env.NODE_ENV !== "production") GridFooterContainer.displayName = "GridFooterContainer";
|
|
49
|
-
process.env.NODE_ENV !== "production" ? GridFooterContainer.propTypes = {
|
|
49
|
+
process.env.NODE_ENV !== "production" ? GridFooterContainer.propTypes /* remove-proptypes */ = {
|
|
50
50
|
// ----------------------------- Warning --------------------------------
|
|
51
51
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
52
52
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -60,7 +60,7 @@ const GridOverlay = exports.GridOverlay = (0, _forwardRef.forwardRef)(function G
|
|
|
60
60
|
}));
|
|
61
61
|
});
|
|
62
62
|
if (process.env.NODE_ENV !== "production") GridOverlay.displayName = "GridOverlay";
|
|
63
|
-
process.env.NODE_ENV !== "production" ? GridOverlay.propTypes = {
|
|
63
|
+
process.env.NODE_ENV !== "production" ? GridOverlay.propTypes /* remove-proptypes */ = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
65
65
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
66
66
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -53,7 +53,7 @@ const GridOverlay = forwardRef(function GridOverlay(props, ref) {
|
|
|
53
53
|
}));
|
|
54
54
|
});
|
|
55
55
|
if (process.env.NODE_ENV !== "production") GridOverlay.displayName = "GridOverlay";
|
|
56
|
-
process.env.NODE_ENV !== "production" ? GridOverlay.propTypes = {
|
|
56
|
+
process.env.NODE_ENV !== "production" ? GridOverlay.propTypes /* remove-proptypes */ = {
|
|
57
57
|
// ----------------------------- Warning --------------------------------
|
|
58
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
59
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -80,7 +80,7 @@ const GridRoot = (0, _forwardRef.forwardRef)(function GridRoot(props, ref) {
|
|
|
80
80
|
}));
|
|
81
81
|
});
|
|
82
82
|
if (process.env.NODE_ENV !== "production") GridRoot.displayName = "GridRoot";
|
|
83
|
-
process.env.NODE_ENV !== "production" ? GridRoot.propTypes = {
|
|
83
|
+
process.env.NODE_ENV !== "production" ? GridRoot.propTypes /* remove-proptypes */ = {
|
|
84
84
|
// ----------------------------- Warning --------------------------------
|
|
85
85
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
86
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -73,7 +73,7 @@ const GridRoot = forwardRef(function GridRoot(props, ref) {
|
|
|
73
73
|
}));
|
|
74
74
|
});
|
|
75
75
|
if (process.env.NODE_ENV !== "production") GridRoot.displayName = "GridRoot";
|
|
76
|
-
process.env.NODE_ENV !== "production" ? GridRoot.propTypes = {
|
|
76
|
+
process.env.NODE_ENV !== "production" ? GridRoot.propTypes /* remove-proptypes */ = {
|
|
77
77
|
// ----------------------------- Warning --------------------------------
|
|
78
78
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
79
79
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -131,11 +131,12 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
131
131
|
minHeight: 0,
|
|
132
132
|
flexDirection: 'column',
|
|
133
133
|
overflow: 'hidden',
|
|
134
|
-
overflowAnchor: 'none',
|
|
135
|
-
// Keep the same scrolling position
|
|
136
134
|
transform: 'translate(0, 0)',
|
|
137
135
|
// Create a stacking context to keep scrollbars from showing on top
|
|
138
136
|
|
|
137
|
+
[`& .${_gridClasses.gridClasses.virtualScroller}`]: {
|
|
138
|
+
overflowAnchor: 'none' // Keep the same scrolling position
|
|
139
|
+
},
|
|
139
140
|
// Use `css` tagged template so the ignore-comment remains a sibling of the
|
|
140
141
|
// `:first-child` rule in the stylis AST. Previously, the comment was embedded
|
|
141
142
|
// in the object-key selector, which got separated from the rule during
|
|
@@ -175,6 +176,16 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
175
176
|
[`& .${_gridClasses.gridClasses['columnHeader--filter']}`]: {
|
|
176
177
|
flex: 'none !important',
|
|
177
178
|
width: 'unset !important'
|
|
179
|
+
},
|
|
180
|
+
[`& .${_gridClasses.gridClasses.multiSelectCell}`]: {
|
|
181
|
+
width: 'max-content',
|
|
182
|
+
overflow: 'visible'
|
|
183
|
+
},
|
|
184
|
+
[`& .${_gridClasses.gridClasses['multiSelectCellChip--hidden']}`]: {
|
|
185
|
+
display: 'inline-flex'
|
|
186
|
+
},
|
|
187
|
+
[`& .${_gridClasses.gridClasses.multiSelectCellOverflow}`]: {
|
|
188
|
+
display: 'none'
|
|
178
189
|
}
|
|
179
190
|
},
|
|
180
191
|
[`&.${_gridClasses.gridClasses.withSidePanel}`]: {
|
|
@@ -523,6 +534,25 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
523
534
|
whiteSpace: 'initial',
|
|
524
535
|
lineHeight: 'inherit'
|
|
525
536
|
},
|
|
537
|
+
[`& .${_gridClasses.gridClasses['row--dynamicHeight']}`]: {
|
|
538
|
+
[`& .${_gridClasses.gridClasses.multiSelectCell}, .${_gridClasses.gridClasses.editMultiSelectCell}`]: {
|
|
539
|
+
flexWrap: 'wrap'
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
[`& .${_gridClasses.gridClasses.cell}[aria-rowspan]:not([aria-rowspan="1"])`]: {
|
|
543
|
+
[`& .${_gridClasses.gridClasses.multiSelectCell}`]: {
|
|
544
|
+
alignItems: 'flex-start',
|
|
545
|
+
alignContent: 'flex-start',
|
|
546
|
+
flexWrap: 'wrap',
|
|
547
|
+
paddingTop: 8
|
|
548
|
+
},
|
|
549
|
+
[`& .${_gridClasses.gridClasses['multiSelectCellChip--hidden']}`]: {
|
|
550
|
+
display: 'inline-flex'
|
|
551
|
+
},
|
|
552
|
+
[`& .${_gridClasses.gridClasses.multiSelectCellOverflow}`]: {
|
|
553
|
+
display: 'none'
|
|
554
|
+
}
|
|
555
|
+
},
|
|
526
556
|
[`& .${_gridClasses.gridClasses.cellEmpty}`]: {
|
|
527
557
|
flex: 1,
|
|
528
558
|
padding: 0,
|