@mui/x-data-grid 6.10.2 → 6.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +154 -0
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/DataGrid.js +2 -1
- package/colDef/utils.d.ts +1 -1
- package/colDef/utils.js +1 -1
- package/components/GridPagination.d.ts +6 -2
- package/components/cell/GridActionsCellItem.d.ts +6 -2
- package/components/cell/GridCell.js +57 -46
- package/components/columnHeaders/GridBaseColumnHeaders.js +3 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -1
- package/components/containers/GridMainContainer.js +10 -3
- package/components/containers/GridRoot.js +7 -13
- package/components/panel/GridPanel.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +7 -4
- package/hooks/features/virtualization/useGridVirtualScroller.js +6 -3
- package/hooks/utils/useGridAriaAttributes.d.ts +6 -0
- package/hooks/utils/useGridAriaAttributes.js +25 -0
- package/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +2 -1
- package/legacy/colDef/utils.js +1 -1
- package/legacy/components/cell/GridCell.js +57 -46
- package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +3 -1
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -1
- package/legacy/components/containers/GridMainContainer.js +10 -3
- package/legacy/components/containers/GridRoot.js +7 -13
- package/legacy/hooks/features/columns/gridColumnsUtils.js +2 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +6 -3
- package/legacy/hooks/utils/useGridAriaAttributes.js +25 -0
- package/legacy/index.js +1 -1
- package/legacy/locales/fiFI.js +28 -30
- package/legacy/locales/heIL.js +26 -29
- package/legacy/locales/itIT.js +34 -38
- package/locales/fiFI.js +28 -30
- package/locales/heIL.js +26 -29
- package/locales/itIT.js +34 -38
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +7 -1
- package/modern/DataGrid/DataGrid.js +2 -1
- package/modern/colDef/utils.js +1 -1
- package/modern/components/cell/GridCell.js +54 -43
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +3 -1
- package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -1
- package/modern/components/containers/GridMainContainer.js +9 -3
- package/modern/components/containers/GridRoot.js +6 -13
- package/modern/hooks/features/columns/gridColumnsUtils.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +6 -3
- package/modern/hooks/utils/useGridAriaAttributes.js +24 -0
- package/modern/index.js +1 -1
- package/modern/locales/fiFI.js +28 -30
- package/modern/locales/heIL.js +26 -29
- package/modern/locales/itIT.js +34 -38
- package/node/DataGrid/DataGrid.js +2 -1
- package/node/colDef/utils.js +1 -1
- package/node/components/cell/GridCell.js +54 -43
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +3 -1
- package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -1
- package/node/components/containers/GridMainContainer.js +10 -3
- package/node/components/containers/GridRoot.js +6 -13
- package/node/hooks/features/columns/gridColumnsUtils.js +1 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +6 -3
- package/node/hooks/utils/useGridAriaAttributes.js +31 -0
- package/node/index.js +1 -1
- package/node/locales/fiFI.js +28 -30
- package/node/locales/heIL.js +26 -29
- package/node/locales/itIT.js +34 -38
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,160 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.11.1
|
|
7
|
+
|
|
8
|
+
_Aug 11, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 💫 Add theme augmentation to `@mui/x-tree-view`
|
|
13
|
+
- 📈 Enable charts customization using `slot` and `slotProps` props
|
|
14
|
+
- 🌍 Improve Finnish (fi-FI) and Icelandic (is-IS) locales on the pickers
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@6.11.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
25
|
+
|
|
26
|
+
Same changes as in `@mui/x-data-grid@6.11.1`.
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-premium@6.11.1` [](https://mui.com/r/x-premium-svg-link)
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
31
|
+
|
|
32
|
+
### Date Pickers
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-date-pickers@6.11.1`
|
|
35
|
+
|
|
36
|
+
- [fields] Use `numeric` `inputmode` instead of `tel` (#9918) @LukasTy
|
|
37
|
+
- [pickers] Always respect locale when formatting meridiem (#9979) @flaviendelangle
|
|
38
|
+
- [pickers] Call `onChange` when selecting a shortcut with `changeImportance="set"` (#9974) @flaviendelangle
|
|
39
|
+
- [pickers] Refactor `themeAugmentation` `styleOverrides` (#9978) @LukasTy
|
|
40
|
+
- [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
|
|
41
|
+
- [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
44
|
+
|
|
45
|
+
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
46
|
+
|
|
47
|
+
### Charts / `@mui/x-charts@v6.0.0-alpha.7`
|
|
48
|
+
|
|
49
|
+
- [charts] Fix label and tick alignment (#9952) @LukasTy
|
|
50
|
+
- [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
|
|
51
|
+
- [charts] Set custom ticks number (#9922) @alexfauquette
|
|
52
|
+
- [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
|
|
53
|
+
- [charts] Extend cheerful fiesta palette (#9980) @noraleonte
|
|
54
|
+
|
|
55
|
+
### Tree View / `@mui/x-tree-view@v6.0.0-alpha.1`
|
|
56
|
+
|
|
57
|
+
- [TreeView] Add theme augmentation (#9967) @flaviendelangle
|
|
58
|
+
|
|
59
|
+
### Docs
|
|
60
|
+
|
|
61
|
+
- [docs] Clarify the `shouldDisableClock` migration code options (#9920) @LukasTy
|
|
62
|
+
|
|
63
|
+
### Core
|
|
64
|
+
|
|
65
|
+
- [core] Port GitHub workflow for ensuring triage label is present (#9924) @DanailH
|
|
66
|
+
- [docs-infra] Fix the import samples in Api pages (#9898) @alexfauquette
|
|
67
|
+
|
|
68
|
+
## 6.11.0
|
|
69
|
+
|
|
70
|
+
_Aug 4, 2023_
|
|
71
|
+
|
|
72
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
73
|
+
|
|
74
|
+
- ⌚️ Move the tree view component from `@mui/lab` package
|
|
75
|
+
|
|
76
|
+
The `<TreeView />` component has been moved to the MUI X repository.
|
|
77
|
+
It is now accessible from its own package: `@mui/x-tree-view`.
|
|
78
|
+
|
|
79
|
+
- 🌍 Improve Hebrew (he-IL), Finnish (fi-FI), and Italian (it-IT) locales on the data grid
|
|
80
|
+
- 🐞 Bugfixes
|
|
81
|
+
- 📚 Documentation improvements
|
|
82
|
+
|
|
83
|
+
### Data Grid
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-data-grid@v6.11.0`
|
|
86
|
+
|
|
87
|
+
- [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
|
|
88
|
+
- [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
|
|
89
|
+
- [l10n] Improve Hebrew (he-IL) locale (#9820) @itayG98
|
|
90
|
+
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
91
|
+
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid@v6.11.0`.
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-data-grid-premium@v6.11.0` [](https://mui.com/r/x-premium-svg-link)
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
100
|
+
|
|
101
|
+
### Date Pickers
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-date-pickers@v6.11.0`
|
|
104
|
+
|
|
105
|
+
- [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
|
|
106
|
+
- [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
|
|
107
|
+
- [fields] Fix section clearing with timezone (#9819) @flaviendelangle
|
|
108
|
+
- [pickers] Add `CalendarHeader` slot (#7784) @flaviendelangle
|
|
109
|
+
- [pickers] Allow to override the `InputProps` of the `TextField` using the `slotProps` (#9849) @flaviendelangle
|
|
110
|
+
- [pickers] Allow to override the opening aria text using the `localeText` prop on the pickers (#9870) @flaviendelangle
|
|
111
|
+
- [pickers] Fix `sx` and `className` props on `MobileDateRangePicker` (#9853) @flaviendelangle
|
|
112
|
+
- [pickers] Fix default descriptions (#9887) @LukasTy
|
|
113
|
+
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
114
|
+
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-date-pickers-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-date-pickers@v6.11.0`.
|
|
119
|
+
|
|
120
|
+
### Charts / `@mui/x-charts@v6.0.0-alpha.6`
|
|
121
|
+
|
|
122
|
+
- [charts] Add TS definition to the exported elements (#9885) @alexfauquette
|
|
123
|
+
- [charts] Add sparkline (#9662) @alexfauquette
|
|
124
|
+
- [charts] Fix missing configuration types (#9886) @alexfauquette
|
|
125
|
+
- [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
|
|
126
|
+
|
|
127
|
+
### Tree View / `@mui/x-tree-view@v6.0.0-alpha.0`
|
|
128
|
+
|
|
129
|
+
- [TreeView] Add missing exported types (#9862) @flaviendelangle
|
|
130
|
+
- [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
|
|
131
|
+
- [TreeView] Create the package on the X repository (#9798) @flaviendelangle
|
|
132
|
+
- [TreeView] Improve props typing (#9855) @flaviendelangle
|
|
133
|
+
|
|
134
|
+
### Docs
|
|
135
|
+
|
|
136
|
+
- [docs] Add Tree View doc (#9825) @flaviendelangle
|
|
137
|
+
- [docs] Add charts nav item (#9821) @LukasTy
|
|
138
|
+
- [docs] Add charts to MUI X introduction pages (#9704) @joserodolfofreitas
|
|
139
|
+
- [docs] Add example for avoiding picker views layout shift (#9781) @noraleonte
|
|
140
|
+
- [docs] Consistency of Next.js App Router @oliviertassinari
|
|
141
|
+
- [docs] Fix API page regression: bring back slots section (#9866) @alexfauquette
|
|
142
|
+
- [docs] Fix demo using Pro while it's MIT (#9842) @oliviertassinari
|
|
143
|
+
- [docs] Get ready for next docs-infra change @oliviertassinari
|
|
144
|
+
- [docs] Improve the slots documentation `Recommended usage` section (#9892) @flaviendelangle
|
|
145
|
+
|
|
146
|
+
### Core
|
|
147
|
+
|
|
148
|
+
- [core] Fix font loading issue dev-mode (#9843) @oliviertassinari
|
|
149
|
+
- [core] Fix pipeline (#9894) @LukasTy
|
|
150
|
+
- [core] Fix the link-check script on Windows (#9888) @alexfauquette
|
|
151
|
+
- [core] Fix v7 capitalization (#9878) @oliviertassinari
|
|
152
|
+
- [core] Regen doc (#9902) @flaviendelangle
|
|
153
|
+
- [core] Remove benchmark package (#9413) @LukasTy
|
|
154
|
+
- [core] Stop using the deprecated `JSX` global namespace (#9854) @flaviendelangle
|
|
155
|
+
- [core] Update monorepo (#9846) @flaviendelangle
|
|
156
|
+
- [core] Update tree data API docs (#9827) @cherniavskii
|
|
157
|
+
- [test] Add pickers e2e tests (#9747) @LukasTy
|
|
158
|
+
- [test] Data grid e2e tests follow-up (#9822) @cherniavskii
|
|
159
|
+
|
|
6
160
|
## 6.10.2
|
|
7
161
|
|
|
8
162
|
_Jul 27, 2023_
|
package/DataGrid/DataGrid.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { DataGridProps } from '../models/props/DataGridProps';
|
|
3
3
|
import { GridValidRowModel } from '../models/gridRows';
|
|
4
4
|
interface DataGridComponent {
|
|
5
|
-
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
|
5
|
+
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
6
6
|
propTypes?: any;
|
|
7
7
|
}
|
|
8
8
|
export declare const DataGrid: DataGridComponent;
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -161,6 +161,7 @@ DataGridRaw.propTypes = {
|
|
|
161
161
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
162
162
|
*/
|
|
163
163
|
experimentalFeatures: PropTypes.shape({
|
|
164
|
+
ariaV7: PropTypes.bool,
|
|
164
165
|
columnGrouping: PropTypes.bool,
|
|
165
166
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
166
167
|
}),
|
|
@@ -199,7 +200,7 @@ DataGridRaw.propTypes = {
|
|
|
199
200
|
/**
|
|
200
201
|
* Function that returns the element to render in row detail.
|
|
201
202
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
202
|
-
* @returns {JSX.Element} The row detail element.
|
|
203
|
+
* @returns {React.JSX.Element} The row detail element.
|
|
203
204
|
*/
|
|
204
205
|
getDetailPanelContent: PropTypes.func,
|
|
205
206
|
/**
|
package/colDef/utils.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const GLOBAL_API_REF: {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* A tagger to determine if the filter is internal or custom user-supplied.
|
|
13
|
-
* To be a valid internal filter, the
|
|
13
|
+
* To be a valid internal filter, the v7 function *must* be defined/redefined at
|
|
14
14
|
* the same time as the legacy one.
|
|
15
15
|
* https://github.com/mui/mui-x/pull/9254#discussion_r1231095551
|
|
16
16
|
*/
|
package/colDef/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ export const GLOBAL_API_REF = {
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A tagger to determine if the filter is internal or custom user-supplied.
|
|
11
|
-
* To be a valid internal filter, the
|
|
11
|
+
* To be a valid internal filter, the v7 function *must* be defined/redefined at
|
|
12
12
|
* the same time as the legacy one.
|
|
13
13
|
* https://github.com/mui/mui-x/pull/9254#discussion_r1231095551
|
|
14
14
|
*/
|
|
@@ -20,7 +20,9 @@ export declare const GridPagination: React.ForwardRefExoticComponent<(Omit<Parti
|
|
|
20
20
|
showFirstButton?: boolean | undefined;
|
|
21
21
|
showLastButton?: boolean | undefined;
|
|
22
22
|
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
23
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<import("@mui/material/TablePagination").TablePaginationBaseProps, "hidden" | "color" | "page" | "content" | "size" | "height" | "translate" | "width" | "padding" | "abbr" | "slot" | "title" | "ref" | "colSpan" | "headers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rowSpan" | "scope" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "valign" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "count" | "getItemAriaLabel" | "onPageChange" | "rowsPerPage" | "showFirstButton" | "showLastButton" | "labelDisplayedRows" | "labelRowsPerPage" | "onRowsPerPageChange" | "rowsPerPageOptions" | "backIconButtonProps" | "nextIconButtonProps" | "sortDirection" | "ActionsComponent" | "SelectProps"
|
|
23
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<import("@mui/material/TablePagination").TablePaginationBaseProps, "hidden" | "color" | "page" | "content" | "size" | "height" | "translate" | "width" | "padding" | "abbr" | "slot" | "title" | "ref" | "colSpan" | "headers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rowSpan" | "scope" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "valign" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "count" | "getItemAriaLabel" | "onPageChange" | "rowsPerPage" | "showFirstButton" | "showLastButton" | "labelDisplayedRows" | "labelRowsPerPage" | "onRowsPerPageChange" | "rowsPerPageOptions" | "backIconButtonProps" | "nextIconButtonProps" | "sortDirection" | "ActionsComponent" | "SelectProps"> & {
|
|
24
|
+
component?: React.ElementType<any> | undefined;
|
|
25
|
+
}>, "ref"> | Omit<Partial<import("@mui/material/TablePagination").TablePaginationBaseProps & {
|
|
24
26
|
ActionsComponent?: React.ElementType<import("@mui/material/TablePagination/TablePaginationActions").TablePaginationActionsProps> | undefined;
|
|
25
27
|
backIconButtonProps?: Partial<import("@mui/material").IconButtonProps> | undefined;
|
|
26
28
|
classes?: Partial<import("@mui/material/TablePagination").TablePaginationClasses> | undefined;
|
|
@@ -41,4 +43,6 @@ export declare const GridPagination: React.ForwardRefExoticComponent<(Omit<Parti
|
|
|
41
43
|
showFirstButton?: boolean | undefined;
|
|
42
44
|
showLastButton?: boolean | undefined;
|
|
43
45
|
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
44
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@mui/material/TablePagination").TablePaginationBaseProps, "ref"> & React.RefAttributes<React.Component<any, any, any>>, "hidden" | "color" | "page" | "content" | "size" | "height" | "translate" | "width" | "padding" | "abbr" | "slot" | "title" | "ref" | "colSpan" | "headers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rowSpan" | "scope" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "valign" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "count" | "getItemAriaLabel" | "onPageChange" | "rowsPerPage" | "showFirstButton" | "showLastButton" | "labelDisplayedRows" | "labelRowsPerPage" | "onRowsPerPageChange" | "rowsPerPageOptions" | "backIconButtonProps" | "nextIconButtonProps" | "sortDirection" | "ActionsComponent" | "SelectProps"
|
|
46
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@mui/material/TablePagination").TablePaginationBaseProps, "ref"> & React.RefAttributes<React.Component<any, any, any>>, "hidden" | "color" | "page" | "content" | "size" | "height" | "translate" | "width" | "padding" | "abbr" | "slot" | "title" | "ref" | "colSpan" | "headers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rowSpan" | "scope" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "valign" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "count" | "getItemAriaLabel" | "onPageChange" | "rowsPerPage" | "showFirstButton" | "showLastButton" | "labelDisplayedRows" | "labelRowsPerPage" | "onRowsPerPageChange" | "rowsPerPageOptions" | "backIconButtonProps" | "nextIconButtonProps" | "sortDirection" | "ActionsComponent" | "SelectProps"> & {
|
|
47
|
+
component?: React.ElementType<any> | undefined;
|
|
48
|
+
}>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -43,7 +43,9 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<(Omit<{
|
|
|
43
43
|
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
44
44
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
45
45
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
46
|
-
}, "color" | "size" | "disabled" | "action" | "tabIndex" | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"
|
|
46
|
+
}, "color" | "size" | "disabled" | "action" | "tabIndex" | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
47
|
+
component?: React.ElementType<any> | undefined;
|
|
48
|
+
}, "ref"> | Omit<{
|
|
47
49
|
label: string;
|
|
48
50
|
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
49
51
|
} & {
|
|
@@ -75,5 +77,7 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<(Omit<{
|
|
|
75
77
|
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
76
78
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
77
79
|
ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject<HTMLLIElement> | null | undefined;
|
|
78
|
-
}, "dense" | "disabled" | "action" | "autoFocus" | "tabIndex" | "selected" | "children" | "sx" | "disableGutters" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"
|
|
80
|
+
}, "dense" | "disabled" | "action" | "autoFocus" | "tabIndex" | "selected" | "children" | "sx" | "disableGutters" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
|
|
81
|
+
component?: React.ElementType<any> | undefined;
|
|
82
|
+
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
79
83
|
export { GridActionsCellItem };
|
|
@@ -4,7 +4,6 @@ const _excluded = ["changeReason", "unstable_updateValueOnRender"],
|
|
|
4
4
|
_excluded2 = ["align", "children", "editCellState", "colIndex", "column", "cellMode", "field", "formattedValue", "hasFocus", "height", "isEditable", "isSelected", "rowId", "tabIndex", "value", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
5
5
|
_excluded3 = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
6
6
|
_excluded4 = ["changeReason", "unstable_updateValueOnRender"];
|
|
7
|
-
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
8
7
|
import * as React from 'react';
|
|
9
8
|
import PropTypes from 'prop-types';
|
|
10
9
|
import clsx from 'clsx';
|
|
@@ -156,7 +155,7 @@ const GridCellWrapper = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
156
155
|
return /*#__PURE__*/React.createElement(CellComponent, cellProps);
|
|
157
156
|
});
|
|
158
157
|
const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
159
|
-
var _rootProps$experiment;
|
|
158
|
+
var _rootProps$experiment, _rootProps$experiment2;
|
|
160
159
|
const {
|
|
161
160
|
align,
|
|
162
161
|
children: childrenProp,
|
|
@@ -287,6 +286,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
287
286
|
children = /*#__PURE__*/_jsx("div", {
|
|
288
287
|
className: classes.content,
|
|
289
288
|
title: valueString,
|
|
289
|
+
role: "presentation",
|
|
290
290
|
children: valueString
|
|
291
291
|
});
|
|
292
292
|
}
|
|
@@ -299,27 +299,32 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
299
299
|
onDragEnter: publish('cellDragEnter', onDragEnter),
|
|
300
300
|
onDragOver: publish('cellDragOver', onDragOver)
|
|
301
301
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
302
|
+
const ariaV7 = (_rootProps$experiment2 = rootProps.experimentalFeatures) == null ? void 0 : _rootProps$experiment2.ariaV7;
|
|
303
|
+
return (
|
|
304
|
+
/*#__PURE__*/
|
|
305
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
306
|
+
_jsx("div", _extends({
|
|
307
|
+
ref: handleRef,
|
|
308
|
+
className: clsx(className, classes.root),
|
|
309
|
+
role: ariaV7 ? 'gridcell' : 'cell',
|
|
310
|
+
"data-field": field,
|
|
311
|
+
"data-colindex": colIndex,
|
|
312
|
+
"aria-colindex": colIndex + 1,
|
|
313
|
+
"aria-colspan": colSpan,
|
|
314
|
+
style: style,
|
|
315
|
+
tabIndex: tabIndex,
|
|
316
|
+
onClick: publish('cellClick', onClick),
|
|
317
|
+
onDoubleClick: publish('cellDoubleClick', onDoubleClick),
|
|
318
|
+
onMouseOver: publish('cellMouseOver', onMouseOver),
|
|
319
|
+
onMouseDown: publishMouseDown('cellMouseDown'),
|
|
320
|
+
onMouseUp: publishMouseUp('cellMouseUp'),
|
|
321
|
+
onKeyDown: publish('cellKeyDown', onKeyDown),
|
|
322
|
+
onKeyUp: publish('cellKeyUp', onKeyUp)
|
|
323
|
+
}, draggableEventHandlers, other, {
|
|
324
|
+
onFocus: handleFocus,
|
|
325
|
+
children: children
|
|
326
|
+
}))
|
|
327
|
+
);
|
|
323
328
|
});
|
|
324
329
|
const MemoizedCellWrapper = fastMemo(GridCellWrapper);
|
|
325
330
|
process.env.NODE_ENV !== "production" ? GridCellWrapper.propTypes = {
|
|
@@ -379,7 +384,7 @@ process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
|
|
|
379
384
|
} : void 0;
|
|
380
385
|
export { MemoizedCellWrapper as GridCellWrapper, GridCell };
|
|
381
386
|
const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
382
|
-
var _rootProps$
|
|
387
|
+
var _rootProps$experiment3, _rootProps$experiment4;
|
|
383
388
|
const {
|
|
384
389
|
column,
|
|
385
390
|
rowId,
|
|
@@ -527,7 +532,7 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
527
532
|
return null;
|
|
528
533
|
}
|
|
529
534
|
let handleFocus = other.onFocus;
|
|
530
|
-
if (process.env.NODE_ENV === 'test' && (_rootProps$
|
|
535
|
+
if (process.env.NODE_ENV === 'test' && (_rootProps$experiment3 = rootProps.experimentalFeatures) != null && _rootProps$experiment3.warnIfFocusStateIsNotSynced) {
|
|
531
536
|
handleFocus = event => {
|
|
532
537
|
const focusedCell = gridFocusCellSelector(apiRef);
|
|
533
538
|
if ((focusedCell == null ? void 0 : focusedCell.id) === rowId && focusedCell.field === field) {
|
|
@@ -565,6 +570,7 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
565
570
|
children = /*#__PURE__*/_jsx("div", {
|
|
566
571
|
className: classes.content,
|
|
567
572
|
title: valueString,
|
|
573
|
+
role: "presentation",
|
|
568
574
|
children: valueString
|
|
569
575
|
});
|
|
570
576
|
}
|
|
@@ -577,27 +583,32 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
577
583
|
onDragEnter: publish('cellDragEnter', onDragEnter),
|
|
578
584
|
onDragOver: publish('cellDragOver', onDragOver)
|
|
579
585
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
"
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
586
|
+
const ariaV7 = (_rootProps$experiment4 = rootProps.experimentalFeatures) == null ? void 0 : _rootProps$experiment4.ariaV7;
|
|
587
|
+
return (
|
|
588
|
+
/*#__PURE__*/
|
|
589
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
590
|
+
_jsx("div", _extends({
|
|
591
|
+
ref: handleRef,
|
|
592
|
+
className: clsx(className, classNames, classes.root),
|
|
593
|
+
role: ariaV7 ? 'gridcell' : 'cell',
|
|
594
|
+
"data-field": field,
|
|
595
|
+
"data-colindex": colIndex,
|
|
596
|
+
"aria-colindex": colIndex + 1,
|
|
597
|
+
"aria-colspan": colSpan,
|
|
598
|
+
style: style,
|
|
599
|
+
tabIndex: tabIndex,
|
|
600
|
+
onClick: publish('cellClick', onClick),
|
|
601
|
+
onDoubleClick: publish('cellDoubleClick', onDoubleClick),
|
|
602
|
+
onMouseOver: publish('cellMouseOver', onMouseOver),
|
|
603
|
+
onMouseDown: publishMouseDown('cellMouseDown'),
|
|
604
|
+
onMouseUp: publishMouseUp('cellMouseUp'),
|
|
605
|
+
onKeyDown: publish('cellKeyDown', onKeyDown),
|
|
606
|
+
onKeyUp: publish('cellKeyUp', onKeyUp)
|
|
607
|
+
}, draggableEventHandlers, other, {
|
|
608
|
+
onFocus: handleFocus,
|
|
609
|
+
children: children
|
|
610
|
+
}))
|
|
611
|
+
);
|
|
601
612
|
});
|
|
602
613
|
process.env.NODE_ENV !== "production" ? GridCellV7.propTypes = {
|
|
603
614
|
// ----------------------------- Warning --------------------------------
|
|
@@ -75,10 +75,12 @@ const GridGenericColumnHeaderItem = /*#__PURE__*/React.forwardRef(function GridG
|
|
|
75
75
|
}, other, {
|
|
76
76
|
children: [/*#__PURE__*/_jsxs("div", _extends({
|
|
77
77
|
className: classes.draggableContainer,
|
|
78
|
-
draggable: isDraggable
|
|
78
|
+
draggable: isDraggable,
|
|
79
|
+
role: "presentation"
|
|
79
80
|
}, draggableContainerProps, {
|
|
80
81
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
81
82
|
className: classes.titleContainer,
|
|
83
|
+
role: "presentation",
|
|
82
84
|
children: [/*#__PURE__*/_jsx("div", {
|
|
83
85
|
className: classes.titleContainerContent,
|
|
84
86
|
children: headerComponent !== undefined ? headerComponent : /*#__PURE__*/_jsx(GridColumnHeaderTitle, {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
3
4
|
import { styled } from '@mui/system';
|
|
4
5
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
5
6
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
7
|
+
import { useGridAriaAttributes } from '../../hooks/utils/useGridAriaAttributes';
|
|
6
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
9
|
const useUtilityClasses = ownerState => {
|
|
8
10
|
const {
|
|
@@ -25,12 +27,17 @@ const GridMainContainerRoot = styled('div', {
|
|
|
25
27
|
overflow: 'hidden'
|
|
26
28
|
}));
|
|
27
29
|
export const GridMainContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
30
|
+
var _rootProps$experiment;
|
|
28
31
|
const rootProps = useGridRootProps();
|
|
29
32
|
const classes = useUtilityClasses(rootProps);
|
|
30
|
-
|
|
33
|
+
const getAriaAttributes = (_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.ariaV7 // ariaV7 should never change
|
|
34
|
+
? useGridAriaAttributes : null;
|
|
35
|
+
const ariaAttributes = typeof getAriaAttributes === 'function' ? getAriaAttributes() : null;
|
|
36
|
+
return /*#__PURE__*/_jsx(GridMainContainerRoot, _extends({
|
|
31
37
|
ref: ref,
|
|
32
38
|
className: classes.root,
|
|
33
|
-
ownerState: rootProps
|
|
39
|
+
ownerState: rootProps
|
|
40
|
+
}, ariaAttributes, {
|
|
34
41
|
children: props.children
|
|
35
|
-
});
|
|
42
|
+
}));
|
|
36
43
|
});
|
|
@@ -6,14 +6,12 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect, unstable_capitalize as capitalize, unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
8
8
|
import { GridRootStyles } from './GridRootStyles';
|
|
9
|
-
import { gridVisibleColumnDefinitionsSelector } from '../../hooks/features/columns/gridColumnsSelector';
|
|
10
9
|
import { useGridSelector } from '../../hooks/utils/useGridSelector';
|
|
11
10
|
import { useGridPrivateApiContext } from '../../hooks/utils/useGridPrivateApiContext';
|
|
12
11
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
13
12
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
14
13
|
import { gridDensityValueSelector } from '../../hooks/features/density/densitySelector';
|
|
15
|
-
import {
|
|
16
|
-
import { gridPinnedRowsCountSelector, gridRowCountSelector } from '../../hooks/features/rows/gridRowsSelector';
|
|
14
|
+
import { useGridAriaAttributes } from '../../hooks/utils/useGridAriaAttributes';
|
|
17
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
16
|
const useUtilityClasses = ownerState => {
|
|
19
17
|
const {
|
|
@@ -27,6 +25,7 @@ const useUtilityClasses = ownerState => {
|
|
|
27
25
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
28
26
|
};
|
|
29
27
|
const GridRoot = /*#__PURE__*/React.forwardRef(function GridRoot(props, ref) {
|
|
28
|
+
var _rootProps$experiment;
|
|
30
29
|
const rootProps = useGridRootProps();
|
|
31
30
|
const {
|
|
32
31
|
children,
|
|
@@ -34,13 +33,12 @@ const GridRoot = /*#__PURE__*/React.forwardRef(function GridRoot(props, ref) {
|
|
|
34
33
|
} = props,
|
|
35
34
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
36
35
|
const apiRef = useGridPrivateApiContext();
|
|
37
|
-
const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
|
|
38
|
-
const totalRowCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
39
36
|
const densityValue = useGridSelector(apiRef, gridDensityValueSelector);
|
|
40
|
-
const headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);
|
|
41
37
|
const rootContainerRef = React.useRef(null);
|
|
42
38
|
const handleRef = useForkRef(rootContainerRef, ref);
|
|
43
|
-
const
|
|
39
|
+
const getAriaAttributes = (_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.ariaV7 // ariaV7 should never change
|
|
40
|
+
? null : useGridAriaAttributes;
|
|
41
|
+
const ariaAttributes = typeof getAriaAttributes === 'function' ? getAriaAttributes() : null;
|
|
44
42
|
const ownerState = _extends({}, rootProps, {
|
|
45
43
|
density: densityValue
|
|
46
44
|
});
|
|
@@ -60,12 +58,8 @@ const GridRoot = /*#__PURE__*/React.forwardRef(function GridRoot(props, ref) {
|
|
|
60
58
|
return /*#__PURE__*/_jsx(GridRootStyles, _extends({
|
|
61
59
|
ref: handleRef,
|
|
62
60
|
className: clsx(className, classes.root),
|
|
63
|
-
ownerState: ownerState
|
|
64
|
-
|
|
65
|
-
"aria-colcount": visibleColumns.length,
|
|
66
|
-
"aria-rowcount": headerGroupingMaxDepth + 1 + pinnedRowsCount + totalRowCount,
|
|
67
|
-
"aria-multiselectable": !rootProps.disableMultipleRowSelection
|
|
68
|
-
}, other, {
|
|
61
|
+
ownerState: ownerState
|
|
62
|
+
}, ariaAttributes, other, {
|
|
69
63
|
children: children
|
|
70
64
|
}));
|
|
71
65
|
});
|