@mui/x-data-grid 6.0.1 → 6.0.3
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 +116 -10
- package/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/components/panel/GridPanel.d.ts +9 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -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/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/hooks/utils/useGridApiEventHandler.js +3 -3
- package/index.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -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/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/legacy/hooks/utils/useGridApiEventHandler.js +3 -3
- package/legacy/index.js +1 -1
- package/legacy/locales/bgBG.js +9 -12
- package/legacy/locales/faIR.js +2 -2
- package/legacy/locales/nlNL.js +7 -9
- package/legacy/locales/ptBR.js +1 -1
- package/legacy/models/gridEditRowModel.js +9 -9
- package/legacy/models/gridFilterItem.js +3 -3
- package/legacy/models/params/gridEditCellParams.js +10 -10
- package/legacy/models/params/gridRowParams.js +9 -9
- package/locales/bgBG.js +9 -12
- package/locales/faIR.js +2 -2
- package/locales/nlNL.js +7 -9
- package/locales/ptBR.js +1 -1
- package/material/index.d.ts +9 -1
- package/models/gridEditRowModel.js +9 -9
- package/models/gridFilterItem.js +3 -3
- package/models/params/gridEditCellParams.js +10 -10
- package/models/params/gridRowParams.js +9 -9
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -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/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/modern/hooks/utils/useGridApiEventHandler.js +3 -3
- package/modern/index.js +1 -1
- package/modern/locales/bgBG.js +9 -12
- package/modern/locales/faIR.js +2 -2
- package/modern/locales/nlNL.js +7 -9
- package/modern/locales/ptBR.js +1 -1
- package/modern/models/gridEditRowModel.js +9 -9
- package/modern/models/gridFilterItem.js +3 -3
- package/modern/models/params/gridEditCellParams.js +10 -10
- package/modern/models/params/gridRowParams.js +9 -9
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +4 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -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/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +4 -4
- package/node/hooks/utils/useGridApiEventHandler.js +4 -4
- package/node/index.js +1 -1
- package/node/locales/bgBG.js +9 -12
- package/node/locales/faIR.js +2 -2
- package/node/locales/nlNL.js +7 -9
- package/node/locales/ptBR.js +1 -1
- package/node/models/gridEditRowModel.js +12 -12
- package/node/models/gridFilterItem.js +4 -4
- package/node/models/params/gridEditCellParams.js +12 -12
- package/node/models/params/gridRowParams.js +11 -11
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,113 @@
|
|
|
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.3
|
|
7
|
+
|
|
8
|
+
_Mar 23, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Improve Bulgarian (bg-BG), Persian (fa-IR), Polish (pl-PL), and Dutch (nl-NL) locales
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
|
|
16
|
+
### `@mui/x-data-grid@v6.0.3` / `@mui/x-data-grid-pro@v6.0.3` / `@mui/x-data-grid-premium@v6.0.3`
|
|
17
|
+
|
|
18
|
+
#### Changes
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Fix overflow calculation issue in column group headers (#8246) @MBilalShafi
|
|
21
|
+
- [DataGridPro] Fix column reorder glitches (#8335) @cherniavskii
|
|
22
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#8315) @todevmilen
|
|
23
|
+
- [l10n] Improve Persian (fa-IR) locale (#8268) @fakhamatia
|
|
24
|
+
- [l10n] improve Dutch (nl-NL) locale (#8317) @developenguin
|
|
25
|
+
|
|
26
|
+
### `@mui/x-date-pickers@v6.0.3` / `@mui/x-date-pickers-pro@v6.0.3`
|
|
27
|
+
|
|
28
|
+
#### Changes
|
|
29
|
+
|
|
30
|
+
- [fields] Allow to reset the value from the outside (#8287) @flaviendelangle
|
|
31
|
+
- [fields] Cleanup section order generation (#8290) @flaviendelangle
|
|
32
|
+
- [fields] Fix Safari input selection resetting regression (#8295) @LukasTy
|
|
33
|
+
- [fields] Fix editing when all sections are selected (#8330) @flaviendelangle
|
|
34
|
+
- [fields] Fix iOS browser scroll jumping when entering data (#8328) @LukasTy
|
|
35
|
+
- [fields] New prop `unstableFieldRef` to imperatively interact with the selected sections (#8235) @flaviendelangle
|
|
36
|
+
- [pickers] Align date calendar colors (#8318) @LukasTy
|
|
37
|
+
- [pickers] Support invalid dates from the field (#8298) @flaviendelangle
|
|
38
|
+
- [l10n] Improve Persian (fa-IR) locale (#8268) @fakhamatia
|
|
39
|
+
- [l10n] Improve Polish (pl-PL) locale (#8344) @drmats
|
|
40
|
+
- [l10n] improve Dutch (nl-NL) locale (#8317) @developenguin
|
|
41
|
+
|
|
42
|
+
### Docs
|
|
43
|
+
|
|
44
|
+
- [docs] Create examples of pickers with custom fields (#8034) @flaviendelangle
|
|
45
|
+
- [docs] Fix 301 redirections @oliviertassinari
|
|
46
|
+
- [docs] Fix link to React's docs @oliviertassinari
|
|
47
|
+
- [docs] Fix pro license links to point to the same page (#8303) @LukasTy
|
|
48
|
+
- [docs] Give an incentive to upgrade (#8269) @oliviertassinari
|
|
49
|
+
- [docs] Improve contrast on data grid navigation (#8239) @oliviertassinari
|
|
50
|
+
- [docs] Update shortcuts page to use slotProps (#8288) @dcorb
|
|
51
|
+
- [docs] Explain the `shouldDisableTime` migration in more depth (#8348) @LukasTy
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- [core] Remove unused `visx` chart package (#8259) @LukasTy
|
|
56
|
+
- [core] Upgrade monorepo (#8331) @cherniavskii
|
|
57
|
+
- [charts] Project setup (#8308) @alexfauquette
|
|
58
|
+
- [test] Track visual regressions of column menu and filter/column panels (#8095) @cherniavskii
|
|
59
|
+
|
|
60
|
+
## 6.0.2
|
|
61
|
+
|
|
62
|
+
_Mar 16, 2023_
|
|
63
|
+
|
|
64
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
65
|
+
|
|
66
|
+
- 🚀 Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
67
|
+
- 🎁 Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
68
|
+
- 🌍 Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
69
|
+
- 🌍 Improve Brazilian Portuguese (pt-BR), German (de-DE), and French (fr-FR) locales
|
|
70
|
+
- 📚 Documentation improvements
|
|
71
|
+
- 🐞 Bugfixes
|
|
72
|
+
|
|
73
|
+
### `@mui/x-data-grid@v6.0.2` / `@mui/x-data-grid-pro@v6.0.2` / `@mui/x-data-grid-premium@v6.0.2`
|
|
74
|
+
|
|
75
|
+
#### Changes
|
|
76
|
+
|
|
77
|
+
- [DataGrid] Fix <kbd>Space</kbd> triggering edit mode (#8180) @m4theushw
|
|
78
|
+
- [DataGrid] Remove warning when adding a custom column type (#8227) @m4theushw
|
|
79
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#8198) @JoaoSerafim3001
|
|
80
|
+
|
|
81
|
+
### `@mui/x-date-pickers@v6.0.2` / `@mui/x-date-pickers-pro@v6.0.2`
|
|
82
|
+
|
|
83
|
+
#### Changes
|
|
84
|
+
|
|
85
|
+
- [l10n] Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
86
|
+
- [l10n] Improve German (de-DE) locale (#8204) @sebkasanzew
|
|
87
|
+
- [l10n] Improve French (fr-FR) locale (#8229) @marvinroger
|
|
88
|
+
- [DateRangePicker] Allow overriding `slotProps.textField` (#8201) @LukasTy
|
|
89
|
+
- [fields] Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
90
|
+
- [fields] Fix editing in shadow dom (#8254) @flaviendelangle
|
|
91
|
+
- [fields] Remove the duplicated warning about invalid adapter (#8187) @flaviendelangle
|
|
92
|
+
- [fields] Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
93
|
+
- [pickers] Fix to avoid selecting sections on mobile picker field (#8228) @LukasTy
|
|
94
|
+
- [pickers] Inherit previous and next icons size from their parent button (#8218) @flaviendelangle
|
|
95
|
+
|
|
96
|
+
### Docs
|
|
97
|
+
|
|
98
|
+
- [docs] Add a warning in the migration guide for people re-enabling the clock on desktop (#8184) @flaviendelangle
|
|
99
|
+
- [docs] Add a warning for `luxon` macro tokens (#8245) @flaviendelangle
|
|
100
|
+
- [docs] Complete pickers customization pages (#8066) @alexfauquette
|
|
101
|
+
- [docs] Fix 301 redirection @oliviertassinari
|
|
102
|
+
- [docs] Fix 404 links to customization Material UI APIs (#8200) @oliviertassinari
|
|
103
|
+
- [docs] Fix `moment-hijri` demo (#8255) @LukasTy
|
|
104
|
+
- [docs] Improve migration diff (#8240) @oliviertassinari
|
|
105
|
+
- [docs] Change **What's new** page url to point to announcement blog post (#8186) @joserodolfofreitas
|
|
106
|
+
- [docs] Resolve 301 in changelog @oliviertassinari
|
|
107
|
+
|
|
108
|
+
### Core
|
|
109
|
+
|
|
110
|
+
- [core] Regen api docs (#8220) @flaviendelangle
|
|
111
|
+
- [core] Remove duplicated `/` (#8223) @alexfauquette
|
|
112
|
+
|
|
6
113
|
## 6.0.1
|
|
7
114
|
|
|
8
115
|
_Mar 9, 2023_
|
|
@@ -45,11 +152,9 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
45
152
|
|
|
46
153
|
_Mar 3, 2023_
|
|
47
154
|
|
|
48
|
-
We're
|
|
155
|
+
We're excited to [announce the first v6 stable release](https://mui.com/blog/mui-x-v6/)! 🎉🚀
|
|
49
156
|
|
|
50
157
|
This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
|
|
51
|
-
Head over to the [what's new](https://mui.com/x/whats-new/) page to check the highlighted new features.
|
|
52
|
-
|
|
53
158
|
Migration guides are available with a complete list of the breaking changes:
|
|
54
159
|
|
|
55
160
|
- [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/)
|
|
@@ -66,6 +171,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
66
171
|
- experimentalFeatures={{ rowPinning: true }}
|
|
67
172
|
/>
|
|
68
173
|
```
|
|
174
|
+
|
|
69
175
|
- ⚡️ Improved grid performance by rows and cells memoization (#7846) @m4theushw
|
|
70
176
|
- ✨ Fields have a distinct visual state when empty (#8069) @LukasTy
|
|
71
177
|
- 🌍 Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
|
|
@@ -503,14 +609,14 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
503
609
|
```
|
|
504
610
|
|
|
505
611
|
- The `error` and `onError` props were removed - the grid no longer catches errors during rendering.
|
|
506
|
-
To catch errors that happen during rendering use the [error boundary](https://
|
|
612
|
+
To catch errors that happen during rendering use the [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary).
|
|
507
613
|
|
|
508
614
|
- The `components.ErrorOverlay` slot was removed.
|
|
509
615
|
|
|
510
616
|
- The `GridErrorOverlay` component was removed.
|
|
511
617
|
|
|
512
618
|
- The `componentError` event was removed.
|
|
513
|
-
Use the [error boundary](https://
|
|
619
|
+
Use the [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) to catch errors thrown during rendering.
|
|
514
620
|
|
|
515
621
|
- The `apiRef.current.showError` method was removed.
|
|
516
622
|
The UI for errors is no longer handled by the grid.
|
|
@@ -1025,7 +1131,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
1025
1131
|
<DataGridPremium unstable_cellSelection />
|
|
1026
1132
|
```
|
|
1027
1133
|
|
|
1028
|
-
See [the documentation](https://mui.com/x/react-data-grid/
|
|
1134
|
+
See [the documentation](https://mui.com/x/react-data-grid/cell-selection/) for more information
|
|
1029
1135
|
|
|
1030
1136
|
- 🌍 Support the Right To Left orientation on the fields components
|
|
1031
1137
|
- 📚 Documentation improvements
|
|
@@ -3082,7 +3188,7 @@ _Sep 2, 2022_
|
|
|
3082
3188
|
|
|
3083
3189
|
🎉 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
3190
|
|
|
3085
|
-
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/
|
|
3191
|
+
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
3192
|
|
|
3087
3193
|
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
3088
3194
|
|
|
@@ -4133,7 +4239,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4133
4239
|
|
|
4134
4240
|
Date and time picker components have been moved to the MUI X repository.
|
|
4135
4241
|
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/
|
|
4242
|
+
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
4243
|
|
|
4138
4244
|
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
4139
4245
|
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
@@ -6781,7 +6887,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
6781
6887
|
- 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
6782
6888
|
- ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
6783
6889
|
|
|
6784
|
-
See the documentation for [more details](https://mui.com/
|
|
6890
|
+
See the documentation for [more details](https://v4.mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
|
|
6785
6891
|
|
|
6786
6892
|
- ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
6787
6893
|
- ⚙ Improve consistency of the API to prepare for the first beta release
|
|
@@ -7309,7 +7415,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
7309
7415
|
- 📍 Add support for default locales (#983) @DanailH
|
|
7310
7416
|
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
7417
|
- 🎁 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/
|
|
7418
|
+
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
7419
|
- 💅 Add support for default props from theme (#1019) @DanailH
|
|
7314
7420
|
- 🙌 Fix scrollbar size on windows (#1061) @dtassone
|
|
7315
7421
|
- 🐛 Polish existing features, fix 9 issues.
|
|
@@ -7,11 +7,11 @@ import { unstable_composeClasses as composeClasses, unstable_capitalize as capit
|
|
|
7
7
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
var GridColumnHeaderSeparatorSides
|
|
11
|
-
(function (GridColumnHeaderSeparatorSides) {
|
|
10
|
+
var GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {
|
|
12
11
|
GridColumnHeaderSeparatorSides["Left"] = "left";
|
|
13
12
|
GridColumnHeaderSeparatorSides["Right"] = "right";
|
|
14
|
-
|
|
13
|
+
return GridColumnHeaderSeparatorSides;
|
|
14
|
+
}(GridColumnHeaderSeparatorSides || {});
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
resizable,
|
|
@@ -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>>;
|
|
@@ -247,7 +247,13 @@ export const useGridColumnHeaders = props => {
|
|
|
247
247
|
columnFields: groupStructure.columnFields.filter(field => columnVisibility[field] !== false)
|
|
248
248
|
});
|
|
249
249
|
}).filter(groupStructure => groupStructure.columnFields.length > 0);
|
|
250
|
-
const
|
|
250
|
+
const firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
|
|
251
|
+
const hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);
|
|
252
|
+
const leftOverflow = hiddenGroupColumns.reduce((acc, field) => {
|
|
253
|
+
var _column$computedWidth;
|
|
254
|
+
const column = apiRef.current.getColumn(field);
|
|
255
|
+
return acc + ((_column$computedWidth = column.computedWidth) != null ? _column$computedWidth : 0);
|
|
256
|
+
}, 0);
|
|
251
257
|
let columnIndex = firstColumnToRender;
|
|
252
258
|
const elements = visibleColumnGroupHeader.map(({
|
|
253
259
|
groupId,
|
|
@@ -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)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var GridPreferencePanelsValue
|
|
2
|
-
(function (GridPreferencePanelsValue) {
|
|
1
|
+
var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {
|
|
3
2
|
GridPreferencePanelsValue["filters"] = "filters";
|
|
4
3
|
GridPreferencePanelsValue["columns"] = "columns";
|
|
5
|
-
|
|
4
|
+
return GridPreferencePanelsValue;
|
|
5
|
+
}(GridPreferencePanelsValue || {});
|
|
6
6
|
export { GridPreferencePanelsValue };
|
|
@@ -5,11 +5,11 @@ import { FinalizationRegistryBasedCleanupTracking } from '../../utils/cleanupTra
|
|
|
5
5
|
* Signal to the underlying logic what version of the public component API
|
|
6
6
|
* of the data grid is exposed.
|
|
7
7
|
*/
|
|
8
|
-
var GridSignature
|
|
9
|
-
(function (GridSignature) {
|
|
8
|
+
var GridSignature = /*#__PURE__*/function (GridSignature) {
|
|
10
9
|
GridSignature["DataGrid"] = "DataGrid";
|
|
11
10
|
GridSignature["DataGridPro"] = "DataGridPro";
|
|
12
|
-
|
|
11
|
+
return GridSignature;
|
|
12
|
+
}(GridSignature || {});
|
|
13
13
|
// We use class to make it easier to detect in heap snapshots by name
|
|
14
14
|
class ObjectToBeRetainedByReact {}
|
|
15
15
|
|
package/index.js
CHANGED
|
@@ -7,11 +7,11 @@ import { unstable_composeClasses as composeClasses, unstable_capitalize as capit
|
|
|
7
7
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
var GridColumnHeaderSeparatorSides
|
|
11
|
-
(function (GridColumnHeaderSeparatorSides) {
|
|
10
|
+
var GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {
|
|
12
11
|
GridColumnHeaderSeparatorSides["Left"] = "left";
|
|
13
12
|
GridColumnHeaderSeparatorSides["Right"] = "right";
|
|
14
|
-
|
|
13
|
+
return GridColumnHeaderSeparatorSides;
|
|
14
|
+
}(GridColumnHeaderSeparatorSides || {});
|
|
15
15
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
16
16
|
var resizable = ownerState.resizable,
|
|
17
17
|
resizing = ownerState.resizing,
|
|
@@ -283,7 +283,13 @@ export var useGridColumnHeaders = function useGridColumnHeaders(props) {
|
|
|
283
283
|
}).filter(function (groupStructure) {
|
|
284
284
|
return groupStructure.columnFields.length > 0;
|
|
285
285
|
});
|
|
286
|
-
var
|
|
286
|
+
var firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
|
|
287
|
+
var hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);
|
|
288
|
+
var leftOverflow = hiddenGroupColumns.reduce(function (acc, field) {
|
|
289
|
+
var _column$computedWidth;
|
|
290
|
+
var column = apiRef.current.getColumn(field);
|
|
291
|
+
return acc + ((_column$computedWidth = column.computedWidth) != null ? _column$computedWidth : 0);
|
|
292
|
+
}, 0);
|
|
287
293
|
var columnIndex = firstColumnToRender;
|
|
288
294
|
var elements = visibleColumnGroupHeader.map(function (_ref6) {
|
|
289
295
|
var groupId = _ref6.groupId,
|
|
@@ -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)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var GridPreferencePanelsValue
|
|
2
|
-
(function (GridPreferencePanelsValue) {
|
|
1
|
+
var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {
|
|
3
2
|
GridPreferencePanelsValue["filters"] = "filters";
|
|
4
3
|
GridPreferencePanelsValue["columns"] = "columns";
|
|
5
|
-
|
|
4
|
+
return GridPreferencePanelsValue;
|
|
5
|
+
}(GridPreferencePanelsValue || {});
|
|
6
6
|
export { GridPreferencePanelsValue };
|
|
@@ -8,11 +8,11 @@ import { FinalizationRegistryBasedCleanupTracking } from '../../utils/cleanupTra
|
|
|
8
8
|
* Signal to the underlying logic what version of the public component API
|
|
9
9
|
* of the data grid is exposed.
|
|
10
10
|
*/
|
|
11
|
-
var GridSignature
|
|
12
|
-
(function (GridSignature) {
|
|
11
|
+
var GridSignature = /*#__PURE__*/function (GridSignature) {
|
|
13
12
|
GridSignature["DataGrid"] = "DataGrid";
|
|
14
13
|
GridSignature["DataGridPro"] = "DataGridPro";
|
|
15
|
-
|
|
14
|
+
return GridSignature;
|
|
15
|
+
}(GridSignature || {});
|
|
16
16
|
// We use class to make it easier to detect in heap snapshots by name
|
|
17
17
|
var ObjectToBeRetainedByReact = /*#__PURE__*/_createClass(function ObjectToBeRetainedByReact() {
|
|
18
18
|
_classCallCheck(this, ObjectToBeRetainedByReact);
|
package/legacy/index.js
CHANGED
package/legacy/locales/bgBG.js
CHANGED
|
@@ -22,17 +22,15 @@ var bgBGGrid = {
|
|
|
22
22
|
return "".concat(count, " \u0430\u043A\u0442\u0438\u0432\u043D\u0438 \u0444\u0438\u043B\u0442\u0440\u0438");
|
|
23
23
|
},
|
|
24
24
|
// Quick filter toolbar field
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'Търси…',
|
|
26
|
+
toolbarQuickFilterLabel: 'Търсене',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'Изчисти',
|
|
29
28
|
// Export selector toolbar button text
|
|
30
29
|
toolbarExport: 'Изтегли',
|
|
31
30
|
toolbarExportLabel: 'Изтегли',
|
|
32
31
|
toolbarExportCSV: 'Изтегли като CSV',
|
|
33
32
|
toolbarExportPrint: 'Принтиране',
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
toolbarExportExcel: 'Изтегли като Excel',
|
|
36
34
|
// Columns panel text
|
|
37
35
|
columnsPanelTextFieldLabel: 'Намери колона',
|
|
38
36
|
columnsPanelTextFieldPlaceholder: 'Заглавие на колона',
|
|
@@ -41,9 +39,9 @@ var bgBGGrid = {
|
|
|
41
39
|
columnsPanelHideAllButton: 'Скрий Всички',
|
|
42
40
|
// Filter panel text
|
|
43
41
|
filterPanelAddFilter: 'Добави Филтър',
|
|
44
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Премахни всички',
|
|
45
43
|
filterPanelDeleteIconLabel: 'Изтрий',
|
|
46
|
-
|
|
44
|
+
filterPanelLogicOperator: 'Логически оператор',
|
|
47
45
|
filterPanelOperator: 'Оператори',
|
|
48
46
|
filterPanelOperatorAnd: 'И',
|
|
49
47
|
filterPanelOperatorOr: 'Или',
|
|
@@ -71,7 +69,7 @@ var bgBGGrid = {
|
|
|
71
69
|
// Column menu text
|
|
72
70
|
columnMenuLabel: 'Меню',
|
|
73
71
|
columnMenuShowColumns: 'Покажи колоните',
|
|
74
|
-
|
|
72
|
+
columnMenuManageColumns: 'Управление на колони',
|
|
75
73
|
columnMenuFilter: 'Филтри',
|
|
76
74
|
columnMenuHideColumn: 'Скрий',
|
|
77
75
|
columnMenuUnsort: 'Отмени сортирането',
|
|
@@ -123,10 +121,9 @@ var bgBGGrid = {
|
|
|
123
121
|
// Master/detail
|
|
124
122
|
// detailPanelToggle: 'Detail panel toggle',
|
|
125
123
|
expandDetailPanel: 'Разгъване',
|
|
126
|
-
collapseDetailPanel: 'Свиване'
|
|
127
|
-
|
|
124
|
+
collapseDetailPanel: 'Свиване',
|
|
128
125
|
// Row reordering text
|
|
129
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Подредба на редове'
|
|
130
127
|
|
|
131
128
|
// Aggregation
|
|
132
129
|
// aggregationMenuItemHeader: 'Aggregation',
|
package/legacy/locales/faIR.js
CHANGED
|
@@ -39,7 +39,7 @@ var faIRGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'مخفی همه',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'افزودن فیلتر',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: 'حذف همه',
|
|
43
43
|
filterPanelDeleteIconLabel: 'حذف',
|
|
44
44
|
filterPanelLogicOperator: 'عملگر منطقی',
|
|
45
45
|
filterPanelOperator: 'عملگرها',
|
|
@@ -69,7 +69,7 @@ var faIRGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'فهرست',
|
|
71
71
|
columnMenuShowColumns: 'نمایش ستونها',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'مدیریت ستونها',
|
|
73
73
|
columnMenuFilter: 'فیلتر',
|
|
74
74
|
columnMenuHideColumn: 'مخفی',
|
|
75
75
|
columnMenuUnsort: 'نامرتبکردن',
|
package/legacy/locales/nlNL.js
CHANGED
|
@@ -123,15 +123,13 @@ var nlNLGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Uitklappen',
|
|
124
124
|
collapseDetailPanel: 'Inklappen',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'Rijen hersorteren'
|
|
127
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Rijen hersorteren',
|
|
128
127
|
// Aggregation
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Aggregatie',
|
|
129
|
+
aggregationFunctionLabelSum: 'som',
|
|
130
|
+
aggregationFunctionLabelAvg: 'gem',
|
|
131
|
+
aggregationFunctionLabelMin: 'min',
|
|
132
|
+
aggregationFunctionLabelMax: 'max',
|
|
133
|
+
aggregationFunctionLabelSize: 'grootte'
|
|
135
134
|
};
|
|
136
|
-
|
|
137
135
|
export var nlNL = getGridLocalization(nlNLGrid, nlNLCore);
|
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',
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var GridEditModes
|
|
2
|
-
(function (GridEditModes) {
|
|
1
|
+
var GridEditModes = /*#__PURE__*/function (GridEditModes) {
|
|
3
2
|
GridEditModes["Cell"] = "cell";
|
|
4
3
|
GridEditModes["Row"] = "row";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return GridEditModes;
|
|
5
|
+
}(GridEditModes || {});
|
|
6
|
+
var GridCellModes = /*#__PURE__*/function (GridCellModes) {
|
|
8
7
|
GridCellModes["Edit"] = "edit";
|
|
9
8
|
GridCellModes["View"] = "view";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
return GridCellModes;
|
|
10
|
+
}(GridCellModes || {});
|
|
11
|
+
var GridRowModes = /*#__PURE__*/function (GridRowModes) {
|
|
13
12
|
GridRowModes["Edit"] = "edit";
|
|
14
13
|
GridRowModes["View"] = "view";
|
|
15
|
-
|
|
14
|
+
return GridRowModes;
|
|
15
|
+
}(GridRowModes || {});
|
|
16
16
|
export { GridEditModes, GridCellModes, GridRowModes };
|