@mui/x-data-grid 6.0.1 β 6.0.2
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 +58 -5
- package/components/panel/GridPanel.d.ts +9 -1
- package/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/hooks/features/editing/useGridCellEditing.js +2 -2
- package/hooks/features/editing/useGridRowEditing.js +2 -2
- package/index.js +1 -1
- package/legacy/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/legacy/hooks/features/editing/useGridCellEditing.js +2 -2
- package/legacy/hooks/features/editing/useGridRowEditing.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/locales/ptBR.js +1 -1
- package/locales/ptBR.js +1 -1
- package/material/index.d.ts +9 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/modern/hooks/features/editing/useGridCellEditing.js +2 -2
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -2
- package/modern/index.js +1 -1
- package/modern/locales/ptBR.js +1 -1
- package/node/hooks/features/columns/gridColumnsUtils.js +3 -10
- package/node/hooks/features/editing/useGridCellEditing.js +2 -2
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/index.js +1 -1
- package/node/locales/ptBR.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,59 @@
|
|
|
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.0.2
|
|
7
|
+
|
|
8
|
+
_Mar 16, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights β¨:
|
|
11
|
+
|
|
12
|
+
- π Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
13
|
+
- π Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
14
|
+
- π Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
15
|
+
- π Improve Brazilian Portuguese (pt-BR), German (de-DE), and French (fr-FR) locales
|
|
16
|
+
- π Documentation improvements
|
|
17
|
+
- π Bugfixes
|
|
18
|
+
|
|
19
|
+
### `@mui/x-data-grid@v6.0.2` / `@mui/x-data-grid-pro@v6.0.2` / `@mui/x-data-grid-premium@v6.0.2`
|
|
20
|
+
|
|
21
|
+
#### Changes
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Fix <kbd>Space</kbd> triggering edit mode (#8180) @m4theushw
|
|
24
|
+
- [DataGrid] Remove warning when adding a custom column type (#8227) @m4theushw
|
|
25
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#8198) @JoaoSerafim3001
|
|
26
|
+
|
|
27
|
+
### `@mui/x-date-pickers@v6.0.2` / `@mui/x-date-pickers-pro@v6.0.2`
|
|
28
|
+
|
|
29
|
+
#### Changes
|
|
30
|
+
|
|
31
|
+
- [l10n] Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
32
|
+
- [l10n] Improve German (de-DE) locale (#8204) @sebkasanzew
|
|
33
|
+
- [l10n] Improve French (fr-FR) locale (#8229) @marvinroger
|
|
34
|
+
- [DateRangePicker] Allow overriding `slotProps.textField` (#8201) @LukasTy
|
|
35
|
+
- [fields] Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
36
|
+
- [fields] Fix editing in shadow dom (#8254) @flaviendelangle
|
|
37
|
+
- [fields] Remove the duplicated warning about invalid adapter (#8187) @flaviendelangle
|
|
38
|
+
- [fields] Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
39
|
+
- [pickers] Fix to avoid selecting sections on mobile picker field (#8228) @LukasTy
|
|
40
|
+
- [pickers] Inherit previous and next icons size from their parent button (#8218) @flaviendelangle
|
|
41
|
+
|
|
42
|
+
### Docs
|
|
43
|
+
|
|
44
|
+
- [docs] Add a warning in the migration guide for people re-enabling the clock on desktop (#8184) @flaviendelangle
|
|
45
|
+
- [docs] Add a warning for `luxon` macro tokens (#8245) @flaviendelangle
|
|
46
|
+
- [docs] Complete pickers customization pages (#8066) @alexfauquette
|
|
47
|
+
- [docs] Fix 301 redirection @oliviertassinari
|
|
48
|
+
- [docs] Fix 404 links to customization Material UI APIs (#8200) @oliviertassinari
|
|
49
|
+
- [docs] Fix `moment-hijri` demo (#8255) @LukasTy
|
|
50
|
+
- [docs] Improve migration diff (#8240) @oliviertassinari
|
|
51
|
+
- [docs] Change **What's new** page url to point to announcement blog post (#8186) @joserodolfofreitas
|
|
52
|
+
- [docs] Resolve 301 in changelog @oliviertassinari
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- [core] Regen api docs (#8220) @flaviendelangle
|
|
57
|
+
- [core] Remove duplicated `/` (#8223) @alexfauquette
|
|
58
|
+
|
|
6
59
|
## 6.0.1
|
|
7
60
|
|
|
8
61
|
_Mar 9, 2023_
|
|
@@ -1025,7 +1078,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
1025
1078
|
<DataGridPremium unstable_cellSelection />
|
|
1026
1079
|
```
|
|
1027
1080
|
|
|
1028
|
-
See [the documentation](https://mui.com/x/react-data-grid/
|
|
1081
|
+
See [the documentation](https://mui.com/x/react-data-grid/cell-selection/) for more information
|
|
1029
1082
|
|
|
1030
1083
|
- π Support the Right To Left orientation on the fields components
|
|
1031
1084
|
- π Documentation improvements
|
|
@@ -3082,7 +3135,7 @@ _Sep 2, 2022_
|
|
|
3082
3135
|
|
|
3083
3136
|
π We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
|
|
3084
3137
|
|
|
3085
|
-
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/
|
|
3138
|
+
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
3086
3139
|
|
|
3087
3140
|
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights β¨:
|
|
3088
3141
|
|
|
@@ -4133,7 +4186,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4133
4186
|
|
|
4134
4187
|
Date and time picker components have been moved to the MUI X repository.
|
|
4135
4188
|
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
4136
|
-
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/
|
|
4189
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
4137
4190
|
|
|
4138
4191
|
- π Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
4139
4192
|
- β¨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
@@ -6781,7 +6834,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
6781
6834
|
- π
Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
6782
6835
|
- β
Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
6783
6836
|
|
|
6784
|
-
See the documentation for [more details](https://mui.com/
|
|
6837
|
+
See the documentation for [more details](https://v4.mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
|
|
6785
6838
|
|
|
6786
6839
|
- β‘οΈ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
6787
6840
|
- β Improve consistency of the API to prepare for the first beta release
|
|
@@ -7309,7 +7362,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
7309
7362
|
- π Add support for default locales (#983) @DanailH
|
|
7310
7363
|
We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
|
|
7311
7364
|
- π Add new `selectionModel` prop (#986) @dtassone
|
|
7312
|
-
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/
|
|
7365
|
+
The prop can be used to control the selected rows in the data grid. [See the docs](https://v4.mui.com/components/data-grid/selection/#controlled-selection).
|
|
7313
7366
|
- π
Add support for default props from theme (#1019) @DanailH
|
|
7314
7367
|
- π Fix scrollbar size on windows (#1061) @dtassone
|
|
7315
7368
|
- π Polish existing features, fix 9 issues.
|
|
@@ -16,7 +16,15 @@ export interface GridPanelProps extends Partial<React.ComponentProps<typeof Grid
|
|
|
16
16
|
open: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const gridPanelClasses: Record<keyof GridPanelClasses, string>;
|
|
19
|
-
declare const GridPanelRoot: import("@emotion/styled").StyledComponent<Pick<Pick<import("@mui/material/Popper").PopperProps, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "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" | "component" | "sx" | "ownerState" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef" | "slotProps" | "slots" | "componentsProps"> & React.RefAttributes<HTMLDivElement>, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "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" | "component" | "sx" | "ownerState" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef" | "slotProps" | "slots" | "componentsProps" | keyof React.RefAttributes<HTMLDivElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
19
|
+
declare const GridPanelRoot: import("@emotion/styled").StyledComponent<Pick<Omit<import("@mui/base").PopperUnstyledProps<"div", {}>, "direction"> & {
|
|
20
|
+
components?: {
|
|
21
|
+
Root?: React.ElementType<any> | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
componentsProps?: {
|
|
24
|
+
root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperUnstyledRootSlotPropsOverrides, import("@mui/base").PopperUnstyledOwnerState> | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement>, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "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" | "component" | "sx" | "ownerState" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef" | "slotProps" | "slots" | "componentsProps" | keyof React.RefAttributes<HTMLDivElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
20
28
|
ownerState: OwnerState;
|
|
21
29
|
}, {}, {}>;
|
|
22
30
|
declare const GridPanel: React.ForwardRefExoticComponent<Omit<GridPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -150,7 +150,6 @@ export const hydrateColumnsWidth = (rawState, viewportInnerWidth) => {
|
|
|
150
150
|
lookup: columnsLookup
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
let columnTypeWarnedOnce = false;
|
|
154
153
|
|
|
155
154
|
/**
|
|
156
155
|
* Apply the order and the dimensions of the initial state.
|
|
@@ -239,14 +238,8 @@ export const createColumnsState = ({
|
|
|
239
238
|
let existingState = columnsState.lookup[field];
|
|
240
239
|
if (existingState == null) {
|
|
241
240
|
let colDef = columnTypes[DEFAULT_GRID_COL_TYPE_KEY];
|
|
242
|
-
if (newColumn.type) {
|
|
243
|
-
|
|
244
|
-
console.warn([`MUI: The column type "${newColumn.type}" you are using is not supported.`, `Column type "string" is being used instead.`].join('\n'));
|
|
245
|
-
columnTypeWarnedOnce = true;
|
|
246
|
-
}
|
|
247
|
-
if (columnTypes[newColumn.type]) {
|
|
248
|
-
colDef = columnTypes[newColumn.type];
|
|
249
|
-
}
|
|
241
|
+
if (newColumn.type && columnTypes[newColumn.type]) {
|
|
242
|
+
colDef = columnTypes[newColumn.type];
|
|
250
243
|
}
|
|
251
244
|
existingState = _extends({}, colDef, {
|
|
252
245
|
field,
|
|
@@ -90,8 +90,8 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
90
90
|
}
|
|
91
91
|
} else if (params.isEditable) {
|
|
92
92
|
let reason;
|
|
93
|
-
if (event.key === ' '
|
|
94
|
-
return; //
|
|
93
|
+
if (event.key === ' ') {
|
|
94
|
+
return; // Space scrolls to the last row
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
if (isPrintableKey(event)) {
|
|
@@ -144,8 +144,8 @@ export const useGridRowEditing = (apiRef, props) => {
|
|
|
144
144
|
}
|
|
145
145
|
} else if (params.isEditable) {
|
|
146
146
|
let reason;
|
|
147
|
-
if (event.key === ' '
|
|
148
|
-
return; //
|
|
147
|
+
if (event.key === ' ') {
|
|
148
|
+
return; // Space scrolls to the last row
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
if (isPrintableKey(event)) {
|
package/index.js
CHANGED
|
@@ -151,7 +151,6 @@ export var hydrateColumnsWidth = function hydrateColumnsWidth(rawState, viewport
|
|
|
151
151
|
lookup: columnsLookup
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
|
-
var columnTypeWarnedOnce = false;
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
156
|
* Apply the order and the dimensions of the initial state.
|
|
@@ -247,14 +246,8 @@ export var createColumnsState = function createColumnsState(_ref5) {
|
|
|
247
246
|
var existingState = columnsState.lookup[field];
|
|
248
247
|
if (existingState == null) {
|
|
249
248
|
var colDef = columnTypes[DEFAULT_GRID_COL_TYPE_KEY];
|
|
250
|
-
if (newColumn.type) {
|
|
251
|
-
|
|
252
|
-
console.warn(["MUI: The column type \"".concat(newColumn.type, "\" you are using is not supported."), "Column type \"string\" is being used instead."].join('\n'));
|
|
253
|
-
columnTypeWarnedOnce = true;
|
|
254
|
-
}
|
|
255
|
-
if (columnTypes[newColumn.type]) {
|
|
256
|
-
colDef = columnTypes[newColumn.type];
|
|
257
|
-
}
|
|
249
|
+
if (newColumn.type && columnTypes[newColumn.type]) {
|
|
250
|
+
colDef = columnTypes[newColumn.type];
|
|
258
251
|
}
|
|
259
252
|
existingState = _extends({}, colDef, {
|
|
260
253
|
field: field,
|
|
@@ -97,8 +97,8 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
97
97
|
}
|
|
98
98
|
} else if (params.isEditable) {
|
|
99
99
|
var _reason;
|
|
100
|
-
if (event.key === ' '
|
|
101
|
-
return; //
|
|
100
|
+
if (event.key === ' ') {
|
|
101
|
+
return; // Space scrolls to the last row
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (isPrintableKey(event)) {
|
|
@@ -153,8 +153,8 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
153
153
|
}
|
|
154
154
|
} else if (params.isEditable) {
|
|
155
155
|
var _reason;
|
|
156
|
-
if (event.key === ' '
|
|
157
|
-
return; //
|
|
156
|
+
if (event.key === ' ') {
|
|
157
|
+
return; // Space scrolls to the last row
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
if (isPrintableKey(event)) {
|
package/legacy/index.js
CHANGED
package/legacy/locales/ptBR.js
CHANGED
|
@@ -69,7 +69,7 @@ var ptBRGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'Menu',
|
|
71
71
|
columnMenuShowColumns: 'Exibir colunas',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'Gerir colunas',
|
|
73
73
|
columnMenuFilter: 'Filtrar',
|
|
74
74
|
columnMenuHideColumn: 'Ocultar',
|
|
75
75
|
columnMenuUnsort: 'Desfazer ordenaΓ§Γ£o',
|
package/locales/ptBR.js
CHANGED
|
@@ -67,7 +67,7 @@ const ptBRGrid = {
|
|
|
67
67
|
// Column menu text
|
|
68
68
|
columnMenuLabel: 'Menu',
|
|
69
69
|
columnMenuShowColumns: 'Exibir colunas',
|
|
70
|
-
|
|
70
|
+
columnMenuManageColumns: 'Gerir colunas',
|
|
71
71
|
columnMenuFilter: 'Filtrar',
|
|
72
72
|
columnMenuHideColumn: 'Ocultar',
|
|
73
73
|
columnMenuUnsort: 'Desfazer ordenaΓ§Γ£o',
|
package/material/index.d.ts
CHANGED
|
@@ -15,7 +15,15 @@ declare const materialSlots: {
|
|
|
15
15
|
BaseButton: import("@mui/material").ExtendButtonBase<import("@mui/material/Button").ButtonTypeMap<{}, "button">>;
|
|
16
16
|
BaseIconButton: import("@mui/material").ExtendButtonBase<import("@mui/material/IconButton").IconButtonTypeMap<{}, "button">>;
|
|
17
17
|
BaseTooltip: typeof MUITooltip;
|
|
18
|
-
BasePopper: import("react").ForwardRefExoticComponent<
|
|
18
|
+
BasePopper: import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperUnstyledProps<"div", {}>, "direction"> & {
|
|
19
|
+
components?: {
|
|
20
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
componentsProps?: {
|
|
23
|
+
root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperUnstyledRootSlotPropsOverrides, import("@mui/base").PopperUnstyledOwnerState> | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
26
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
27
|
BaseInputLabel: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/InputLabel").InputLabelTypeMap<{}, "label">>;
|
|
20
28
|
BaseSelectOption: typeof MUISelectOption;
|
|
21
29
|
BooleanCellTrueIcon: import("react").JSXElementConstructor<any>;
|
|
@@ -150,7 +150,6 @@ export const hydrateColumnsWidth = (rawState, viewportInnerWidth) => {
|
|
|
150
150
|
lookup: columnsLookup
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
let columnTypeWarnedOnce = false;
|
|
154
153
|
|
|
155
154
|
/**
|
|
156
155
|
* Apply the order and the dimensions of the initial state.
|
|
@@ -238,14 +237,8 @@ export const createColumnsState = ({
|
|
|
238
237
|
let existingState = columnsState.lookup[field];
|
|
239
238
|
if (existingState == null) {
|
|
240
239
|
let colDef = columnTypes[DEFAULT_GRID_COL_TYPE_KEY];
|
|
241
|
-
if (newColumn.type) {
|
|
242
|
-
|
|
243
|
-
console.warn([`MUI: The column type "${newColumn.type}" you are using is not supported.`, `Column type "string" is being used instead.`].join('\n'));
|
|
244
|
-
columnTypeWarnedOnce = true;
|
|
245
|
-
}
|
|
246
|
-
if (columnTypes[newColumn.type]) {
|
|
247
|
-
colDef = columnTypes[newColumn.type];
|
|
248
|
-
}
|
|
240
|
+
if (newColumn.type && columnTypes[newColumn.type]) {
|
|
241
|
+
colDef = columnTypes[newColumn.type];
|
|
249
242
|
}
|
|
250
243
|
existingState = _extends({}, colDef, {
|
|
251
244
|
field,
|
|
@@ -90,8 +90,8 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
90
90
|
}
|
|
91
91
|
} else if (params.isEditable) {
|
|
92
92
|
let reason;
|
|
93
|
-
if (event.key === ' '
|
|
94
|
-
return; //
|
|
93
|
+
if (event.key === ' ') {
|
|
94
|
+
return; // Space scrolls to the last row
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
if (isPrintableKey(event)) {
|
|
@@ -143,8 +143,8 @@ export const useGridRowEditing = (apiRef, props) => {
|
|
|
143
143
|
}
|
|
144
144
|
} else if (params.isEditable) {
|
|
145
145
|
let reason;
|
|
146
|
-
if (event.key === ' '
|
|
147
|
-
return; //
|
|
146
|
+
if (event.key === ' ') {
|
|
147
|
+
return; // Space scrolls to the last row
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
if (isPrintableKey(event)) {
|
package/modern/index.js
CHANGED
package/modern/locales/ptBR.js
CHANGED
|
@@ -67,7 +67,7 @@ const ptBRGrid = {
|
|
|
67
67
|
// Column menu text
|
|
68
68
|
columnMenuLabel: 'Menu',
|
|
69
69
|
columnMenuShowColumns: 'Exibir colunas',
|
|
70
|
-
|
|
70
|
+
columnMenuManageColumns: 'Gerir colunas',
|
|
71
71
|
columnMenuFilter: 'Filtrar',
|
|
72
72
|
columnMenuHideColumn: 'Ocultar',
|
|
73
73
|
columnMenuUnsort: 'Desfazer ordenaΓ§Γ£o',
|
|
@@ -164,13 +164,12 @@ const hydrateColumnsWidth = (rawState, viewportInnerWidth) => {
|
|
|
164
164
|
lookup: columnsLookup
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
exports.hydrateColumnsWidth = hydrateColumnsWidth;
|
|
168
|
-
let columnTypeWarnedOnce = false;
|
|
169
167
|
|
|
170
168
|
/**
|
|
171
169
|
* Apply the order and the dimensions of the initial state.
|
|
172
170
|
* The columns not registered in `orderedFields` will be placed after the imported columns.
|
|
173
171
|
*/
|
|
172
|
+
exports.hydrateColumnsWidth = hydrateColumnsWidth;
|
|
174
173
|
const applyInitialState = (columnsState, initialState) => {
|
|
175
174
|
if (!initialState) {
|
|
176
175
|
return columnsState;
|
|
@@ -254,14 +253,8 @@ const createColumnsState = ({
|
|
|
254
253
|
let existingState = columnsState.lookup[field];
|
|
255
254
|
if (existingState == null) {
|
|
256
255
|
let colDef = columnTypes[_colDef.DEFAULT_GRID_COL_TYPE_KEY];
|
|
257
|
-
if (newColumn.type) {
|
|
258
|
-
|
|
259
|
-
console.warn([`MUI: The column type "${newColumn.type}" you are using is not supported.`, `Column type "string" is being used instead.`].join('\n'));
|
|
260
|
-
columnTypeWarnedOnce = true;
|
|
261
|
-
}
|
|
262
|
-
if (columnTypes[newColumn.type]) {
|
|
263
|
-
colDef = columnTypes[newColumn.type];
|
|
264
|
-
}
|
|
256
|
+
if (newColumn.type && columnTypes[newColumn.type]) {
|
|
257
|
+
colDef = columnTypes[newColumn.type];
|
|
265
258
|
}
|
|
266
259
|
existingState = (0, _extends2.default)({}, colDef, {
|
|
267
260
|
field,
|
|
@@ -99,8 +99,8 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
99
99
|
}
|
|
100
100
|
} else if (params.isEditable) {
|
|
101
101
|
let reason;
|
|
102
|
-
if (event.key === ' '
|
|
103
|
-
return; //
|
|
102
|
+
if (event.key === ' ') {
|
|
103
|
+
return; // Space scrolls to the last row
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
|
@@ -152,8 +152,8 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
152
152
|
}
|
|
153
153
|
} else if (params.isEditable) {
|
|
154
154
|
let reason;
|
|
155
|
-
if (event.key === ' '
|
|
156
|
-
return; //
|
|
155
|
+
if (event.key === ' ') {
|
|
156
|
+
return; // Space scrolls to the last row
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
package/node/index.js
CHANGED
package/node/locales/ptBR.js
CHANGED
|
@@ -73,7 +73,7 @@ const ptBRGrid = {
|
|
|
73
73
|
// Column menu text
|
|
74
74
|
columnMenuLabel: 'Menu',
|
|
75
75
|
columnMenuShowColumns: 'Exibir colunas',
|
|
76
|
-
|
|
76
|
+
columnMenuManageColumns: 'Gerir colunas',
|
|
77
77
|
columnMenuFilter: 'Filtrar',
|
|
78
78
|
columnMenuHideColumn: 'Ocultar',
|
|
79
79
|
columnMenuUnsort: 'Desfazer ordenaΓ§Γ£o',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.20.13",
|
|
39
|
-
"@mui/utils": "^5.11.
|
|
39
|
+
"@mui/utils": "^5.11.13",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.7"
|