@mui/x-data-grid-premium 8.4.0 → 8.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +215 -0
- package/DataGridPremium/DataGridPremium.js +9 -1
- package/DataGridPremium/useDataGridPremiumComponent.js +9 -5
- package/components/GridAggregationRowOverlay.js +2 -1
- package/components/GridColumnMenuAggregationItem.js +2 -2
- package/components/GridDataSourceGroupingCriteriaCell.js +2 -2
- package/components/GridEmptyPivotOverlay.js +1 -0
- package/components/GridPremiumColumnMenu.js +2 -1
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +1 -1
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +3 -1
- package/components/aiAssistantPanel/GridAiAssistantPanel.js +2 -2
- package/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +2 -2
- package/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +3 -2
- package/components/collapsible/Collapsible.js +2 -2
- package/components/collapsible/CollapsiblePanel.js +2 -2
- package/components/collapsible/CollapsibleTrigger.js +2 -2
- package/components/export/ExportExcel.js +3 -2
- package/components/pivotPanel/GridPivotPanelHeader.js +2 -2
- package/components/pivotPanel/GridPivotPanelSearch.js +2 -2
- package/components/pivotPanel/PivotPanelTrigger.d.ts +1 -1
- package/components/pivotPanel/PivotPanelTrigger.js +3 -2
- package/components/prompt/GridPrompt.js +4 -3
- package/components/promptField/PromptField.js +3 -2
- package/components/promptField/PromptFieldControl.js +3 -2
- package/components/promptField/PromptFieldRecord.js +3 -2
- package/components/promptField/PromptFieldSend.js +3 -2
- package/components/resizablePanel/ResizablePanel.js +2 -2
- package/components/resizablePanel/ResizablePanelHandle.js +2 -2
- package/components/sidebar/Sidebar.js +2 -2
- package/components/sidebar/SidebarHeader.js +2 -2
- package/esm/DataGridPremium/DataGridPremium.js +9 -1
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +9 -5
- package/esm/components/GridAggregationRowOverlay.js +1 -0
- package/esm/components/GridColumnMenuAggregationItem.js +1 -1
- package/esm/components/GridDataSourceGroupingCriteriaCell.js +1 -1
- package/esm/components/GridEmptyPivotOverlay.js +1 -0
- package/esm/components/GridPremiumColumnMenu.js +2 -1
- package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +1 -1
- package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.js +4 -2
- package/esm/components/aiAssistantPanel/GridAiAssistantPanel.js +1 -1
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +1 -1
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +1 -1
- package/esm/components/collapsible/Collapsible.js +1 -1
- package/esm/components/collapsible/CollapsiblePanel.js +1 -1
- package/esm/components/collapsible/CollapsibleTrigger.js +1 -1
- package/esm/components/export/ExportExcel.js +3 -2
- package/esm/components/pivotPanel/GridPivotPanelHeader.js +1 -1
- package/esm/components/pivotPanel/GridPivotPanelSearch.js +1 -1
- package/esm/components/pivotPanel/PivotPanelTrigger.d.ts +1 -1
- package/esm/components/pivotPanel/PivotPanelTrigger.js +3 -2
- package/esm/components/prompt/GridPrompt.js +2 -1
- package/esm/components/promptField/PromptField.js +3 -2
- package/esm/components/promptField/PromptFieldControl.js +3 -2
- package/esm/components/promptField/PromptFieldRecord.js +3 -2
- package/esm/components/promptField/PromptFieldSend.js +3 -2
- package/esm/components/resizablePanel/ResizablePanel.js +1 -1
- package/esm/components/resizablePanel/ResizablePanelHandle.js +1 -1
- package/esm/components/sidebar/Sidebar.js +1 -1
- package/esm/components/sidebar/SidebarHeader.js +1 -1
- package/esm/hooks/features/aggregation/gridAggregationUtils.js +1 -1
- package/esm/hooks/features/clipboard/useGridClipboardImport.js +1 -1
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -4
- package/esm/index.js +1 -1
- package/esm/models/index.d.ts +1 -0
- package/esm/models/index.js +1 -0
- package/hooks/features/aggregation/gridAggregationUtils.js +2 -2
- package/hooks/features/clipboard/useGridClipboardImport.js +2 -2
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -3
- package/index.js +1 -1
- package/models/index.d.ts +1 -0
- package/models/index.js +11 -0
- package/package.json +7 -7
|
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var
|
|
13
|
+
var _useComponentRenderer = require("@mui/x-internals/useComponentRenderer");
|
|
14
14
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
15
15
|
var _PromptFieldContext = require("./PromptFieldContext");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -59,7 +59,7 @@ const PromptField = exports.PromptField = (0, _forwardRef.forwardRef)(function P
|
|
|
59
59
|
onSubmit: handleOnSubmit,
|
|
60
60
|
onError: onRecordError
|
|
61
61
|
}), [state, lang, onRecordError, handleOnSubmit]);
|
|
62
|
-
const element = (0,
|
|
62
|
+
const element = (0, _useComponentRenderer.useComponentRenderer)('div', render, (0, _extends2.default)({
|
|
63
63
|
className: resolvedClassName
|
|
64
64
|
}, other, {
|
|
65
65
|
ref
|
|
@@ -69,6 +69,7 @@ const PromptField = exports.PromptField = (0, _forwardRef.forwardRef)(function P
|
|
|
69
69
|
children: element
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
+
if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
|
|
72
73
|
process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
73
74
|
// ----------------------------- Warning --------------------------------
|
|
74
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -11,7 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
14
|
-
var
|
|
14
|
+
var _useComponentRenderer = require("@mui/x-internals/useComponentRenderer");
|
|
15
15
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
16
16
|
var _PromptFieldContext = require("./PromptFieldContext");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -53,7 +53,7 @@ const PromptFieldControl = exports.PromptFieldControl = (0, _forwardRef.forwardR
|
|
|
53
53
|
}
|
|
54
54
|
onKeyDown?.(event);
|
|
55
55
|
};
|
|
56
|
-
const element = (0,
|
|
56
|
+
const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseTextField, render, (0, _extends2.default)({}, rootProps.slotProps?.baseTextField, {
|
|
57
57
|
value: state.value,
|
|
58
58
|
className: resolvedClassName
|
|
59
59
|
}, other, {
|
|
@@ -65,6 +65,7 @@ const PromptFieldControl = exports.PromptFieldControl = (0, _forwardRef.forwardR
|
|
|
65
65
|
children: element
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
+
if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
|
|
68
69
|
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
69
70
|
// ----------------------------- Warning --------------------------------
|
|
70
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -13,7 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _useTimeout = require("@mui/utils/useTimeout");
|
|
14
14
|
var _useLazyRef = _interopRequireDefault(require("@mui/utils/useLazyRef"));
|
|
15
15
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
16
|
-
var
|
|
16
|
+
var _useComponentRenderer = require("@mui/x-internals/useComponentRenderer");
|
|
17
17
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
18
18
|
var _PromptFieldContext = require("./PromptFieldContext");
|
|
19
19
|
var _speechRecognition = require("../../utils/speechRecognition");
|
|
@@ -120,7 +120,7 @@ const PromptFieldRecord = exports.PromptFieldRecord = (0, _forwardRef.forwardRef
|
|
|
120
120
|
recognition.abort();
|
|
121
121
|
onClick?.(event);
|
|
122
122
|
};
|
|
123
|
-
const element = (0,
|
|
123
|
+
const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseIconButton, render, (0, _extends2.default)({}, rootProps.slotProps?.baseIconButton, {
|
|
124
124
|
className: resolvedClassName,
|
|
125
125
|
disabled: state.disabled
|
|
126
126
|
}, other, {
|
|
@@ -131,6 +131,7 @@ const PromptFieldRecord = exports.PromptFieldRecord = (0, _forwardRef.forwardRef
|
|
|
131
131
|
children: element
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
|
+
if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
|
|
134
135
|
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
|
|
135
136
|
// ----------------------------- Warning --------------------------------
|
|
136
137
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -11,7 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
14
|
-
var
|
|
14
|
+
var _useComponentRenderer = require("@mui/x-internals/useComponentRenderer");
|
|
15
15
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
16
16
|
var _PromptFieldContext = require("./PromptFieldContext");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -45,7 +45,7 @@ const PromptFieldSend = exports.PromptFieldSend = (0, _forwardRef.forwardRef)(fu
|
|
|
45
45
|
onSubmit(state.value);
|
|
46
46
|
onClick?.(event);
|
|
47
47
|
};
|
|
48
|
-
const element = (0,
|
|
48
|
+
const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseIconButton, render, (0, _extends2.default)({}, rootProps.slotProps?.baseIconButton, {
|
|
49
49
|
className: resolvedClassName,
|
|
50
50
|
disabled: state.disabled || state.recording || !state.value.trim()
|
|
51
51
|
}, other, {
|
|
@@ -56,6 +56,7 @@ const PromptFieldSend = exports.PromptFieldSend = (0, _forwardRef.forwardRef)(fu
|
|
|
56
56
|
children: element
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
+
if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
|
|
59
60
|
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
|
|
60
61
|
// ----------------------------- Warning --------------------------------
|
|
61
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _system = require("@mui/system");
|
|
14
14
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
15
|
-
var
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
16
|
var _ResizablePanelContext = require("./ResizablePanelContext");
|
|
17
17
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,7 +24,7 @@ const useUtilityClasses = ownerState => {
|
|
|
24
24
|
const slots = {
|
|
25
25
|
root: ['resizablePanel']
|
|
26
26
|
};
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, classes);
|
|
28
28
|
};
|
|
29
29
|
const ResizablePanelRoot = (0, _system.styled)('div', {
|
|
30
30
|
name: 'MuiDataGrid',
|
|
@@ -11,7 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _system = require("@mui/system");
|
|
13
13
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
14
|
-
var
|
|
14
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
var _useResize = require("../../hooks/utils/useResize");
|
|
@@ -27,7 +27,7 @@ const useUtilityClasses = ownerState => {
|
|
|
27
27
|
const slots = {
|
|
28
28
|
root: ['resizablePanelHandle', `resizablePanelHandle--${direction}`]
|
|
29
29
|
};
|
|
30
|
-
return (0,
|
|
30
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, classes);
|
|
31
31
|
};
|
|
32
32
|
const ResizablePanelHandleRoot = (0, _system.styled)('div', {
|
|
33
33
|
name: 'MuiDataGrid',
|
|
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _system = require("@mui/system");
|
|
14
14
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
15
|
-
var
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
16
|
var _resizablePanel = require("../resizablePanel");
|
|
17
17
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,7 +24,7 @@ const useUtilityClasses = ownerState => {
|
|
|
24
24
|
const slots = {
|
|
25
25
|
root: ['sidebar']
|
|
26
26
|
};
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, classes);
|
|
28
28
|
};
|
|
29
29
|
const SidebarRoot = (0, _system.styled)(_resizablePanel.ResizablePanel, {
|
|
30
30
|
name: 'MuiDataGrid',
|
|
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _system = require("@mui/system");
|
|
13
13
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
14
14
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
15
|
-
var
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,7 +24,7 @@ const useUtilityClasses = ownerState => {
|
|
|
24
24
|
const slots = {
|
|
25
25
|
root: ['sidebarHeader']
|
|
26
26
|
};
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, classes);
|
|
28
28
|
};
|
|
29
29
|
const SidebarHeaderRoot = (0, _system.styled)('div', {
|
|
30
30
|
name: 'MuiDataGrid',
|
|
@@ -33,7 +33,7 @@ const configuration = {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const releaseInfo = "
|
|
36
|
+
const releaseInfo = "MTc0OTA3MDgwMDAwMA==";
|
|
37
37
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
38
38
|
packageName: "x-data-grid-premium",
|
|
39
39
|
releaseInfo: releaseInfo
|
|
@@ -69,6 +69,7 @@ const DataGridPremiumRaw = forwardRef(function DataGridPremium(inProps, ref) {
|
|
|
69
69
|
}))
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
+
if (process.env.NODE_ENV !== "production") DataGridPremiumRaw.displayName = "DataGridPremiumRaw";
|
|
72
73
|
process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
73
74
|
// ----------------------------- Warning --------------------------------
|
|
74
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -640,6 +641,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
640
641
|
* @default "error" ("warn" in dev mode)
|
|
641
642
|
*/
|
|
642
643
|
logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),
|
|
644
|
+
/**
|
|
645
|
+
* If set to "always", the multi-sorting is applied without modifier key.
|
|
646
|
+
* Otherwise, the modifier key is required for multi-sorting to be applied.
|
|
647
|
+
* @see See https://mui.com/x/react-data-grid/sorting/#multi-sorting
|
|
648
|
+
* @default "withModifierKey"
|
|
649
|
+
*/
|
|
650
|
+
multipleColumnsSortingMode: PropTypes.oneOf(['always', 'withModifierKey']),
|
|
643
651
|
/**
|
|
644
652
|
* Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
|
|
645
653
|
*/
|
|
@@ -27,19 +27,23 @@ export const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Register all pre-processors called during state initialization here.
|
|
30
|
+
* Some pre-processors are changing the same part of the state (like the order of the columns).
|
|
31
|
+
* Order them in descending order of priority.
|
|
32
|
+
* For example, left pinned columns should always render first from the left, so the `hydrateColumns` pre-processor from `useGridColumnPinningPreProcessors` should be called last (after all other `hydrateColumns` pre-processors).
|
|
33
|
+
* Similarly, the `hydrateColumns` pre-processor from `useGridRowSelectionPreProcessors` should be called after `useGridRowGroupingPreProcessors` because the selection checkboxes should appear before the grouping columns.
|
|
34
|
+
* Desired autogenerated columns order is:
|
|
35
|
+
* left pinned columns -> row reordering column -> checkbox column -> tree data / row grouping column -> master detail column -> rest of the columns
|
|
30
36
|
*/
|
|
31
|
-
|
|
32
|
-
useGridRowReorderPreProcessors(apiRef, props);
|
|
37
|
+
useGridDetailPanelPreProcessors(apiRef, props);
|
|
33
38
|
useGridRowGroupingPreProcessors(apiRef, props);
|
|
34
39
|
useGridDataSourceRowGroupingPreProcessors(apiRef, props);
|
|
35
40
|
useGridTreeDataPreProcessors(apiRef, props);
|
|
36
41
|
useGridDataSourceTreeDataPreProcessors(apiRef, props);
|
|
42
|
+
useGridRowSelectionPreProcessors(apiRef, props);
|
|
37
43
|
useGridLazyLoaderPreProcessors(apiRef, props);
|
|
38
44
|
useGridRowPinningPreProcessors(apiRef);
|
|
39
45
|
useGridAggregationPreProcessors(apiRef, props);
|
|
40
|
-
|
|
41
|
-
// The column pinning `hydrateColumns` pre-processor must be after every other `hydrateColumns` pre-processors
|
|
42
|
-
// Because it changes the order of the columns.
|
|
46
|
+
useGridRowReorderPreProcessors(apiRef, props);
|
|
43
47
|
useGridColumnPinningPreProcessors(apiRef, props);
|
|
44
48
|
useGridRowsPreProcessors(apiRef);
|
|
45
49
|
|
|
@@ -5,7 +5,7 @@ const _excluded = ["native"];
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { useGridSelector } from '@mui/x-data-grid-pro';
|
|
8
|
-
import
|
|
8
|
+
import useId from '@mui/utils/useId';
|
|
9
9
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
10
10
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { canColumnHaveAggregationFunction, getAggregationFunctionLabel, getAvailableAggregationFunctions } from "../hooks/features/aggregation/gridAggregationUtils.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
4
4
|
import { useGridPrivateApiContext, gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector, gridRowSelector, vars } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { useGridSelector, getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
6
6
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
@@ -12,6 +12,7 @@ const GridEmptyPivotOverlay = forwardRef(function GridEmptyPivotOverlay(props, r
|
|
|
12
12
|
children: apiRef.current.getLocaleText('emptyPivotOverlayLabel')
|
|
13
13
|
}));
|
|
14
14
|
});
|
|
15
|
+
if (process.env.NODE_ENV !== "production") GridEmptyPivotOverlay.displayName = "GridEmptyPivotOverlay";
|
|
15
16
|
process.env.NODE_ENV !== "production" ? GridEmptyPivotOverlay.propTypes = {
|
|
16
17
|
// ----------------------------- Warning --------------------------------
|
|
17
18
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -39,4 +39,5 @@ export const GridPremiumColumnMenu = forwardRef(function GridPremiumColumnMenuSi
|
|
|
39
39
|
defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM,
|
|
40
40
|
ref: ref
|
|
41
41
|
}));
|
|
42
|
-
});
|
|
42
|
+
});
|
|
43
|
+
if (process.env.NODE_ENV !== "production") GridPremiumColumnMenu.displayName = "GridPremiumColumnMenu";
|
|
@@ -5,7 +5,8 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import useId from '@mui/utils/useId';
|
|
7
7
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
9
|
+
import { useGridPanelContext } from '@mui/x-data-grid-pro/internals';
|
|
9
10
|
import { gridPreferencePanelStateSelector, GridPreferencePanelsValue, useGridSelector } from '@mui/x-data-grid-pro';
|
|
10
11
|
import { useForkRef } from '@mui/material/utils';
|
|
11
12
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
@@ -59,7 +60,7 @@ const AiAssistantPanelTrigger = forwardRef(function AiAssistantPanelTrigger(prop
|
|
|
59
60
|
}
|
|
60
61
|
onPointerUp?.(event);
|
|
61
62
|
};
|
|
62
|
-
const element =
|
|
63
|
+
const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
|
|
63
64
|
id: buttonId,
|
|
64
65
|
'aria-haspopup': 'true',
|
|
65
66
|
'aria-expanded': open ? 'true' : undefined,
|
|
@@ -74,6 +75,7 @@ const AiAssistantPanelTrigger = forwardRef(function AiAssistantPanelTrigger(prop
|
|
|
74
75
|
children: element
|
|
75
76
|
});
|
|
76
77
|
});
|
|
78
|
+
if (process.env.NODE_ENV !== "production") AiAssistantPanelTrigger.displayName = "AiAssistantPanelTrigger";
|
|
77
79
|
process.env.NODE_ENV !== "production" ? AiAssistantPanelTrigger.propTypes = {
|
|
78
80
|
// ----------------------------- Warning --------------------------------
|
|
79
81
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useGridSelector, getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
5
|
-
import
|
|
5
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
6
6
|
import { styled } from '@mui/system';
|
|
7
7
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
8
8
|
import { gridAiAssistantActiveConversationSelector, gridAiAssistantConversationsSelector } from "../../hooks/features/aiAssistant/gridAiAssistantSelectors.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { getDataGridUtilityClass, GridShadowScrollArea } from '@mui/x-data-grid-pro';
|
|
4
|
-
import
|
|
4
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
5
5
|
import { styled } from '@mui/system';
|
|
6
6
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
7
7
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
3
|
-
import
|
|
3
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
4
4
|
import { styled } from '@mui/system';
|
|
5
5
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
6
6
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -6,7 +6,7 @@ import { styled } from '@mui/system';
|
|
|
6
6
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
7
7
|
import useId from '@mui/utils/useId';
|
|
8
8
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
9
|
-
import
|
|
9
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import { CollapsibleContext } from "./CollapsibleContext.js";
|
|
12
12
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { styled } from '@mui/system';
|
|
6
6
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
7
7
|
import useId from '@mui/utils/useId';
|
|
8
|
-
import
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -4,7 +4,7 @@ const _excluded = ["children", "className"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { styled } from '@mui/system';
|
|
6
6
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
7
|
-
import
|
|
7
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["render", "options", "onClick"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
7
7
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
8
8
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
9
9
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -33,7 +33,7 @@ const ExportExcel = forwardRef(function ExportExcel(props, ref) {
|
|
|
33
33
|
apiRef.current.exportDataAsExcel(options);
|
|
34
34
|
onClick?.(event);
|
|
35
35
|
};
|
|
36
|
-
const element =
|
|
36
|
+
const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({
|
|
37
37
|
onClick: handleClick
|
|
38
38
|
}, rootProps.slotProps?.baseButton, other, {
|
|
39
39
|
ref
|
|
@@ -42,6 +42,7 @@ const ExportExcel = forwardRef(function ExportExcel(props, ref) {
|
|
|
42
42
|
children: element
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
|
+
if (process.env.NODE_ENV !== "production") ExportExcel.displayName = "ExportExcel";
|
|
45
46
|
process.env.NODE_ENV !== "production" ? ExportExcel.propTypes = {
|
|
46
47
|
// ----------------------------- Warning --------------------------------
|
|
47
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { styled } from '@mui/system';
|
|
4
4
|
import { useGridSelector, getDataGridUtilityClass, gridRowCountSelector } from '@mui/x-data-grid-pro';
|
|
5
5
|
import { vars, NotRendered } from '@mui/x-data-grid-pro/internals';
|
|
6
|
-
import
|
|
6
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import { SidebarHeader } from "../sidebar/index.js";
|
|
8
8
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
9
9
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { styled } from '@mui/system';
|
|
5
5
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
6
|
-
import
|
|
6
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
7
7
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
8
8
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import useId from '@mui/utils/useId';
|
|
7
7
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
9
9
|
import { useGridSelector } from '@mui/x-data-grid-pro';
|
|
10
10
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
11
11
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -45,7 +45,7 @@ const PivotPanelTrigger = forwardRef(function PivotPanelTrigger(props, ref) {
|
|
|
45
45
|
apiRef.current.setPivotPanelOpen(!open);
|
|
46
46
|
onClick?.(event);
|
|
47
47
|
};
|
|
48
|
-
const element =
|
|
48
|
+
const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
|
|
49
49
|
id: buttonId,
|
|
50
50
|
// TODO: Hook up the panel/trigger IDs to the pivot panel
|
|
51
51
|
'aria-haspopup': 'true',
|
|
@@ -60,6 +60,7 @@ const PivotPanelTrigger = forwardRef(function PivotPanelTrigger(props, ref) {
|
|
|
60
60
|
children: element
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
+
if (process.env.NODE_ENV !== "production") PivotPanelTrigger.displayName = "PivotPanelTrigger";
|
|
63
64
|
process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes = {
|
|
64
65
|
// ----------------------------- Warning --------------------------------
|
|
65
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getDataGridUtilityClass, gridClasses, gridColumnLookupSelector, useGridSelector } from '@mui/x-data-grid-pro';
|
|
3
|
-
import
|
|
3
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
4
|
+
import capitalize from '@mui/utils/capitalize';
|
|
4
5
|
import { keyframes, styled } from '@mui/system';
|
|
5
6
|
import { getValueOptions, isSingleSelectColDef, vars } from '@mui/x-data-grid-pro/internals';
|
|
6
7
|
import useId from '@mui/utils/useId';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
const _excluded = ["render", "className", "lang", "onRecordError", "onSubmit"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
7
7
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
8
8
|
import { PromptFieldContext } from "./PromptFieldContext.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -51,7 +51,7 @@ const PromptField = forwardRef(function PromptField(props, ref) {
|
|
|
51
51
|
onSubmit: handleOnSubmit,
|
|
52
52
|
onError: onRecordError
|
|
53
53
|
}), [state, lang, onRecordError, handleOnSubmit]);
|
|
54
|
-
const element =
|
|
54
|
+
const element = useComponentRenderer('div', render, _extends({
|
|
55
55
|
className: resolvedClassName
|
|
56
56
|
}, other, {
|
|
57
57
|
ref
|
|
@@ -61,6 +61,7 @@ const PromptField = forwardRef(function PromptField(props, ref) {
|
|
|
61
61
|
children: element
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
+
if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
|
|
64
65
|
process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
65
66
|
// ----------------------------- Warning --------------------------------
|
|
66
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ const _excluded = ["render", "className", "onChange", "onKeyDown"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
7
|
-
import {
|
|
7
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
8
8
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
9
9
|
import { usePromptFieldContext } from "./PromptFieldContext.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ const PromptFieldControl = forwardRef(function PromptFieldControl(props, ref) {
|
|
|
45
45
|
}
|
|
46
46
|
onKeyDown?.(event);
|
|
47
47
|
};
|
|
48
|
-
const element =
|
|
48
|
+
const element = useComponentRenderer(rootProps.slots.baseTextField, render, _extends({}, rootProps.slotProps?.baseTextField, {
|
|
49
49
|
value: state.value,
|
|
50
50
|
className: resolvedClassName
|
|
51
51
|
}, other, {
|
|
@@ -57,6 +57,7 @@ const PromptFieldControl = forwardRef(function PromptFieldControl(props, ref) {
|
|
|
57
57
|
children: element
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
+
if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
|
|
60
61
|
process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
61
62
|
// ----------------------------- Warning --------------------------------
|
|
62
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { Timeout } from '@mui/utils/useTimeout';
|
|
7
7
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
8
8
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
10
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { usePromptFieldContext } from "./PromptFieldContext.js";
|
|
12
12
|
import { BrowserSpeechRecognition } from "../../utils/speechRecognition.js";
|
|
@@ -112,7 +112,7 @@ const PromptFieldRecord = forwardRef(function PromptFieldRecord(props, ref) {
|
|
|
112
112
|
recognition.abort();
|
|
113
113
|
onClick?.(event);
|
|
114
114
|
};
|
|
115
|
-
const element =
|
|
115
|
+
const element = useComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
|
|
116
116
|
className: resolvedClassName,
|
|
117
117
|
disabled: state.disabled
|
|
118
118
|
}, other, {
|
|
@@ -123,6 +123,7 @@ const PromptFieldRecord = forwardRef(function PromptFieldRecord(props, ref) {
|
|
|
123
123
|
children: element
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
|
+
if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
|
|
126
127
|
process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
|
|
127
128
|
// ----------------------------- Warning --------------------------------
|
|
128
129
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -4,7 +4,7 @@ const _excluded = ["render", "className", "onClick"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
7
|
-
import {
|
|
7
|
+
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
8
8
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
9
9
|
import { usePromptFieldContext } from "./PromptFieldContext.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -37,7 +37,7 @@ const PromptFieldSend = forwardRef(function PromptFieldSend(props, ref) {
|
|
|
37
37
|
onSubmit(state.value);
|
|
38
38
|
onClick?.(event);
|
|
39
39
|
};
|
|
40
|
-
const element =
|
|
40
|
+
const element = useComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {
|
|
41
41
|
className: resolvedClassName,
|
|
42
42
|
disabled: state.disabled || state.recording || !state.value.trim()
|
|
43
43
|
}, other, {
|
|
@@ -48,6 +48,7 @@ const PromptFieldSend = forwardRef(function PromptFieldSend(props, ref) {
|
|
|
48
48
|
children: element
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
+
if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
|
|
51
52
|
process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
|
|
52
53
|
// ----------------------------- Warning --------------------------------
|
|
53
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { styled } from '@mui/system';
|
|
7
7
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
8
|
-
import
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { ResizablePanelContext } from "./ResizablePanelContext.js";
|
|
10
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -4,7 +4,7 @@ const _excluded = ["className", "children"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { styled } from '@mui/system';
|
|
6
6
|
import { vars } from '@mui/x-data-grid-pro/internals';
|
|
7
|
-
import
|
|
7
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses } from '@mui/x-data-grid-pro';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import { useResize } from "../../hooks/utils/useResize.js";
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { styled } from '@mui/system';
|
|
7
7
|
import { getDataGridUtilityClass } from '@mui/x-data-grid-pro';
|
|
8
|
-
import
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { ResizablePanel, ResizablePanelHandle } from "../resizablePanel/index.js";
|
|
10
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|