@mui/x-data-grid 8.11.2 → 8.12.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 +231 -0
- package/DataGrid/DataGrid.js +3 -1
- package/DataGrid/useDataGridComponent.js +2 -2
- package/colDef/gridActionsColDef.js +1 -0
- package/colDef/gridBooleanColDef.js +1 -0
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/colDef/gridStringColDef.js +1 -0
- package/components/GridShadowScrollArea.js +2 -2
- package/components/GridSkeletonLoadingOverlay.js +2 -2
- package/components/cell/GridCell.js +7 -5
- package/components/panel/filterPanel/GridFilterInputBoolean.js +2 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +2 -2
- package/components/quickFilter/QuickFilterControl.js +1 -1
- package/constants/localeTextConstants.js +29 -0
- package/esm/DataGrid/DataGrid.js +3 -1
- package/esm/DataGrid/useDataGridComponent.js +2 -2
- package/esm/colDef/gridActionsColDef.js +1 -0
- package/esm/colDef/gridBooleanColDef.js +1 -0
- package/esm/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/esm/colDef/gridStringColDef.js +1 -0
- package/esm/components/GridShadowScrollArea.js +2 -2
- package/esm/components/GridSkeletonLoadingOverlay.js +2 -2
- package/esm/components/cell/GridCell.js +7 -5
- package/esm/components/panel/filterPanel/GridFilterInputBoolean.js +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +2 -2
- package/esm/components/quickFilter/QuickFilterControl.js +1 -1
- package/esm/constants/localeTextConstants.js +29 -0
- package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -2
- package/esm/hooks/features/columns/useGridColumns.js +21 -4
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +12 -4
- package/esm/hooks/features/filter/gridFilterSelector.js +21 -4
- package/esm/hooks/features/filter/gridFilterState.d.ts +3 -1
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +3 -3
- package/esm/hooks/features/filter/gridFilterUtils.js +23 -13
- package/esm/hooks/features/filter/useGridFilter.d.ts +2 -1
- package/esm/hooks/features/filter/useGridFilter.js +7 -5
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +9 -0
- package/esm/hooks/features/rows/gridRowsSelector.js +12 -0
- package/esm/hooks/features/rows/index.d.ts +1 -1
- package/esm/hooks/features/rows/index.js +1 -1
- package/esm/hooks/features/rows/useGridParamsApi.js +16 -7
- package/esm/hooks/features/sorting/gridSortingUtils.d.ts +3 -1
- package/esm/hooks/features/sorting/gridSortingUtils.js +10 -4
- package/esm/hooks/features/sorting/useGridSorting.d.ts +2 -1
- package/esm/hooks/features/sorting/useGridSorting.js +4 -3
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +1 -1
- package/esm/internals/index.js +1 -1
- package/esm/locales/arSD.js +31 -0
- package/esm/locales/beBY.js +31 -0
- package/esm/locales/bgBG.js +31 -0
- package/esm/locales/bnBD.js +31 -0
- package/esm/locales/csCZ.js +31 -0
- package/esm/locales/daDK.js +31 -0
- package/esm/locales/deDE.js +32 -0
- package/esm/locales/elGR.js +31 -0
- package/esm/locales/esES.js +31 -0
- package/esm/locales/faIR.js +31 -0
- package/esm/locales/fiFI.js +31 -0
- package/esm/locales/frFR.js +32 -2
- package/esm/locales/heIL.js +31 -0
- package/esm/locales/hrHR.js +31 -0
- package/esm/locales/huHU.js +31 -0
- package/esm/locales/hyAM.js +31 -0
- package/esm/locales/idID.d.ts +1 -1
- package/esm/locales/idID.js +32 -0
- package/esm/locales/isIS.js +31 -0
- package/esm/locales/itIT.js +31 -0
- package/esm/locales/jaJP.js +31 -0
- package/esm/locales/koKR.js +31 -0
- package/esm/locales/nbNO.js +31 -0
- package/esm/locales/nlNL.js +31 -0
- package/esm/locales/nnNO.js +32 -0
- package/esm/locales/plPL.js +31 -0
- package/esm/locales/ptBR.js +31 -0
- package/esm/locales/ptPT.js +31 -0
- package/esm/locales/roRO.js +31 -0
- package/esm/locales/ruRU.js +31 -0
- package/esm/locales/skSK.js +31 -0
- package/esm/locales/svSE.js +31 -0
- package/esm/locales/trTR.js +31 -0
- package/esm/locales/ukUA.js +31 -0
- package/esm/locales/urPK.js +31 -0
- package/esm/locales/viVN.js +31 -0
- package/esm/locales/zhCN.js +31 -0
- package/esm/locales/zhHK.js +31 -0
- package/esm/locales/zhTW.js +31 -0
- package/esm/material/augmentation.d.ts +8 -0
- package/esm/material/index.js +147 -49
- package/esm/material/variables.js +2 -1
- package/esm/models/api/gridLocaleTextApi.d.ts +27 -0
- package/esm/models/api/gridParamsApi.d.ts +5 -1
- package/esm/models/configuration/gridAggregationConfiguration.d.ts +25 -0
- package/esm/models/configuration/gridAggregationConfiguration.js +1 -0
- package/esm/models/configuration/gridConfiguration.d.ts +6 -9
- package/esm/models/gridBaseSlots.d.ts +15 -0
- package/esm/models/gridFilterItem.d.ts +4 -2
- package/esm/models/gridFilterOperator.d.ts +1 -1
- package/esm/models/gridSlotsComponent.d.ts +10 -0
- package/esm/models/gridSlotsComponentsProps.d.ts +5 -1
- package/hooks/features/columnResize/useGridColumnResize.js +2 -2
- package/hooks/features/columns/useGridColumns.js +23 -6
- package/hooks/features/filter/gridFilterSelector.d.ts +12 -4
- package/hooks/features/filter/gridFilterSelector.js +22 -5
- package/hooks/features/filter/gridFilterState.d.ts +3 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +3 -3
- package/hooks/features/filter/gridFilterUtils.js +23 -13
- package/hooks/features/filter/useGridFilter.d.ts +2 -1
- package/hooks/features/filter/useGridFilter.js +7 -5
- package/hooks/features/rows/gridRowsSelector.d.ts +9 -0
- package/hooks/features/rows/gridRowsSelector.js +12 -0
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +7 -0
- package/hooks/features/rows/useGridParamsApi.js +16 -7
- package/hooks/features/sorting/gridSortingUtils.d.ts +3 -1
- package/hooks/features/sorting/gridSortingUtils.js +10 -4
- package/hooks/features/sorting/useGridSorting.d.ts +2 -1
- package/hooks/features/sorting/useGridSorting.js +4 -3
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +7 -0
- package/locales/arSD.js +31 -0
- package/locales/beBY.js +31 -0
- package/locales/bgBG.js +31 -0
- package/locales/bnBD.js +31 -0
- package/locales/csCZ.js +31 -0
- package/locales/daDK.js +31 -0
- package/locales/deDE.js +32 -0
- package/locales/elGR.js +31 -0
- package/locales/esES.js +31 -0
- package/locales/faIR.js +31 -0
- package/locales/fiFI.js +31 -0
- package/locales/frFR.js +32 -2
- package/locales/heIL.js +31 -0
- package/locales/hrHR.js +31 -0
- package/locales/huHU.js +31 -0
- package/locales/hyAM.js +31 -0
- package/locales/idID.d.ts +1 -1
- package/locales/idID.js +32 -0
- package/locales/isIS.js +31 -0
- package/locales/itIT.js +31 -0
- package/locales/jaJP.js +31 -0
- package/locales/koKR.js +31 -0
- package/locales/nbNO.js +31 -0
- package/locales/nlNL.js +31 -0
- package/locales/nnNO.js +32 -0
- package/locales/plPL.js +31 -0
- package/locales/ptBR.js +31 -0
- package/locales/ptPT.js +31 -0
- package/locales/roRO.js +31 -0
- package/locales/ruRU.js +31 -0
- package/locales/skSK.js +31 -0
- package/locales/svSE.js +31 -0
- package/locales/trTR.js +31 -0
- package/locales/ukUA.js +31 -0
- package/locales/urPK.js +31 -0
- package/locales/viVN.js +31 -0
- package/locales/zhCN.js +31 -0
- package/locales/zhHK.js +31 -0
- package/locales/zhTW.js +31 -0
- package/material/augmentation.d.ts +8 -0
- package/material/index.js +147 -49
- package/material/variables.js +2 -1
- package/models/api/gridLocaleTextApi.d.ts +27 -0
- package/models/api/gridParamsApi.d.ts +5 -1
- package/models/configuration/gridAggregationConfiguration.d.ts +25 -0
- package/models/configuration/gridAggregationConfiguration.js +5 -0
- package/models/configuration/gridConfiguration.d.ts +6 -9
- package/models/gridBaseSlots.d.ts +15 -0
- package/models/gridFilterItem.d.ts +4 -2
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +10 -0
- package/models/gridSlotsComponentsProps.d.ts +5 -1
- package/package.json +3 -3
package/material/index.js
CHANGED
|
@@ -48,7 +48,11 @@ var _Grow = _interopRequireDefault(require("@mui/material/Grow"));
|
|
|
48
48
|
var _Paper = _interopRequireDefault(require("@mui/material/Paper"));
|
|
49
49
|
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
50
50
|
var _Skeleton = _interopRequireDefault(require("@mui/material/Skeleton"));
|
|
51
|
+
var _Tabs = _interopRequireDefault(require("@mui/material/Tabs"));
|
|
52
|
+
var _Tab = _interopRequireDefault(require("@mui/material/Tab"));
|
|
53
|
+
var _ToggleButton = _interopRequireDefault(require("@mui/material/ToggleButton"));
|
|
51
54
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
55
|
+
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
52
56
|
var _icons = require("./icons");
|
|
53
57
|
var _GridColumnUnsortedIcon = require("../components/GridColumnUnsortedIcon");
|
|
54
58
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
@@ -68,16 +72,19 @@ const _excluded = ["id", "label", "labelId", "material", "disabled", "slotProps"
|
|
|
68
72
|
_excluded0 = ["material"],
|
|
69
73
|
_excluded1 = ["material"],
|
|
70
74
|
_excluded10 = ["material"],
|
|
71
|
-
_excluded11 = ["material"
|
|
72
|
-
_excluded12 = ["material"],
|
|
73
|
-
_excluded13 = ["
|
|
74
|
-
_excluded14 = ["
|
|
75
|
-
_excluded15 = ["
|
|
76
|
-
_excluded16 = ["
|
|
77
|
-
_excluded17 = ["
|
|
78
|
-
_excluded18 = ["
|
|
79
|
-
_excluded19 = ["
|
|
80
|
-
_excluded20 = ["
|
|
75
|
+
_excluded11 = ["material"],
|
|
76
|
+
_excluded12 = ["material", "label", "className"],
|
|
77
|
+
_excluded13 = ["material"],
|
|
78
|
+
_excluded14 = ["inert", "iconStart", "iconEnd", "children", "material"],
|
|
79
|
+
_excluded15 = ["slotProps", "material"],
|
|
80
|
+
_excluded16 = ["id", "multiple", "freeSolo", "options", "getOptionLabel", "isOptionEqualToValue", "value", "onChange", "label", "placeholder", "slotProps", "material"],
|
|
81
|
+
_excluded17 = ["key"],
|
|
82
|
+
_excluded18 = ["inputProps", "InputProps", "InputLabelProps"],
|
|
83
|
+
_excluded19 = ["slotProps", "material"],
|
|
84
|
+
_excluded20 = ["ref", "open", "children", "className", "clickAwayTouchEvent", "clickAwayMouseEvent", "flip", "focusTrap", "onExited", "onClickAway", "onDidShow", "onDidHide", "id", "target", "transition", "placement", "material"],
|
|
85
|
+
_excluded21 = ["native"],
|
|
86
|
+
_excluded22 = ["children", "value", "active"],
|
|
87
|
+
_excluded23 = ["items", "value", "material"];
|
|
81
88
|
/* eslint-disable material-ui/disallow-react-api-in-server-components */
|
|
82
89
|
|
|
83
90
|
const InputAdornment = (0, _styles.styled)(_InputAdornment.default)(({
|
|
@@ -147,7 +154,7 @@ const BaseSelect = (0, _forwardRef.forwardRef)(function BaseSelect(props, ref) {
|
|
|
147
154
|
style,
|
|
148
155
|
fullWidth
|
|
149
156
|
} = props,
|
|
150
|
-
|
|
157
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
151
158
|
const menuProps = {
|
|
152
159
|
PaperProps: {
|
|
153
160
|
onKeyDown
|
|
@@ -175,7 +182,7 @@ const BaseSelect = (0, _forwardRef.forwardRef)(function BaseSelect(props, ref) {
|
|
|
175
182
|
displayEmpty: true,
|
|
176
183
|
onChange: onChange,
|
|
177
184
|
variant: "outlined"
|
|
178
|
-
},
|
|
185
|
+
}, other, {
|
|
179
186
|
notched: true,
|
|
180
187
|
inputProps: slotProps?.htmlInput,
|
|
181
188
|
onOpen: onOpen,
|
|
@@ -207,7 +214,7 @@ const BasePagination = (0, _forwardRef.forwardRef)(function BasePagination(props
|
|
|
207
214
|
material,
|
|
208
215
|
disabled
|
|
209
216
|
} = props,
|
|
210
|
-
|
|
217
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
211
218
|
const computedProps = React.useMemo(() => {
|
|
212
219
|
if (!disabled) {
|
|
213
220
|
return undefined;
|
|
@@ -236,7 +243,7 @@ const BasePagination = (0, _forwardRef.forwardRef)(function BasePagination(props
|
|
|
236
243
|
estimated: estimatedRowCount
|
|
237
244
|
})),
|
|
238
245
|
getItemAriaLabel: apiRef.current.getLocaleText('paginationItemAriaLabel')
|
|
239
|
-
}, computedProps,
|
|
246
|
+
}, computedProps, other, material, {
|
|
240
247
|
ref: ref
|
|
241
248
|
}));
|
|
242
249
|
});
|
|
@@ -245,8 +252,8 @@ const BaseBadge = (0, _forwardRef.forwardRef)(function BaseBadge(props, ref) {
|
|
|
245
252
|
const {
|
|
246
253
|
material
|
|
247
254
|
} = props,
|
|
248
|
-
|
|
249
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, (0, _extends2.default)({},
|
|
255
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded3);
|
|
256
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, (0, _extends2.default)({}, other, material, {
|
|
250
257
|
ref: ref
|
|
251
258
|
}));
|
|
252
259
|
});
|
|
@@ -300,8 +307,8 @@ const BaseCircularProgress = (0, _forwardRef.forwardRef)(function BaseCircularPr
|
|
|
300
307
|
const {
|
|
301
308
|
material
|
|
302
309
|
} = props,
|
|
303
|
-
|
|
304
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, (0, _extends2.default)({},
|
|
310
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded5);
|
|
311
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, (0, _extends2.default)({}, other, material, {
|
|
305
312
|
ref: ref
|
|
306
313
|
}));
|
|
307
314
|
});
|
|
@@ -310,8 +317,8 @@ const BaseDivider = (0, _forwardRef.forwardRef)(function BaseDivider(props, ref)
|
|
|
310
317
|
const {
|
|
311
318
|
material
|
|
312
319
|
} = props,
|
|
313
|
-
|
|
314
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Divider.default, (0, _extends2.default)({},
|
|
320
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded6);
|
|
321
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Divider.default, (0, _extends2.default)({}, other, material, {
|
|
315
322
|
ref: ref
|
|
316
323
|
}));
|
|
317
324
|
});
|
|
@@ -320,8 +327,8 @@ const BaseLinearProgress = (0, _forwardRef.forwardRef)(function BaseLinearProgre
|
|
|
320
327
|
const {
|
|
321
328
|
material
|
|
322
329
|
} = props,
|
|
323
|
-
|
|
324
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinearProgress.default, (0, _extends2.default)({},
|
|
330
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded7);
|
|
331
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinearProgress.default, (0, _extends2.default)({}, other, material, {
|
|
325
332
|
ref: ref
|
|
326
333
|
}));
|
|
327
334
|
});
|
|
@@ -330,18 +337,37 @@ const BaseButton = (0, _forwardRef.forwardRef)(function BaseButton(props, ref) {
|
|
|
330
337
|
const {
|
|
331
338
|
material
|
|
332
339
|
} = props,
|
|
333
|
-
|
|
334
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, (0, _extends2.default)({},
|
|
340
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded8);
|
|
341
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, (0, _extends2.default)({}, other, material, {
|
|
335
342
|
ref: ref
|
|
336
343
|
}));
|
|
337
344
|
});
|
|
338
345
|
if (process.env.NODE_ENV !== "production") BaseButton.displayName = "BaseButton";
|
|
339
|
-
const
|
|
346
|
+
const StyledToggleButton = (0, _styles.styled)(_ToggleButton.default)(({
|
|
347
|
+
theme
|
|
348
|
+
}) => ({
|
|
349
|
+
gap: theme.spacing(1),
|
|
350
|
+
border: 0
|
|
351
|
+
}));
|
|
352
|
+
const BaseToggleButton = (0, _forwardRef.forwardRef)(function BaseToggleButton(props, ref) {
|
|
340
353
|
const {
|
|
341
354
|
material
|
|
342
355
|
} = props,
|
|
343
356
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded9);
|
|
344
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
357
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledToggleButton, (0, _extends2.default)({
|
|
358
|
+
size: "small",
|
|
359
|
+
color: "primary"
|
|
360
|
+
}, rest, material, {
|
|
361
|
+
ref: ref
|
|
362
|
+
}));
|
|
363
|
+
});
|
|
364
|
+
if (process.env.NODE_ENV !== "production") BaseToggleButton.displayName = "BaseToggleButton";
|
|
365
|
+
const BaseChip = (0, _forwardRef.forwardRef)(function BaseChip(props, ref) {
|
|
366
|
+
const {
|
|
367
|
+
material
|
|
368
|
+
} = props,
|
|
369
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded0);
|
|
370
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({}, other, material, {
|
|
345
371
|
ref: ref
|
|
346
372
|
}));
|
|
347
373
|
});
|
|
@@ -350,8 +376,8 @@ const BaseIconButton = (0, _forwardRef.forwardRef)(function BaseIconButton(props
|
|
|
350
376
|
const {
|
|
351
377
|
material
|
|
352
378
|
} = props,
|
|
353
|
-
|
|
354
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({},
|
|
379
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded1);
|
|
380
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({}, other, material, {
|
|
355
381
|
ref: ref
|
|
356
382
|
}));
|
|
357
383
|
});
|
|
@@ -360,8 +386,8 @@ const BaseTooltip = (0, _forwardRef.forwardRef)(function BaseTooltip(props, ref)
|
|
|
360
386
|
const {
|
|
361
387
|
material
|
|
362
388
|
} = props,
|
|
363
|
-
|
|
364
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, (0, _extends2.default)({},
|
|
389
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded10);
|
|
390
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, (0, _extends2.default)({}, other, material, {
|
|
365
391
|
ref: ref
|
|
366
392
|
}));
|
|
367
393
|
});
|
|
@@ -370,8 +396,8 @@ const BaseSkeleton = (0, _forwardRef.forwardRef)(function BaseSkeleton(props, re
|
|
|
370
396
|
const {
|
|
371
397
|
material
|
|
372
398
|
} = props,
|
|
373
|
-
|
|
374
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, (0, _extends2.default)({},
|
|
399
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded11);
|
|
400
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, (0, _extends2.default)({}, other, material, {
|
|
375
401
|
ref: ref
|
|
376
402
|
}));
|
|
377
403
|
});
|
|
@@ -382,16 +408,16 @@ const BaseSwitch = (0, _forwardRef.forwardRef)(function BaseSwitch(props, ref) {
|
|
|
382
408
|
label,
|
|
383
409
|
className
|
|
384
410
|
} = props,
|
|
385
|
-
|
|
411
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded12);
|
|
386
412
|
if (!label) {
|
|
387
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, (0, _extends2.default)({},
|
|
413
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, (0, _extends2.default)({}, other, material, {
|
|
388
414
|
className: className,
|
|
389
415
|
ref: ref
|
|
390
416
|
}));
|
|
391
417
|
}
|
|
392
418
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FormControlLabel, {
|
|
393
419
|
className: className,
|
|
394
|
-
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, (0, _extends2.default)({},
|
|
420
|
+
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, (0, _extends2.default)({}, other, material, {
|
|
395
421
|
ref: ref
|
|
396
422
|
})),
|
|
397
423
|
label: label
|
|
@@ -402,8 +428,8 @@ const BaseMenuList = (0, _forwardRef.forwardRef)(function BaseMenuList(props, re
|
|
|
402
428
|
const {
|
|
403
429
|
material
|
|
404
430
|
} = props,
|
|
405
|
-
|
|
406
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuList.default, (0, _extends2.default)({},
|
|
431
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded13);
|
|
432
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuList.default, (0, _extends2.default)({}, other, material, {
|
|
407
433
|
ref: ref
|
|
408
434
|
}));
|
|
409
435
|
});
|
|
@@ -416,7 +442,7 @@ function BaseMenuItem(props) {
|
|
|
416
442
|
children,
|
|
417
443
|
material
|
|
418
444
|
} = props,
|
|
419
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
445
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded14);
|
|
420
446
|
if (inert) {
|
|
421
447
|
other.disableRipple = true;
|
|
422
448
|
}
|
|
@@ -435,10 +461,10 @@ function BaseTextField(props) {
|
|
|
435
461
|
slotProps,
|
|
436
462
|
material
|
|
437
463
|
} = props,
|
|
438
|
-
|
|
464
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded15);
|
|
439
465
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, (0, _extends2.default)({
|
|
440
466
|
variant: "outlined"
|
|
441
|
-
},
|
|
467
|
+
}, other, material, {
|
|
442
468
|
inputProps: slotProps?.htmlInput,
|
|
443
469
|
InputProps: transformInputProps(slotProps?.input),
|
|
444
470
|
InputLabelProps: (0, _extends2.default)({
|
|
@@ -462,7 +488,7 @@ function BaseAutocomplete(props) {
|
|
|
462
488
|
slotProps,
|
|
463
489
|
material
|
|
464
490
|
} = props,
|
|
465
|
-
|
|
491
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded16);
|
|
466
492
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
|
|
467
493
|
id: id,
|
|
468
494
|
multiple: multiple,
|
|
@@ -479,7 +505,7 @@ function BaseAutocomplete(props) {
|
|
|
479
505
|
{
|
|
480
506
|
key
|
|
481
507
|
} = _getTagProps,
|
|
482
|
-
tagProps = (0, _objectWithoutPropertiesLoose2.default)(_getTagProps,
|
|
508
|
+
tagProps = (0, _objectWithoutPropertiesLoose2.default)(_getTagProps, _excluded17);
|
|
483
509
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({
|
|
484
510
|
variant: "outlined",
|
|
485
511
|
size: "small",
|
|
@@ -492,7 +518,7 @@ function BaseAutocomplete(props) {
|
|
|
492
518
|
InputProps,
|
|
493
519
|
InputLabelProps
|
|
494
520
|
} = params,
|
|
495
|
-
inputRest = (0, _objectWithoutPropertiesLoose2.default)(params,
|
|
521
|
+
inputRest = (0, _objectWithoutPropertiesLoose2.default)(params, _excluded18);
|
|
496
522
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, (0, _extends2.default)({}, inputRest, {
|
|
497
523
|
label: label,
|
|
498
524
|
placeholder: placeholder,
|
|
@@ -503,7 +529,7 @@ function BaseAutocomplete(props) {
|
|
|
503
529
|
}, InputLabelProps)
|
|
504
530
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
505
531
|
}
|
|
506
|
-
},
|
|
532
|
+
}, other, material));
|
|
507
533
|
}
|
|
508
534
|
function BaseInput(props) {
|
|
509
535
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({}, transformInputProps(props)));
|
|
@@ -516,8 +542,8 @@ function transformInputProps(props, wrapAdornments = true) {
|
|
|
516
542
|
slotProps,
|
|
517
543
|
material
|
|
518
544
|
} = props,
|
|
519
|
-
|
|
520
|
-
const result =
|
|
545
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded19);
|
|
546
|
+
const result = other;
|
|
521
547
|
if (wrapAdornments) {
|
|
522
548
|
if (result.startAdornment) {
|
|
523
549
|
result.startAdornment = /*#__PURE__*/(0, _jsxRuntime.jsx)(InputAdornment, {
|
|
@@ -565,7 +591,7 @@ function BasePopper(props) {
|
|
|
565
591
|
placement,
|
|
566
592
|
material
|
|
567
593
|
} = props,
|
|
568
|
-
|
|
594
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded20);
|
|
569
595
|
const modifiers = React.useMemo(() => {
|
|
570
596
|
const result = [{
|
|
571
597
|
name: 'preventOverflow',
|
|
@@ -627,7 +653,7 @@ function BasePopper(props) {
|
|
|
627
653
|
transition: transition,
|
|
628
654
|
placement: placement,
|
|
629
655
|
modifiers: modifiers
|
|
630
|
-
},
|
|
656
|
+
}, other, material, {
|
|
631
657
|
children: content
|
|
632
658
|
}));
|
|
633
659
|
}
|
|
@@ -663,12 +689,82 @@ function BaseSelectOption(_ref) {
|
|
|
663
689
|
let {
|
|
664
690
|
native
|
|
665
691
|
} = _ref,
|
|
666
|
-
props = (0, _objectWithoutPropertiesLoose2.default)(_ref,
|
|
692
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded21);
|
|
667
693
|
if (native) {
|
|
668
694
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", (0, _extends2.default)({}, props));
|
|
669
695
|
}
|
|
670
696
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuItem.default, (0, _extends2.default)({}, props));
|
|
671
697
|
}
|
|
698
|
+
const StyledTabs = (0, _styles.styled)(_Tabs.default, {
|
|
699
|
+
name: 'MuiDataGrid',
|
|
700
|
+
slot: 'Tabs'
|
|
701
|
+
})(({
|
|
702
|
+
theme
|
|
703
|
+
}) => ({
|
|
704
|
+
borderBottom: `1px solid ${theme.palette.divider}`
|
|
705
|
+
}));
|
|
706
|
+
const StyledTab = (0, _styles.styled)(_Tab.default, {
|
|
707
|
+
name: 'MuiDataGrid',
|
|
708
|
+
slot: 'Tab'
|
|
709
|
+
})({
|
|
710
|
+
flex: 1,
|
|
711
|
+
minWidth: 'fit-content'
|
|
712
|
+
});
|
|
713
|
+
const StyledTabPanel = (0, _styles.styled)('div', {
|
|
714
|
+
name: 'MuiDataGrid',
|
|
715
|
+
slot: 'TabPanel'
|
|
716
|
+
})({
|
|
717
|
+
flex: 1,
|
|
718
|
+
display: 'flex',
|
|
719
|
+
flexDirection: 'column',
|
|
720
|
+
overflow: 'hidden'
|
|
721
|
+
});
|
|
722
|
+
function TabPanel(props) {
|
|
723
|
+
const {
|
|
724
|
+
children,
|
|
725
|
+
active
|
|
726
|
+
} = props,
|
|
727
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded22);
|
|
728
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTabPanel, (0, _extends2.default)({
|
|
729
|
+
role: "tabpanel",
|
|
730
|
+
style: {
|
|
731
|
+
display: active ? 'flex' : 'none'
|
|
732
|
+
}
|
|
733
|
+
}, other, {
|
|
734
|
+
children: children
|
|
735
|
+
}));
|
|
736
|
+
}
|
|
737
|
+
function BaseTabs(_ref2) {
|
|
738
|
+
let {
|
|
739
|
+
items,
|
|
740
|
+
value,
|
|
741
|
+
material
|
|
742
|
+
} = _ref2,
|
|
743
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_ref2, _excluded23);
|
|
744
|
+
const id = (0, _useId.default)();
|
|
745
|
+
const labelId = `${id}-tab-${value}`;
|
|
746
|
+
const panelId = `${id}-tabpanel-${value}`;
|
|
747
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
748
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTabs, (0, _extends2.default)({}, props, {
|
|
749
|
+
value: value,
|
|
750
|
+
variant: "scrollable",
|
|
751
|
+
scrollButtons: "auto"
|
|
752
|
+
}, material, {
|
|
753
|
+
children: items.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTab, {
|
|
754
|
+
value: item.value,
|
|
755
|
+
label: item.label,
|
|
756
|
+
id: labelId,
|
|
757
|
+
"aria-controls": panelId
|
|
758
|
+
}, item.value))
|
|
759
|
+
})), items.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(TabPanel, {
|
|
760
|
+
value: item.value,
|
|
761
|
+
active: value === item.value,
|
|
762
|
+
id: panelId,
|
|
763
|
+
"aria-labelledby": labelId,
|
|
764
|
+
children: item.children
|
|
765
|
+
}, item.value))]
|
|
766
|
+
});
|
|
767
|
+
}
|
|
672
768
|
const iconSlots = {
|
|
673
769
|
booleanCellTrueIcon: _icons.GridCheckIcon,
|
|
674
770
|
booleanCellFalseIcon: _icons.GridCloseIcon,
|
|
@@ -722,7 +818,9 @@ const baseSlots = {
|
|
|
722
818
|
baseTextField: BaseTextField,
|
|
723
819
|
baseButton: BaseButton,
|
|
724
820
|
baseIconButton: BaseIconButton,
|
|
821
|
+
baseToggleButton: BaseToggleButton,
|
|
725
822
|
baseTooltip: BaseTooltip,
|
|
823
|
+
baseTabs: BaseTabs,
|
|
726
824
|
basePagination: BasePagination,
|
|
727
825
|
basePopper: BasePopper,
|
|
728
826
|
baseSelect: BaseSelect,
|
package/material/variables.js
CHANGED
|
@@ -103,7 +103,8 @@ function formatFont(font) {
|
|
|
103
103
|
if (!font) {
|
|
104
104
|
return undefined;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
const fontSize = typeof font.fontSize === 'number' ? `${font.fontSize}px` : font.fontSize;
|
|
107
|
+
return `${font.fontWeight} ${fontSize} / ${font.lineHeight} ${font.fontFamily}`;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
@@ -30,6 +30,7 @@ export interface GridLocaleText {
|
|
|
30
30
|
toolbarExportPrint: React.ReactNode;
|
|
31
31
|
toolbarExportExcel: string;
|
|
32
32
|
toolbarPivot: string;
|
|
33
|
+
toolbarCharts: string;
|
|
33
34
|
toolbarAssistant: React.ReactNode;
|
|
34
35
|
columnsManagementSearchTitle: string;
|
|
35
36
|
columnsManagementNoColumns: string;
|
|
@@ -102,6 +103,7 @@ export interface GridLocaleText {
|
|
|
102
103
|
columnMenuSortAsc: React.ReactNode | ((colDef: GridColDef) => React.ReactNode);
|
|
103
104
|
columnMenuSortDesc: React.ReactNode | ((colDef: GridColDef) => React.ReactNode);
|
|
104
105
|
columnMenuManagePivot: string;
|
|
106
|
+
columnMenuManageCharts: string;
|
|
105
107
|
columnHeaderFiltersTooltipActive: (count: number) => React.ReactNode;
|
|
106
108
|
columnHeaderFiltersLabel: string;
|
|
107
109
|
columnHeaderSortIconLabel: string;
|
|
@@ -130,6 +132,7 @@ export interface GridLocaleText {
|
|
|
130
132
|
collapseDetailPanel: string;
|
|
131
133
|
rowReorderingHeaderName: string;
|
|
132
134
|
aggregationMenuItemHeader: string;
|
|
135
|
+
aggregationFunctionLabelNone: string;
|
|
133
136
|
aggregationFunctionLabelSum: string;
|
|
134
137
|
aggregationFunctionLabelAvg: string;
|
|
135
138
|
aggregationFunctionLabelMin: string;
|
|
@@ -170,6 +173,30 @@ export interface GridLocaleText {
|
|
|
170
173
|
pivotDragToValues: string;
|
|
171
174
|
pivotYearColumnHeaderName: string;
|
|
172
175
|
pivotQuarterColumnHeaderName: string;
|
|
176
|
+
chartsNoCharts: string;
|
|
177
|
+
chartsChartNotSelected: string;
|
|
178
|
+
chartsTabChart: string;
|
|
179
|
+
chartsTabFields: string;
|
|
180
|
+
chartsTabCustomize: string;
|
|
181
|
+
chartsCloseButton: string;
|
|
182
|
+
chartsSyncButtonLabel: string;
|
|
183
|
+
chartsSearchPlaceholder: string;
|
|
184
|
+
chartsSearchLabel: string;
|
|
185
|
+
chartsSearchClear: string;
|
|
186
|
+
chartsNoFields: string;
|
|
187
|
+
chartsFieldBlocked: string;
|
|
188
|
+
chartsCategories: string;
|
|
189
|
+
chartsSeries: string;
|
|
190
|
+
chartsMenuAddToDimensions: (dimensionLabel: string) => string;
|
|
191
|
+
chartsMenuAddToValues: (valuesLabel: string) => string;
|
|
192
|
+
chartsMenuMoveUp: string;
|
|
193
|
+
chartsMenuMoveDown: string;
|
|
194
|
+
chartsMenuMoveToTop: string;
|
|
195
|
+
chartsMenuMoveToBottom: string;
|
|
196
|
+
chartsMenuOptions: string;
|
|
197
|
+
chartsMenuRemove: string;
|
|
198
|
+
chartsDragToDimensions: (dimensionLabel: string) => string;
|
|
199
|
+
chartsDragToValues: (valuesLabel: string) => string;
|
|
173
200
|
aiAssistantPanelTitle: string;
|
|
174
201
|
aiAssistantPanelClose: string;
|
|
175
202
|
aiAssistantPanelConversationHistory: string;
|
|
@@ -96,12 +96,16 @@ export interface GridParamsPrivateApi {
|
|
|
96
96
|
colDef,
|
|
97
97
|
hasFocus,
|
|
98
98
|
rowNode,
|
|
99
|
-
tabIndex
|
|
99
|
+
tabIndex,
|
|
100
|
+
value,
|
|
101
|
+
formattedValue
|
|
100
102
|
}: {
|
|
101
103
|
cellMode: GridCellMode;
|
|
102
104
|
colDef: GridStateColDef;
|
|
103
105
|
hasFocus: boolean;
|
|
104
106
|
rowNode: N;
|
|
105
107
|
tabIndex: 0 | -1;
|
|
108
|
+
value?: V;
|
|
109
|
+
formattedValue?: F;
|
|
106
110
|
}) => GridCellParams<R, V, F, N>;
|
|
107
111
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridRowId, GridRowModel } from "../gridRows.js";
|
|
3
|
+
import { GridColDef } from "../colDef/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Get the cell aggregation result
|
|
6
|
+
* @param {GridRowId} id The row id
|
|
7
|
+
* @param {string} field The field
|
|
8
|
+
* @returns { { position: 'footer' | 'inline'; value: any } | null } The cell aggregation result
|
|
9
|
+
*/
|
|
10
|
+
export type GetCellAggregationResultFn = (id: GridRowId, field: string) => {
|
|
11
|
+
position: 'footer' | 'inline';
|
|
12
|
+
value: any;
|
|
13
|
+
formattedValue?: any;
|
|
14
|
+
} | null;
|
|
15
|
+
export type SortValueGetterFn = (id: GridRowId, field: string) => any;
|
|
16
|
+
export type FilterValueGetterFn = (row: GridRowModel, colDef: GridColDef) => any;
|
|
17
|
+
export interface GridAggregationInternalHooks<Api, Props> {
|
|
18
|
+
useCellAggregationResult: GetCellAggregationResultFn;
|
|
19
|
+
/**
|
|
20
|
+
* @param {RefObject<Api>} apiRef The API reference
|
|
21
|
+
* @returns {SortValueGetterFn} The function to get the value to sort by
|
|
22
|
+
*/
|
|
23
|
+
useSortValueGetter: (apiRef: RefObject<Api>) => SortValueGetterFn;
|
|
24
|
+
useFilterValueGetter: (apiRef: RefObject<Api>, props: Props) => FilterValueGetterFn;
|
|
25
|
+
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook } from "./gridRowConfiguration.js";
|
|
2
|
+
import type { GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook } from "./gridRowConfiguration.js";
|
|
3
|
+
import type { GridAggregationInternalHooks } from "./gridAggregationConfiguration.js";
|
|
3
4
|
import type { GridCSSVariablesInterface } from "../../constants/cssVariables.js";
|
|
4
|
-
import
|
|
5
|
+
import { DataGridProcessedProps } from "../props/DataGridProps.js";
|
|
5
6
|
import type { GridPrivateApiCommon } from "../api/gridApiCommon.js";
|
|
6
7
|
import type { GridPrivateApiCommunity } from "../api/gridApiCommunity.js";
|
|
7
8
|
export interface GridAriaAttributesInternalHook {
|
|
8
9
|
useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
|
|
9
10
|
}
|
|
10
|
-
export interface GridInternalHook<Api> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook<Api> {
|
|
11
|
+
export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api> {
|
|
11
12
|
useCSSVariables: () => {
|
|
12
13
|
id: string;
|
|
13
14
|
variables: GridCSSVariablesInterface;
|
|
14
15
|
};
|
|
15
|
-
useCellAggregationResult: (id: GridRowId, field: string) => {
|
|
16
|
-
position: 'footer' | 'inline';
|
|
17
|
-
value: any;
|
|
18
|
-
} | null;
|
|
19
16
|
}
|
|
20
|
-
export interface GridConfiguration<Api extends GridPrivateApiCommon = GridPrivateApiCommunity> {
|
|
21
|
-
hooks: GridInternalHook<Api>;
|
|
17
|
+
export interface GridConfiguration<Api extends GridPrivateApiCommon = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
|
|
18
|
+
hooks: GridInternalHook<Api, Props>;
|
|
22
19
|
}
|
|
@@ -116,6 +116,10 @@ export type IconButtonProps = Omit<ButtonProps, 'startIcon'> & {
|
|
|
116
116
|
color?: 'default' | 'inherit' | 'primary';
|
|
117
117
|
edge?: 'start' | 'end' | false;
|
|
118
118
|
};
|
|
119
|
+
export type ToggleButtonProps = CommonProps & {
|
|
120
|
+
selected?: boolean;
|
|
121
|
+
value: string;
|
|
122
|
+
};
|
|
119
123
|
export type DividerProps = {
|
|
120
124
|
className?: string;
|
|
121
125
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -236,6 +240,17 @@ export type SwitchProps = CommonProps & {
|
|
|
236
240
|
onChange?: React.ChangeEventHandler;
|
|
237
241
|
size?: 'small' | 'medium';
|
|
238
242
|
label?: React.ReactNode;
|
|
243
|
+
disabled?: boolean;
|
|
244
|
+
title?: string;
|
|
245
|
+
};
|
|
246
|
+
export type TabsProps = Omit<CommonProps, 'onChange'> & {
|
|
247
|
+
items: {
|
|
248
|
+
value: string;
|
|
249
|
+
label: string;
|
|
250
|
+
children: React.ReactNode;
|
|
251
|
+
}[];
|
|
252
|
+
value: string;
|
|
253
|
+
onChange: (event: React.SyntheticEvent, value: string) => void;
|
|
239
254
|
};
|
|
240
255
|
export type TextFieldProps = CommonProps & {
|
|
241
256
|
role?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GridBaseColDef } from "./colDef/gridColDef.js";
|
|
1
2
|
/**
|
|
2
3
|
* Filter item definition interface.
|
|
3
4
|
* @demos
|
|
@@ -12,7 +13,7 @@ export interface GridFilterItem {
|
|
|
12
13
|
/**
|
|
13
14
|
* The column from which we want to filter the rows.
|
|
14
15
|
*/
|
|
15
|
-
field:
|
|
16
|
+
field: GridBaseColDef['field'];
|
|
16
17
|
/**
|
|
17
18
|
* The filtering value.
|
|
18
19
|
* The operator filtering function will decide for each row if the row values is correct compared to this value.
|
|
@@ -20,8 +21,9 @@ export interface GridFilterItem {
|
|
|
20
21
|
value?: any;
|
|
21
22
|
/**
|
|
22
23
|
* The name of the operator we want to apply.
|
|
24
|
+
* A custom operator is supported by providing any string value.
|
|
23
25
|
*/
|
|
24
|
-
operator: string;
|
|
26
|
+
operator: 'contains' | 'doesNotContain' | 'equals' | 'doesNotEqual' | 'startsWith' | 'endsWith' | '=' | '!=' | '>' | '>=' | '<' | '<=' | 'is' | 'not' | 'after' | 'onOrAfter' | 'before' | 'onOrBefore' | 'isEmpty' | 'isNotEmpty' | 'isAnyOf' | (string & {});
|
|
25
27
|
}
|
|
26
28
|
declare enum GridLogicOperator {
|
|
27
29
|
And = "and",
|
|
@@ -25,7 +25,7 @@ export interface GridFilterOperator<R extends GridValidRowModel = any, V = any,
|
|
|
25
25
|
* The name of the filter operator.
|
|
26
26
|
* It will be matched with the `operator` property of the filter items.
|
|
27
27
|
*/
|
|
28
|
-
value:
|
|
28
|
+
value: GridFilterItem['operator'];
|
|
29
29
|
/**
|
|
30
30
|
* The callback that generates a filtering function for a given filter item and column.
|
|
31
31
|
* This function can return `null` to skip filtering for this item and column.
|
|
@@ -73,6 +73,11 @@ export interface GridBaseSlots {
|
|
|
73
73
|
* @default Input
|
|
74
74
|
*/
|
|
75
75
|
baseInput: React.JSXElementConstructor<GridSlotProps['baseInput']>;
|
|
76
|
+
/**
|
|
77
|
+
* The custom ToggleButton component used in the grid.
|
|
78
|
+
* @default ToggleButton
|
|
79
|
+
*/
|
|
80
|
+
baseToggleButton: React.JSXElementConstructor<GridSlotProps['baseToggleButton']>;
|
|
76
81
|
/**
|
|
77
82
|
* The custom Tooltip component used in the grid.
|
|
78
83
|
* @default Tooltip
|
|
@@ -103,6 +108,11 @@ export interface GridBaseSlots {
|
|
|
103
108
|
* @default Switch
|
|
104
109
|
*/
|
|
105
110
|
baseSwitch: React.JSXElementConstructor<GridSlotProps['baseSwitch']>;
|
|
111
|
+
/**
|
|
112
|
+
* The custom Tabs component used in the grid.
|
|
113
|
+
* @default Tabs
|
|
114
|
+
*/
|
|
115
|
+
baseTabs: React.JSXElementConstructor<GridSlotProps['baseTabs']>;
|
|
106
116
|
}
|
|
107
117
|
/**
|
|
108
118
|
* Grid components React prop interface containing all the overridable components.
|