@mui/x-data-grid-premium 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -7
- package/DataGridPremium/DataGridPremium.d.ts +1 -1
- package/DataGridPremium/DataGridPremium.js +1 -1
- package/DataGridPremium/useDataGridPremiumComponent.js +1 -0
- package/DataGridPremium/useDataGridPremiumProps.js +5 -4
- package/components/pivotPanel/GridPivotPanelField.d.ts +1 -1
- package/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +1 -1
- package/constants/dataGridPremiumDefaultSlotsComponents.d.ts +1 -1
- package/esm/DataGridPremium/DataGridPremium.d.ts +1 -1
- package/esm/DataGridPremium/DataGridPremium.js +1 -1
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +2 -1
- package/esm/DataGridPremium/useDataGridPremiumProps.js +6 -5
- package/esm/components/pivotPanel/GridPivotPanelField.d.ts +1 -1
- package/esm/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +1 -1
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.d.ts +1 -1
- package/esm/hooks/features/aggregation/gridAggregationSelectors.d.ts +3 -3
- package/esm/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
- package/esm/hooks/features/aggregation/index.d.ts +1 -1
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +3 -3
- package/esm/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +3 -3
- package/esm/hooks/features/aiAssistant/index.d.ts +1 -1
- package/esm/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +1 -1
- package/esm/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
- package/esm/hooks/features/dataSource/models.d.ts +1 -1
- package/esm/hooks/features/export/serializer/excelSerializer.d.ts +1 -1
- package/esm/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +1 -1
- package/esm/hooks/features/export/serializer/utils.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/esm/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/esm/hooks/features/pivoting/utils.d.ts +3 -3
- package/esm/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +1 -1
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/esm/index.d.ts +4 -4
- package/esm/index.js +1 -1
- package/esm/models/dataGridPremiumProps.d.ts +3 -3
- package/esm/models/gridApiPremium.d.ts +5 -5
- package/esm/models/gridStatePremium.d.ts +2 -2
- package/esm/typeOverloads/modules.d.ts +4 -4
- package/esm/typeOverloads/reexports.d.ts +1 -1
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +3 -3
- package/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
- package/hooks/features/aggregation/index.d.ts +1 -1
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +3 -3
- package/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +3 -3
- package/hooks/features/aiAssistant/index.d.ts +1 -1
- package/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
- package/hooks/features/dataSource/models.d.ts +1 -1
- package/hooks/features/export/serializer/excelSerializer.d.ts +1 -1
- package/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +1 -1
- package/hooks/features/export/serializer/utils.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/hooks/features/pivoting/utils.d.ts +3 -3
- package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/index.d.ts +4 -4
- package/index.js +1 -1
- package/models/dataGridPremiumProps.d.ts +3 -3
- package/models/gridApiPremium.d.ts +5 -5
- package/models/gridStatePremium.d.ts +2 -2
- package/package.json +5 -5
- package/typeOverloads/modules.d.ts +4 -4
- package/typeOverloads/reexports.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,128 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.2.0
|
|
9
|
+
|
|
10
|
+
_May 1, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 `<FunnelChart/>` now uses the `strawberrySky` sequential color palette by default.
|
|
15
|
+
<img width="481" alt="Screenshot 2025-04-29 at 13 55 21" src="https://github.com/user-attachments/assets/182085d1-a7ce-4e4d-9d8d-a4fe87f27167" />
|
|
16
|
+
- 📊 Add API to export a chart as an image: `apiRef.exportAsImage` — [Learn more](https://mui.com/x/react-charts/export/#export-as-image).
|
|
17
|
+
|
|
18
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
19
|
+
@federico-ntr, @nusr.
|
|
20
|
+
Following are all team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid@8.2.0`
|
|
28
|
+
|
|
29
|
+
- [DataGrid] Fix panel alignment (#17625) @KenanYusuf
|
|
30
|
+
- [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17490) @KenanYusuf
|
|
31
|
+
- [DataGrid] Fix circular reference error (#17591) @romgrk
|
|
32
|
+
- [DataGrid] Fix `<GridEditInputCell />` break input (#16773) @nusr
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@8.2.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Use intersection observer to trigger server-side infinite loading (#17369) @arminmeh
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@8.2.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@8.2.0`.
|
|
43
|
+
|
|
44
|
+
### Date and Time Pickers
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers@8.2.0`
|
|
47
|
+
|
|
48
|
+
- [l10n] Improve Italian (it-IT) locale (#17600) @federico-ntr
|
|
49
|
+
- [pickers] Refactor owner state typing (#17517) @LukasTy
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@8.2.0`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@8.2.0`
|
|
58
|
+
|
|
59
|
+
- [charts] Add library name to errors (#17547) @bernardobelchior
|
|
60
|
+
- [charts] Add monochrome palettes (#17610) @JCQuintas
|
|
61
|
+
- [charts] Add screenshot of the tooltip (#17395) @alexfauquette
|
|
62
|
+
- [charts] Default bar chart x-axis scale type to band (#17519) @bernardobelchior
|
|
63
|
+
- [charts] Document axis ID uniqueness constraints (#17630) @bernardobelchior
|
|
64
|
+
- [charts] Refactor axis types (#17632) @bernardobelchior
|
|
65
|
+
- [charts] Use `<circle />` for circular legend mark (#17590) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@8.2.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Add `gap` option to `<FunnelChart />` (#17642) @JCQuintas
|
|
72
|
+
- [charts-pro] Export charts as image (#17353) @bernardobelchior
|
|
73
|
+
- [charts-pro] Simplify zoom testing (#17525) @JCQuintas
|
|
74
|
+
- [charts-pro] Use new sequential color palette in `<FunnelChart />` (#17606) @JCQuintas
|
|
75
|
+
|
|
76
|
+
### Tree View
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-tree-view@8.2.0`
|
|
79
|
+
|
|
80
|
+
Internal changes.
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-tree-view-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-tree-view@8.2.0`.
|
|
85
|
+
|
|
86
|
+
### Docs
|
|
87
|
+
|
|
88
|
+
- [docs][charts] Add composition sections (#17377) @alexfauquette
|
|
89
|
+
- [docs][charts] Add docs on tooltip style (#17601) @bernardobelchior
|
|
90
|
+
- [docs][charts] Fix highlighting heading structure (#17581) @oliviertassinari
|
|
91
|
+
- [docs][charts] Improve export docs (#17538) @oliviertassinari
|
|
92
|
+
- [docs][charts] Similar introduction on most charts pages (#17374) @alexfauquette
|
|
93
|
+
- [docs][DataGrid] Clear component docs (#17540) @oliviertassinari
|
|
94
|
+
- [docs] Explicitly state that `groupingColDef` reference needs to be stable (#17544) @arminmeh
|
|
95
|
+
- [docs] Fix <kbd> a11y (#17536) @oliviertassinari
|
|
96
|
+
- [docs] Fix CodeSandbox spelling @oliviertassinari
|
|
97
|
+
- [docs] Fix coding style function @oliviertassinari
|
|
98
|
+
- [docs] Fix migration guide format (#17450) @oliviertassinari
|
|
99
|
+
- [docs] Improve data grid export docs (#17551) @MBilalShafi
|
|
100
|
+
- [docs] Remove leftover `@next` usages (#17542) @LukasTy
|
|
101
|
+
|
|
102
|
+
### Core
|
|
103
|
+
|
|
104
|
+
- [core] Add security label to dependabot PRs @oliviertassinari
|
|
105
|
+
- [core] Allow post-install vale @oliviertassinari
|
|
106
|
+
- [core] Component consistency @oliviertassinari
|
|
107
|
+
- [core] Fix all Vale errors @oliviertassinari
|
|
108
|
+
- [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
|
|
109
|
+
- [core] Remove empty version (#17582) @oliviertassinari
|
|
110
|
+
- [core] Remove eslint from codemod spec files (#17443) @alexfauquette
|
|
111
|
+
- [core] Remove unnecessary versions (#17597) @oliviertassinari
|
|
112
|
+
- [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
|
|
113
|
+
- [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
|
|
114
|
+
- [code-infra] Fix date-time sensitive tests (#17644) @JCQuintas
|
|
115
|
+
- [code-infra] Fix extension handling for type imports (#17636) @Janpot
|
|
116
|
+
- [code-infra] Further remove `clock=fake` and add `async act` for datagrid (#17563) @JCQuintas
|
|
117
|
+
- [code-infra] Latest vitest picker changes (#17577) @JCQuintas
|
|
118
|
+
- [docs-infra] Fix Vale no longer working (#17602) @alexfauquette
|
|
119
|
+
- [docs-infra] Uniformize Vale between repositories @oliviertassinari
|
|
120
|
+
- [infra] Updates to `branch switch comments` (#17589) @michelengelen
|
|
121
|
+
- [x-telemetry] Fix issue with get machineid hash (#17614) @hasdfa
|
|
122
|
+
|
|
8
123
|
## 8.1.0
|
|
9
124
|
|
|
10
125
|
_Apr 24, 2025_
|
|
11
126
|
|
|
12
127
|
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
128
|
|
|
14
|
-
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
129
|
+
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
15
130
|
- 📚 Documentation improvements
|
|
16
131
|
- 🐞 Bugfixes
|
|
17
132
|
|
|
@@ -56,7 +171,7 @@ Same changes as in `@mui/x-date-pickers@8.1.0`.
|
|
|
56
171
|
|
|
57
172
|
### Charts
|
|
58
173
|
|
|
59
|
-
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
174
|
+
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
60
175
|
|
|
61
176
|
#### `@mui/x-charts@8.1.0`
|
|
62
177
|
|
|
@@ -1821,7 +1936,7 @@ Same changes as in `@mui/x-tree-view@8.0.0-alpha.8`.
|
|
|
1821
1936
|
- [docs] Add example for custom legend (#16169) @alexfauquette
|
|
1822
1937
|
- [docs] Add full custom field creation example (#15194) @flaviendelangle
|
|
1823
1938
|
- [docs] Copyedit the Data Grid cell selection page (#16099) @samuelsycamore
|
|
1824
|
-
- [docs] Fix demo rendering issue on
|
|
1939
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16118) @arminmeh
|
|
1825
1940
|
- [docs] Remove broken links (#16167) @alexfauquette
|
|
1826
1941
|
- [docs] Split the Data Grid editing page (#14931) @MBilalShafi
|
|
1827
1942
|
- [docs] Fix wrong props warnings (#16119) @JCQuintas
|
|
@@ -2268,7 +2383,7 @@ Releasing to benefit from license package fix (#15814).
|
|
|
2268
2383
|
|
|
2269
2384
|
- [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
|
|
2270
2385
|
- [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
|
|
2271
|
-
- [license] Use `console.log` for the error message on
|
|
2386
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15814) @arminmeh
|
|
2272
2387
|
|
|
2273
2388
|
## 8.0.0-alpha.3
|
|
2274
2389
|
|
|
@@ -2484,6 +2599,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2484
2599
|
|
|
2485
2600
|
### Docs
|
|
2486
2601
|
|
|
2602
|
+
<!-- vale MUI.CorrectRererenceCased = NO -->
|
|
2603
|
+
|
|
2487
2604
|
- [docs] Fix 404 links (#15575) @oliviertassinari
|
|
2488
2605
|
- [docs] Fix bash comments (#15571) @oliviertassinari
|
|
2489
2606
|
- [docs] Fix Pickers theme augmentation example (#15672) @LukasTy
|
|
@@ -2493,6 +2610,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2493
2610
|
- [docs] Fix `anchorEl` API page for charts (#15625) @oliviertassinari
|
|
2494
2611
|
- [docs] Add documentation for the list view feature (#15344) @KenanYusuf
|
|
2495
2612
|
|
|
2613
|
+
<!-- vale MUI.CorrectRererenceCased = YES -->
|
|
2614
|
+
|
|
2496
2615
|
### Core
|
|
2497
2616
|
|
|
2498
2617
|
- [core] Follow `()` function convention for docs @oliviertassinari
|
|
@@ -3401,7 +3520,7 @@ Same changes as in `@mui/x-tree-view@7.24.0`.
|
|
|
3401
3520
|
### Docs
|
|
3402
3521
|
|
|
3403
3522
|
- [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
|
|
3404
|
-
- [docs] Fix demo rendering issue on
|
|
3523
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16129) @arminmeh
|
|
3405
3524
|
|
|
3406
3525
|
### Core
|
|
3407
3526
|
|
|
@@ -3679,7 +3798,7 @@ Releasing to benefit from license package fix (#15818).
|
|
|
3679
3798
|
### Core
|
|
3680
3799
|
|
|
3681
3800
|
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
3682
|
-
- [license] Use `console.log` for the error message on
|
|
3801
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15818) @arminmeh
|
|
3683
3802
|
|
|
3684
3803
|
## 7.23.1
|
|
3685
3804
|
|
|
@@ -7020,7 +7139,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
|
7020
7139
|
/>
|
|
7021
7140
|
```
|
|
7022
7141
|
|
|
7023
|
-
- The headless field hooks (
|
|
7142
|
+
- The headless field hooks (for example `useDateField()`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
7024
7143
|
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
|
|
7025
7144
|
Learn more about this new accessible DOM structure in the [v8 migration guide](https://v7.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
|
|
7026
7145
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { DataGridPremiumProps } from "../models/dataGridPremiumProps.js";
|
|
4
|
-
export type { GridPremiumSlotsComponent as GridSlots } from
|
|
4
|
+
export type { GridPremiumSlotsComponent as GridSlots } from "../models/index.js";
|
|
5
5
|
interface DataGridPremiumComponent {
|
|
6
6
|
<R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
7
7
|
propTypes?: any;
|
|
@@ -40,7 +40,7 @@ const configuration = {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const releaseInfo = "
|
|
43
|
+
const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
|
|
44
44
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
45
45
|
packageName: "x-data-grid-premium",
|
|
46
46
|
releaseInfo: releaseInfo
|
|
@@ -118,6 +118,7 @@ const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
|
118
118
|
(0, _internals.useGridInfiniteLoader)(apiRef, props);
|
|
119
119
|
(0, _internals.useGridLazyLoader)(apiRef, props);
|
|
120
120
|
(0, _internals.useGridDataSourceLazyLoader)(apiRef, props);
|
|
121
|
+
(0, _internals.useGridInfiniteLoadingIntersection)(apiRef, props);
|
|
121
122
|
(0, _internals.useGridColumnMenu)(apiRef);
|
|
122
123
|
(0, _internals.useGridCsvExport)(apiRef, props);
|
|
123
124
|
(0, _internals.useGridPrintExport)(apiRef, props);
|
|
@@ -9,6 +9,7 @@ exports.useDataGridPremiumProps = exports.DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styles = require("@mui/material/styles");
|
|
12
|
+
var _system = require("@mui/system");
|
|
12
13
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
13
14
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
14
15
|
var _aggregation = require("../hooks/features/aggregation");
|
|
@@ -46,12 +47,12 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
|
|
|
46
47
|
});
|
|
47
48
|
const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
|
|
48
49
|
const useDataGridPremiumProps = inProps => {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
(0, _styles.useThemeProps)({
|
|
50
|
+
const theme = (0, _styles.useTheme)();
|
|
51
|
+
const themedProps = React.useMemo(() => (0, _system.getThemeProps)({
|
|
52
52
|
props: inProps,
|
|
53
|
+
theme,
|
|
53
54
|
name: 'MuiDataGrid'
|
|
54
|
-
});
|
|
55
|
+
}), [theme, inProps]);
|
|
55
56
|
const localeText = React.useMemo(() => (0, _extends2.default)({}, _xDataGridPro.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
56
57
|
const slots = React.useMemo(() => (0, _internals.computeSlots)({
|
|
57
58
|
defaultSlots,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridPivotModel } from "../../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
3
|
-
import type { FieldTransferObject } from
|
|
3
|
+
import type { FieldTransferObject } from "./GridPivotPanelBody.js";
|
|
4
4
|
type GridPivotPanelFieldProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
field: FieldTransferObject['field'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { FieldTransferObject } from
|
|
2
|
+
import type { FieldTransferObject } from "./GridPivotPanelBody.js";
|
|
3
3
|
interface GridPivotPanelFieldMenuProps {
|
|
4
4
|
field: string;
|
|
5
5
|
modelKey: FieldTransferObject['modelKey'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GridPremiumSlotsComponent } from
|
|
1
|
+
import type { GridPremiumSlotsComponent } from "../models/index.js";
|
|
2
2
|
export declare const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS: GridPremiumSlotsComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { DataGridPremiumProps } from "../models/dataGridPremiumProps.js";
|
|
4
|
-
export type { GridPremiumSlotsComponent as GridSlots } from
|
|
4
|
+
export type { GridPremiumSlotsComponent as GridSlots } from "../models/index.js";
|
|
5
5
|
interface DataGridPremiumComponent {
|
|
6
6
|
<R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
7
7
|
propTypes?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridRowSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, dimensionsStateInitializer, useGridDimensions, useGridStatePersistence, useGridRowSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, rowSelectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors, useGridRowPinning, useGridRowPinningPreProcessors, rowPinningStateInitializer, useGridColumnGrouping, columnGroupsStateInitializer, useGridLazyLoader, useGridLazyLoaderPreProcessors, useGridDataSourceLazyLoader, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
|
+
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridRowSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, dimensionsStateInitializer, useGridDimensions, useGridStatePersistence, useGridRowSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, rowSelectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors, useGridRowPinning, useGridRowPinningPreProcessors, rowPinningStateInitializer, useGridColumnGrouping, columnGroupsStateInitializer, useGridLazyLoader, useGridLazyLoaderPreProcessors, useGridDataSourceLazyLoader, useGridInfiniteLoadingIntersection, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import { useGridSelector } from '@mui/x-data-grid-pro';
|
|
5
5
|
import { useGridDataSourcePremium as useGridDataSource } from "../hooks/features/dataSource/useGridDataSourcePremium.js";
|
|
6
6
|
// Premium-only features
|
|
@@ -109,6 +109,7 @@ export const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
|
109
109
|
useGridInfiniteLoader(apiRef, props);
|
|
110
110
|
useGridLazyLoader(apiRef, props);
|
|
111
111
|
useGridDataSourceLazyLoader(apiRef, props);
|
|
112
|
+
useGridInfiniteLoadingIntersection(apiRef, props);
|
|
112
113
|
useGridColumnMenu(apiRef);
|
|
113
114
|
useGridCsvExport(apiRef, props);
|
|
114
115
|
useGridPrintExport(apiRef, props);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { getThemeProps } from '@mui/system';
|
|
4
5
|
import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
|
|
5
6
|
import { computeSlots } from '@mui/x-data-grid-pro/internals';
|
|
6
7
|
import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
|
|
@@ -38,12 +39,12 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
|
|
|
38
39
|
});
|
|
39
40
|
const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
|
|
40
41
|
export const useDataGridPremiumProps = inProps => {
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
useThemeProps({
|
|
42
|
+
const theme = useTheme();
|
|
43
|
+
const themedProps = React.useMemo(() => getThemeProps({
|
|
44
44
|
props: inProps,
|
|
45
|
+
theme,
|
|
45
46
|
name: 'MuiDataGrid'
|
|
46
|
-
});
|
|
47
|
+
}), [theme, inProps]);
|
|
47
48
|
const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
48
49
|
const slots = React.useMemo(() => computeSlots({
|
|
49
50
|
defaultSlots,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridPivotModel } from "../../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
3
|
-
import type { FieldTransferObject } from
|
|
3
|
+
import type { FieldTransferObject } from "./GridPivotPanelBody.js";
|
|
4
4
|
type GridPivotPanelFieldProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
field: FieldTransferObject['field'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { FieldTransferObject } from
|
|
2
|
+
import type { FieldTransferObject } from "./GridPivotPanelBody.js";
|
|
3
3
|
interface GridPivotPanelFieldMenuProps {
|
|
4
4
|
field: string;
|
|
5
5
|
modelKey: FieldTransferObject['modelKey'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GridPremiumSlotsComponent } from
|
|
1
|
+
import type { GridPremiumSlotsComponent } from "../models/index.js";
|
|
2
2
|
export declare const DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS: GridPremiumSlotsComponent;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { GridRowId } from '@mui/x-data-grid';
|
|
2
2
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
3
3
|
import { GridAggregationPosition } from "./gridAggregationInterfaces.js";
|
|
4
|
-
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces").GridAggregationState>;
|
|
4
|
+
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.js").GridAggregationState>;
|
|
5
5
|
/**
|
|
6
6
|
* Get the aggregation model, containing the aggregation function of each column.
|
|
7
7
|
* If a column is not in the model, it is not aggregated.
|
|
8
8
|
* @category Aggregation
|
|
9
9
|
*/
|
|
10
|
-
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationModel>;
|
|
10
|
+
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces.js").GridAggregationState, import("./gridAggregationInterfaces.js").GridAggregationModel>;
|
|
11
11
|
/**
|
|
12
12
|
* Get the aggregation results as a lookup.
|
|
13
13
|
* @category Aggregation
|
|
14
14
|
*/
|
|
15
|
-
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationLookup>;
|
|
15
|
+
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces.js").GridAggregationState, import("./gridAggregationInterfaces.js").GridAggregationLookup>;
|
|
16
16
|
export declare const gridCellAggregationResultSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, {
|
|
17
17
|
id: GridRowId;
|
|
18
18
|
field: string;
|
|
@@ -3,7 +3,7 @@ import { GridColDef, GridRowId } from '@mui/x-data-grid-pro';
|
|
|
3
3
|
import { GridColumnRawLookup, GridHydrateRowsValue } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import { GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationModel, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.js";
|
|
5
5
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
6
|
-
import type { DataGridPremiumProcessedProps } from
|
|
6
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
7
7
|
import { GridApiPremium, GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
8
8
|
export declare const GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = "auto-generated-group-footer-root";
|
|
9
9
|
export declare const getAggregationFooterRowIdFromGroupId: (groupId: GridRowId | null) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GridAggregationState, GridAggregationInitialState, GridAggregationInternalCache, GridAggregationApi, GridAggregationGetCellValueParams, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationParams, GridAggregationModel, GridAggregationLookup, GridAggregationPosition, GridAggregationCellMeta, GridAggregationHeaderMeta, GridAggregationRule, GridAggregationRules } from
|
|
1
|
+
export type { GridAggregationState, GridAggregationInitialState, GridAggregationInternalCache, GridAggregationApi, GridAggregationGetCellValueParams, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationParams, GridAggregationModel, GridAggregationLookup, GridAggregationPosition, GridAggregationCellMeta, GridAggregationHeaderMeta, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.js";
|
|
2
2
|
export { gridAggregationStateSelector, gridAggregationLookupSelector, gridAggregationModelSelector } from "./gridAggregationSelectors.js";
|
|
3
3
|
export * from "./gridAggregationFunctions.js";
|
|
4
4
|
export { GRID_AGGREGATION_ROOT_FOOTER_ROW_ID, getAggregationFooterRowIdFromGroupId } from "./gridAggregationUtils.js";
|
|
@@ -3,7 +3,7 @@ import { RefObject } from '@mui/x-internals/types';
|
|
|
3
3
|
import { GridColDef, GridFilterOperator } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { type GridBaseColDef } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
6
|
-
import type { GridAggregationRule } from
|
|
6
|
+
import type { GridAggregationRule } from "./gridAggregationInterfaces.js";
|
|
7
7
|
/**
|
|
8
8
|
* Add a wrapper around each wrappable property of the column to customize the behavior of the aggregation cells.
|
|
9
9
|
*/
|
|
@@ -55,7 +55,7 @@ export declare const unwrapColumnFromAggregation: (column: GridColDef) => GridBa
|
|
|
55
55
|
renderHeaderFilter?: (params: import("@mui/x-data-grid-pro").GridRenderHeaderFilterProps) => React.ReactNode;
|
|
56
56
|
aggregable?: boolean;
|
|
57
57
|
availableAggregationFunctions?: string[];
|
|
58
|
-
groupingValueGetter?: import("
|
|
59
|
-
pastedValueParser?: import("
|
|
58
|
+
groupingValueGetter?: import("../../../index.js").GridGroupingValueGetter<import("@mui/x-data-grid").GridValidRowModel> | undefined;
|
|
59
|
+
pastedValueParser?: import("../../../index.js").GridPastedValueParser<import("@mui/x-data-grid").GridValidRowModel, any, any> | undefined;
|
|
60
60
|
pivotable?: boolean;
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridStatePremium } from
|
|
1
|
+
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
2
|
import { Conversation } from "./gridAiAssistantInterfaces.js";
|
|
3
|
-
export declare const gridAiAssistantActiveConversationIndexSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces").GridAiAssistantState, number>;
|
|
4
|
-
export declare const gridAiAssistantConversationsSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces").GridAiAssistantState, Conversation[]>;
|
|
3
|
+
export declare const gridAiAssistantActiveConversationIndexSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces.js").GridAiAssistantState, number>;
|
|
4
|
+
export declare const gridAiAssistantConversationsSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces.js").GridAiAssistantState, Conversation[]>;
|
|
5
5
|
export declare const gridAiAssistantActiveConversationSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, number, Conversation | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { gridDefaultPromptResolver as unstable_gridDefaultPromptResolver } from "./api.js";
|
|
2
|
-
export type { PromptResponse, Conversation, PromptSuggestion } from
|
|
2
|
+
export type { PromptResponse, Conversation, PromptSuggestion } from "./gridAiAssistantInterfaces.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
-
export declare const gridCellSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridCellSelectionInterfaces").GridCellSelectionModel>;
|
|
2
|
+
export declare const gridCellSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridCellSelectionInterfaces.js").GridCellSelectionModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pagination" | "paginationMode" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId" | "onClipboardPasteStart" | "onClipboardPasteEnd" | "splitClipboardPastedText" | "disableClipboardPaste" | "onBeforeClipboardPasteStart">) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridColDef, GridRowId, GridValidRowModel, GridDataSource, GridGetRowsResponse, GridGetRowsParams, GridDataSourceApiBase, GridDataSourcePrivateApi } from '@mui/x-data-grid-pro';
|
|
2
|
-
import type { GridAggregationModel } from
|
|
2
|
+
import type { GridAggregationModel } from "../aggregation/gridAggregationInterfaces.js";
|
|
3
3
|
export interface GridGetRowsResponsePremium extends GridGetRowsResponse {
|
|
4
4
|
/**
|
|
5
5
|
* Row to be used for aggregation footer row.
|
|
@@ -5,7 +5,7 @@ import { GridStateColDef } from '@mui/x-data-grid/internals';
|
|
|
5
5
|
import { ColumnsStylesInterface, GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
6
6
|
import { GridPrivateApiPremium } from "../../../../models/gridApiPremium.js";
|
|
7
7
|
import { SerializedColumns, SerializedRow, ValueOptionsData } from "./utils.js";
|
|
8
|
-
export type { ExcelExportInitEvent } from
|
|
8
|
+
export type { ExcelExportInitEvent } from "./utils.js";
|
|
9
9
|
/**
|
|
10
10
|
* FIXME: This function mutates the colspan info, but colspan info assumes that the columns
|
|
11
11
|
* passed to it are always consistent. In this case, the exported columns may differ from the
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GridExcelExportOptions } from
|
|
1
|
+
import type { GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
2
2
|
export declare function setupExcelExportWebWorker(workerOptions?: Pick<GridExcelExportOptions, 'exceljsPostProcess' | 'exceljsPreProcess'>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Excel from 'exceljs';
|
|
2
2
|
import type { GridColumnGroupLookup } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { GridExcelExportOptions } from
|
|
3
|
+
import type { GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
4
4
|
export declare const getExcelJs: () => Promise<typeof Excel>;
|
|
5
5
|
export interface SerializedRow {
|
|
6
6
|
row: Record<string, undefined | number | boolean | string | Date>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { GridPivotingPrivateApiCommunity, GridPivotingStatePartial } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
export type GridPivotingPropsOverrides = {
|
|
5
5
|
rows: DataGridPremiumProcessedProps['rows'];
|
|
6
6
|
columns: DataGridPremiumProcessedProps['columns'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridStatePremium } from
|
|
2
|
-
export declare const gridPivotModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces").GridPivotingState, import("./gridPivotingInterfaces").GridPivotModel>;
|
|
3
|
-
export declare const gridPivotPropsOverridesSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces").GridPivotingState, import("./gridPivotingInterfaces").GridPivotingPropsOverrides | undefined>;
|
|
1
|
+
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
+
export declare const gridPivotModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces.js").GridPivotingState, import("./gridPivotingInterfaces.js").GridPivotModel>;
|
|
3
|
+
export declare const gridPivotPropsOverridesSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces.js").GridPivotingState, import("./gridPivotingInterfaces.js").GridPivotingPropsOverrides | undefined>;
|
|
4
4
|
export { gridPivotActiveSelector, gridPivotInitialColumnsSelector, gridPivotPanelOpenSelector } from '@mui/x-data-grid/internals';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridColDef, GridRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
4
|
-
import type { DataGridPremiumProcessedProps } from
|
|
4
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
6
6
|
export declare const pivotingStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'pivotModel' | 'pivotPanelOpen' | 'initialState' | 'disablePivoting' | 'getPivotDerivedColumns' | 'columns'>>;
|
|
7
7
|
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pivotActive" | "onPivotActiveChange" | "pivotModel" | "onPivotModelChange" | "pivotPanelOpen" | "onPivotPanelOpenChange" | "disablePivoting" | "getPivotDerivedColumns" | "pivotingColDef" | "aggregationFunctions">, originalColumnsProp: readonly GridColDef[], originalRowsProp: readonly GridRowModel[]) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GridColDef, GridRowModel, GridLocaleTextApi } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { RefObject } from '@mui/x-internals/types';
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
4
|
-
import type { GridApiPremium } from
|
|
5
|
-
import type { GridPivotingPropsOverrides, GridPivotModel } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
|
+
import type { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
|
+
import type { GridPivotingPropsOverrides, GridPivotModel } from "./gridPivotingInterfaces.js";
|
|
6
6
|
export declare const isPivotingAvailable: (props: Pick<DataGridPremiumProcessedProps, "disablePivoting">) => boolean;
|
|
7
7
|
export declare const defaultGetPivotDerivedColumns: DataGridPremiumProcessedProps['getPivotDerivedColumns'];
|
|
8
8
|
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps["columns"], getPivotDerivedColumns: DataGridPremiumProcessedProps["getPivotDerivedColumns"], getLocaleText: GridLocaleTextApi["getLocaleText"]) => Map<string, GridColDef>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
-
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces").GridRowGroupingState, import("./gridRowGroupingInterfaces").GridRowGroupingModel>;
|
|
2
|
+
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces.js").GridRowGroupingState, import("./gridRowGroupingInterfaces.js").GridRowGroupingModel>;
|
|
3
3
|
export declare const gridRowGroupingSanitizedModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("@mui/x-data-grid").GridColumnLookup, string[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
3
3
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
|
-
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "disableRowGrouping" | "
|
|
4
|
+
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "disableRowGrouping" | "rowGroupingColumnMode" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "dataSource">) => void;
|
|
@@ -8,4 +8,4 @@ export declare const rowGroupingStateInitializer: GridStateInitializer<Pick<Data
|
|
|
8
8
|
* @requires useGridRows (state, method) - can be after, async only
|
|
9
9
|
* @requires useGridParamsApi (method) - can be after, async only
|
|
10
10
|
*/
|
|
11
|
-
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "initialState" | "rowGroupingModel" | "onRowGroupingModelChange" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "
|
|
11
|
+
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "initialState" | "rowGroupingModel" | "onRowGroupingModelChange" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "rowGroupingColumnMode" | "disableRowGrouping" | "slotProps" | "slots" | "dataSource">) => void;
|
package/esm/index.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ export * from "./models/index.js";
|
|
|
16
16
|
export * from "./components/index.js";
|
|
17
17
|
export { GridColumnHeaders } from '@mui/x-data-grid-pro';
|
|
18
18
|
export type { GridColumnHeadersProps } from '@mui/x-data-grid-pro';
|
|
19
|
-
export type { DataGridPremiumProps, GridExperimentalPremiumFeatures } from
|
|
19
|
+
export type { DataGridPremiumProps, GridExperimentalPremiumFeatures } from "./models/dataGridPremiumProps.js";
|
|
20
20
|
export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
|
|
21
|
-
export type { GridApi, GridInitialState, GridState } from
|
|
21
|
+
export type { GridApi, GridInitialState, GridState } from "./typeOverloads/reexports.js";
|
|
22
22
|
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
23
|
-
export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from
|
|
23
|
+
export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from "./hooks/features/dataSource/models.js";
|
|
24
24
|
export { useGridPivoting as unstable_useGridPivoting } from "./hooks/features/pivoting/useGridPivoting.js";
|
|
25
|
-
export type { GridPivotModel } from
|
|
25
|
+
export type { GridPivotModel } from "./hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
26
26
|
export { IS_SPEECH_RECOGNITION_SUPPORTED } from "./utils/speechRecognition.js";
|
package/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridCallbackDetails, GridValidRowModel, GridGroupNode, GridEventListener, GridGetRowsError, GridUpdateRowError, type GridColDef, GridLocaleTextApi } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { GridExperimentalProFeatures, DataGridProPropsWithDefaultValue, DataGridProPropsWithoutDefaultValue, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithComplexDefaultValueBeforeProcessing, DataGridPremiumSharedPropsWithDefaultValue } from '@mui/x-data-grid-pro/internals';
|
|
4
|
-
import type { GridRowGroupingModel } from
|
|
5
|
-
import type { GridAggregationModel, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationPosition } from
|
|
4
|
+
import type { GridRowGroupingModel } from "../hooks/features/rowGrouping/index.js";
|
|
5
|
+
import type { GridAggregationModel, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationPosition } from "../hooks/features/aggregation/index.js";
|
|
6
6
|
import { GridPremiumSlotsComponent } from "./gridPremiumSlotsComponent.js";
|
|
7
7
|
import { GridInitialStatePremium } from "./gridStatePremium.js";
|
|
8
8
|
import { GridApiPremium } from "./gridApiPremium.js";
|
|
9
9
|
import { GridCellSelectionModel } from "../hooks/features/cellSelection/index.js";
|
|
10
|
-
import type { GridPivotingColDefOverrides, GridPivotModel } from
|
|
10
|
+
import type { GridPivotingColDefOverrides, GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
11
11
|
import { GridDataSourcePremium as GridDataSource, GridGetRowsParamsPremium as GridGetRowsParams } from "../hooks/features/dataSource/models.js";
|
|
12
12
|
import { Conversation, PromptResponse, PromptSuggestion } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
13
13
|
export interface GridExperimentalPremiumFeatures extends GridExperimentalProFeatures {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GridPrivateOnlyApiCommon } from '@mui/x-data-grid/internals';
|
|
2
2
|
import { GridApiCommon, GridColumnPinningApi, GridDetailPanelApi, GridDetailPanelPrivateApi, GridRowPinningApi, GridRowMultiSelectionApi, GridColumnReorderApi, GridRowProApi } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { GridInitialStatePremium, GridStatePremium } from "./gridStatePremium.js";
|
|
4
|
-
import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from
|
|
4
|
+
import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from "../hooks/index.js";
|
|
5
5
|
import { GridCellSelectionApi } from "../hooks/features/cellSelection/gridCellSelectionInterfaces.js";
|
|
6
|
-
import type { DataGridPremiumProcessedProps } from
|
|
7
|
-
import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from
|
|
8
|
-
import type { GridAggregationPrivateApi } from
|
|
9
|
-
import type { GridPivotingApi, GridPivotingPrivateApi } from
|
|
6
|
+
import type { DataGridPremiumProcessedProps } from "./dataGridPremiumProps.js";
|
|
7
|
+
import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from "../hooks/features/dataSource/models.js";
|
|
8
|
+
import type { GridAggregationPrivateApi } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
9
|
+
import type { GridPivotingApi, GridPivotingPrivateApi } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
10
10
|
import { GridAiAssistantApi } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
11
11
|
/**
|
|
12
12
|
* The api of Data Grid Premium.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridInitialState as GridInitialStatePro, GridState as GridStatePro } from '@mui/x-data-grid-pro';
|
|
2
|
-
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from
|
|
3
|
-
import type { GridPivotingInitialState, GridPivotingState } from
|
|
2
|
+
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from "../hooks/index.js";
|
|
3
|
+
import type { GridPivotingInitialState, GridPivotingState } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
4
4
|
import { GridAiAssistantInitialState, GridAiAssistantState } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
5
5
|
/**
|
|
6
6
|
* The state of Data Grid Premium.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GridExportDisplayOptions, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
3
|
-
import type { GridGroupingValueGetter, GridPastedValueParser } from
|
|
4
|
-
import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from
|
|
3
|
+
import type { GridGroupingValueGetter, GridPastedValueParser } from "../models/index.js";
|
|
4
|
+
import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from "../hooks/index.js";
|
|
5
5
|
import { GridRowGroupingInternalCache } from "../hooks/features/rowGrouping/gridRowGroupingInterfaces.js";
|
|
6
6
|
import { GridAggregationInternalCache } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
7
|
-
import type { GridExcelExportOptions } from
|
|
8
|
-
import type { GridPivotModel } from
|
|
7
|
+
import type { GridExcelExportOptions } from "../hooks/features/export/gridExcelExportInterface.js";
|
|
8
|
+
import type { GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
9
9
|
export interface GridControlledStateEventLookupPremium {
|
|
10
10
|
/**
|
|
11
11
|
* Fired when the aggregation model changes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridApiPremium } from
|
|
1
|
+
import type { GridApiPremium } from "../models/gridApiPremium.js";
|
|
2
2
|
import { GridInitialStatePremium, GridStatePremium } from "../models/gridStatePremium.js";
|
|
3
3
|
export { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
4
4
|
export { useGridApiRef } from "../hooks/utils/useGridApiRef.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { GridRowId } from '@mui/x-data-grid';
|
|
2
2
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
3
3
|
import { GridAggregationPosition } from "./gridAggregationInterfaces.js";
|
|
4
|
-
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces").GridAggregationState>;
|
|
4
|
+
export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.js").GridAggregationState>;
|
|
5
5
|
/**
|
|
6
6
|
* Get the aggregation model, containing the aggregation function of each column.
|
|
7
7
|
* If a column is not in the model, it is not aggregated.
|
|
8
8
|
* @category Aggregation
|
|
9
9
|
*/
|
|
10
|
-
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationModel>;
|
|
10
|
+
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces.js").GridAggregationState, import("./gridAggregationInterfaces.js").GridAggregationModel>;
|
|
11
11
|
/**
|
|
12
12
|
* Get the aggregation results as a lookup.
|
|
13
13
|
* @category Aggregation
|
|
14
14
|
*/
|
|
15
|
-
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationLookup>;
|
|
15
|
+
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces.js").GridAggregationState, import("./gridAggregationInterfaces.js").GridAggregationLookup>;
|
|
16
16
|
export declare const gridCellAggregationResultSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, {
|
|
17
17
|
id: GridRowId;
|
|
18
18
|
field: string;
|
|
@@ -3,7 +3,7 @@ import { GridColDef, GridRowId } from '@mui/x-data-grid-pro';
|
|
|
3
3
|
import { GridColumnRawLookup, GridHydrateRowsValue } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import { GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationModel, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.js";
|
|
5
5
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
6
|
-
import type { DataGridPremiumProcessedProps } from
|
|
6
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
7
7
|
import { GridApiPremium, GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
8
8
|
export declare const GRID_AGGREGATION_ROOT_FOOTER_ROW_ID = "auto-generated-group-footer-root";
|
|
9
9
|
export declare const getAggregationFooterRowIdFromGroupId: (groupId: GridRowId | null) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GridAggregationState, GridAggregationInitialState, GridAggregationInternalCache, GridAggregationApi, GridAggregationGetCellValueParams, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationParams, GridAggregationModel, GridAggregationLookup, GridAggregationPosition, GridAggregationCellMeta, GridAggregationHeaderMeta, GridAggregationRule, GridAggregationRules } from
|
|
1
|
+
export type { GridAggregationState, GridAggregationInitialState, GridAggregationInternalCache, GridAggregationApi, GridAggregationGetCellValueParams, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationParams, GridAggregationModel, GridAggregationLookup, GridAggregationPosition, GridAggregationCellMeta, GridAggregationHeaderMeta, GridAggregationRule, GridAggregationRules } from "./gridAggregationInterfaces.js";
|
|
2
2
|
export { gridAggregationStateSelector, gridAggregationLookupSelector, gridAggregationModelSelector } from "./gridAggregationSelectors.js";
|
|
3
3
|
export * from "./gridAggregationFunctions.js";
|
|
4
4
|
export { GRID_AGGREGATION_ROOT_FOOTER_ROW_ID, getAggregationFooterRowIdFromGroupId } from "./gridAggregationUtils.js";
|
|
@@ -3,7 +3,7 @@ import { RefObject } from '@mui/x-internals/types';
|
|
|
3
3
|
import { GridColDef, GridFilterOperator } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { type GridBaseColDef } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
6
|
-
import type { GridAggregationRule } from
|
|
6
|
+
import type { GridAggregationRule } from "./gridAggregationInterfaces.js";
|
|
7
7
|
/**
|
|
8
8
|
* Add a wrapper around each wrappable property of the column to customize the behavior of the aggregation cells.
|
|
9
9
|
*/
|
|
@@ -55,7 +55,7 @@ export declare const unwrapColumnFromAggregation: (column: GridColDef) => GridBa
|
|
|
55
55
|
renderHeaderFilter?: (params: import("@mui/x-data-grid-pro").GridRenderHeaderFilterProps) => React.ReactNode;
|
|
56
56
|
aggregable?: boolean;
|
|
57
57
|
availableAggregationFunctions?: string[];
|
|
58
|
-
groupingValueGetter?: import("
|
|
59
|
-
pastedValueParser?: import("
|
|
58
|
+
groupingValueGetter?: import("../../../index.js").GridGroupingValueGetter<import("@mui/x-data-grid").GridValidRowModel> | undefined;
|
|
59
|
+
pastedValueParser?: import("../../../index.js").GridPastedValueParser<import("@mui/x-data-grid").GridValidRowModel, any, any> | undefined;
|
|
60
60
|
pivotable?: boolean;
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridStatePremium } from
|
|
1
|
+
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
2
|
import { Conversation } from "./gridAiAssistantInterfaces.js";
|
|
3
|
-
export declare const gridAiAssistantActiveConversationIndexSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces").GridAiAssistantState, number>;
|
|
4
|
-
export declare const gridAiAssistantConversationsSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces").GridAiAssistantState, Conversation[]>;
|
|
3
|
+
export declare const gridAiAssistantActiveConversationIndexSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces.js").GridAiAssistantState, number>;
|
|
4
|
+
export declare const gridAiAssistantConversationsSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAiAssistantInterfaces.js").GridAiAssistantState, Conversation[]>;
|
|
5
5
|
export declare const gridAiAssistantActiveConversationSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, number, Conversation | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { gridDefaultPromptResolver as unstable_gridDefaultPromptResolver } from "./api.js";
|
|
2
|
-
export type { PromptResponse, Conversation, PromptSuggestion } from
|
|
2
|
+
export type { PromptResponse, Conversation, PromptSuggestion } from "./gridAiAssistantInterfaces.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
-
export declare const gridCellSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridCellSelectionInterfaces").GridCellSelectionModel>;
|
|
2
|
+
export declare const gridCellSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridCellSelectionInterfaces.js").GridCellSelectionModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pagination" | "paginationMode" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId" | "onClipboardPasteStart" | "onClipboardPasteEnd" | "splitClipboardPastedText" | "disableClipboardPaste" | "onBeforeClipboardPasteStart">) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridColDef, GridRowId, GridValidRowModel, GridDataSource, GridGetRowsResponse, GridGetRowsParams, GridDataSourceApiBase, GridDataSourcePrivateApi } from '@mui/x-data-grid-pro';
|
|
2
|
-
import type { GridAggregationModel } from
|
|
2
|
+
import type { GridAggregationModel } from "../aggregation/gridAggregationInterfaces.js";
|
|
3
3
|
export interface GridGetRowsResponsePremium extends GridGetRowsResponse {
|
|
4
4
|
/**
|
|
5
5
|
* Row to be used for aggregation footer row.
|
|
@@ -5,7 +5,7 @@ import { GridStateColDef } from '@mui/x-data-grid/internals';
|
|
|
5
5
|
import { ColumnsStylesInterface, GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
6
6
|
import { GridPrivateApiPremium } from "../../../../models/gridApiPremium.js";
|
|
7
7
|
import { SerializedColumns, SerializedRow, ValueOptionsData } from "./utils.js";
|
|
8
|
-
export type { ExcelExportInitEvent } from
|
|
8
|
+
export type { ExcelExportInitEvent } from "./utils.js";
|
|
9
9
|
/**
|
|
10
10
|
* FIXME: This function mutates the colspan info, but colspan info assumes that the columns
|
|
11
11
|
* passed to it are always consistent. In this case, the exported columns may differ from the
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GridExcelExportOptions } from
|
|
1
|
+
import type { GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
2
2
|
export declare function setupExcelExportWebWorker(workerOptions?: Pick<GridExcelExportOptions, 'exceljsPostProcess' | 'exceljsPreProcess'>): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Excel from 'exceljs';
|
|
2
2
|
import type { GridColumnGroupLookup } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { GridExcelExportOptions } from
|
|
3
|
+
import type { GridExcelExportOptions } from "../gridExcelExportInterface.js";
|
|
4
4
|
export declare const getExcelJs: () => Promise<typeof Excel>;
|
|
5
5
|
export interface SerializedRow {
|
|
6
6
|
row: Record<string, undefined | number | boolean | string | Date>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { GridPivotingPrivateApiCommunity, GridPivotingStatePartial } from '@mui/x-data-grid/internals';
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
export type GridPivotingPropsOverrides = {
|
|
5
5
|
rows: DataGridPremiumProcessedProps['rows'];
|
|
6
6
|
columns: DataGridPremiumProcessedProps['columns'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridStatePremium } from
|
|
2
|
-
export declare const gridPivotModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces").GridPivotingState, import("./gridPivotingInterfaces").GridPivotModel>;
|
|
3
|
-
export declare const gridPivotPropsOverridesSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces").GridPivotingState, import("./gridPivotingInterfaces").GridPivotingPropsOverrides | undefined>;
|
|
1
|
+
import type { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
+
export declare const gridPivotModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces.js").GridPivotingState, import("./gridPivotingInterfaces.js").GridPivotModel>;
|
|
3
|
+
export declare const gridPivotPropsOverridesSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridPivotingInterfaces.js").GridPivotingState, import("./gridPivotingInterfaces.js").GridPivotingPropsOverrides | undefined>;
|
|
4
4
|
export { gridPivotActiveSelector, gridPivotInitialColumnsSelector, gridPivotPanelOpenSelector } from '@mui/x-data-grid/internals';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridColDef, GridRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
4
|
-
import type { DataGridPremiumProcessedProps } from
|
|
4
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
6
6
|
export declare const pivotingStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'pivotModel' | 'pivotPanelOpen' | 'initialState' | 'disablePivoting' | 'getPivotDerivedColumns' | 'columns'>>;
|
|
7
7
|
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pivotActive" | "onPivotActiveChange" | "pivotModel" | "onPivotModelChange" | "pivotPanelOpen" | "onPivotPanelOpenChange" | "disablePivoting" | "getPivotDerivedColumns" | "pivotingColDef" | "aggregationFunctions">, originalColumnsProp: readonly GridColDef[], originalRowsProp: readonly GridRowModel[]) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GridColDef, GridRowModel, GridLocaleTextApi } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { RefObject } from '@mui/x-internals/types';
|
|
3
|
-
import type { DataGridPremiumProcessedProps } from
|
|
4
|
-
import type { GridApiPremium } from
|
|
5
|
-
import type { GridPivotingPropsOverrides, GridPivotModel } from
|
|
3
|
+
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
|
+
import type { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
|
+
import type { GridPivotingPropsOverrides, GridPivotModel } from "./gridPivotingInterfaces.js";
|
|
6
6
|
export declare const isPivotingAvailable: (props: Pick<DataGridPremiumProcessedProps, "disablePivoting">) => boolean;
|
|
7
7
|
export declare const defaultGetPivotDerivedColumns: DataGridPremiumProcessedProps['getPivotDerivedColumns'];
|
|
8
8
|
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps["columns"], getPivotDerivedColumns: DataGridPremiumProcessedProps["getPivotDerivedColumns"], getLocaleText: GridLocaleTextApi["getLocaleText"]) => Map<string, GridColDef>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridStatePremium } from "../../../models/gridStatePremium.js";
|
|
2
|
-
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces").GridRowGroupingState, import("./gridRowGroupingInterfaces").GridRowGroupingModel>;
|
|
2
|
+
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces.js").GridRowGroupingState, import("./gridRowGroupingInterfaces.js").GridRowGroupingModel>;
|
|
3
3
|
export declare const gridRowGroupingSanitizedModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("@mui/x-data-grid").GridColumnLookup, string[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
3
3
|
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
|
-
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "disableRowGrouping" | "
|
|
4
|
+
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "disableRowGrouping" | "rowGroupingColumnMode" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "dataSource">) => void;
|
|
@@ -8,4 +8,4 @@ export declare const rowGroupingStateInitializer: GridStateInitializer<Pick<Data
|
|
|
8
8
|
* @requires useGridRows (state, method) - can be after, async only
|
|
9
9
|
* @requires useGridParamsApi (method) - can be after, async only
|
|
10
10
|
*/
|
|
11
|
-
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "initialState" | "rowGroupingModel" | "onRowGroupingModelChange" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "
|
|
11
|
+
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "initialState" | "rowGroupingModel" | "onRowGroupingModelChange" | "defaultGroupingExpansionDepth" | "isGroupExpandedByDefault" | "rowGroupingColumnMode" | "disableRowGrouping" | "slotProps" | "slots" | "dataSource">) => void;
|
package/index.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ export * from "./models/index.js";
|
|
|
16
16
|
export * from "./components/index.js";
|
|
17
17
|
export { GridColumnHeaders } from '@mui/x-data-grid-pro';
|
|
18
18
|
export type { GridColumnHeadersProps } from '@mui/x-data-grid-pro';
|
|
19
|
-
export type { DataGridPremiumProps, GridExperimentalPremiumFeatures } from
|
|
19
|
+
export type { DataGridPremiumProps, GridExperimentalPremiumFeatures } from "./models/dataGridPremiumProps.js";
|
|
20
20
|
export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
|
|
21
|
-
export type { GridApi, GridInitialState, GridState } from
|
|
21
|
+
export type { GridApi, GridInitialState, GridState } from "./typeOverloads/reexports.js";
|
|
22
22
|
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
23
|
-
export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from
|
|
23
|
+
export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from "./hooks/features/dataSource/models.js";
|
|
24
24
|
export { useGridPivoting as unstable_useGridPivoting } from "./hooks/features/pivoting/useGridPivoting.js";
|
|
25
|
-
export type { GridPivotModel } from
|
|
25
|
+
export type { GridPivotModel } from "./hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
26
26
|
export { IS_SPEECH_RECOGNITION_SUPPORTED } from "./utils/speechRecognition.js";
|
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridCallbackDetails, GridValidRowModel, GridGroupNode, GridEventListener, GridGetRowsError, GridUpdateRowError, type GridColDef, GridLocaleTextApi } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { GridExperimentalProFeatures, DataGridProPropsWithDefaultValue, DataGridProPropsWithoutDefaultValue, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithComplexDefaultValueBeforeProcessing, DataGridPremiumSharedPropsWithDefaultValue } from '@mui/x-data-grid-pro/internals';
|
|
4
|
-
import type { GridRowGroupingModel } from
|
|
5
|
-
import type { GridAggregationModel, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationPosition } from
|
|
4
|
+
import type { GridRowGroupingModel } from "../hooks/features/rowGrouping/index.js";
|
|
5
|
+
import type { GridAggregationModel, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationPosition } from "../hooks/features/aggregation/index.js";
|
|
6
6
|
import { GridPremiumSlotsComponent } from "./gridPremiumSlotsComponent.js";
|
|
7
7
|
import { GridInitialStatePremium } from "./gridStatePremium.js";
|
|
8
8
|
import { GridApiPremium } from "./gridApiPremium.js";
|
|
9
9
|
import { GridCellSelectionModel } from "../hooks/features/cellSelection/index.js";
|
|
10
|
-
import type { GridPivotingColDefOverrides, GridPivotModel } from
|
|
10
|
+
import type { GridPivotingColDefOverrides, GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
11
11
|
import { GridDataSourcePremium as GridDataSource, GridGetRowsParamsPremium as GridGetRowsParams } from "../hooks/features/dataSource/models.js";
|
|
12
12
|
import { Conversation, PromptResponse, PromptSuggestion } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
13
13
|
export interface GridExperimentalPremiumFeatures extends GridExperimentalProFeatures {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GridPrivateOnlyApiCommon } from '@mui/x-data-grid/internals';
|
|
2
2
|
import { GridApiCommon, GridColumnPinningApi, GridDetailPanelApi, GridDetailPanelPrivateApi, GridRowPinningApi, GridRowMultiSelectionApi, GridColumnReorderApi, GridRowProApi } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { GridInitialStatePremium, GridStatePremium } from "./gridStatePremium.js";
|
|
4
|
-
import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from
|
|
4
|
+
import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from "../hooks/index.js";
|
|
5
5
|
import { GridCellSelectionApi } from "../hooks/features/cellSelection/gridCellSelectionInterfaces.js";
|
|
6
|
-
import type { DataGridPremiumProcessedProps } from
|
|
7
|
-
import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from
|
|
8
|
-
import type { GridAggregationPrivateApi } from
|
|
9
|
-
import type { GridPivotingApi, GridPivotingPrivateApi } from
|
|
6
|
+
import type { DataGridPremiumProcessedProps } from "./dataGridPremiumProps.js";
|
|
7
|
+
import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from "../hooks/features/dataSource/models.js";
|
|
8
|
+
import type { GridAggregationPrivateApi } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
9
|
+
import type { GridPivotingApi, GridPivotingPrivateApi } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
10
10
|
import { GridAiAssistantApi } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
11
11
|
/**
|
|
12
12
|
* The api of Data Grid Premium.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridInitialState as GridInitialStatePro, GridState as GridStatePro } from '@mui/x-data-grid-pro';
|
|
2
|
-
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from
|
|
3
|
-
import type { GridPivotingInitialState, GridPivotingState } from
|
|
2
|
+
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from "../hooks/index.js";
|
|
3
|
+
import type { GridPivotingInitialState, GridPivotingState } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
4
4
|
import { GridAiAssistantInitialState, GridAiAssistantState } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
5
5
|
/**
|
|
6
6
|
* The state of Data Grid Premium.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "The Premium plan edition of the Data Grid Components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"exceljs": "^4.4.0",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"reselect": "^5.1.1",
|
|
45
|
-
"@mui/x-
|
|
46
|
-
"@mui/x-data-grid": "8.
|
|
47
|
-
"@mui/x-
|
|
48
|
-
"@mui/x-
|
|
45
|
+
"@mui/x-data-grid-pro": "8.2.0",
|
|
46
|
+
"@mui/x-data-grid": "8.2.0",
|
|
47
|
+
"@mui/x-internals": "8.2.0",
|
|
48
|
+
"@mui/x-license": "8.2.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GridExportDisplayOptions, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
3
|
-
import type { GridGroupingValueGetter, GridPastedValueParser } from
|
|
4
|
-
import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from
|
|
3
|
+
import type { GridGroupingValueGetter, GridPastedValueParser } from "../models/index.js";
|
|
4
|
+
import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from "../hooks/index.js";
|
|
5
5
|
import { GridRowGroupingInternalCache } from "../hooks/features/rowGrouping/gridRowGroupingInterfaces.js";
|
|
6
6
|
import { GridAggregationInternalCache } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
7
|
-
import type { GridExcelExportOptions } from
|
|
8
|
-
import type { GridPivotModel } from
|
|
7
|
+
import type { GridExcelExportOptions } from "../hooks/features/export/gridExcelExportInterface.js";
|
|
8
|
+
import type { GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
9
9
|
export interface GridControlledStateEventLookupPremium {
|
|
10
10
|
/**
|
|
11
11
|
* Fired when the aggregation model changes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridApiPremium } from
|
|
1
|
+
import type { GridApiPremium } from "../models/gridApiPremium.js";
|
|
2
2
|
import { GridInitialStatePremium, GridStatePremium } from "../models/gridStatePremium.js";
|
|
3
3
|
export { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
4
4
|
export { useGridApiRef } from "../hooks/utils/useGridApiRef.js";
|