@vitessce/dev 3.9.3 → 3.9.5
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/dist/{OrbitControls-DFnU45i3.js → OrbitControls-g3V6AQrL.js} +1 -1
- package/dist/{ReactNeuroglancer-Be48c0c6.js → ReactNeuroglancer-BKhY1M3y.js} +1 -1
- package/dist/{deflate-XS5pRlM_.js → deflate-bMqc070m.js} +1 -1
- package/dist/{higlass-Cuf9_Inx.js → higlass-B7oMqAJq.js} +1 -1
- package/dist/{index-DpZSD_ri.js → index-BOSHQFXK.js} +550 -582
- package/dist/{index-EEMmnt6h.js → index-iE6KBbYh.js} +3 -3
- package/dist/{index-BR8kYHh8.js → index-oeCOA2zP.js} +45 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-C8so3AyK.js → jpeg-BVOGozQR.js} +1 -1
- package/dist/{lerc-CSES1ScV.js → lerc-mli9SB1o.js} +1 -1
- package/dist/{lzw-Ckl_I9yY.js → lzw-CzubbbMJ.js} +1 -1
- package/dist/{packbits-0ynPvt7J.js → packbits-h_xMBVqr.js} +1 -1
- package/dist/{raw-C-1AhPm6.js → raw-C9wxSTEx.js} +1 -1
- package/dist/{troika-three-text.esm-BhymeUu1.js → troika-three-text.esm-DwvolRZ3.js} +1 -1
- package/dist/{webimage-DkjnIPJC.js → webimage-D4la8kDB.js} +1 -1
- package/package.json +5 -5
|
@@ -1357,7 +1357,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1357
1357
|
CoordinationType$2.HIERARCHY_LEVELS
|
|
1358
1358
|
]
|
|
1359
1359
|
};
|
|
1360
|
-
const version$6 = "3.9.
|
|
1360
|
+
const version$6 = "3.9.5";
|
|
1361
1361
|
const META_VERSION = {
|
|
1362
1362
|
version: version$6
|
|
1363
1363
|
};
|
|
@@ -9143,14 +9143,14 @@ var createCache = function createCache2(options) {
|
|
|
9143
9143
|
cache2.sheet.hydrate(nodesToHydrate);
|
|
9144
9144
|
return cache2;
|
|
9145
9145
|
};
|
|
9146
|
-
function _extends$
|
|
9147
|
-
return _extends$
|
|
9146
|
+
function _extends$d() {
|
|
9147
|
+
return _extends$d = Object.assign ? Object.assign.bind() : function(n3) {
|
|
9148
9148
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
9149
9149
|
var t4 = arguments[e3];
|
|
9150
9150
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
9151
9151
|
}
|
|
9152
9152
|
return n3;
|
|
9153
|
-
}, _extends$
|
|
9153
|
+
}, _extends$d.apply(null, arguments);
|
|
9154
9154
|
}
|
|
9155
9155
|
var reactIs$3 = { exports: {} };
|
|
9156
9156
|
var reactIs_development$3 = {};
|
|
@@ -10694,7 +10694,7 @@ var createStyled$1 = function createStyled(tag2, options) {
|
|
|
10694
10694
|
}
|
|
10695
10695
|
});
|
|
10696
10696
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
10697
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
10697
|
+
var newStyled2 = createStyled(nextTag, _extends$d({}, options, nextOptions, {
|
|
10698
10698
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
10699
10699
|
}));
|
|
10700
10700
|
return newStyled2.apply(void 0, styles2);
|
|
@@ -17003,14 +17003,14 @@ function chainPropTypes(propType1, propType2) {
|
|
|
17003
17003
|
return propType1(...args) || propType2(...args);
|
|
17004
17004
|
};
|
|
17005
17005
|
}
|
|
17006
|
-
function _extends$
|
|
17007
|
-
return _extends$
|
|
17006
|
+
function _extends$c() {
|
|
17007
|
+
return _extends$c = Object.assign ? Object.assign.bind() : function(n3) {
|
|
17008
17008
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
17009
17009
|
var t4 = arguments[e3];
|
|
17010
17010
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
17011
17011
|
}
|
|
17012
17012
|
return n3;
|
|
17013
|
-
}, _extends$
|
|
17013
|
+
}, _extends$c.apply(null, arguments);
|
|
17014
17014
|
}
|
|
17015
17015
|
function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
17016
17016
|
if (null == r3) return {};
|
|
@@ -17021,13 +17021,13 @@ function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
|
17021
17021
|
}
|
|
17022
17022
|
return t4;
|
|
17023
17023
|
}
|
|
17024
|
-
function _setPrototypeOf$
|
|
17025
|
-
return _setPrototypeOf$
|
|
17024
|
+
function _setPrototypeOf$1(t4, e3) {
|
|
17025
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t5, e4) {
|
|
17026
17026
|
return t5.__proto__ = e4, t5;
|
|
17027
|
-
}, _setPrototypeOf$
|
|
17027
|
+
}, _setPrototypeOf$1(t4, e3);
|
|
17028
17028
|
}
|
|
17029
|
-
function _inheritsLoose
|
|
17030
|
-
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$
|
|
17029
|
+
function _inheritsLoose(t4, o2) {
|
|
17030
|
+
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$1(t4, o2);
|
|
17031
17031
|
}
|
|
17032
17032
|
const config$3 = {
|
|
17033
17033
|
disabled: false
|
|
@@ -17059,7 +17059,7 @@ var ENTERING = "entering";
|
|
|
17059
17059
|
var ENTERED = "entered";
|
|
17060
17060
|
var EXITING = "exiting";
|
|
17061
17061
|
var Transition$1 = /* @__PURE__ */ function(_React$Component) {
|
|
17062
|
-
_inheritsLoose
|
|
17062
|
+
_inheritsLoose(Transition2, _React$Component);
|
|
17063
17063
|
function Transition2(props, context2) {
|
|
17064
17064
|
var _this;
|
|
17065
17065
|
_this = _React$Component.call(this, props, context2) || this;
|
|
@@ -17475,7 +17475,7 @@ Transition$1.EXITED = EXITED;
|
|
|
17475
17475
|
Transition$1.ENTERING = ENTERING;
|
|
17476
17476
|
Transition$1.ENTERED = ENTERED;
|
|
17477
17477
|
Transition$1.EXITING = EXITING;
|
|
17478
|
-
function _assertThisInitialized$
|
|
17478
|
+
function _assertThisInitialized$1(e3) {
|
|
17479
17479
|
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17480
17480
|
return e3;
|
|
17481
17481
|
}
|
|
@@ -17583,11 +17583,11 @@ var defaultProps$Q = {
|
|
|
17583
17583
|
}
|
|
17584
17584
|
};
|
|
17585
17585
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
17586
|
-
_inheritsLoose
|
|
17586
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
17587
17587
|
function TransitionGroup2(props, context2) {
|
|
17588
17588
|
var _this;
|
|
17589
17589
|
_this = _React$Component.call(this, props, context2) || this;
|
|
17590
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized$
|
|
17590
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
|
|
17591
17591
|
_this.state = {
|
|
17592
17592
|
contextValue: {
|
|
17593
17593
|
isMounting: true
|
|
@@ -17624,7 +17624,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
17624
17624
|
}
|
|
17625
17625
|
if (this.mounted) {
|
|
17626
17626
|
this.setState(function(state) {
|
|
17627
|
-
var children3 = _extends$
|
|
17627
|
+
var children3 = _extends$c({}, state.children);
|
|
17628
17628
|
delete children3[child.key];
|
|
17629
17629
|
return {
|
|
17630
17630
|
children: children3
|
|
@@ -46134,7 +46134,7 @@ const keys$9 = {
|
|
|
46134
46134
|
}
|
|
46135
46135
|
};
|
|
46136
46136
|
const values$4 = wrap$4(keys$9);
|
|
46137
|
-
const vars = _extends$
|
|
46137
|
+
const vars = _extends$c({
|
|
46138
46138
|
breakpoints,
|
|
46139
46139
|
spacing,
|
|
46140
46140
|
transition,
|
|
@@ -46249,7 +46249,7 @@ const GridEditInputCell = forwardRef((props, ref2) => {
|
|
|
46249
46249
|
inputRef.current.focus();
|
|
46250
46250
|
}
|
|
46251
46251
|
}, [hasFocus]);
|
|
46252
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$
|
|
46252
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$c({
|
|
46253
46253
|
as: rootProps.slots.baseInput,
|
|
46254
46254
|
inputRef,
|
|
46255
46255
|
className: classes2.root,
|
|
@@ -46333,7 +46333,7 @@ GridEditInputCell.propTypes = {
|
|
|
46333
46333
|
*/
|
|
46334
46334
|
value: PropTypes.any
|
|
46335
46335
|
};
|
|
46336
|
-
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$
|
|
46336
|
+
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$c({}, params2));
|
|
46337
46337
|
const gridRowsStateSelector = createRootSelector((state) => state.rows);
|
|
46338
46338
|
const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
|
|
46339
46339
|
const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
|
|
@@ -46386,8 +46386,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
|
|
|
46386
46386
|
}
|
|
46387
46387
|
return model;
|
|
46388
46388
|
};
|
|
46389
|
-
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$
|
|
46390
|
-
sorting: _extends$
|
|
46389
|
+
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$c({}, state, {
|
|
46390
|
+
sorting: _extends$c({}, state.sorting, {
|
|
46391
46391
|
sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
|
|
46392
46392
|
})
|
|
46393
46393
|
});
|
|
@@ -46514,7 +46514,7 @@ function GridFilterInputValue(props) {
|
|
|
46514
46514
|
setFilterValueState(value2);
|
|
46515
46515
|
setIsApplying(true);
|
|
46516
46516
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
46517
|
-
const newItem = _extends$
|
|
46517
|
+
const newItem = _extends$c({}, item, {
|
|
46518
46518
|
value: type2 === "number" && !Number.isNaN(Number(value2)) ? Number(value2) : value2,
|
|
46519
46519
|
fromInput: id2
|
|
46520
46520
|
});
|
|
@@ -46529,7 +46529,7 @@ function GridFilterInputValue(props) {
|
|
|
46529
46529
|
}
|
|
46530
46530
|
}, [id2, item]);
|
|
46531
46531
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
46532
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
46532
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
46533
46533
|
id: id2,
|
|
46534
46534
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
46535
46535
|
placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
|
|
@@ -46537,14 +46537,14 @@ function GridFilterInputValue(props) {
|
|
|
46537
46537
|
onChange: onFilterChange,
|
|
46538
46538
|
type: type2 || "text",
|
|
46539
46539
|
disabled,
|
|
46540
|
-
slotProps: _extends$
|
|
46541
|
-
input: _extends$
|
|
46540
|
+
slotProps: _extends$c({}, textFieldProps?.slotProps, {
|
|
46541
|
+
input: _extends$c({
|
|
46542
46542
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
46543
46543
|
fontSize: "small",
|
|
46544
46544
|
color: "action"
|
|
46545
46545
|
}) : null
|
|
46546
46546
|
}, textFieldProps?.slotProps?.input),
|
|
46547
|
-
htmlInput: _extends$
|
|
46547
|
+
htmlInput: _extends$c({
|
|
46548
46548
|
tabIndex
|
|
46549
46549
|
}, textFieldProps?.slotProps?.htmlInput)
|
|
46550
46550
|
}),
|
|
@@ -46670,7 +46670,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
46670
46670
|
}, [item.value]);
|
|
46671
46671
|
const handleChange = React.useCallback((event2, value2) => {
|
|
46672
46672
|
setFilterValueState(value2.map(String));
|
|
46673
|
-
applyValue(_extends$
|
|
46673
|
+
applyValue(_extends$c({}, item, {
|
|
46674
46674
|
value: [...value2.map((filterItemValue) => type2 === "number" ? Number(filterItemValue) : filterItemValue)]
|
|
46675
46675
|
}));
|
|
46676
46676
|
}, [applyValue, item, type2]);
|
|
@@ -46682,7 +46682,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
46682
46682
|
}
|
|
46683
46683
|
}, [setOptions]);
|
|
46684
46684
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
46685
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
46685
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
46686
46686
|
multiple: true,
|
|
46687
46687
|
freeSolo: true,
|
|
46688
46688
|
options,
|
|
@@ -46935,7 +46935,7 @@ function getHasEval() {
|
|
|
46935
46935
|
return hasEval;
|
|
46936
46936
|
}
|
|
46937
46937
|
const cleanFilterItem = (item, apiRef) => {
|
|
46938
|
-
const cleanItem = _extends$
|
|
46938
|
+
const cleanItem = _extends$c({}, item);
|
|
46939
46939
|
if (cleanItem.id == null) {
|
|
46940
46940
|
cleanItem.id = Math.round(Math.random() * 1e5);
|
|
46941
46941
|
}
|
|
@@ -46969,18 +46969,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
|
|
|
46969
46969
|
}
|
|
46970
46970
|
}
|
|
46971
46971
|
if (hasItemWithoutOperator || hasItemsWithoutIds) {
|
|
46972
|
-
return _extends$
|
|
46972
|
+
return _extends$c({}, model, {
|
|
46973
46973
|
items: items.map((item) => cleanFilterItem(item, apiRef))
|
|
46974
46974
|
});
|
|
46975
46975
|
}
|
|
46976
46976
|
if (model.items !== items) {
|
|
46977
|
-
return _extends$
|
|
46977
|
+
return _extends$c({}, model, {
|
|
46978
46978
|
items
|
|
46979
46979
|
});
|
|
46980
46980
|
}
|
|
46981
46981
|
return model;
|
|
46982
46982
|
};
|
|
46983
|
-
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$
|
|
46983
|
+
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$c({}, filteringState, {
|
|
46984
46984
|
filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
|
|
46985
46985
|
});
|
|
46986
46986
|
const removeDiacritics = (value2) => {
|
|
@@ -47010,7 +47010,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
|
|
|
47010
47010
|
if (ignoreDiacritics) {
|
|
47011
47011
|
parsedValue = removeDiacritics(parsedValue);
|
|
47012
47012
|
}
|
|
47013
|
-
const newFilterItem = _extends$
|
|
47013
|
+
const newFilterItem = _extends$c({}, filterItem, {
|
|
47014
47014
|
value: parsedValue
|
|
47015
47015
|
});
|
|
47016
47016
|
const filterOperators = column2.filterOperators;
|
|
@@ -47432,7 +47432,7 @@ function GridMenu(props) {
|
|
|
47432
47432
|
}
|
|
47433
47433
|
onClose(event2);
|
|
47434
47434
|
};
|
|
47435
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$
|
|
47435
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$c({
|
|
47436
47436
|
as: rootProps.slots.basePopper,
|
|
47437
47437
|
className: clsx$1(classes2.root, className, variablesClass),
|
|
47438
47438
|
ownerState: rootProps,
|
|
@@ -47591,7 +47591,7 @@ function GridActionsCell(props) {
|
|
|
47591
47591
|
hideMenu();
|
|
47592
47592
|
}
|
|
47593
47593
|
};
|
|
47594
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
47594
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
47595
47595
|
role: "menu",
|
|
47596
47596
|
ref: rootRef,
|
|
47597
47597
|
tabIndex: -1,
|
|
@@ -47603,7 +47603,7 @@ function GridActionsCell(props) {
|
|
|
47603
47603
|
touchRippleRef: handleTouchRippleRef(index2),
|
|
47604
47604
|
onClick: handleButtonClick(index2, button.props.onClick),
|
|
47605
47605
|
tabIndex: focusedButtonIndex === index2 ? tabIndex : -1
|
|
47606
|
-
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
47606
|
+
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
47607
47607
|
ref: buttonRef,
|
|
47608
47608
|
id: buttonId,
|
|
47609
47609
|
"aria-label": apiRef.current.getLocaleText("actionsCellMore"),
|
|
@@ -47701,9 +47701,9 @@ GridActionsCell.propTypes = {
|
|
|
47701
47701
|
*/
|
|
47702
47702
|
value: PropTypes.any
|
|
47703
47703
|
};
|
|
47704
|
-
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$
|
|
47704
|
+
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$c({}, params2));
|
|
47705
47705
|
const GRID_ACTIONS_COLUMN_TYPE = "actions";
|
|
47706
|
-
const GRID_ACTIONS_COL_DEF = _extends$
|
|
47706
|
+
const GRID_ACTIONS_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
47707
47707
|
sortable: false,
|
|
47708
47708
|
filterable: false,
|
|
47709
47709
|
// @ts-ignore
|
|
@@ -47819,7 +47819,7 @@ const getRowsStateFromCache = ({
|
|
|
47819
47819
|
},
|
|
47820
47820
|
idToActionLookup: {}
|
|
47821
47821
|
};
|
|
47822
|
-
return _extends$
|
|
47822
|
+
return _extends$c({}, groupingParamsWithHydrateRows, {
|
|
47823
47823
|
totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
|
|
47824
47824
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
47825
47825
|
tree: groupingParamsWithHydrateRows.tree,
|
|
@@ -47865,7 +47865,7 @@ const updateCacheWithNewRows = ({
|
|
|
47865
47865
|
updates.forEach((update2) => {
|
|
47866
47866
|
const id2 = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
|
|
47867
47867
|
if (uniqueUpdates.has(id2)) {
|
|
47868
|
-
uniqueUpdates.set(id2, _extends$
|
|
47868
|
+
uniqueUpdates.set(id2, _extends$c({}, uniqueUpdates.get(id2), update2));
|
|
47869
47869
|
} else {
|
|
47870
47870
|
uniqueUpdates.set(id2, update2);
|
|
47871
47871
|
}
|
|
@@ -47877,10 +47877,10 @@ const updateCacheWithNewRows = ({
|
|
|
47877
47877
|
modify: [...previousCache.updates.actions.modify ?? []],
|
|
47878
47878
|
remove: [...previousCache.updates.actions.remove ?? []]
|
|
47879
47879
|
},
|
|
47880
|
-
idToActionLookup: _extends$
|
|
47880
|
+
idToActionLookup: _extends$c({}, previousCache.updates.idToActionLookup),
|
|
47881
47881
|
groupKeys
|
|
47882
47882
|
};
|
|
47883
|
-
const dataRowIdToModelLookup = _extends$
|
|
47883
|
+
const dataRowIdToModelLookup = _extends$c({}, previousCache.dataRowIdToModelLookup);
|
|
47884
47884
|
const alreadyAppliedActionsToRemove = {
|
|
47885
47885
|
insert: {},
|
|
47886
47886
|
modify: {},
|
|
@@ -47907,7 +47907,7 @@ const updateCacheWithNewRows = ({
|
|
|
47907
47907
|
} else if (actionAlreadyAppliedToRow == null) {
|
|
47908
47908
|
partialUpdates.actions.modify.push(id2);
|
|
47909
47909
|
}
|
|
47910
|
-
dataRowIdToModelLookup[id2] = _extends$
|
|
47910
|
+
dataRowIdToModelLookup[id2] = _extends$c({}, oldRow, partialRow);
|
|
47911
47911
|
return;
|
|
47912
47912
|
}
|
|
47913
47913
|
if (actionAlreadyAppliedToRow === "remove") {
|
|
@@ -47944,7 +47944,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
|
|
|
47944
47944
|
const pinnedRowsCache = apiRef.current.caches.pinnedRows;
|
|
47945
47945
|
const prevModel = pinnedRowsCache.idLookup[id2];
|
|
47946
47946
|
if (prevModel) {
|
|
47947
|
-
pinnedRowsCache.idLookup[id2] = _extends$
|
|
47947
|
+
pinnedRowsCache.idLookup[id2] = _extends$c({}, prevModel, update2);
|
|
47948
47948
|
}
|
|
47949
47949
|
} else {
|
|
47950
47950
|
nonPinnedRowsUpdates.push(update2);
|
|
@@ -48005,7 +48005,7 @@ function GridBooleanCellRaw(props) {
|
|
|
48005
48005
|
if (isServerSideRowGroupingRow && value2 === void 0) {
|
|
48006
48006
|
return null;
|
|
48007
48007
|
}
|
|
48008
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
48008
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
48009
48009
|
fontSize: "small",
|
|
48010
48010
|
className: classes2.root,
|
|
48011
48011
|
titleAccess: apiRef.current.getLocaleText(value2 ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
|
|
@@ -48083,7 +48083,7 @@ const renderBooleanCell = (params2) => {
|
|
|
48083
48083
|
if (params2.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params2.rowNode)) {
|
|
48084
48084
|
return "";
|
|
48085
48085
|
}
|
|
48086
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$
|
|
48086
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$c({}, params2));
|
|
48087
48087
|
};
|
|
48088
48088
|
const _excluded$U = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
|
|
48089
48089
|
const useUtilityClasses$F = (ownerState) => {
|
|
@@ -48133,11 +48133,11 @@ function GridEditBooleanCell(props) {
|
|
|
48133
48133
|
inputRef.current.focus();
|
|
48134
48134
|
}
|
|
48135
48135
|
}, [hasFocus]);
|
|
48136
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$
|
|
48136
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$c({
|
|
48137
48137
|
htmlFor: id2,
|
|
48138
48138
|
className: clsx$1(classes2.root, className)
|
|
48139
48139
|
}, other, {
|
|
48140
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
48140
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
48141
48141
|
id: id2,
|
|
48142
48142
|
inputRef,
|
|
48143
48143
|
checked: Boolean(valueState),
|
|
@@ -48211,7 +48211,7 @@ GridEditBooleanCell.propTypes = {
|
|
|
48211
48211
|
*/
|
|
48212
48212
|
value: PropTypes.any
|
|
48213
48213
|
};
|
|
48214
|
-
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$
|
|
48214
|
+
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$c({}, params2));
|
|
48215
48215
|
const _excluded$T = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
|
|
48216
48216
|
function GridFilterInputBoolean(props) {
|
|
48217
48217
|
const {
|
|
@@ -48234,7 +48234,7 @@ function GridFilterInputBoolean(props) {
|
|
|
48234
48234
|
const onFilterChange = React.useCallback((event2) => {
|
|
48235
48235
|
const value2 = sanitizeFilterItemValue(event2.target.value);
|
|
48236
48236
|
setFilterValueState(value2);
|
|
48237
|
-
applyValue(_extends$
|
|
48237
|
+
applyValue(_extends$c({}, item, {
|
|
48238
48238
|
value: value2
|
|
48239
48239
|
}));
|
|
48240
48240
|
}, [applyValue, item]);
|
|
@@ -48244,7 +48244,7 @@ function GridFilterInputBoolean(props) {
|
|
|
48244
48244
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
48245
48245
|
const rootSlotProps = slotProps?.root.slotProps;
|
|
48246
48246
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
48247
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$
|
|
48247
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$c({
|
|
48248
48248
|
fullWidth: true,
|
|
48249
48249
|
labelId,
|
|
48250
48250
|
id: selectId,
|
|
@@ -48253,21 +48253,21 @@ function GridFilterInputBoolean(props) {
|
|
|
48253
48253
|
onChange: onFilterChange,
|
|
48254
48254
|
native: isSelectNative,
|
|
48255
48255
|
slotProps: {
|
|
48256
|
-
htmlInput: _extends$
|
|
48256
|
+
htmlInput: _extends$c({
|
|
48257
48257
|
ref: focusElementRef,
|
|
48258
48258
|
tabIndex
|
|
48259
48259
|
}, rootSlotProps?.htmlInput)
|
|
48260
48260
|
}
|
|
48261
48261
|
}, baseSelectProps, others, slotProps?.root, {
|
|
48262
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
48262
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
48263
48263
|
native: isSelectNative,
|
|
48264
48264
|
value: "",
|
|
48265
48265
|
children: apiRef.current.getLocaleText("filterValueAny")
|
|
48266
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
48266
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
48267
48267
|
native: isSelectNative,
|
|
48268
48268
|
value: "true",
|
|
48269
48269
|
children: apiRef.current.getLocaleText("filterValueTrue")
|
|
48270
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
48270
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
48271
48271
|
native: isSelectNative,
|
|
48272
48272
|
value: "false",
|
|
48273
48273
|
children: apiRef.current.getLocaleText("filterValueFalse")
|
|
@@ -48355,7 +48355,7 @@ const stringToBoolean = (value2) => {
|
|
|
48355
48355
|
return void 0;
|
|
48356
48356
|
}
|
|
48357
48357
|
};
|
|
48358
|
-
const GRID_BOOLEAN_COL_DEF = _extends$
|
|
48358
|
+
const GRID_BOOLEAN_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
48359
48359
|
type: "boolean",
|
|
48360
48360
|
display: "flex",
|
|
48361
48361
|
align: "center",
|
|
@@ -48712,7 +48712,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
|
|
|
48712
48712
|
return null;
|
|
48713
48713
|
}
|
|
48714
48714
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
|
|
48715
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
48715
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
48716
48716
|
tabIndex,
|
|
48717
48717
|
checked: isChecked && !isIndeterminate,
|
|
48718
48718
|
onChange: handleChange,
|
|
@@ -49025,7 +49025,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref2)
|
|
|
49025
49025
|
return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
|
|
49026
49026
|
}, [apiRef, handleSelectionChange]);
|
|
49027
49027
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
|
|
49028
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
49028
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
49029
49029
|
indeterminate: isIndeterminate,
|
|
49030
49030
|
checked: isChecked && !isIndeterminate,
|
|
49031
49031
|
onChange: handleChange,
|
|
@@ -49064,7 +49064,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
|
|
|
49064
49064
|
return state.props.getRowId ? state.props.getRowId(row) : row.id;
|
|
49065
49065
|
});
|
|
49066
49066
|
const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
|
|
49067
|
-
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$
|
|
49067
|
+
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$c({}, GRID_BOOLEAN_COL_DEF, {
|
|
49068
49068
|
type: "custom",
|
|
49069
49069
|
field: GRID_CHECKBOX_SELECTION_FIELD,
|
|
49070
49070
|
width: 50,
|
|
@@ -49082,8 +49082,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$d({}, GRID_BOOLEAN_COL_DEF, {
|
|
|
49082
49082
|
const rowId = gridRowIdSelector(apiRef, row);
|
|
49083
49083
|
return apiRef.current.isRowSelected(rowId);
|
|
49084
49084
|
},
|
|
49085
|
-
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$
|
|
49086
|
-
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$
|
|
49085
|
+
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$c({}, params2)),
|
|
49086
|
+
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$c({}, params2))
|
|
49087
49087
|
});
|
|
49088
49088
|
const _excluded$Q = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
|
|
49089
49089
|
function convertFilterItemValueToInputValue(itemValue, inputType) {
|
|
@@ -49129,7 +49129,7 @@ function GridFilterInputDate(props) {
|
|
|
49129
49129
|
setIsApplying(true);
|
|
49130
49130
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
49131
49131
|
const date2 = new Date(value2);
|
|
49132
|
-
applyValue(_extends$
|
|
49132
|
+
applyValue(_extends$c({}, item, {
|
|
49133
49133
|
value: Number.isNaN(date2.getTime()) ? void 0 : date2
|
|
49134
49134
|
}));
|
|
49135
49135
|
setIsApplying(false);
|
|
@@ -49140,7 +49140,7 @@ function GridFilterInputDate(props) {
|
|
|
49140
49140
|
setFilterValueState(value2);
|
|
49141
49141
|
}, [item.value, type2]);
|
|
49142
49142
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
49143
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
49143
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
49144
49144
|
fullWidth: true,
|
|
49145
49145
|
id: id2,
|
|
49146
49146
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
@@ -49150,14 +49150,14 @@ function GridFilterInputDate(props) {
|
|
|
49150
49150
|
type: type2 || "text",
|
|
49151
49151
|
disabled,
|
|
49152
49152
|
inputRef: focusElementRef,
|
|
49153
|
-
slotProps: _extends$
|
|
49154
|
-
input: _extends$
|
|
49153
|
+
slotProps: _extends$c({}, rootSlotProps, {
|
|
49154
|
+
input: _extends$c({
|
|
49155
49155
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
49156
49156
|
fontSize: "small",
|
|
49157
49157
|
color: "action"
|
|
49158
49158
|
}) : null
|
|
49159
49159
|
}, rootSlotProps?.input),
|
|
49160
|
-
htmlInput: _extends$
|
|
49160
|
+
htmlInput: _extends$c({
|
|
49161
49161
|
max: type2 === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
|
|
49162
49162
|
tabIndex
|
|
49163
49163
|
}, rootSlotProps?.htmlInput)
|
|
@@ -49403,7 +49403,7 @@ function GridEditDateCell(props) {
|
|
|
49403
49403
|
inputRef.current.focus();
|
|
49404
49404
|
}
|
|
49405
49405
|
}, [hasFocus]);
|
|
49406
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$
|
|
49406
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$c({
|
|
49407
49407
|
as: rootProps.slots.baseInput,
|
|
49408
49408
|
inputRef,
|
|
49409
49409
|
fullWidth: true,
|
|
@@ -49413,7 +49413,7 @@ function GridEditDateCell(props) {
|
|
|
49413
49413
|
onChange: handleChange
|
|
49414
49414
|
}, other, slotProps?.root, {
|
|
49415
49415
|
slotProps: {
|
|
49416
|
-
htmlInput: _extends$
|
|
49416
|
+
htmlInput: _extends$c({
|
|
49417
49417
|
max: isDateTime2 ? "9999-12-31T23:59" : "9999-12-31"
|
|
49418
49418
|
}, slotProps?.root?.slotProps?.htmlInput)
|
|
49419
49419
|
}
|
|
@@ -49485,7 +49485,7 @@ GridEditDateCell.propTypes = {
|
|
|
49485
49485
|
*/
|
|
49486
49486
|
value: PropTypes.any
|
|
49487
49487
|
};
|
|
49488
|
-
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$
|
|
49488
|
+
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$c({}, params2));
|
|
49489
49489
|
function throwIfNotDateObject({
|
|
49490
49490
|
value: value2,
|
|
49491
49491
|
columnType,
|
|
@@ -49522,7 +49522,7 @@ const gridDateTimeFormatter = (value2, row, column2, apiRef) => {
|
|
|
49522
49522
|
});
|
|
49523
49523
|
return value2.toLocaleString();
|
|
49524
49524
|
};
|
|
49525
|
-
const GRID_DATE_COL_DEF = _extends$
|
|
49525
|
+
const GRID_DATE_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
49526
49526
|
type: "date",
|
|
49527
49527
|
sortComparator: gridDateComparator,
|
|
49528
49528
|
valueFormatter: gridDateFormatter,
|
|
@@ -49531,7 +49531,7 @@ const GRID_DATE_COL_DEF = _extends$d({}, GRID_STRING_COL_DEF, {
|
|
|
49531
49531
|
// @ts-ignore
|
|
49532
49532
|
pastedValueParser: (value2) => new Date(value2)
|
|
49533
49533
|
});
|
|
49534
|
-
const GRID_DATETIME_COL_DEF = _extends$
|
|
49534
|
+
const GRID_DATETIME_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
49535
49535
|
type: "dateTime",
|
|
49536
49536
|
sortComparator: gridDateComparator,
|
|
49537
49537
|
valueFormatter: gridDateTimeFormatter,
|
|
@@ -49681,7 +49681,7 @@ const getGridNumericOperators = () => [{
|
|
|
49681
49681
|
type: "number"
|
|
49682
49682
|
}
|
|
49683
49683
|
}];
|
|
49684
|
-
const GRID_NUMERIC_COL_DEF = _extends$
|
|
49684
|
+
const GRID_NUMERIC_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
49685
49685
|
type: "number",
|
|
49686
49686
|
align: "right",
|
|
49687
49687
|
headerAlign: "right",
|
|
@@ -49698,7 +49698,7 @@ function getValueOptions(column2, additionalParams) {
|
|
|
49698
49698
|
if (!column2) {
|
|
49699
49699
|
return void 0;
|
|
49700
49700
|
}
|
|
49701
|
-
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$
|
|
49701
|
+
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$c({
|
|
49702
49702
|
field: column2.field
|
|
49703
49703
|
}, additionalParams)) : column2.valueOptions;
|
|
49704
49704
|
}
|
|
@@ -49776,7 +49776,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
49776
49776
|
}
|
|
49777
49777
|
if (reason === "backdropClick" || event2.key === "Escape") {
|
|
49778
49778
|
const params2 = apiRef.current.getCellParams(id2, field2);
|
|
49779
|
-
apiRef.current.publishEvent("cellEditStop", _extends$
|
|
49779
|
+
apiRef.current.publishEvent("cellEditStop", _extends$c({}, params2, {
|
|
49780
49780
|
reason: event2.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
|
|
49781
49781
|
}));
|
|
49782
49782
|
}
|
|
@@ -49790,7 +49790,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
49790
49790
|
if (!valueOptions || !colDef) {
|
|
49791
49791
|
return null;
|
|
49792
49792
|
}
|
|
49793
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
49793
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
49794
49794
|
ref: ref2,
|
|
49795
49795
|
value: valueProp,
|
|
49796
49796
|
onChange: handleChange,
|
|
@@ -49808,7 +49808,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
49808
49808
|
}, other, slotProps?.root, rootProps.slotProps?.baseSelect, {
|
|
49809
49809
|
children: valueOptions.map((valueOption) => {
|
|
49810
49810
|
const value2 = getOptionValue(valueOption);
|
|
49811
|
-
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
49811
|
+
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, rootProps.slotProps?.baseSelectOption || {}, {
|
|
49812
49812
|
native: isSelectNative,
|
|
49813
49813
|
key: value2,
|
|
49814
49814
|
value: value2
|
|
@@ -49885,7 +49885,7 @@ GridEditSingleSelectCell.propTypes = {
|
|
|
49885
49885
|
*/
|
|
49886
49886
|
value: PropTypes.any
|
|
49887
49887
|
};
|
|
49888
|
-
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$
|
|
49888
|
+
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$c({}, params2));
|
|
49889
49889
|
const _excluded$N = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
|
|
49890
49890
|
const renderSingleSelectOptions = ({
|
|
49891
49891
|
column: column2,
|
|
@@ -49902,7 +49902,7 @@ const renderSingleSelectOptions = ({
|
|
|
49902
49902
|
if (label2 === "") {
|
|
49903
49903
|
label2 = " ";
|
|
49904
49904
|
}
|
|
49905
|
-
return /* @__PURE__ */ createElement(OptionComponent, _extends$
|
|
49905
|
+
return /* @__PURE__ */ createElement(OptionComponent, _extends$c({}, baseSelectOptionProps, {
|
|
49906
49906
|
native: isSelectNative,
|
|
49907
49907
|
key: value2,
|
|
49908
49908
|
value: value2
|
|
@@ -49941,7 +49941,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
49941
49941
|
const onFilterChange = React.useCallback((event2) => {
|
|
49942
49942
|
let value2 = event2.target.value;
|
|
49943
49943
|
value2 = getValueFromValueOptions(value2, currentValueOptions, getOptionValue);
|
|
49944
|
-
applyValue(_extends$
|
|
49944
|
+
applyValue(_extends$c({}, item, {
|
|
49945
49945
|
value: value2
|
|
49946
49946
|
}));
|
|
49947
49947
|
}, [currentValueOptions, getOptionValue, applyValue, item]);
|
|
@@ -49950,7 +49950,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
49950
49950
|
}
|
|
49951
49951
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
49952
49952
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
49953
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
49953
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
49954
49954
|
fullWidth: true,
|
|
49955
49955
|
id: id2,
|
|
49956
49956
|
label: label2,
|
|
@@ -49958,7 +49958,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
49958
49958
|
value: filterValue,
|
|
49959
49959
|
onChange: onFilterChange,
|
|
49960
49960
|
slotProps: {
|
|
49961
|
-
htmlInput: _extends$
|
|
49961
|
+
htmlInput: _extends$c({
|
|
49962
49962
|
tabIndex,
|
|
49963
49963
|
ref: focusElementRef,
|
|
49964
49964
|
type: type2 || "text",
|
|
@@ -50058,12 +50058,12 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
50058
50058
|
}, []);
|
|
50059
50059
|
}, [getOptionValue, item.value, resolvedValueOptions]);
|
|
50060
50060
|
const handleChange = React.useCallback((event2, value2) => {
|
|
50061
|
-
applyValue(_extends$
|
|
50061
|
+
applyValue(_extends$c({}, item, {
|
|
50062
50062
|
value: value2.map(getOptionValue)
|
|
50063
50063
|
}));
|
|
50064
50064
|
}, [applyValue, item, getOptionValue]);
|
|
50065
50065
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
50066
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
50066
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
50067
50067
|
multiple: true,
|
|
50068
50068
|
options: resolvedValueOptions,
|
|
50069
50069
|
isOptionEqualToValue,
|
|
@@ -50167,7 +50167,7 @@ const defaultGetOptionValue = (value2) => {
|
|
|
50167
50167
|
const defaultGetOptionLabel = (value2) => {
|
|
50168
50168
|
return isObject$f(value2) ? value2.label : String(value2);
|
|
50169
50169
|
};
|
|
50170
|
-
const GRID_SINGLE_SELECT_COL_DEF = _extends$
|
|
50170
|
+
const GRID_SINGLE_SELECT_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
50171
50171
|
type: "singleSelect",
|
|
50172
50172
|
getOptionLabel: defaultGetOptionLabel,
|
|
50173
50173
|
getOptionValue: defaultGetOptionValue,
|
|
@@ -50333,7 +50333,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
50333
50333
|
widthAllocatedBeforeFlex += computedWidth;
|
|
50334
50334
|
}
|
|
50335
50335
|
if (column2.computedWidth !== computedWidth) {
|
|
50336
|
-
column2 = _extends$
|
|
50336
|
+
column2 = _extends$c({}, column2, {
|
|
50337
50337
|
computedWidth
|
|
50338
50338
|
});
|
|
50339
50339
|
}
|
|
@@ -50354,7 +50354,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
50354
50354
|
columnsLookup[field2].computedWidth = computedColumnWidths[field2].computedWidth;
|
|
50355
50355
|
});
|
|
50356
50356
|
}
|
|
50357
|
-
return _extends$
|
|
50357
|
+
return _extends$c({}, rawState, {
|
|
50358
50358
|
lookup: columnsLookup
|
|
50359
50359
|
});
|
|
50360
50360
|
};
|
|
@@ -50380,10 +50380,10 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
50380
50380
|
}
|
|
50381
50381
|
}
|
|
50382
50382
|
const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field2) => !orderedFieldsLookup[field2])];
|
|
50383
|
-
const newColumnLookup = _extends$
|
|
50383
|
+
const newColumnLookup = _extends$c({}, columnsState.lookup);
|
|
50384
50384
|
for (let i2 = 0; i2 < columnsWithUpdatedDimensions.length; i2 += 1) {
|
|
50385
50385
|
const field2 = columnsWithUpdatedDimensions[i2];
|
|
50386
|
-
const newColDef = _extends$
|
|
50386
|
+
const newColDef = _extends$c({}, newColumnLookup[field2], {
|
|
50387
50387
|
hasBeenResized: true
|
|
50388
50388
|
});
|
|
50389
50389
|
Object.entries(dimensions[field2]).forEach(([key2, value2]) => {
|
|
@@ -50391,7 +50391,7 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
50391
50391
|
});
|
|
50392
50392
|
newColumnLookup[field2] = newColDef;
|
|
50393
50393
|
}
|
|
50394
|
-
const newColumnsState = _extends$
|
|
50394
|
+
const newColumnsState = _extends$c({}, columnsState, {
|
|
50395
50395
|
orderedFields: newOrderedFields,
|
|
50396
50396
|
lookup: newColumnLookup
|
|
50397
50397
|
});
|
|
@@ -50425,7 +50425,7 @@ const createColumnsState = ({
|
|
|
50425
50425
|
const currentState = gridColumnsStateSelector(apiRef);
|
|
50426
50426
|
columnsState = {
|
|
50427
50427
|
orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
|
|
50428
|
-
lookup: _extends$
|
|
50428
|
+
lookup: _extends$c({}, currentState.lookup),
|
|
50429
50429
|
// Will be cleaned later if keepOnlyColumnsToUpsert=true
|
|
50430
50430
|
columnVisibilityModel,
|
|
50431
50431
|
initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
|
|
@@ -50433,7 +50433,7 @@ const createColumnsState = ({
|
|
|
50433
50433
|
}
|
|
50434
50434
|
let columnsToKeep = {};
|
|
50435
50435
|
if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
|
|
50436
|
-
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$
|
|
50436
|
+
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$c({}, acc, {
|
|
50437
50437
|
[key2]: false
|
|
50438
50438
|
}), {});
|
|
50439
50439
|
}
|
|
@@ -50444,7 +50444,7 @@ const createColumnsState = ({
|
|
|
50444
50444
|
columnsToKeep[field2] = true;
|
|
50445
50445
|
let existingState = columnsState.lookup[field2];
|
|
50446
50446
|
if (existingState == null) {
|
|
50447
|
-
existingState = _extends$
|
|
50447
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
50448
50448
|
field: field2,
|
|
50449
50449
|
hasBeenResized: false
|
|
50450
50450
|
});
|
|
@@ -50453,7 +50453,7 @@ const createColumnsState = ({
|
|
|
50453
50453
|
columnsState.orderedFields.push(field2);
|
|
50454
50454
|
}
|
|
50455
50455
|
if (existingState && existingState.type !== newColumn.type) {
|
|
50456
|
-
existingState = _extends$
|
|
50456
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
50457
50457
|
field: field2
|
|
50458
50458
|
});
|
|
50459
50459
|
}
|
|
@@ -50466,7 +50466,7 @@ const createColumnsState = ({
|
|
|
50466
50466
|
}
|
|
50467
50467
|
}
|
|
50468
50468
|
});
|
|
50469
|
-
columnsState.lookup[field2] = resolveProps(existingState, _extends$
|
|
50469
|
+
columnsState.lookup[field2] = resolveProps(existingState, _extends$c({}, getDefaultColTypeDef(newColumn.type), newColumn, {
|
|
50470
50470
|
hasBeenResized
|
|
50471
50471
|
}));
|
|
50472
50472
|
});
|
|
@@ -50563,7 +50563,7 @@ function GridScrollAreaWrapper(props) {
|
|
|
50563
50563
|
if (!dragging) {
|
|
50564
50564
|
return null;
|
|
50565
50565
|
}
|
|
50566
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$
|
|
50566
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$c({}, props));
|
|
50567
50567
|
}
|
|
50568
50568
|
function GridScrollAreaContent(props) {
|
|
50569
50569
|
const {
|
|
@@ -50589,7 +50589,7 @@ function GridScrollAreaContent(props) {
|
|
|
50589
50589
|
};
|
|
50590
50590
|
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
50591
50591
|
const rootProps = useGridRootProps();
|
|
50592
|
-
const ownerState = _extends$
|
|
50592
|
+
const ownerState = _extends$c({}, rootProps, {
|
|
50593
50593
|
scrollDirection
|
|
50594
50594
|
});
|
|
50595
50595
|
const classes2 = useUtilityClasses$B(ownerState);
|
|
@@ -50737,14 +50737,14 @@ const virtualizationStateInitializer = (state, props) => {
|
|
|
50737
50737
|
enabledForRows: !disableVirtualization && !autoHeight,
|
|
50738
50738
|
renderContext: EMPTY_RENDER_CONTEXT
|
|
50739
50739
|
};
|
|
50740
|
-
return _extends$
|
|
50740
|
+
return _extends$c({}, state, {
|
|
50741
50741
|
virtualization
|
|
50742
50742
|
});
|
|
50743
50743
|
};
|
|
50744
50744
|
function useGridVirtualization(apiRef, props) {
|
|
50745
50745
|
const setVirtualization = (enabled) => {
|
|
50746
|
-
apiRef.current.setState((state) => _extends$
|
|
50747
|
-
virtualization: _extends$
|
|
50746
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
50747
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
50748
50748
|
enabled,
|
|
50749
50749
|
enabledForColumns: enabled,
|
|
50750
50750
|
enabledForRows: enabled && !props.autoHeight
|
|
@@ -50752,8 +50752,8 @@ function useGridVirtualization(apiRef, props) {
|
|
|
50752
50752
|
}));
|
|
50753
50753
|
};
|
|
50754
50754
|
const setColumnVirtualization = (enabled) => {
|
|
50755
|
-
apiRef.current.setState((state) => _extends$
|
|
50756
|
-
virtualization: _extends$
|
|
50755
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
50756
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
50757
50757
|
enabledForColumns: enabled
|
|
50758
50758
|
})
|
|
50759
50759
|
}));
|
|
@@ -50793,7 +50793,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
|
|
|
50793
50793
|
if (columnIndex === -1) {
|
|
50794
50794
|
return null;
|
|
50795
50795
|
}
|
|
50796
|
-
return _extends$
|
|
50796
|
+
return _extends$c({}, focusedCell, {
|
|
50797
50797
|
rowIndex,
|
|
50798
50798
|
columnIndex
|
|
50799
50799
|
});
|
|
@@ -50906,8 +50906,8 @@ const useGridVirtualScroller = () => {
|
|
|
50906
50906
|
}
|
|
50907
50907
|
const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
|
|
50908
50908
|
apiRef.current.setState((state) => {
|
|
50909
|
-
return _extends$
|
|
50910
|
-
virtualization: _extends$
|
|
50909
|
+
return _extends$c({}, state, {
|
|
50910
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
50911
50911
|
renderContext: nextRenderContext
|
|
50912
50912
|
})
|
|
50913
50913
|
});
|
|
@@ -51100,7 +51100,7 @@ const useGridVirtualScroller = () => {
|
|
|
51100
51100
|
const showBottomBorder = isLastVisibleInSection && params2.position === "top";
|
|
51101
51101
|
const firstColumnIndex = currentRenderContext.firstColumnIndex;
|
|
51102
51102
|
const lastColumnIndex = currentRenderContext.lastColumnIndex;
|
|
51103
|
-
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$
|
|
51103
|
+
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$c({
|
|
51104
51104
|
row: model,
|
|
51105
51105
|
rowId: id2,
|
|
51106
51106
|
index: rowIndex,
|
|
@@ -51305,7 +51305,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
51305
51305
|
lastColumnIndex: inputs.visibleColumns.length
|
|
51306
51306
|
};
|
|
51307
51307
|
if (inputs.listView) {
|
|
51308
|
-
return _extends$
|
|
51308
|
+
return _extends$c({}, renderContext, {
|
|
51309
51309
|
lastColumnIndex: 1
|
|
51310
51310
|
});
|
|
51311
51311
|
}
|
|
@@ -51582,14 +51582,14 @@ function GridOverlayWrapper(props) {
|
|
|
51582
51582
|
if (height2 === 0) {
|
|
51583
51583
|
height2 = minimalContentHeight;
|
|
51584
51584
|
}
|
|
51585
|
-
const classes2 = useUtilityClasses$A(_extends$
|
|
51585
|
+
const classes2 = useUtilityClasses$A(_extends$c({}, props, {
|
|
51586
51586
|
classes: rootProps.classes
|
|
51587
51587
|
}));
|
|
51588
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$
|
|
51588
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$c({
|
|
51589
51589
|
className: clsx$1(classes2.root)
|
|
51590
51590
|
}, props, {
|
|
51591
51591
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
51592
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$
|
|
51592
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$c({
|
|
51593
51593
|
className: clsx$1(classes2.inner),
|
|
51594
51594
|
style: {
|
|
51595
51595
|
height: height2,
|
|
@@ -51643,8 +51643,8 @@ const useGridOverlays = () => {
|
|
|
51643
51643
|
}
|
|
51644
51644
|
const Overlay = rootProps.slots?.[overlayType];
|
|
51645
51645
|
const overlayProps = rootProps.slotProps?.[overlayType];
|
|
51646
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$
|
|
51647
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$
|
|
51646
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$c({}, overlaysProps, {
|
|
51647
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$c({}, overlayProps))
|
|
51648
51648
|
}));
|
|
51649
51649
|
};
|
|
51650
51650
|
return {
|
|
@@ -51670,7 +51670,7 @@ function GridHeaders() {
|
|
|
51670
51670
|
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
51671
51671
|
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
51672
51672
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
51673
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$
|
|
51673
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$c({
|
|
51674
51674
|
ref: columnsContainerRef,
|
|
51675
51675
|
visibleColumns,
|
|
51676
51676
|
filterColumnLookup,
|
|
@@ -51719,7 +51719,7 @@ const GridMainContainer = forwardRef((props, ref2) => {
|
|
|
51719
51719
|
const rootProps = useGridRootProps();
|
|
51720
51720
|
const configuration2 = useGridConfiguration();
|
|
51721
51721
|
const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
|
|
51722
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$
|
|
51722
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$c({
|
|
51723
51723
|
ownerState,
|
|
51724
51724
|
className: props.className,
|
|
51725
51725
|
tabIndex: -1
|
|
@@ -51744,7 +51744,7 @@ const Element$2 = styled$1("div")({
|
|
|
51744
51744
|
});
|
|
51745
51745
|
function GridTopContainer(props) {
|
|
51746
51746
|
const classes2 = useUtilityClasses$z();
|
|
51747
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$
|
|
51747
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$c({}, props, {
|
|
51748
51748
|
className: clsx$1(classes2.root, gridClasses["container--top"]),
|
|
51749
51749
|
role: "presentation"
|
|
51750
51750
|
}));
|
|
@@ -51776,7 +51776,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
|
|
|
51776
51776
|
classes: rootProps.classes,
|
|
51777
51777
|
overflowedContent
|
|
51778
51778
|
};
|
|
51779
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$
|
|
51779
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$c({}, props, {
|
|
51780
51780
|
ownerState,
|
|
51781
51781
|
className: clsx$1(classes2.root, props.className),
|
|
51782
51782
|
ref: ref2
|
|
@@ -51878,7 +51878,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
|
|
|
51878
51878
|
const rowsMeta = gridRowsMetaSelector(apiRef);
|
|
51879
51879
|
return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
|
|
51880
51880
|
});
|
|
51881
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$
|
|
51881
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$c({
|
|
51882
51882
|
className: clsx$1(classes2.root, className),
|
|
51883
51883
|
ownerState: rootProps,
|
|
51884
51884
|
style: {
|
|
@@ -52151,7 +52151,7 @@ function GridVirtualScroller(props) {
|
|
|
52151
52151
|
getOverlay,
|
|
52152
52152
|
overlaysProps
|
|
52153
52153
|
} = useGridOverlays();
|
|
52154
|
-
const ownerState = _extends$
|
|
52154
|
+
const ownerState = _extends$c({
|
|
52155
52155
|
classes: rootProps.classes,
|
|
52156
52156
|
hasScrollX,
|
|
52157
52157
|
hasPinnedRight
|
|
@@ -52169,15 +52169,15 @@ function GridVirtualScroller(props) {
|
|
|
52169
52169
|
getScrollAreaProps
|
|
52170
52170
|
} = virtualScroller;
|
|
52171
52171
|
const rows = getRows();
|
|
52172
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$
|
|
52172
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$c({
|
|
52173
52173
|
className: classes2.root
|
|
52174
52174
|
}, getContainerProps(), {
|
|
52175
52175
|
ownerState,
|
|
52176
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
52176
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
52177
52177
|
scrollDirection: "left"
|
|
52178
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
52178
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
52179
52179
|
scrollDirection: "right"
|
|
52180
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$
|
|
52180
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$c({
|
|
52181
52181
|
className: classes2.scroller
|
|
52182
52182
|
}, getScrollerProps(), {
|
|
52183
52183
|
ownerState,
|
|
@@ -52186,8 +52186,8 @@ function GridVirtualScroller(props) {
|
|
|
52186
52186
|
position: "top",
|
|
52187
52187
|
virtualScroller
|
|
52188
52188
|
})]
|
|
52189
|
-
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$
|
|
52190
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$
|
|
52189
|
+
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$c({}, getContentProps(), {
|
|
52190
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$c({}, getRenderZoneProps(), {
|
|
52191
52191
|
children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
|
|
52192
52192
|
virtualScroller
|
|
52193
52193
|
})]
|
|
@@ -52200,9 +52200,9 @@ function GridVirtualScroller(props) {
|
|
|
52200
52200
|
virtualScroller
|
|
52201
52201
|
})
|
|
52202
52202
|
})]
|
|
52203
|
-
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
52203
|
+
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
52204
52204
|
position: "horizontal"
|
|
52205
|
-
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
52205
|
+
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
52206
52206
|
position: "vertical"
|
|
52207
52207
|
}, getScrollbarVerticalProps())), props.children]
|
|
52208
52208
|
}));
|
|
@@ -52212,7 +52212,7 @@ function GridFooterPlaceholder() {
|
|
|
52212
52212
|
if (rootProps.hideFooter) {
|
|
52213
52213
|
return null;
|
|
52214
52214
|
}
|
|
52215
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$
|
|
52215
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$c(
|
|
52216
52216
|
{},
|
|
52217
52217
|
rootProps.slotProps?.footer
|
|
52218
52218
|
/* FIXME: typing error */
|
|
@@ -52238,7 +52238,7 @@ function computeSlots({
|
|
|
52238
52238
|
if (!overrides || Object.keys(overrides).length === 0) {
|
|
52239
52239
|
return defaultSlots2;
|
|
52240
52240
|
}
|
|
52241
|
-
const result = _extends$
|
|
52241
|
+
const result = _extends$c({}, defaultSlots2);
|
|
52242
52242
|
Object.keys(overrides).forEach((key2) => {
|
|
52243
52243
|
const k = key2;
|
|
52244
52244
|
if (overrides[k] !== void 0) {
|
|
@@ -52450,7 +52450,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
52450
52450
|
border: 0
|
|
52451
52451
|
};
|
|
52452
52452
|
}
|
|
52453
|
-
const cellStyle = attachPinnedStyle(_extends$
|
|
52453
|
+
const cellStyle = attachPinnedStyle(_extends$c({
|
|
52454
52454
|
"--width": `${width2}px`
|
|
52455
52455
|
}, styleProp), isRtl, pinnedPosition, pinnedOffset);
|
|
52456
52456
|
const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
|
|
@@ -52487,7 +52487,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
52487
52487
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
52488
52488
|
"data-colindex": colIndex,
|
|
52489
52489
|
role: "presentation",
|
|
52490
|
-
style: _extends$
|
|
52490
|
+
style: _extends$c({
|
|
52491
52491
|
width: "var(--width)"
|
|
52492
52492
|
}, style2)
|
|
52493
52493
|
});
|
|
@@ -52502,7 +52502,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
52502
52502
|
const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
|
|
52503
52503
|
const editCellStateRest = _objectWithoutPropertiesLoose$1(editCellState, _excluded2$8);
|
|
52504
52504
|
const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
|
|
52505
|
-
const params2 = _extends$
|
|
52505
|
+
const params2 = _extends$c({}, cellParams, {
|
|
52506
52506
|
row: updatedRow,
|
|
52507
52507
|
formattedValue
|
|
52508
52508
|
}, editCellStateRest);
|
|
@@ -52524,7 +52524,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
52524
52524
|
onDragEnter: publish("cellDragEnter", onDragEnter),
|
|
52525
52525
|
onDragOver: publish("cellDragOver", onDragOver)
|
|
52526
52526
|
};
|
|
52527
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
52527
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
52528
52528
|
className: clsx$1(classes2.root, classNames2, className),
|
|
52529
52529
|
role: "gridcell",
|
|
52530
52530
|
"data-field": field2,
|
|
@@ -52626,16 +52626,16 @@ function GridSkeletonCell(props) {
|
|
|
52626
52626
|
height: CONTENT_HEIGHT
|
|
52627
52627
|
};
|
|
52628
52628
|
}, [type2]);
|
|
52629
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
52629
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
52630
52630
|
"data-field": field2,
|
|
52631
52631
|
className: clsx$1(classes2.root, className),
|
|
52632
|
-
style: _extends$
|
|
52632
|
+
style: _extends$c({
|
|
52633
52633
|
height: height2,
|
|
52634
52634
|
maxWidth: width2,
|
|
52635
52635
|
minWidth: width2
|
|
52636
52636
|
}, style2)
|
|
52637
52637
|
}, other, {
|
|
52638
|
-
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$
|
|
52638
|
+
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$c({}, skeletonProps))
|
|
52639
52639
|
}));
|
|
52640
52640
|
}
|
|
52641
52641
|
GridSkeletonCell.propTypes = {
|
|
@@ -53639,7 +53639,7 @@ function GridPreferencesPanel() {
|
|
|
53639
53639
|
filterPanelTriggerRef
|
|
53640
53640
|
} = useGridPreferencePanelContext();
|
|
53641
53641
|
const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
|
|
53642
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$
|
|
53642
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$c({
|
|
53643
53643
|
id: preferencePanelState.panelId,
|
|
53644
53644
|
open: columns2.length > 0 && preferencePanelState.open,
|
|
53645
53645
|
"aria-labelledby": preferencePanelState.labelId,
|
|
@@ -53651,7 +53651,7 @@ function GridPreferencesPanel() {
|
|
|
53651
53651
|
function GridHeader() {
|
|
53652
53652
|
const rootProps = useGridRootProps();
|
|
53653
53653
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
53654
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$
|
|
53654
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$c({}, rootProps.slotProps?.toolbar))]
|
|
53655
53655
|
});
|
|
53656
53656
|
}
|
|
53657
53657
|
const _excluded$I = ["className", "children"];
|
|
@@ -53689,7 +53689,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref2) {
|
|
|
53689
53689
|
if (isSSR2) {
|
|
53690
53690
|
return null;
|
|
53691
53691
|
}
|
|
53692
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$
|
|
53692
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$c({
|
|
53693
53693
|
className: clsx$1(classes2.root, className, cssVariables.className),
|
|
53694
53694
|
ownerState
|
|
53695
53695
|
}, other, {
|
|
@@ -53737,7 +53737,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref2
|
|
|
53737
53737
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$H);
|
|
53738
53738
|
const rootProps = useGridRootProps();
|
|
53739
53739
|
const classes2 = useUtilityClasses$r(rootProps);
|
|
53740
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$
|
|
53740
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$c({
|
|
53741
53741
|
className: clsx$1(classes2.root, className),
|
|
53742
53742
|
ownerState: rootProps
|
|
53743
53743
|
}, other, {
|
|
@@ -53781,7 +53781,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref2) {
|
|
|
53781
53781
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$G);
|
|
53782
53782
|
const rootProps = useGridRootProps();
|
|
53783
53783
|
const classes2 = useUtilityClasses$q(rootProps);
|
|
53784
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$
|
|
53784
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$c({
|
|
53785
53785
|
className: clsx$1(classes2.root, className),
|
|
53786
53786
|
ownerState: rootProps
|
|
53787
53787
|
}, other, {
|
|
@@ -53804,7 +53804,7 @@ function useGridComponentRenderer(defaultElement, render2, props, state = {}) {
|
|
|
53804
53804
|
props.className = clsx$1(render2.props.className, props.className);
|
|
53805
53805
|
}
|
|
53806
53806
|
if (render2.props.style || props.style) {
|
|
53807
|
-
props.style = _extends$
|
|
53807
|
+
props.style = _extends$c({}, props.style, render2.props.style);
|
|
53808
53808
|
}
|
|
53809
53809
|
if (render2.props.sx || props.sx) {
|
|
53810
53810
|
props.sx = mergeSx(props.sx, render2.props.sx);
|
|
@@ -53941,7 +53941,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref2) {
|
|
|
53941
53941
|
onItemFocus,
|
|
53942
53942
|
onItemDisabled
|
|
53943
53943
|
}), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
|
|
53944
|
-
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$
|
|
53944
|
+
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$c({
|
|
53945
53945
|
role: "toolbar",
|
|
53946
53946
|
"aria-orientation": "horizontal",
|
|
53947
53947
|
"aria-label": rootProps.label || void 0,
|
|
@@ -54017,7 +54017,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref2) {
|
|
|
54017
54017
|
}
|
|
54018
54018
|
previousAriaDisabled.current = ariaDisabled;
|
|
54019
54019
|
}, [ariaDisabled, id2, onItemDisabled]);
|
|
54020
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
54020
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
54021
54021
|
tabIndex: focusableItemId === id2 ? 0 : -1
|
|
54022
54022
|
}, other, {
|
|
54023
54023
|
disabled,
|
|
@@ -54073,7 +54073,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
54073
54073
|
} = props;
|
|
54074
54074
|
const apiRef = useGridApiContext();
|
|
54075
54075
|
const rootProps = useGridRootProps();
|
|
54076
|
-
const ownerState = _extends$
|
|
54076
|
+
const ownerState = _extends$c({}, props, {
|
|
54077
54077
|
classes: rootProps.classes
|
|
54078
54078
|
});
|
|
54079
54079
|
const classes2 = useUtilityClasses$o(ownerState);
|
|
@@ -54085,11 +54085,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
54085
54085
|
const columnName = colDef.headerName ?? colDef.field;
|
|
54086
54086
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
54087
54087
|
className: classes2.root,
|
|
54088
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
54088
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
54089
54089
|
title: apiRef.current.getLocaleText("columnMenuLabel"),
|
|
54090
54090
|
enterDelay: 1e3
|
|
54091
54091
|
}, rootProps.slotProps?.baseTooltip, {
|
|
54092
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
54092
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
54093
54093
|
ref: iconButtonRef,
|
|
54094
54094
|
tabIndex: -1,
|
|
54095
54095
|
className: classes2.button,
|
|
@@ -54138,7 +54138,7 @@ function GridColumnHeaderMenu({
|
|
|
54138
54138
|
target: target2,
|
|
54139
54139
|
onClose: hideMenu,
|
|
54140
54140
|
onExited,
|
|
54141
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$
|
|
54141
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$c({
|
|
54142
54142
|
colDef,
|
|
54143
54143
|
hideMenu,
|
|
54144
54144
|
open: open2,
|
|
@@ -54378,7 +54378,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
|
|
|
54378
54378
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$D);
|
|
54379
54379
|
const rootProps = useGridRootProps();
|
|
54380
54380
|
const classes2 = useUtilityClasses$n(rootProps);
|
|
54381
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$
|
|
54381
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$c({
|
|
54382
54382
|
className: clsx$1(classes2.root, className),
|
|
54383
54383
|
ownerState: rootProps
|
|
54384
54384
|
}, other, {
|
|
@@ -54403,7 +54403,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
54403
54403
|
}
|
|
54404
54404
|
}
|
|
54405
54405
|
}, [description2, label2]);
|
|
54406
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
54406
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
54407
54407
|
title: description2 || tooltip2
|
|
54408
54408
|
}, rootProps.slotProps?.baseTooltip, {
|
|
54409
54409
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
|
|
@@ -54447,7 +54447,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
54447
54447
|
side = GridColumnHeaderSeparatorSides.Right
|
|
54448
54448
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$C);
|
|
54449
54449
|
const rootProps = useGridRootProps();
|
|
54450
|
-
const ownerState = _extends$
|
|
54450
|
+
const ownerState = _extends$c({}, props, {
|
|
54451
54451
|
side,
|
|
54452
54452
|
classes: rootProps.classes
|
|
54453
54453
|
});
|
|
@@ -54458,7 +54458,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
54458
54458
|
}, []);
|
|
54459
54459
|
return (
|
|
54460
54460
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
54461
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
54461
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
54462
54462
|
className: classes2.root,
|
|
54463
54463
|
style: {
|
|
54464
54464
|
minHeight: height2
|
|
@@ -54526,9 +54526,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
54526
54526
|
}
|
|
54527
54527
|
}
|
|
54528
54528
|
}, [apiRef, hasFocus]);
|
|
54529
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
54529
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
54530
54530
|
className: clsx$1(classes2.root, headerClassName),
|
|
54531
|
-
style: _extends$
|
|
54531
|
+
style: _extends$c({}, style2, {
|
|
54532
54532
|
width: width2
|
|
54533
54533
|
}),
|
|
54534
54534
|
role: "columnheader",
|
|
@@ -54537,7 +54537,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
54537
54537
|
"aria-sort": ariaSort
|
|
54538
54538
|
}, other, {
|
|
54539
54539
|
ref: handleRef,
|
|
54540
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
54540
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
54541
54541
|
className: classes2.draggableContainer,
|
|
54542
54542
|
draggable: isDraggable,
|
|
54543
54543
|
role: "presentation"
|
|
@@ -54554,7 +54554,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
54554
54554
|
})
|
|
54555
54555
|
}), columnTitleIconButtons]
|
|
54556
54556
|
}), columnMenuIconButton]
|
|
54557
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$
|
|
54557
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$c({
|
|
54558
54558
|
resizable: !rootProps.disableColumnResize && !!resizable,
|
|
54559
54559
|
resizing: isResizing,
|
|
54560
54560
|
height: height2,
|
|
@@ -54638,7 +54638,7 @@ function GridColumnHeaderItem(props) {
|
|
|
54638
54638
|
if (colDef.renderHeader) {
|
|
54639
54639
|
headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
|
|
54640
54640
|
}
|
|
54641
|
-
const ownerState = _extends$
|
|
54641
|
+
const ownerState = _extends$c({}, props, {
|
|
54642
54642
|
classes: rootProps.classes,
|
|
54643
54643
|
showRightBorder,
|
|
54644
54644
|
showLeftBorder
|
|
@@ -54704,10 +54704,10 @@ function GridColumnHeaderItem(props) {
|
|
|
54704
54704
|
const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
|
|
54705
54705
|
const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
|
|
54706
54706
|
const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
54707
|
-
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$
|
|
54707
|
+
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$c({
|
|
54708
54708
|
field: colDef.field,
|
|
54709
54709
|
counter: filterItemsCounter
|
|
54710
|
-
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$
|
|
54710
|
+
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$c({
|
|
54711
54711
|
field: colDef.field,
|
|
54712
54712
|
direction: sortDirection,
|
|
54713
54713
|
index: sortIndex,
|
|
@@ -54731,8 +54731,8 @@ function GridColumnHeaderItem(props) {
|
|
|
54731
54731
|
colDef
|
|
54732
54732
|
}) : colDef.headerClassName;
|
|
54733
54733
|
const label2 = colDef.headerName ?? colDef.field;
|
|
54734
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
54735
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
54734
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
54735
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
54736
54736
|
ref: headerCellRef,
|
|
54737
54737
|
classes: classes2,
|
|
54738
54738
|
columnMenuOpen,
|
|
@@ -54813,7 +54813,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
|
|
|
54813
54813
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$A);
|
|
54814
54814
|
const rootProps = useGridRootProps();
|
|
54815
54815
|
const classes2 = useUtilityClasses$k(rootProps);
|
|
54816
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$
|
|
54816
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$c({
|
|
54817
54817
|
className: clsx$1(classes2.root, className),
|
|
54818
54818
|
ownerState: rootProps
|
|
54819
54819
|
}, other, {
|
|
@@ -54841,7 +54841,7 @@ function getIcon(icons, direction, className, sortingOrder) {
|
|
|
54841
54841
|
Icon = icons.columnUnsortedIcon;
|
|
54842
54842
|
iconProps.sortingOrder = sortingOrder;
|
|
54843
54843
|
}
|
|
54844
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
54844
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
54845
54845
|
fontSize: "small",
|
|
54846
54846
|
className
|
|
54847
54847
|
}, iconProps)) : null;
|
|
@@ -54855,7 +54855,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
54855
54855
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$z);
|
|
54856
54856
|
const apiRef = useGridApiContext();
|
|
54857
54857
|
const rootProps = useGridRootProps();
|
|
54858
|
-
const ownerState = _extends$
|
|
54858
|
+
const ownerState = _extends$c({}, props, {
|
|
54859
54859
|
classes: rootProps.classes
|
|
54860
54860
|
});
|
|
54861
54861
|
const classes2 = useUtilityClasses$j(ownerState);
|
|
@@ -54863,7 +54863,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
54863
54863
|
if (!iconElement) {
|
|
54864
54864
|
return null;
|
|
54865
54865
|
}
|
|
54866
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
54866
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
54867
54867
|
tabIndex: -1,
|
|
54868
54868
|
"aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
54869
54869
|
title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
@@ -54906,7 +54906,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
54906
54906
|
if (!props.counter) {
|
|
54907
54907
|
return null;
|
|
54908
54908
|
}
|
|
54909
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$
|
|
54909
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$c({}, props));
|
|
54910
54910
|
}
|
|
54911
54911
|
GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
54912
54912
|
// ----------------------------- Warning --------------------------------
|
|
@@ -54925,7 +54925,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
54925
54925
|
} = props;
|
|
54926
54926
|
const apiRef = useGridApiContext();
|
|
54927
54927
|
const rootProps = useGridRootProps();
|
|
54928
|
-
const ownerState = _extends$
|
|
54928
|
+
const ownerState = _extends$c({}, props, {
|
|
54929
54929
|
classes: rootProps.classes
|
|
54930
54930
|
});
|
|
54931
54931
|
const classes2 = useUtilityClasses$i(ownerState);
|
|
@@ -54951,7 +54951,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
54951
54951
|
if (!counter2) {
|
|
54952
54952
|
return null;
|
|
54953
54953
|
}
|
|
54954
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
54954
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
54955
54955
|
id: labelId,
|
|
54956
54956
|
onClick: toggleFilter,
|
|
54957
54957
|
"aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
|
|
@@ -54966,7 +54966,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
54966
54966
|
fontSize: "small"
|
|
54967
54967
|
})
|
|
54968
54968
|
}));
|
|
54969
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
54969
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
54970
54970
|
title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
|
|
54971
54971
|
enterDelay: 1e3
|
|
54972
54972
|
}, rootProps.slotProps?.baseTooltip, {
|
|
@@ -55116,7 +55116,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
|
|
|
55116
55116
|
hideMenu(event2);
|
|
55117
55117
|
}
|
|
55118
55118
|
}, [hideMenu]);
|
|
55119
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$
|
|
55119
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$c({
|
|
55120
55120
|
as: rootProps.slots.baseMenuList,
|
|
55121
55121
|
id: id2,
|
|
55122
55122
|
className: clsx$1(gridClasses.menuList, className),
|
|
@@ -55152,14 +55152,14 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
55152
55152
|
colDef,
|
|
55153
55153
|
addDividers = true
|
|
55154
55154
|
} = props;
|
|
55155
|
-
const processedComponents = React.useMemo(() => _extends$
|
|
55155
|
+
const processedComponents = React.useMemo(() => _extends$c({}, defaultSlots2, slots), [defaultSlots2, slots]);
|
|
55156
55156
|
const processedSlotProps = React.useMemo(() => {
|
|
55157
55157
|
if (!slotProps || Object.keys(slotProps).length === 0) {
|
|
55158
55158
|
return defaultSlotProps;
|
|
55159
55159
|
}
|
|
55160
|
-
const mergedProps = _extends$
|
|
55160
|
+
const mergedProps = _extends$c({}, slotProps);
|
|
55161
55161
|
Object.entries(defaultSlotProps).forEach(([key2, currentSlotProps]) => {
|
|
55162
|
-
mergedProps[key2] = _extends$
|
|
55162
|
+
mergedProps[key2] = _extends$c({}, currentSlotProps, slotProps[key2] || {});
|
|
55163
55163
|
});
|
|
55164
55164
|
return mergedProps;
|
|
55165
55165
|
}, [defaultSlotProps, slotProps]);
|
|
@@ -55186,7 +55186,7 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
55186
55186
|
const processedComponentProps = processedSlotProps[key2];
|
|
55187
55187
|
if (processedComponentProps) {
|
|
55188
55188
|
const customProps = _objectWithoutPropertiesLoose$1(processedComponentProps, _excluded$x);
|
|
55189
|
-
itemProps = _extends$
|
|
55189
|
+
itemProps = _extends$c({}, itemProps, customProps);
|
|
55190
55190
|
}
|
|
55191
55191
|
return addDividers && index2 !== sorted.length - 1 ? [...acc, [processedComponents[key2], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key2], itemProps]];
|
|
55192
55192
|
}, []);
|
|
@@ -55263,7 +55263,7 @@ GridColumnMenuManageItem.propTypes = {
|
|
|
55263
55263
|
};
|
|
55264
55264
|
function GridColumnMenuColumnsItem(props) {
|
|
55265
55265
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
55266
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$
|
|
55266
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$c({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$c({}, props))]
|
|
55267
55267
|
});
|
|
55268
55268
|
}
|
|
55269
55269
|
GridColumnMenuColumnsItem.propTypes = {
|
|
@@ -55388,15 +55388,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
|
|
|
55388
55388
|
slots,
|
|
55389
55389
|
slotProps
|
|
55390
55390
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$w);
|
|
55391
|
-
const orderedSlots = useGridColumnMenuSlots(_extends$
|
|
55391
|
+
const orderedSlots = useGridColumnMenuSlots(_extends$c({}, other, {
|
|
55392
55392
|
defaultSlots: defaultSlots2,
|
|
55393
55393
|
defaultSlotProps,
|
|
55394
55394
|
slots,
|
|
55395
55395
|
slotProps
|
|
55396
55396
|
}));
|
|
55397
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$
|
|
55397
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$c({}, other, {
|
|
55398
55398
|
ref: ref2,
|
|
55399
|
-
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$
|
|
55399
|
+
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$c({}, otherProps), index2))
|
|
55400
55400
|
}));
|
|
55401
55401
|
});
|
|
55402
55402
|
GridGenericColumnMenu.propTypes = {
|
|
@@ -55432,7 +55432,7 @@ GridGenericColumnMenu.propTypes = {
|
|
|
55432
55432
|
slots: PropTypes.object
|
|
55433
55433
|
};
|
|
55434
55434
|
const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref2) {
|
|
55435
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$
|
|
55435
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$c({}, props, {
|
|
55436
55436
|
ref: ref2,
|
|
55437
55437
|
defaultSlots: GRID_COLUMN_MENU_SLOTS,
|
|
55438
55438
|
defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
|
|
@@ -55487,7 +55487,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
55487
55487
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$v);
|
|
55488
55488
|
const rootProps = useGridRootProps();
|
|
55489
55489
|
const classes2 = useUtilityClasses$h(rootProps);
|
|
55490
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$
|
|
55490
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$c({
|
|
55491
55491
|
tabIndex: -1,
|
|
55492
55492
|
className: clsx$1(classes2.root, className),
|
|
55493
55493
|
ownerState: rootProps
|
|
@@ -55497,8 +55497,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
55497
55497
|
});
|
|
55498
55498
|
function GridColumnsPanel(props) {
|
|
55499
55499
|
const rootProps = useGridRootProps();
|
|
55500
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$
|
|
55501
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$
|
|
55500
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$c({}, props, {
|
|
55501
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$c({}, rootProps.slotProps?.columnsManagement))
|
|
55502
55502
|
}));
|
|
55503
55503
|
}
|
|
55504
55504
|
const _excluded$u = ["children", "className", "classes"];
|
|
@@ -55552,7 +55552,7 @@ const GridPanel = forwardRef((props, ref2) => {
|
|
|
55552
55552
|
if (!fallbackTarget) {
|
|
55553
55553
|
return null;
|
|
55554
55554
|
}
|
|
55555
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$
|
|
55555
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$c({
|
|
55556
55556
|
as: rootProps.slots.basePopper,
|
|
55557
55557
|
ownerState: rootProps,
|
|
55558
55558
|
placement: "bottom-end",
|
|
@@ -55619,7 +55619,7 @@ function GridPanelContent(props) {
|
|
|
55619
55619
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$t);
|
|
55620
55620
|
const rootProps = useGridRootProps();
|
|
55621
55621
|
const classes2 = useUtilityClasses$g(rootProps);
|
|
55622
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$
|
|
55622
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$c({
|
|
55623
55623
|
className: clsx$1(classes2.root, className),
|
|
55624
55624
|
ownerState: rootProps
|
|
55625
55625
|
}, other));
|
|
@@ -55657,7 +55657,7 @@ function GridPanelFooter(props) {
|
|
|
55657
55657
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$s);
|
|
55658
55658
|
const rootProps = useGridRootProps();
|
|
55659
55659
|
const classes2 = useUtilityClasses$f(rootProps);
|
|
55660
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$
|
|
55660
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$c({
|
|
55661
55661
|
className: clsx$1(classes2.root, className),
|
|
55662
55662
|
ownerState: rootProps
|
|
55663
55663
|
}, other));
|
|
@@ -55857,7 +55857,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55857
55857
|
filterValue = void 0;
|
|
55858
55858
|
}
|
|
55859
55859
|
}
|
|
55860
|
-
applyFilterChanges(_extends$
|
|
55860
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
55861
55861
|
field: field2,
|
|
55862
55862
|
operator: newOperator.value,
|
|
55863
55863
|
value: filterValue
|
|
@@ -55867,7 +55867,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55867
55867
|
const operator2 = event2.target.value;
|
|
55868
55868
|
const newOperator = currentColumn?.filterOperators.find((op) => op.value === operator2);
|
|
55869
55869
|
const eraseItemValue = !newOperator?.InputComponent || newOperator?.InputComponent !== currentOperator?.InputComponent;
|
|
55870
|
-
applyFilterChanges(_extends$
|
|
55870
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
55871
55871
|
operator: operator2,
|
|
55872
55872
|
value: eraseItemValue ? void 0 : item.value
|
|
55873
55873
|
}));
|
|
@@ -55888,16 +55888,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55888
55888
|
}
|
|
55889
55889
|
}
|
|
55890
55890
|
}), [currentOperator]);
|
|
55891
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$
|
|
55891
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$c({
|
|
55892
55892
|
className: classes2.root,
|
|
55893
55893
|
"data-id": item.id,
|
|
55894
55894
|
ownerState: rootProps
|
|
55895
55895
|
}, other, {
|
|
55896
55896
|
ref: ref2,
|
|
55897
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$
|
|
55897
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$c({}, deleteIconProps, {
|
|
55898
55898
|
className: clsx$1(classes2.deleteIcon, deleteIconProps.className),
|
|
55899
55899
|
ownerState: rootProps,
|
|
55900
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
55900
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
55901
55901
|
"aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
55902
55902
|
title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
55903
55903
|
onClick: handleDeleteFilter,
|
|
@@ -55908,7 +55908,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55908
55908
|
fontSize: "small"
|
|
55909
55909
|
})
|
|
55910
55910
|
}))
|
|
55911
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$
|
|
55911
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$c({
|
|
55912
55912
|
as: rootProps.slots.baseSelect,
|
|
55913
55913
|
sx: [hasLogicOperatorColumn ? {
|
|
55914
55914
|
display: "flex"
|
|
@@ -55933,12 +55933,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55933
55933
|
disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
|
|
55934
55934
|
native: isBaseSelectNative
|
|
55935
55935
|
}, rootProps.slotProps?.baseSelect, {
|
|
55936
|
-
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
55936
|
+
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
55937
55937
|
native: isBaseSelectNative,
|
|
55938
55938
|
key: logicOperator.toString(),
|
|
55939
55939
|
value: logicOperator.toString()
|
|
55940
55940
|
}), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
|
|
55941
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$
|
|
55941
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$c({
|
|
55942
55942
|
as: rootProps.slots.baseSelect
|
|
55943
55943
|
}, columnInputProps, {
|
|
55944
55944
|
className: clsx$1(classes2.columnInput, columnInputProps.className),
|
|
@@ -55952,12 +55952,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55952
55952
|
native: isBaseSelectNative,
|
|
55953
55953
|
disabled: readOnly
|
|
55954
55954
|
}, rootProps.slotProps?.baseSelect, {
|
|
55955
|
-
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
55955
|
+
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
55956
55956
|
native: isBaseSelectNative,
|
|
55957
55957
|
key: col.field,
|
|
55958
55958
|
value: col.field
|
|
55959
55959
|
}), getColumnLabel(col)))
|
|
55960
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$
|
|
55960
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$c({
|
|
55961
55961
|
as: rootProps.slots.baseSelect,
|
|
55962
55962
|
size: "small"
|
|
55963
55963
|
}, operatorInputProps, {
|
|
@@ -55972,15 +55972,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
55972
55972
|
inputRef: filterSelectorRef,
|
|
55973
55973
|
disabled: readOnly
|
|
55974
55974
|
}, rootProps.slotProps?.baseSelect, {
|
|
55975
|
-
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
55975
|
+
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
55976
55976
|
native: isBaseSelectNative,
|
|
55977
55977
|
key: operator2.value,
|
|
55978
55978
|
value: operator2.value
|
|
55979
55979
|
}), operator2.label || apiRef.current.getLocaleText(`filterOperator${capitalize$1(operator2.value)}`)))
|
|
55980
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$
|
|
55980
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$c({}, valueInputPropsOther, {
|
|
55981
55981
|
className: clsx$1(classes2.valueInput, valueInputPropsOther.className),
|
|
55982
55982
|
ownerState: rootProps,
|
|
55983
|
-
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$
|
|
55983
|
+
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$c({
|
|
55984
55984
|
apiRef,
|
|
55985
55985
|
item,
|
|
55986
55986
|
applyValue: applyFilterChanges,
|
|
@@ -56204,7 +56204,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
56204
56204
|
apiRef.current.deleteFilterItem(validFilters[0]);
|
|
56205
56205
|
return apiRef.current.hideFilterPanel();
|
|
56206
56206
|
}
|
|
56207
|
-
return apiRef.current.setFilterModel(_extends$
|
|
56207
|
+
return apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
56208
56208
|
items: readOnlyFilters
|
|
56209
56209
|
}), "removeAllFilterItems");
|
|
56210
56210
|
}, [apiRef, readOnlyFilters, filterModel, validFilters]);
|
|
@@ -56218,10 +56218,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
56218
56218
|
lastFilterRef.current.focus();
|
|
56219
56219
|
}
|
|
56220
56220
|
}, [validFilters.length]);
|
|
56221
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$
|
|
56221
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$c({}, other, {
|
|
56222
56222
|
ref: ref2,
|
|
56223
56223
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
|
|
56224
|
-
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
56224
|
+
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
56225
56225
|
item,
|
|
56226
56226
|
applyFilterChanges: applyFilter,
|
|
56227
56227
|
deleteFilter,
|
|
@@ -56233,7 +56233,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
56233
56233
|
readOnly: true,
|
|
56234
56234
|
logicOperators,
|
|
56235
56235
|
columnsSort
|
|
56236
|
-
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
56236
|
+
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
56237
56237
|
item,
|
|
56238
56238
|
applyFilterChanges: applyFilter,
|
|
56239
56239
|
deleteFilter,
|
|
@@ -56246,12 +56246,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
56246
56246
|
columnsSort
|
|
56247
56247
|
}, filterFormProps), item.id == null ? index2 + readOnlyFilters.length : item.id))]
|
|
56248
56248
|
}), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
|
|
56249
|
-
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
56249
|
+
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
56250
56250
|
onClick: addNewFilter,
|
|
56251
56251
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
|
|
56252
56252
|
}, rootProps.slotProps?.baseButton, {
|
|
56253
56253
|
children: apiRef.current.getLocaleText("filterPanelAddFilter")
|
|
56254
|
-
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
56254
|
+
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
56255
56255
|
onClick: handleRemoveAll,
|
|
56256
56256
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
|
|
56257
56257
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -56392,7 +56392,7 @@ function GridShadowScrollArea(props) {
|
|
|
56392
56392
|
const {
|
|
56393
56393
|
children: children3
|
|
56394
56394
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded$p);
|
|
56395
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$
|
|
56395
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$c({}, rest, {
|
|
56396
56396
|
children: children3
|
|
56397
56397
|
}));
|
|
56398
56398
|
}
|
|
@@ -56458,7 +56458,7 @@ function GridColumnsManagement(props) {
|
|
|
56458
56458
|
}, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
|
|
56459
56459
|
const toggleAllColumns = React.useCallback((isVisible2) => {
|
|
56460
56460
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
56461
|
-
const newModel = _extends$
|
|
56461
|
+
const newModel = _extends$c({}, currentModel);
|
|
56462
56462
|
const togglableColumns = getTogglableColumns ? getTogglableColumns(columns2) : null;
|
|
56463
56463
|
(toggleAllMode === "filteredOnly" ? currentColumns : columns2).forEach((col) => {
|
|
56464
56464
|
if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
|
|
@@ -56501,7 +56501,7 @@ function GridColumnsManagement(props) {
|
|
|
56501
56501
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
|
|
56502
56502
|
className: classes2.header,
|
|
56503
56503
|
ownerState: rootProps,
|
|
56504
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$
|
|
56504
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$c({
|
|
56505
56505
|
as: rootProps.slots.baseTextField,
|
|
56506
56506
|
ownerState: rootProps,
|
|
56507
56507
|
placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
|
|
@@ -56516,7 +56516,7 @@ function GridColumnsManagement(props) {
|
|
|
56516
56516
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
56517
56517
|
fontSize: "small"
|
|
56518
56518
|
}),
|
|
56519
|
-
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
56519
|
+
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
56520
56520
|
size: "small",
|
|
56521
56521
|
"aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
|
|
56522
56522
|
style: searchValue ? {
|
|
@@ -56545,7 +56545,7 @@ function GridColumnsManagement(props) {
|
|
|
56545
56545
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementBody, {
|
|
56546
56546
|
className: classes2.root,
|
|
56547
56547
|
ownerState: rootProps,
|
|
56548
|
-
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
56548
|
+
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
56549
56549
|
className: classes2.row,
|
|
56550
56550
|
disabled: column2.hideable === false,
|
|
56551
56551
|
checked: columnVisibilityModel[column2.field] !== false,
|
|
@@ -56563,7 +56563,7 @@ function GridColumnsManagement(props) {
|
|
|
56563
56563
|
}), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
|
|
56564
56564
|
ownerState: rootProps,
|
|
56565
56565
|
className: classes2.footer,
|
|
56566
|
-
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
56566
|
+
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
56567
56567
|
disabled: hideableColumns.length === 0,
|
|
56568
56568
|
checked: allHideableColumnsVisible,
|
|
56569
56569
|
indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
|
|
@@ -56571,7 +56571,7 @@ function GridColumnsManagement(props) {
|
|
|
56571
56571
|
name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
56572
56572
|
label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
56573
56573
|
density: "compact"
|
|
56574
|
-
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
56574
|
+
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
56575
56575
|
onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
|
|
56576
56576
|
disabled: isResetDisabled
|
|
56577
56577
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -56702,11 +56702,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
|
|
|
56702
56702
|
return null;
|
|
56703
56703
|
}
|
|
56704
56704
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
56705
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
56705
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
56706
56706
|
title: apiRef.current.getLocaleText("toolbarExportLabel"),
|
|
56707
56707
|
enterDelay: 1e3
|
|
56708
56708
|
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
56709
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
56709
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
56710
56710
|
size: "small",
|
|
56711
56711
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
|
|
56712
56712
|
"aria-expanded": open2,
|
|
@@ -56761,7 +56761,7 @@ function GridCsvExportMenuItem(props) {
|
|
|
56761
56761
|
hideMenu,
|
|
56762
56762
|
options
|
|
56763
56763
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$o);
|
|
56764
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
56764
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
56765
56765
|
onClick: () => {
|
|
56766
56766
|
apiRef.current.exportDataAsCsv(options);
|
|
56767
56767
|
hideMenu?.();
|
|
@@ -56797,7 +56797,7 @@ function GridPrintExportMenuItem(props) {
|
|
|
56797
56797
|
hideMenu,
|
|
56798
56798
|
options
|
|
56799
56799
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded2$6);
|
|
56800
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
56800
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
56801
56801
|
onClick: () => {
|
|
56802
56802
|
apiRef.current.exportDataAsPrint(options);
|
|
56803
56803
|
hideMenu?.();
|
|
@@ -56841,7 +56841,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref2) {
|
|
|
56841
56841
|
if (preProcessedButtons.length === 0) {
|
|
56842
56842
|
return null;
|
|
56843
56843
|
}
|
|
56844
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$
|
|
56844
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$c({}, other, {
|
|
56845
56845
|
ref: ref2,
|
|
56846
56846
|
children: preProcessedButtons.map((button, index2) => /* @__PURE__ */ React.cloneElement(button.component, {
|
|
56847
56847
|
key: index2
|
|
@@ -57056,7 +57056,7 @@ function QuickFilter(props) {
|
|
|
57056
57056
|
ref2.current.style.setProperty("--trigger-width", `${triggerRef.current?.offsetWidth}px`);
|
|
57057
57057
|
}
|
|
57058
57058
|
}, []);
|
|
57059
|
-
const element2 = useGridComponentRenderer("div", render2, _extends$
|
|
57059
|
+
const element2 = useGridComponentRenderer("div", render2, _extends$c({
|
|
57060
57060
|
className: resolvedClassName
|
|
57061
57061
|
}, other, {
|
|
57062
57062
|
ref: ref2
|
|
@@ -57156,9 +57156,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref2)
|
|
|
57156
57156
|
onValueChange(event2);
|
|
57157
57157
|
onChange?.(event2);
|
|
57158
57158
|
};
|
|
57159
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$
|
|
57160
|
-
slotProps: _extends$
|
|
57161
|
-
htmlInput: _extends$
|
|
57159
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$c({}, rootProps.slotProps?.baseTextField, {
|
|
57160
|
+
slotProps: _extends$c({
|
|
57161
|
+
htmlInput: _extends$c({
|
|
57162
57162
|
role: "searchbox",
|
|
57163
57163
|
id: controlId,
|
|
57164
57164
|
tabIndex: state.expanded ? void 0 : -1
|
|
@@ -57227,7 +57227,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref2) {
|
|
|
57227
57227
|
clearValue();
|
|
57228
57228
|
onClick?.(event2);
|
|
57229
57229
|
};
|
|
57230
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
57230
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
57231
57231
|
className: resolvedClassName,
|
|
57232
57232
|
tabIndex: -1
|
|
57233
57233
|
}, other, {
|
|
@@ -57283,7 +57283,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref2)
|
|
|
57283
57283
|
onExpandedChange(!state.expanded);
|
|
57284
57284
|
onClick?.(event2);
|
|
57285
57285
|
};
|
|
57286
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
57286
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
57287
57287
|
className: resolvedClassName,
|
|
57288
57288
|
"aria-controls": controlId,
|
|
57289
57289
|
"aria-expanded": state.expanded
|
|
@@ -57385,16 +57385,16 @@ function GridToolbarQuickFilter(props) {
|
|
|
57385
57385
|
formatter: quickFilterFormatter,
|
|
57386
57386
|
debounceMs,
|
|
57387
57387
|
render: (quickFilterProps, state) => {
|
|
57388
|
-
const currentOwnerState = _extends$
|
|
57388
|
+
const currentOwnerState = _extends$c({}, ownerState, {
|
|
57389
57389
|
expanded: state.expanded
|
|
57390
57390
|
});
|
|
57391
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$
|
|
57391
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$c({}, quickFilterProps, {
|
|
57392
57392
|
className: clsx$1(classes2.root, className),
|
|
57393
57393
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
|
|
57394
57394
|
render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
57395
57395
|
title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
57396
57396
|
enterDelay: 0,
|
|
57397
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$
|
|
57397
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$c({
|
|
57398
57398
|
className: classes2.trigger
|
|
57399
57399
|
}, triggerProps, {
|
|
57400
57400
|
ownerState: currentOwnerState,
|
|
@@ -57411,7 +57411,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
57411
57411
|
ref: ref2,
|
|
57412
57412
|
slotProps: controlSlotProps
|
|
57413
57413
|
} = _ref, controlProps = _objectWithoutPropertiesLoose$1(_ref, _excluded2$5);
|
|
57414
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$
|
|
57414
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$c({
|
|
57415
57415
|
as: rootProps.slots.baseTextField,
|
|
57416
57416
|
className: classes2.control,
|
|
57417
57417
|
ownerState: currentOwnerState,
|
|
@@ -57419,8 +57419,8 @@ function GridToolbarQuickFilter(props) {
|
|
|
57419
57419
|
"aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
57420
57420
|
placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
|
|
57421
57421
|
size: "small",
|
|
57422
|
-
slotProps: _extends$
|
|
57423
|
-
input: _extends$
|
|
57422
|
+
slotProps: _extends$c({
|
|
57423
|
+
input: _extends$c({
|
|
57424
57424
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
57425
57425
|
fontSize: "small"
|
|
57426
57426
|
}),
|
|
@@ -57511,7 +57511,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref2)
|
|
|
57511
57511
|
}
|
|
57512
57512
|
onPointerUp?.(event2);
|
|
57513
57513
|
};
|
|
57514
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
57514
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
57515
57515
|
id: buttonId,
|
|
57516
57516
|
"aria-haspopup": "true",
|
|
57517
57517
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -57585,7 +57585,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref2
|
|
|
57585
57585
|
}
|
|
57586
57586
|
onPointerUp?.(event2);
|
|
57587
57587
|
};
|
|
57588
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
57588
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
57589
57589
|
id: buttonId,
|
|
57590
57590
|
"aria-haspopup": "true",
|
|
57591
57591
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -57636,7 +57636,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref2) {
|
|
|
57636
57636
|
apiRef.current.exportDataAsCsv(options);
|
|
57637
57637
|
onClick?.(event2);
|
|
57638
57638
|
};
|
|
57639
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
57639
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
57640
57640
|
onClick: handleClick
|
|
57641
57641
|
}, other, {
|
|
57642
57642
|
ref: ref2
|
|
@@ -57695,7 +57695,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref2) {
|
|
|
57695
57695
|
apiRef.current.exportDataAsPrint(options);
|
|
57696
57696
|
onClick?.(event2);
|
|
57697
57697
|
};
|
|
57698
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
57698
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
57699
57699
|
onClick: handleClick
|
|
57700
57700
|
}, other, {
|
|
57701
57701
|
ref: ref2
|
|
@@ -57775,7 +57775,7 @@ function GridToolbarDivider(props) {
|
|
|
57775
57775
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded$e);
|
|
57776
57776
|
const rootProps = useGridRootProps();
|
|
57777
57777
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
57778
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$
|
|
57778
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$c({
|
|
57779
57779
|
as: rootProps.slots.baseDivider,
|
|
57780
57780
|
orientation: "vertical",
|
|
57781
57781
|
className: classes2.divider
|
|
@@ -57793,7 +57793,7 @@ function GridToolbarLabel(props) {
|
|
|
57793
57793
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded2$4);
|
|
57794
57794
|
const rootProps = useGridRootProps();
|
|
57795
57795
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
57796
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$
|
|
57796
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$c({
|
|
57797
57797
|
className: classes2.label
|
|
57798
57798
|
}, other));
|
|
57799
57799
|
}
|
|
@@ -57827,7 +57827,7 @@ function GridToolbar(props) {
|
|
|
57827
57827
|
}), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
57828
57828
|
title: apiRef.current.getLocaleText("toolbarFilters"),
|
|
57829
57829
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
|
|
57830
|
-
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$
|
|
57830
|
+
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$c({}, triggerProps, {
|
|
57831
57831
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
|
|
57832
57832
|
badgeContent: state.filterCount,
|
|
57833
57833
|
color: "primary",
|
|
@@ -57857,18 +57857,18 @@ function GridToolbar(props) {
|
|
|
57857
57857
|
open: exportMenuOpen,
|
|
57858
57858
|
onClose: closeExportMenu,
|
|
57859
57859
|
position: "bottom-end",
|
|
57860
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$
|
|
57860
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$c({
|
|
57861
57861
|
id: exportMenuId,
|
|
57862
57862
|
"aria-labelledby": exportMenuTriggerId,
|
|
57863
57863
|
autoFocusItem: true
|
|
57864
57864
|
}, rootProps.slotProps?.baseMenuList, {
|
|
57865
57865
|
children: [!printOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
|
|
57866
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
57866
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
57867
57867
|
options: printOptions,
|
|
57868
57868
|
onClick: closeExportMenu,
|
|
57869
57869
|
children: apiRef.current.getLocaleText("toolbarExportPrint")
|
|
57870
57870
|
}), !csvOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
|
|
57871
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
57871
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
57872
57872
|
options: csvOptions,
|
|
57873
57873
|
onClick: closeExportMenu,
|
|
57874
57874
|
children: apiRef.current.getLocaleText("toolbarExportCSV")
|
|
@@ -57876,7 +57876,7 @@ function GridToolbar(props) {
|
|
|
57876
57876
|
}))
|
|
57877
57877
|
})]
|
|
57878
57878
|
}), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
57879
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$
|
|
57879
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$c({}, quickFilterProps))]
|
|
57880
57880
|
})]
|
|
57881
57881
|
});
|
|
57882
57882
|
}
|
|
@@ -57946,7 +57946,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
|
|
|
57946
57946
|
const ownerState = useGridRootProps();
|
|
57947
57947
|
const classes2 = useUtilityClasses$a(ownerState);
|
|
57948
57948
|
const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
|
|
57949
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$
|
|
57949
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$c({
|
|
57950
57950
|
className: clsx$1(classes2.root, className),
|
|
57951
57951
|
ownerState
|
|
57952
57952
|
}, other, {
|
|
@@ -57971,12 +57971,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref2) {
|
|
|
57971
57971
|
const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
|
|
57972
57972
|
selectedRowCount
|
|
57973
57973
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
|
|
57974
|
-
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$
|
|
57974
|
+
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$c({}, rootProps.slotProps?.footerRowCount, {
|
|
57975
57975
|
rowCount: totalTopLevelRowCount,
|
|
57976
57976
|
visibleRowCount: visibleTopLevelRowCount
|
|
57977
57977
|
})) : null;
|
|
57978
57978
|
const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
|
|
57979
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$
|
|
57979
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$c({}, props, {
|
|
57980
57980
|
ref: ref2,
|
|
57981
57981
|
children: [selectedRowCountElement, rowCountElement, paginationElement]
|
|
57982
57982
|
}));
|
|
@@ -58136,7 +58136,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
58136
58136
|
"data-colindex": colIndex,
|
|
58137
58137
|
empty: visibleColumns && !visibleColumns.has(column2.field),
|
|
58138
58138
|
className: clsx$1(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
|
|
58139
|
-
style: _extends$
|
|
58139
|
+
style: _extends$c({
|
|
58140
58140
|
"--width": `${column2.computedWidth}px`
|
|
58141
58141
|
}, pinnedStyle)
|
|
58142
58142
|
}, `skeleton-column-${i2}-${column2.field}`));
|
|
@@ -58196,7 +58196,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
58196
58196
|
}
|
|
58197
58197
|
};
|
|
58198
58198
|
useGridEvent(apiRef, "columnResize", handleColumnResize);
|
|
58199
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$
|
|
58199
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$c({
|
|
58200
58200
|
className: classes2.root
|
|
58201
58201
|
}, rest, {
|
|
58202
58202
|
ref: handleRef,
|
|
@@ -58208,7 +58208,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
|
|
|
58208
58208
|
const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
|
|
58209
58209
|
const viewportHeight = dimensions?.viewportInnerSize.height ?? 0;
|
|
58210
58210
|
const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
|
|
58211
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$
|
|
58211
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$c({}, props, {
|
|
58212
58212
|
skeletonRowsCount,
|
|
58213
58213
|
ref: forwardedRef
|
|
58214
58214
|
}));
|
|
@@ -58243,8 +58243,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref2)
|
|
|
58243
58243
|
const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
58244
58244
|
const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
|
|
58245
58245
|
const Component2 = activeVariant.component(rootProps);
|
|
58246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
58247
|
-
style: _extends$
|
|
58246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({
|
|
58247
|
+
style: _extends$c({}, activeVariant.style, style2)
|
|
58248
58248
|
}, other, {
|
|
58249
58249
|
ref: ref2,
|
|
58250
58250
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, {})
|
|
@@ -58270,7 +58270,7 @@ GridLoadingOverlay.propTypes = {
|
|
|
58270
58270
|
const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref2) {
|
|
58271
58271
|
const apiRef = useGridApiContext();
|
|
58272
58272
|
const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
|
|
58273
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
58273
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
58274
58274
|
ref: ref2,
|
|
58275
58275
|
children: noRowsLabel
|
|
58276
58276
|
}));
|
|
@@ -58290,9 +58290,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
|
|
|
58290
58290
|
apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
|
|
58291
58291
|
};
|
|
58292
58292
|
const showManageColumnsButton = !rootProps.disableColumnSelector && columns2.length > 0;
|
|
58293
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$
|
|
58293
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$c({}, props, {
|
|
58294
58294
|
ref: ref2,
|
|
58295
|
-
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
58295
|
+
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
58296
58296
|
size: "small"
|
|
58297
58297
|
}, rootProps.slotProps?.baseButton, {
|
|
58298
58298
|
onClick: handleOpenManageColumns,
|
|
@@ -58408,7 +58408,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref2) {
|
|
|
58408
58408
|
return null;
|
|
58409
58409
|
}
|
|
58410
58410
|
const text2 = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
|
|
58411
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$
|
|
58411
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$c({
|
|
58412
58412
|
className: clsx$1(classes2.root, className),
|
|
58413
58413
|
ownerState
|
|
58414
58414
|
}, other, {
|
|
@@ -58541,7 +58541,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
58541
58541
|
slotProps,
|
|
58542
58542
|
disableColumnReorder
|
|
58543
58543
|
} = rootProps;
|
|
58544
|
-
const heightEntry = useGridSelector(apiRef, () => _extends$
|
|
58544
|
+
const heightEntry = useGridSelector(apiRef, () => _extends$c({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
|
|
58545
58545
|
const style2 = React.useMemo(() => {
|
|
58546
58546
|
if (isNotVisible) {
|
|
58547
58547
|
return {
|
|
@@ -58550,7 +58550,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
58550
58550
|
height: 0
|
|
58551
58551
|
};
|
|
58552
58552
|
}
|
|
58553
|
-
const rowStyle = _extends$
|
|
58553
|
+
const rowStyle = _extends$c({}, styleProp, {
|
|
58554
58554
|
maxHeight: rowHeight === "auto" ? "none" : rowHeight,
|
|
58555
58555
|
// max-height doesn't support "auto"
|
|
58556
58556
|
minHeight: rowHeight,
|
|
@@ -58575,7 +58575,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
58575
58575
|
const ariaAttributes = getRowAriaAttributes(rowNode, index2);
|
|
58576
58576
|
if (typeof rootProps.getRowClassName === "function") {
|
|
58577
58577
|
const indexRelativeToCurrentPage = index2 - (currentPage.range?.firstRowIndex || 0);
|
|
58578
|
-
const rowParams = _extends$
|
|
58578
|
+
const rowParams = _extends$c({}, apiRef.current.getRowParams(rowId), {
|
|
58579
58579
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
58580
58580
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
58581
58581
|
indexRelativeToCurrentPage
|
|
@@ -58606,7 +58606,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
58606
58606
|
const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
|
|
58607
58607
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
58608
58608
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
|
|
58609
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$
|
|
58609
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$c({
|
|
58610
58610
|
column: column2,
|
|
58611
58611
|
width: width2,
|
|
58612
58612
|
rowId,
|
|
@@ -58655,7 +58655,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
58655
58655
|
onMouseOut: publish("rowMouseOut", onMouseOut),
|
|
58656
58656
|
onMouseOver: publish("rowMouseOver", onMouseOver)
|
|
58657
58657
|
} : null;
|
|
58658
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
58658
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
58659
58659
|
"data-id": rowId,
|
|
58660
58660
|
"data-rowindex": index2,
|
|
58661
58661
|
role: "row",
|
|
@@ -58800,7 +58800,7 @@ const useGridIsRtl = (apiRef) => {
|
|
|
58800
58800
|
if (isFirstEffect.current) {
|
|
58801
58801
|
isFirstEffect.current = false;
|
|
58802
58802
|
} else {
|
|
58803
|
-
apiRef.current.setState((state) => _extends$
|
|
58803
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
58804
58804
|
isRtl
|
|
58805
58805
|
}));
|
|
58806
58806
|
}
|
|
@@ -59353,7 +59353,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
59353
59353
|
}, [apiRef]);
|
|
59354
59354
|
const updateControlState = React.useCallback((key2, state, reason) => {
|
|
59355
59355
|
return apiRef.current.setState((previousState) => {
|
|
59356
|
-
return _extends$
|
|
59356
|
+
return _extends$c({}, previousState, {
|
|
59357
59357
|
[key2]: state(previousState[key2])
|
|
59358
59358
|
});
|
|
59359
59359
|
}, reason);
|
|
@@ -59369,7 +59369,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
59369
59369
|
useGridApiMethod(apiRef, privateStateApi, "private");
|
|
59370
59370
|
};
|
|
59371
59371
|
const propsStateInitializer = (state, props) => {
|
|
59372
|
-
return _extends$
|
|
59372
|
+
return _extends$c({}, state, {
|
|
59373
59373
|
props: {
|
|
59374
59374
|
getRowId: props.getRowId
|
|
59375
59375
|
}
|
|
@@ -59377,7 +59377,7 @@ const propsStateInitializer = (state, props) => {
|
|
|
59377
59377
|
};
|
|
59378
59378
|
const useGridProps = (apiRef, props) => {
|
|
59379
59379
|
React.useEffect(() => {
|
|
59380
|
-
apiRef.current.setState((state) => _extends$
|
|
59380
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
59381
59381
|
props: {
|
|
59382
59382
|
getRowId: props.getRowId
|
|
59383
59383
|
}
|
|
@@ -59627,7 +59627,7 @@ const useGridClipboard = (apiRef, props) => {
|
|
|
59627
59627
|
useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
|
|
59628
59628
|
useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
|
|
59629
59629
|
};
|
|
59630
|
-
const columnMenuStateInitializer = (state) => _extends$
|
|
59630
|
+
const columnMenuStateInitializer = (state) => _extends$c({}, state, {
|
|
59631
59631
|
columnMenu: {
|
|
59632
59632
|
open: false
|
|
59633
59633
|
}
|
|
@@ -59647,7 +59647,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
59647
59647
|
return state;
|
|
59648
59648
|
}
|
|
59649
59649
|
logger2.debug("Opening Column Menu");
|
|
59650
|
-
return _extends$
|
|
59650
|
+
return _extends$c({}, state, {
|
|
59651
59651
|
columnMenu: {
|
|
59652
59652
|
open: true,
|
|
59653
59653
|
field: field2
|
|
@@ -59687,7 +59687,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
59687
59687
|
if (shouldUpdate) {
|
|
59688
59688
|
apiRef.current.setState((state) => {
|
|
59689
59689
|
logger2.debug("Hiding Column Menu");
|
|
59690
|
-
return _extends$
|
|
59690
|
+
return _extends$c({}, state, {
|
|
59691
59691
|
columnMenu: newState
|
|
59692
59692
|
});
|
|
59693
59693
|
});
|
|
@@ -59720,7 +59720,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
|
|
|
59720
59720
|
columnVisibilityModel: props.columnVisibilityModel ?? props.initialState?.columns?.columnVisibilityModel ?? {},
|
|
59721
59721
|
keepOnlyColumnsToUpsert: true
|
|
59722
59722
|
});
|
|
59723
|
-
return _extends$
|
|
59723
|
+
return _extends$c({}, state, {
|
|
59724
59724
|
columns: columnsState,
|
|
59725
59725
|
// In pro/premium, this part of the state is defined. We give it an empty but defined value
|
|
59726
59726
|
// for the community version.
|
|
@@ -59756,7 +59756,7 @@ function useGridColumns(apiRef, props) {
|
|
|
59756
59756
|
const setColumnVisibilityModel = React.useCallback((model) => {
|
|
59757
59757
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
59758
59758
|
if (currentModel !== model) {
|
|
59759
|
-
apiRef.current.setState((state) => _extends$
|
|
59759
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
59760
59760
|
columns: createColumnsState({
|
|
59761
59761
|
apiRef,
|
|
59762
59762
|
columnsToUpsert: [],
|
|
@@ -59782,7 +59782,7 @@ function useGridColumns(apiRef, props) {
|
|
|
59782
59782
|
const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
|
|
59783
59783
|
const isCurrentlyVisible = columnVisibilityModel[field2] ?? true;
|
|
59784
59784
|
if (isVisible2 !== isCurrentlyVisible) {
|
|
59785
|
-
const newModel = _extends$
|
|
59785
|
+
const newModel = _extends$c({}, columnVisibilityModel, {
|
|
59786
59786
|
[field2]: isVisible2
|
|
59787
59787
|
});
|
|
59788
59788
|
apiRef.current.setColumnVisibilityModel(newModel);
|
|
@@ -59802,7 +59802,7 @@ function useGridColumns(apiRef, props) {
|
|
|
59802
59802
|
const updatedColumns = [...allColumns];
|
|
59803
59803
|
const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
|
|
59804
59804
|
updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
|
|
59805
|
-
setGridColumnsState(_extends$
|
|
59805
|
+
setGridColumnsState(_extends$c({}, gridColumnsStateSelector(apiRef), {
|
|
59806
59806
|
orderedFields: updatedColumns
|
|
59807
59807
|
}));
|
|
59808
59808
|
const params2 = {
|
|
@@ -59816,12 +59816,12 @@ function useGridColumns(apiRef, props) {
|
|
|
59816
59816
|
logger2.debug(`Updating column ${field2} width to ${width2}`);
|
|
59817
59817
|
const columnsState = gridColumnsStateSelector(apiRef);
|
|
59818
59818
|
const column2 = columnsState.lookup[field2];
|
|
59819
|
-
const newColumn = _extends$
|
|
59819
|
+
const newColumn = _extends$c({}, column2, {
|
|
59820
59820
|
width: width2,
|
|
59821
59821
|
hasBeenResized: true
|
|
59822
59822
|
});
|
|
59823
|
-
setGridColumnsState(hydrateColumnsWidth(_extends$
|
|
59824
|
-
lookup: _extends$
|
|
59823
|
+
setGridColumnsState(hydrateColumnsWidth(_extends$c({}, columnsState, {
|
|
59824
|
+
lookup: _extends$c({}, columnsState.lookup, {
|
|
59825
59825
|
[field2]: newColumn
|
|
59826
59826
|
})
|
|
59827
59827
|
}), apiRef.current.getRootDimensions()));
|
|
@@ -59881,7 +59881,7 @@ function useGridColumns(apiRef, props) {
|
|
|
59881
59881
|
if (Object.keys(dimensions).length > 0) {
|
|
59882
59882
|
columnsStateToExport.dimensions = dimensions;
|
|
59883
59883
|
}
|
|
59884
|
-
return _extends$
|
|
59884
|
+
return _extends$c({}, prevState, {
|
|
59885
59885
|
columns: columnsStateToExport
|
|
59886
59886
|
});
|
|
59887
59887
|
}, [apiRef, props.columnVisibilityModel, props.initialState?.columns]);
|
|
@@ -59907,7 +59907,7 @@ function useGridColumns(apiRef, props) {
|
|
|
59907
59907
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
59908
59908
|
if (value2 === GridPreferencePanelsValue.columns) {
|
|
59909
59909
|
const ColumnsPanel = props.slots.columnsPanel;
|
|
59910
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$
|
|
59910
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$c({}, props.slotProps?.columnsPanel));
|
|
59911
59911
|
}
|
|
59912
59912
|
return initialValue;
|
|
59913
59913
|
}, [props.slots.columnsPanel, props.slotProps?.columnsPanel]);
|
|
@@ -59972,11 +59972,11 @@ function useGridColumns(apiRef, props) {
|
|
|
59972
59972
|
}, [apiRef, logger2, props.columnVisibilityModel]);
|
|
59973
59973
|
}
|
|
59974
59974
|
function mergeColumnsState(columnsState) {
|
|
59975
|
-
return (state) => _extends$
|
|
59975
|
+
return (state) => _extends$c({}, state, {
|
|
59976
59976
|
columns: columnsState
|
|
59977
59977
|
});
|
|
59978
59978
|
}
|
|
59979
|
-
const densityStateInitializer = (state, props) => _extends$
|
|
59979
|
+
const densityStateInitializer = (state, props) => _extends$c({}, state, {
|
|
59980
59980
|
density: props.initialState?.density ?? props.density ?? "standard"
|
|
59981
59981
|
});
|
|
59982
59982
|
const useGridDensity = (apiRef, props) => {
|
|
@@ -59994,7 +59994,7 @@ const useGridDensity = (apiRef, props) => {
|
|
|
59994
59994
|
return;
|
|
59995
59995
|
}
|
|
59996
59996
|
logger2.debug(`Set grid density to ${newDensity}`);
|
|
59997
|
-
apiRef.current.setState((state) => _extends$
|
|
59997
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
59998
59998
|
density: newDensity
|
|
59999
59999
|
}));
|
|
60000
60000
|
});
|
|
@@ -60013,13 +60013,13 @@ const useGridDensity = (apiRef, props) => {
|
|
|
60013
60013
|
if (!shouldExportRowCount) {
|
|
60014
60014
|
return prevState;
|
|
60015
60015
|
}
|
|
60016
|
-
return _extends$
|
|
60016
|
+
return _extends$c({}, prevState, {
|
|
60017
60017
|
density: exportedDensity
|
|
60018
60018
|
});
|
|
60019
60019
|
}, [apiRef, props.density, props.initialState?.density]);
|
|
60020
60020
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
60021
60021
|
const restoredDensity = context2.stateToRestore?.density ? context2.stateToRestore.density : gridDensitySelector(apiRef);
|
|
60022
|
-
apiRef.current.setState((state) => _extends$
|
|
60022
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60023
60023
|
density: restoredDensity
|
|
60024
60024
|
}));
|
|
60025
60025
|
return params2;
|
|
@@ -60147,7 +60147,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
|
|
|
60147
60147
|
}
|
|
60148
60148
|
const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
|
|
60149
60149
|
if (validPage !== paginationModel.page) {
|
|
60150
|
-
paginationModel = _extends$
|
|
60150
|
+
paginationModel = _extends$c({}, paginationModel, {
|
|
60151
60151
|
page: validPage
|
|
60152
60152
|
});
|
|
60153
60153
|
}
|
|
@@ -60194,8 +60194,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
60194
60194
|
return;
|
|
60195
60195
|
}
|
|
60196
60196
|
logger2.debug("Setting 'paginationModel' to", paginationModel);
|
|
60197
|
-
apiRef.current.setState((state) => _extends$
|
|
60198
|
-
pagination: _extends$
|
|
60197
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60198
|
+
pagination: _extends$c({}, state.pagination, {
|
|
60199
60199
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
60200
60200
|
})
|
|
60201
60201
|
}), "setPaginationModel");
|
|
@@ -60218,16 +60218,16 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
60218
60218
|
if (!shouldExportPaginationModel) {
|
|
60219
60219
|
return prevState;
|
|
60220
60220
|
}
|
|
60221
|
-
return _extends$
|
|
60222
|
-
pagination: _extends$
|
|
60221
|
+
return _extends$c({}, prevState, {
|
|
60222
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
60223
60223
|
paginationModel
|
|
60224
60224
|
})
|
|
60225
60225
|
});
|
|
60226
60226
|
}, [apiRef, props.paginationModel, props.initialState?.pagination?.paginationModel, props.autoPageSize]);
|
|
60227
60227
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
60228
|
-
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$
|
|
60229
|
-
apiRef.current.setState((state) => _extends$
|
|
60230
|
-
pagination: _extends$
|
|
60228
|
+
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), context2.stateToRestore.pagination?.paginationModel) : gridPaginationModelSelector(apiRef);
|
|
60229
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60230
|
+
pagination: _extends$c({}, state.pagination, {
|
|
60231
60231
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
60232
60232
|
})
|
|
60233
60233
|
}), "stateRestorePreProcessing");
|
|
@@ -60277,7 +60277,7 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
60277
60277
|
}
|
|
60278
60278
|
}, [apiRef]);
|
|
60279
60279
|
const handleFilterModelChange = React.useCallback((filterModel) => {
|
|
60280
|
-
const currentActiveFilters = _extends$
|
|
60280
|
+
const currentActiveFilters = _extends$c({}, filterModel, {
|
|
60281
60281
|
// replace items with the active items
|
|
60282
60282
|
items: gridFilterActiveItemsSelector(apiRef)
|
|
60283
60283
|
});
|
|
@@ -60301,8 +60301,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
60301
60301
|
if (!props.pagination) {
|
|
60302
60302
|
return;
|
|
60303
60303
|
}
|
|
60304
|
-
apiRef.current.setState((state) => _extends$
|
|
60305
|
-
pagination: _extends$
|
|
60304
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60305
|
+
pagination: _extends$c({}, state.pagination, {
|
|
60306
60306
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
|
|
60307
60307
|
})
|
|
60308
60308
|
}));
|
|
@@ -60313,8 +60313,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
60313
60313
|
if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled2) {
|
|
60314
60314
|
return state;
|
|
60315
60315
|
}
|
|
60316
|
-
return _extends$
|
|
60317
|
-
pagination: _extends$
|
|
60316
|
+
return _extends$c({}, state, {
|
|
60317
|
+
pagination: _extends$c({}, state.pagination, {
|
|
60318
60318
|
paginationMode: props.paginationMode,
|
|
60319
60319
|
enabled: props.pagination === true
|
|
60320
60320
|
})
|
|
@@ -60382,7 +60382,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
60382
60382
|
apiRef.current.setRows(newRows);
|
|
60383
60383
|
}, [apiRef]);
|
|
60384
60384
|
const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
|
|
60385
|
-
const normalizeOptions2 = _extends$
|
|
60385
|
+
const normalizeOptions2 = _extends$c({
|
|
60386
60386
|
copyStyles: true,
|
|
60387
60387
|
hideToolbar: false,
|
|
60388
60388
|
hideFooter: false,
|
|
@@ -60478,7 +60478,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
60478
60478
|
if (!previousGridState.current?.columns?.columnVisibilityModel) {
|
|
60479
60479
|
apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
|
|
60480
60480
|
}
|
|
60481
|
-
apiRef.current.setState((state) => _extends$
|
|
60481
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60482
60482
|
virtualization: previousVirtualizationState.current
|
|
60483
60483
|
}));
|
|
60484
60484
|
apiRef.current.setRows(previousRows.current);
|
|
@@ -60500,8 +60500,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
60500
60500
|
page: 0,
|
|
60501
60501
|
pageSize: visibleRowCount
|
|
60502
60502
|
};
|
|
60503
|
-
apiRef.current.setState((state) => _extends$
|
|
60504
|
-
pagination: _extends$
|
|
60503
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60504
|
+
pagination: _extends$c({}, state.pagination, {
|
|
60505
60505
|
paginationModel: getDerivedPaginationModel(
|
|
60506
60506
|
state.pagination,
|
|
60507
60507
|
// Using signature `DataGridPro` to allow more than 100 rows in the print export
|
|
@@ -60512,8 +60512,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
60512
60512
|
}));
|
|
60513
60513
|
}
|
|
60514
60514
|
previousVirtualizationState.current = apiRef.current.state.virtualization;
|
|
60515
|
-
apiRef.current.setState((state) => _extends$
|
|
60516
|
-
virtualization: _extends$
|
|
60515
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60516
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
60517
60517
|
enabled: false,
|
|
60518
60518
|
enabledForColumns: false
|
|
60519
60519
|
})
|
|
@@ -60555,8 +60555,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
60555
60555
|
};
|
|
60556
60556
|
const filterStateInitializer = (state, props, apiRef) => {
|
|
60557
60557
|
const filterModel = props.filterModel ?? props.initialState?.filter?.filterModel ?? getDefaultGridFilterModel();
|
|
60558
|
-
return _extends$
|
|
60559
|
-
filter: _extends$
|
|
60558
|
+
return _extends$c({}, state, {
|
|
60559
|
+
filter: _extends$c({
|
|
60560
60560
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
|
|
60561
60561
|
}, defaultGridFilterLookup),
|
|
60562
60562
|
visibleRowsLookup: {}
|
|
@@ -60587,11 +60587,11 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60587
60587
|
apiRef.current.setState((state) => {
|
|
60588
60588
|
const filterModel = gridFilterModelSelector(apiRef);
|
|
60589
60589
|
const filterState = apiRef.current.getFilterState(filterModel);
|
|
60590
|
-
const newState = _extends$
|
|
60591
|
-
filter: _extends$
|
|
60590
|
+
const newState = _extends$c({}, state, {
|
|
60591
|
+
filter: _extends$c({}, state.filter, filterState)
|
|
60592
60592
|
});
|
|
60593
60593
|
const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
60594
|
-
return _extends$
|
|
60594
|
+
return _extends$c({}, newState, {
|
|
60595
60595
|
visibleRowsLookup: visibleRowsLookupState
|
|
60596
60596
|
});
|
|
60597
60597
|
});
|
|
@@ -60612,7 +60612,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60612
60612
|
} else {
|
|
60613
60613
|
items[itemIndex] = item;
|
|
60614
60614
|
}
|
|
60615
|
-
apiRef.current.setFilterModel(_extends$
|
|
60615
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60616
60616
|
items
|
|
60617
60617
|
}), "upsertFilterItem");
|
|
60618
60618
|
}, [apiRef]);
|
|
@@ -60627,7 +60627,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60627
60627
|
existingItems[itemIndex] = item;
|
|
60628
60628
|
}
|
|
60629
60629
|
});
|
|
60630
|
-
apiRef.current.setFilterModel(_extends$
|
|
60630
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60631
60631
|
items: existingItems
|
|
60632
60632
|
}), "upsertFilterItems");
|
|
60633
60633
|
}, [apiRef]);
|
|
@@ -60637,7 +60637,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60637
60637
|
if (items.length === filterModel.items.length) {
|
|
60638
60638
|
return;
|
|
60639
60639
|
}
|
|
60640
|
-
apiRef.current.setFilterModel(_extends$
|
|
60640
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60641
60641
|
items
|
|
60642
60642
|
}), "deleteFilterItem");
|
|
60643
60643
|
}, [apiRef]);
|
|
@@ -60676,7 +60676,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60676
60676
|
operator: targetColumn.filterOperators[0].value
|
|
60677
60677
|
}, apiRef)];
|
|
60678
60678
|
}
|
|
60679
|
-
apiRef.current.setFilterModel(_extends$
|
|
60679
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60680
60680
|
items: newFilterItems
|
|
60681
60681
|
}));
|
|
60682
60682
|
}
|
|
@@ -60691,7 +60691,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60691
60691
|
if (filterModel.logicOperator === logicOperator) {
|
|
60692
60692
|
return;
|
|
60693
60693
|
}
|
|
60694
|
-
apiRef.current.setFilterModel(_extends$
|
|
60694
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60695
60695
|
logicOperator
|
|
60696
60696
|
}), "changeLogicOperator");
|
|
60697
60697
|
}, [apiRef]);
|
|
@@ -60700,7 +60700,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60700
60700
|
if (isDeepEqual(filterModel.quickFilterValues, values3)) {
|
|
60701
60701
|
return;
|
|
60702
60702
|
}
|
|
60703
|
-
apiRef.current.setFilterModel(_extends$
|
|
60703
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60704
60704
|
quickFilterValues: [...values3]
|
|
60705
60705
|
}));
|
|
60706
60706
|
}, [apiRef]);
|
|
@@ -60719,7 +60719,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60719
60719
|
isRowMatchingFilters,
|
|
60720
60720
|
filterModel: filterModel ?? getDefaultGridFilterModel()
|
|
60721
60721
|
});
|
|
60722
|
-
return _extends$
|
|
60722
|
+
return _extends$c({}, filterResult, {
|
|
60723
60723
|
filterModel
|
|
60724
60724
|
});
|
|
60725
60725
|
}, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
|
|
@@ -60752,7 +60752,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60752
60752
|
if (!shouldExportFilterModel) {
|
|
60753
60753
|
return prevState;
|
|
60754
60754
|
}
|
|
60755
|
-
return _extends$
|
|
60755
|
+
return _extends$c({}, prevState, {
|
|
60756
60756
|
filter: {
|
|
60757
60757
|
filterModel: filterModelToExport
|
|
60758
60758
|
}
|
|
@@ -60764,14 +60764,14 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60764
60764
|
return params2;
|
|
60765
60765
|
}
|
|
60766
60766
|
apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
|
|
60767
|
-
return _extends$
|
|
60767
|
+
return _extends$c({}, params2, {
|
|
60768
60768
|
callbacks: [...params2.callbacks, apiRef.current.unstable_applyFilters]
|
|
60769
60769
|
});
|
|
60770
60770
|
}, [apiRef, props.disableMultipleColumnsFiltering]);
|
|
60771
60771
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
60772
60772
|
if (value2 === GridPreferencePanelsValue.filters) {
|
|
60773
60773
|
const FilterPanel = props.slots.filterPanel;
|
|
60774
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$
|
|
60774
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$c({}, props.slotProps?.filterPanel));
|
|
60775
60775
|
}
|
|
60776
60776
|
return initialValue;
|
|
60777
60777
|
}, [props.slots.filterPanel, props.slotProps?.filterPanel]);
|
|
@@ -60826,7 +60826,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60826
60826
|
const columnsLookup = gridColumnLookupSelector(apiRef);
|
|
60827
60827
|
const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
|
|
60828
60828
|
if (newFilterItems.length < filterModel.items.length) {
|
|
60829
|
-
apiRef.current.setFilterModel(_extends$
|
|
60829
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
60830
60830
|
items: newFilterItems
|
|
60831
60831
|
}));
|
|
60832
60832
|
}
|
|
@@ -60838,7 +60838,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60838
60838
|
}, [apiRef]);
|
|
60839
60839
|
const updateVisibleRowsLookupState = React.useCallback(() => {
|
|
60840
60840
|
apiRef.current.setState((state) => {
|
|
60841
|
-
return _extends$
|
|
60841
|
+
return _extends$c({}, state, {
|
|
60842
60842
|
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
60843
60843
|
});
|
|
60844
60844
|
});
|
|
@@ -60862,7 +60862,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
60862
60862
|
}
|
|
60863
60863
|
}, [apiRef, logger2, props.filterModel]);
|
|
60864
60864
|
};
|
|
60865
|
-
const focusStateInitializer = (state) => _extends$
|
|
60865
|
+
const focusStateInitializer = (state) => _extends$c({}, state, {
|
|
60866
60866
|
focus: {
|
|
60867
60867
|
cell: null,
|
|
60868
60868
|
columnHeader: null,
|
|
@@ -60894,7 +60894,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
60894
60894
|
}
|
|
60895
60895
|
apiRef.current.setState((state) => {
|
|
60896
60896
|
logger2.debug(`Focusing on cell with id=${id2} and field=${field2}`);
|
|
60897
|
-
return _extends$
|
|
60897
|
+
return _extends$c({}, state, {
|
|
60898
60898
|
tabIndex: {
|
|
60899
60899
|
cell: {
|
|
60900
60900
|
id: id2,
|
|
@@ -60928,7 +60928,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
60928
60928
|
publishCellFocusOut(cell2, event2);
|
|
60929
60929
|
apiRef.current.setState((state) => {
|
|
60930
60930
|
logger2.debug(`Focusing on column header with colIndex=${field2}`);
|
|
60931
|
-
return _extends$
|
|
60931
|
+
return _extends$c({}, state, {
|
|
60932
60932
|
tabIndex: {
|
|
60933
60933
|
columnHeader: {
|
|
60934
60934
|
field: field2
|
|
@@ -60953,7 +60953,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
60953
60953
|
publishCellFocusOut(cell2, event2);
|
|
60954
60954
|
apiRef.current.setState((state) => {
|
|
60955
60955
|
logger2.debug(`Focusing on column header filter with colIndex=${field2}`);
|
|
60956
|
-
return _extends$
|
|
60956
|
+
return _extends$c({}, state, {
|
|
60957
60957
|
tabIndex: {
|
|
60958
60958
|
columnHeader: null,
|
|
60959
60959
|
columnHeaderFilter: {
|
|
@@ -60979,7 +60979,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
60979
60979
|
apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell2.id, cell2.field), event2);
|
|
60980
60980
|
}
|
|
60981
60981
|
apiRef.current.setState((state) => {
|
|
60982
|
-
return _extends$
|
|
60982
|
+
return _extends$c({}, state, {
|
|
60983
60983
|
tabIndex: {
|
|
60984
60984
|
columnGroupHeader: {
|
|
60985
60985
|
field: field2,
|
|
@@ -61085,7 +61085,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
61085
61085
|
return;
|
|
61086
61086
|
}
|
|
61087
61087
|
logger2.debug(`Clearing focus`);
|
|
61088
|
-
apiRef.current.setState((state) => _extends$
|
|
61088
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61089
61089
|
focus: {
|
|
61090
61090
|
cell: null,
|
|
61091
61091
|
columnHeader: null,
|
|
@@ -61124,7 +61124,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
61124
61124
|
if (cellParams) {
|
|
61125
61125
|
apiRef.current.setCellFocus(cellParams.id, cellParams.field);
|
|
61126
61126
|
} else {
|
|
61127
|
-
apiRef.current.setState((state) => _extends$
|
|
61127
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61128
61128
|
focus: {
|
|
61129
61129
|
cell: null,
|
|
61130
61130
|
columnHeader: null,
|
|
@@ -61159,7 +61159,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
61159
61159
|
const nextRow = currentPage.rows[clamp$7(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
|
|
61160
61160
|
nextRowId = nextRow?.id ?? null;
|
|
61161
61161
|
}
|
|
61162
|
-
apiRef.current.setState((state) => _extends$
|
|
61162
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61163
61163
|
focus: {
|
|
61164
61164
|
cell: nextRowId === null ? null : {
|
|
61165
61165
|
id: nextRowId,
|
|
@@ -61187,7 +61187,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
61187
61187
|
}
|
|
61188
61188
|
const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
61189
61189
|
apiRef.current.setState((state) => {
|
|
61190
|
-
return _extends$
|
|
61190
|
+
return _extends$c({}, state, {
|
|
61191
61191
|
tabIndex: {
|
|
61192
61192
|
cell: {
|
|
61193
61193
|
id: currentPage.rows[0].id,
|
|
@@ -61742,8 +61742,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
61742
61742
|
return;
|
|
61743
61743
|
}
|
|
61744
61744
|
logger2.debug("Setting 'rowCount' to", newRowCount);
|
|
61745
|
-
apiRef.current.setState((state) => _extends$
|
|
61746
|
-
pagination: _extends$
|
|
61745
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61746
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61747
61747
|
rowCount: newRowCount
|
|
61748
61748
|
})
|
|
61749
61749
|
}));
|
|
@@ -61763,16 +61763,16 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
61763
61763
|
if (!shouldExportRowCount) {
|
|
61764
61764
|
return prevState;
|
|
61765
61765
|
}
|
|
61766
|
-
return _extends$
|
|
61767
|
-
pagination: _extends$
|
|
61766
|
+
return _extends$c({}, prevState, {
|
|
61767
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
61768
61768
|
rowCount: exportedRowCount
|
|
61769
61769
|
})
|
|
61770
61770
|
});
|
|
61771
61771
|
}, [apiRef, props.rowCount, props.initialState?.pagination?.rowCount]);
|
|
61772
61772
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
61773
61773
|
const restoredRowCount = context2.stateToRestore.pagination?.rowCount ? context2.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
|
|
61774
|
-
apiRef.current.setState((state) => _extends$
|
|
61775
|
-
pagination: _extends$
|
|
61774
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61775
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61776
61776
|
rowCount: restoredRowCount
|
|
61777
61777
|
})
|
|
61778
61778
|
}));
|
|
@@ -61821,8 +61821,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
61821
61821
|
return;
|
|
61822
61822
|
}
|
|
61823
61823
|
logger2.debug("Setting 'paginationMeta' to", newPaginationMeta);
|
|
61824
|
-
apiRef.current.setState((state) => _extends$
|
|
61825
|
-
pagination: _extends$
|
|
61824
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61825
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61826
61826
|
meta: newPaginationMeta
|
|
61827
61827
|
})
|
|
61828
61828
|
}));
|
|
@@ -61842,16 +61842,16 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
61842
61842
|
if (!shouldExportRowCount) {
|
|
61843
61843
|
return prevState;
|
|
61844
61844
|
}
|
|
61845
|
-
return _extends$
|
|
61846
|
-
pagination: _extends$
|
|
61845
|
+
return _extends$c({}, prevState, {
|
|
61846
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
61847
61847
|
meta: exportedPaginationMeta
|
|
61848
61848
|
})
|
|
61849
61849
|
});
|
|
61850
61850
|
}, [apiRef, props.paginationMeta, props.initialState?.pagination?.meta]);
|
|
61851
61851
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
61852
61852
|
const restoredPaginationMeta = context2.stateToRestore.pagination?.meta ? context2.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
|
|
61853
|
-
apiRef.current.setState((state) => _extends$
|
|
61854
|
-
pagination: _extends$
|
|
61853
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61854
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61855
61855
|
meta: restoredPaginationMeta
|
|
61856
61856
|
})
|
|
61857
61857
|
}));
|
|
@@ -61866,12 +61866,12 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
61866
61866
|
}, [apiRef, props.paginationMeta]);
|
|
61867
61867
|
};
|
|
61868
61868
|
const paginationStateInitializer = (state, props) => {
|
|
61869
|
-
const paginationModel = _extends$
|
|
61869
|
+
const paginationModel = _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? props.initialState?.pagination?.paginationModel);
|
|
61870
61870
|
throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
|
|
61871
61871
|
const rowCount = props.rowCount ?? props.initialState?.pagination?.rowCount ?? (props.paginationMode === "client" ? state.rows?.totalRowCount : void 0);
|
|
61872
61872
|
const meta = props.paginationMeta ?? props.initialState?.pagination?.meta ?? {};
|
|
61873
|
-
return _extends$
|
|
61874
|
-
pagination: _extends$
|
|
61873
|
+
return _extends$c({}, state, {
|
|
61874
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61875
61875
|
paginationModel,
|
|
61876
61876
|
rowCount,
|
|
61877
61877
|
meta,
|
|
@@ -61885,7 +61885,7 @@ const useGridPagination = (apiRef, props) => {
|
|
|
61885
61885
|
useGridPaginationModel(apiRef, props);
|
|
61886
61886
|
useGridRowCount(apiRef, props);
|
|
61887
61887
|
};
|
|
61888
|
-
const preferencePanelStateInitializer = (state, props) => _extends$
|
|
61888
|
+
const preferencePanelStateInitializer = (state, props) => _extends$c({}, state, {
|
|
61889
61889
|
preferencePanel: props.initialState?.preferencePanel ?? {
|
|
61890
61890
|
open: false
|
|
61891
61891
|
}
|
|
@@ -61902,7 +61902,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
61902
61902
|
apiRef.current.publishEvent("preferencePanelClose", {
|
|
61903
61903
|
openedPanelValue: preferencePanelState.openedPanelValue
|
|
61904
61904
|
});
|
|
61905
|
-
return _extends$
|
|
61905
|
+
return _extends$c({}, state, {
|
|
61906
61906
|
preferencePanel: {
|
|
61907
61907
|
open: false
|
|
61908
61908
|
}
|
|
@@ -61911,8 +61911,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
61911
61911
|
}, [apiRef, logger2]);
|
|
61912
61912
|
const showPreferences = React.useCallback((newValue, panelId, labelId) => {
|
|
61913
61913
|
logger2.debug("Opening Preferences Panel");
|
|
61914
|
-
apiRef.current.setState((state) => _extends$
|
|
61915
|
-
preferencePanel: _extends$
|
|
61914
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61915
|
+
preferencePanel: _extends$c({}, state.preferencePanel, {
|
|
61916
61916
|
open: true,
|
|
61917
61917
|
openedPanelValue: newValue,
|
|
61918
61918
|
panelId,
|
|
@@ -61938,14 +61938,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
61938
61938
|
if (!shouldExportPreferencePanel) {
|
|
61939
61939
|
return prevState;
|
|
61940
61940
|
}
|
|
61941
|
-
return _extends$
|
|
61941
|
+
return _extends$c({}, prevState, {
|
|
61942
61942
|
preferencePanel: preferencePanelToExport
|
|
61943
61943
|
});
|
|
61944
61944
|
}, [apiRef, props.initialState?.preferencePanel]);
|
|
61945
61945
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
61946
61946
|
const preferencePanel = context2.stateToRestore.preferencePanel;
|
|
61947
61947
|
if (preferencePanel != null) {
|
|
61948
|
-
apiRef.current.setState((state) => _extends$
|
|
61948
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61949
61949
|
preferencePanel
|
|
61950
61950
|
}));
|
|
61951
61951
|
}
|
|
@@ -62003,7 +62003,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62003
62003
|
if (params2.cellMode === GridCellModes.Edit) {
|
|
62004
62004
|
return;
|
|
62005
62005
|
}
|
|
62006
|
-
const newParams = _extends$
|
|
62006
|
+
const newParams = _extends$c({}, params2, {
|
|
62007
62007
|
reason: GridCellEditStartReasons.cellDoubleClick
|
|
62008
62008
|
});
|
|
62009
62009
|
apiRef.current.publishEvent("cellEditStart", newParams, event2);
|
|
@@ -62015,7 +62015,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62015
62015
|
if (apiRef.current.getCellMode(params2.id, params2.field) === GridCellModes.View) {
|
|
62016
62016
|
return;
|
|
62017
62017
|
}
|
|
62018
|
-
const newParams = _extends$
|
|
62018
|
+
const newParams = _extends$c({}, params2, {
|
|
62019
62019
|
reason: GridCellEditStopReasons.cellFocusOut
|
|
62020
62020
|
});
|
|
62021
62021
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -62035,7 +62035,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62035
62035
|
event2.preventDefault();
|
|
62036
62036
|
}
|
|
62037
62037
|
if (reason) {
|
|
62038
|
-
const newParams = _extends$
|
|
62038
|
+
const newParams = _extends$c({}, params2, {
|
|
62039
62039
|
reason
|
|
62040
62040
|
});
|
|
62041
62041
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -62060,7 +62060,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62060
62060
|
reason = GridCellEditStartReasons.deleteKeyDown;
|
|
62061
62061
|
}
|
|
62062
62062
|
if (reason) {
|
|
62063
|
-
const newParams = _extends$
|
|
62063
|
+
const newParams = _extends$c({}, params2, {
|
|
62064
62064
|
reason,
|
|
62065
62065
|
key: event2.key
|
|
62066
62066
|
});
|
|
@@ -62146,10 +62146,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62146
62146
|
apiRef.current.publishEvent("cellModesModelChange", newModel);
|
|
62147
62147
|
});
|
|
62148
62148
|
const updateFieldInCellModesModel = React.useCallback((id2, field2, newProps) => {
|
|
62149
|
-
const newModel = _extends$
|
|
62149
|
+
const newModel = _extends$c({}, cellModesModelRef.current);
|
|
62150
62150
|
if (newProps !== null) {
|
|
62151
|
-
newModel[id2] = _extends$
|
|
62152
|
-
[field2]: _extends$
|
|
62151
|
+
newModel[id2] = _extends$c({}, newModel[id2], {
|
|
62152
|
+
[field2]: _extends$c({}, newProps)
|
|
62153
62153
|
});
|
|
62154
62154
|
} else {
|
|
62155
62155
|
const _newModel$id = newModel[id2], otherFields = _objectWithoutPropertiesLoose$1(_newModel$id, [field2].map(toPropertyKey$1));
|
|
@@ -62162,10 +62162,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62162
62162
|
}, [updateCellModesModel]);
|
|
62163
62163
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
62164
62164
|
apiRef.current.setState((state) => {
|
|
62165
|
-
const newEditingState = _extends$
|
|
62165
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
62166
62166
|
if (newProps !== null) {
|
|
62167
|
-
newEditingState[id2] = _extends$
|
|
62168
|
-
[field2]: _extends$
|
|
62167
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
62168
|
+
[field2]: _extends$c({}, newProps)
|
|
62169
62169
|
});
|
|
62170
62170
|
} else {
|
|
62171
62171
|
delete newEditingState[id2][field2];
|
|
@@ -62173,7 +62173,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62173
62173
|
delete newEditingState[id2];
|
|
62174
62174
|
}
|
|
62175
62175
|
}
|
|
62176
|
-
return _extends$
|
|
62176
|
+
return _extends$c({}, state, {
|
|
62177
62177
|
editRows: newEditingState
|
|
62178
62178
|
});
|
|
62179
62179
|
});
|
|
@@ -62185,7 +62185,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62185
62185
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$8);
|
|
62186
62186
|
throwIfNotEditable(id2, field2);
|
|
62187
62187
|
throwIfNotInMode(id2, field2, GridCellModes.View);
|
|
62188
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
62188
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
62189
62189
|
mode: GridCellModes.Edit
|
|
62190
62190
|
}, other));
|
|
62191
62191
|
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -62221,7 +62221,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62221
62221
|
}));
|
|
62222
62222
|
if (apiRef.current.getCellMode(id2, field2) === GridCellModes.Edit) {
|
|
62223
62223
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
62224
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
62224
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, newProps, {
|
|
62225
62225
|
value: editingState[id2][field2].value,
|
|
62226
62226
|
isProcessingProps: false
|
|
62227
62227
|
}));
|
|
@@ -62234,7 +62234,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62234
62234
|
field: field2
|
|
62235
62235
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$3);
|
|
62236
62236
|
throwIfNotInMode(id2, field2, GridCellModes.Edit);
|
|
62237
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
62237
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
62238
62238
|
mode: GridCellModes.View
|
|
62239
62239
|
}, other));
|
|
62240
62240
|
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -62316,13 +62316,13 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62316
62316
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
62317
62317
|
}
|
|
62318
62318
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
62319
|
-
let newProps = _extends$
|
|
62319
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
62320
62320
|
value: parsedValue,
|
|
62321
62321
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
62322
62322
|
});
|
|
62323
62323
|
if (column2.preProcessEditCellProps) {
|
|
62324
62324
|
const hasChanged = value2 !== editingState[id2][field2].value;
|
|
62325
|
-
newProps = _extends$
|
|
62325
|
+
newProps = _extends$c({}, newProps, {
|
|
62326
62326
|
isProcessingProps: true
|
|
62327
62327
|
});
|
|
62328
62328
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -62337,7 +62337,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62337
62337
|
return false;
|
|
62338
62338
|
}
|
|
62339
62339
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
62340
|
-
newProps = _extends$
|
|
62340
|
+
newProps = _extends$c({}, newProps, {
|
|
62341
62341
|
isProcessingProps: false
|
|
62342
62342
|
});
|
|
62343
62343
|
newProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -62355,7 +62355,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62355
62355
|
const {
|
|
62356
62356
|
value: value2
|
|
62357
62357
|
} = editingState[id2][field2];
|
|
62358
|
-
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$
|
|
62358
|
+
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$c({}, row, {
|
|
62359
62359
|
[field2]: value2
|
|
62360
62360
|
});
|
|
62361
62361
|
}, [apiRef]);
|
|
@@ -62384,12 +62384,12 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
62384
62384
|
const prevMode = copyOfPrevCellModes[id2]?.[field2]?.mode || GridCellModes.View;
|
|
62385
62385
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
62386
62386
|
if (params2.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
|
|
62387
|
-
updateStateToStartCellEditMode(_extends$
|
|
62387
|
+
updateStateToStartCellEditMode(_extends$c({
|
|
62388
62388
|
id: originalId,
|
|
62389
62389
|
field: field2
|
|
62390
62390
|
}, params2));
|
|
62391
62391
|
} else if (params2.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
|
|
62392
|
-
updateStateToStopCellEditMode(_extends$
|
|
62392
|
+
updateStateToStopCellEditMode(_extends$c({
|
|
62393
62393
|
id: originalId,
|
|
62394
62394
|
field: field2
|
|
62395
62395
|
}, params2));
|
|
@@ -62440,7 +62440,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62440
62440
|
return;
|
|
62441
62441
|
}
|
|
62442
62442
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
62443
|
-
const newParams = _extends$
|
|
62443
|
+
const newParams = _extends$c({}, rowParams, {
|
|
62444
62444
|
field: params2.field,
|
|
62445
62445
|
reason: GridRowEditStartReasons.cellDoubleClick
|
|
62446
62446
|
});
|
|
@@ -62469,7 +62469,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62469
62469
|
return;
|
|
62470
62470
|
}
|
|
62471
62471
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
62472
|
-
const newParams = _extends$
|
|
62472
|
+
const newParams = _extends$c({}, rowParams, {
|
|
62473
62473
|
field: params2.field,
|
|
62474
62474
|
reason: GridRowEditStopReasons.rowFocusOut
|
|
62475
62475
|
});
|
|
@@ -62518,7 +62518,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62518
62518
|
if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params2.id)) {
|
|
62519
62519
|
return;
|
|
62520
62520
|
}
|
|
62521
|
-
const newParams = _extends$
|
|
62521
|
+
const newParams = _extends$c({}, apiRef.current.getRowParams(params2.id), {
|
|
62522
62522
|
reason,
|
|
62523
62523
|
field: params2.field
|
|
62524
62524
|
});
|
|
@@ -62545,7 +62545,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62545
62545
|
}
|
|
62546
62546
|
if (reason) {
|
|
62547
62547
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
62548
|
-
const newParams = _extends$
|
|
62548
|
+
const newParams = _extends$c({}, rowParams, {
|
|
62549
62549
|
field: params2.field,
|
|
62550
62550
|
reason
|
|
62551
62551
|
});
|
|
@@ -62621,9 +62621,9 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62621
62621
|
apiRef.current.publishEvent("rowModesModelChange", newModel);
|
|
62622
62622
|
});
|
|
62623
62623
|
const updateRowInRowModesModel = React.useCallback((id2, newProps) => {
|
|
62624
|
-
const newModel = _extends$
|
|
62624
|
+
const newModel = _extends$c({}, rowModesModelRef.current);
|
|
62625
62625
|
if (newProps !== null) {
|
|
62626
|
-
newModel[id2] = _extends$
|
|
62626
|
+
newModel[id2] = _extends$c({}, newProps);
|
|
62627
62627
|
} else {
|
|
62628
62628
|
delete newModel[id2];
|
|
62629
62629
|
}
|
|
@@ -62631,23 +62631,23 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62631
62631
|
}, [updateRowModesModel]);
|
|
62632
62632
|
const updateOrDeleteRowState = React.useCallback((id2, newProps) => {
|
|
62633
62633
|
apiRef.current.setState((state) => {
|
|
62634
|
-
const newEditingState = _extends$
|
|
62634
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
62635
62635
|
if (newProps !== null) {
|
|
62636
62636
|
newEditingState[id2] = newProps;
|
|
62637
62637
|
} else {
|
|
62638
62638
|
delete newEditingState[id2];
|
|
62639
62639
|
}
|
|
62640
|
-
return _extends$
|
|
62640
|
+
return _extends$c({}, state, {
|
|
62641
62641
|
editRows: newEditingState
|
|
62642
62642
|
});
|
|
62643
62643
|
});
|
|
62644
62644
|
}, [apiRef]);
|
|
62645
62645
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
62646
62646
|
apiRef.current.setState((state) => {
|
|
62647
|
-
const newEditingState = _extends$
|
|
62647
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
62648
62648
|
if (newProps !== null) {
|
|
62649
|
-
newEditingState[id2] = _extends$
|
|
62650
|
-
[field2]: _extends$
|
|
62649
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
62650
|
+
[field2]: _extends$c({}, newProps)
|
|
62651
62651
|
});
|
|
62652
62652
|
} else {
|
|
62653
62653
|
delete newEditingState[id2][field2];
|
|
@@ -62655,7 +62655,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62655
62655
|
delete newEditingState[id2];
|
|
62656
62656
|
}
|
|
62657
62657
|
}
|
|
62658
|
-
return _extends$
|
|
62658
|
+
return _extends$c({}, state, {
|
|
62659
62659
|
editRows: newEditingState
|
|
62660
62660
|
});
|
|
62661
62661
|
});
|
|
@@ -62665,7 +62665,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62665
62665
|
id: id2
|
|
62666
62666
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$7);
|
|
62667
62667
|
throwIfNotInMode(id2, GridRowModes.View);
|
|
62668
|
-
updateRowInRowModesModel(id2, _extends$
|
|
62668
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
62669
62669
|
mode: GridRowModes.Edit
|
|
62670
62670
|
}, other));
|
|
62671
62671
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -62716,7 +62716,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62716
62716
|
})).then((processedProps) => {
|
|
62717
62717
|
if (apiRef.current.getRowMode(id2) === GridRowModes.Edit) {
|
|
62718
62718
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
62719
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
62719
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, processedProps, {
|
|
62720
62720
|
value: editingState[id2][field2].value,
|
|
62721
62721
|
isProcessingProps: false
|
|
62722
62722
|
}));
|
|
@@ -62729,7 +62729,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62729
62729
|
id: id2
|
|
62730
62730
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$2);
|
|
62731
62731
|
throwIfNotInMode(id2, GridRowModes.Edit);
|
|
62732
|
-
updateRowInRowModesModel(id2, _extends$
|
|
62732
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
62733
62733
|
mode: GridRowModes.View
|
|
62734
62734
|
}, other));
|
|
62735
62735
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -62813,7 +62813,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62813
62813
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
62814
62814
|
}
|
|
62815
62815
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
62816
|
-
let newProps = _extends$
|
|
62816
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
62817
62817
|
value: parsedValue,
|
|
62818
62818
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
62819
62819
|
});
|
|
@@ -62824,7 +62824,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62824
62824
|
const promises = [];
|
|
62825
62825
|
if (column2.preProcessEditCellProps) {
|
|
62826
62826
|
const hasChanged = newProps.value !== editingState[id2][field2].value;
|
|
62827
|
-
newProps = _extends$
|
|
62827
|
+
newProps = _extends$c({}, newProps, {
|
|
62828
62828
|
isProcessingProps: true
|
|
62829
62829
|
});
|
|
62830
62830
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -62841,7 +62841,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62841
62841
|
return;
|
|
62842
62842
|
}
|
|
62843
62843
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
62844
|
-
processedProps = _extends$
|
|
62844
|
+
processedProps = _extends$c({}, processedProps, {
|
|
62845
62845
|
isProcessingProps: false
|
|
62846
62846
|
});
|
|
62847
62847
|
processedProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -62857,7 +62857,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62857
62857
|
if (!fieldColumn.preProcessEditCellProps) {
|
|
62858
62858
|
return;
|
|
62859
62859
|
}
|
|
62860
|
-
fieldProps = _extends$
|
|
62860
|
+
fieldProps = _extends$c({}, fieldProps, {
|
|
62861
62861
|
isProcessingProps: true
|
|
62862
62862
|
});
|
|
62863
62863
|
updateOrDeleteFieldState(id2, thisField, fieldProps);
|
|
@@ -62874,7 +62874,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62874
62874
|
resolve2(false);
|
|
62875
62875
|
return;
|
|
62876
62876
|
}
|
|
62877
|
-
processedProps = _extends$
|
|
62877
|
+
processedProps = _extends$c({}, processedProps, {
|
|
62878
62878
|
isProcessingProps: false
|
|
62879
62879
|
});
|
|
62880
62880
|
updateOrDeleteFieldState(id2, thisField, processedProps);
|
|
@@ -62897,7 +62897,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62897
62897
|
if (!editingState[id2]) {
|
|
62898
62898
|
return apiRef.current.getRow(id2);
|
|
62899
62899
|
}
|
|
62900
|
-
let rowUpdate = _extends$
|
|
62900
|
+
let rowUpdate = _extends$c({}, prevRowValuesLookup.current[id2], row);
|
|
62901
62901
|
Object.entries(editingState[id2]).forEach(([field2, fieldProps]) => {
|
|
62902
62902
|
const column2 = apiRef.current.getColumn(field2);
|
|
62903
62903
|
if (column2?.valueSetter) {
|
|
@@ -62936,18 +62936,18 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
62936
62936
|
const prevMode = copyOfPrevRowModesModel[id2]?.mode || GridRowModes.View;
|
|
62937
62937
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
62938
62938
|
if (params2.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
|
|
62939
|
-
updateStateToStartRowEditMode(_extends$
|
|
62939
|
+
updateStateToStartRowEditMode(_extends$c({
|
|
62940
62940
|
id: originalId
|
|
62941
62941
|
}, params2));
|
|
62942
62942
|
} else if (params2.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
|
|
62943
|
-
updateStateToStopRowEditMode(_extends$
|
|
62943
|
+
updateStateToStopRowEditMode(_extends$c({
|
|
62944
62944
|
id: originalId
|
|
62945
62945
|
}, params2));
|
|
62946
62946
|
}
|
|
62947
62947
|
});
|
|
62948
62948
|
}, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
|
|
62949
62949
|
};
|
|
62950
|
-
const editingStateInitializer = (state) => _extends$
|
|
62950
|
+
const editingStateInitializer = (state) => _extends$c({}, state, {
|
|
62951
62951
|
editRows: {}
|
|
62952
62952
|
});
|
|
62953
62953
|
const useGridEditing = (apiRef, props) => {
|
|
@@ -63065,7 +63065,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
|
|
|
63065
63065
|
loading: props.loading,
|
|
63066
63066
|
rowCount: props.rowCount
|
|
63067
63067
|
});
|
|
63068
|
-
return _extends$
|
|
63068
|
+
return _extends$c({}, state, {
|
|
63069
63069
|
rows: getRowsStateFromCache({
|
|
63070
63070
|
apiRef,
|
|
63071
63071
|
rowCountProp: props.rowCount,
|
|
@@ -63106,7 +63106,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
63106
63106
|
}) => {
|
|
63107
63107
|
const run2 = () => {
|
|
63108
63108
|
lastUpdateMs.current = Date.now();
|
|
63109
|
-
apiRef.current.setState((state) => _extends$
|
|
63109
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63110
63110
|
rows: getRowsStateFromCache({
|
|
63111
63111
|
apiRef,
|
|
63112
63112
|
rowCountProp: props.rowCount,
|
|
@@ -63179,8 +63179,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
63179
63179
|
return;
|
|
63180
63180
|
}
|
|
63181
63181
|
logger2.debug(`Setting loading to ${loading2}`);
|
|
63182
|
-
apiRef.current.setState((state) => _extends$
|
|
63183
|
-
rows: _extends$
|
|
63182
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63183
|
+
rows: _extends$c({}, state.rows, {
|
|
63184
63184
|
loading: loading2
|
|
63185
63185
|
})
|
|
63186
63186
|
}));
|
|
@@ -63207,13 +63207,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
63207
63207
|
if (currentNode.type !== "group") {
|
|
63208
63208
|
throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
|
|
63209
63209
|
}
|
|
63210
|
-
const newNode = _extends$
|
|
63210
|
+
const newNode = _extends$c({}, currentNode, {
|
|
63211
63211
|
childrenExpanded: isExpanded
|
|
63212
63212
|
});
|
|
63213
63213
|
apiRef.current.setState((state) => {
|
|
63214
|
-
return _extends$
|
|
63215
|
-
rows: _extends$
|
|
63216
|
-
tree: _extends$
|
|
63214
|
+
return _extends$c({}, state, {
|
|
63215
|
+
rows: _extends$c({}, state.rows, {
|
|
63216
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
63217
63217
|
[id2]: newNode
|
|
63218
63218
|
})
|
|
63219
63219
|
})
|
|
@@ -63274,10 +63274,10 @@ const useGridRows = (apiRef, props) => {
|
|
|
63274
63274
|
logger2.debug(`Moving row ${rowId} to index ${targetIndex}`);
|
|
63275
63275
|
const updatedRows = [...allRows];
|
|
63276
63276
|
updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
|
|
63277
|
-
return _extends$
|
|
63278
|
-
rows: _extends$
|
|
63279
|
-
tree: _extends$
|
|
63280
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
63277
|
+
return _extends$c({}, state, {
|
|
63278
|
+
rows: _extends$c({}, state.rows, {
|
|
63279
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
63280
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, group2, {
|
|
63281
63281
|
children: updatedRows
|
|
63282
63282
|
})
|
|
63283
63283
|
})
|
|
@@ -63297,8 +63297,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
63297
63297
|
if (treeDepth > 1) {
|
|
63298
63298
|
throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
|
|
63299
63299
|
}
|
|
63300
|
-
const tree2 = _extends$
|
|
63301
|
-
const dataRowIdToModelLookup = _extends$
|
|
63300
|
+
const tree2 = _extends$c({}, gridRowTreeSelector(apiRef));
|
|
63301
|
+
const dataRowIdToModelLookup = _extends$c({}, gridRowsLookupSelector(apiRef));
|
|
63302
63302
|
const rootGroup = tree2[GRID_ROOT_GROUP_ID];
|
|
63303
63303
|
const rootGroupChildren = [...rootGroup.children];
|
|
63304
63304
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -63321,13 +63321,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
63321
63321
|
tree2[rowId] = rowTreeNodeConfig;
|
|
63322
63322
|
seenIds.add(rowId);
|
|
63323
63323
|
}
|
|
63324
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
63324
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
63325
63325
|
children: rootGroupChildren
|
|
63326
63326
|
});
|
|
63327
63327
|
const dataRowIds = rootGroupChildren.filter((childId) => tree2[childId]?.type === "leaf");
|
|
63328
63328
|
apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
|
|
63329
|
-
apiRef.current.setState((state) => _extends$
|
|
63330
|
-
rows: _extends$
|
|
63329
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63330
|
+
rows: _extends$c({}, state.rows, {
|
|
63331
63331
|
loading: props.loading,
|
|
63332
63332
|
totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
|
|
63333
63333
|
dataRowIdToModelLookup,
|
|
@@ -63362,7 +63362,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
63362
63362
|
logger2.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
63363
63363
|
let cache2;
|
|
63364
63364
|
if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
|
|
63365
|
-
cache2 = _extends$
|
|
63365
|
+
cache2 = _extends$c({}, apiRef.current.caches.rows, {
|
|
63366
63366
|
updates: {
|
|
63367
63367
|
type: "full",
|
|
63368
63368
|
rows: gridDataRowIdsSelector(apiRef)
|
|
@@ -63406,8 +63406,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
63406
63406
|
dataRowIds: gridDataRowIdsSelector(apiRef),
|
|
63407
63407
|
dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
|
|
63408
63408
|
});
|
|
63409
|
-
return _extends$
|
|
63410
|
-
rows: _extends$
|
|
63409
|
+
return _extends$c({}, state, {
|
|
63410
|
+
rows: _extends$c({}, state.rows, response, {
|
|
63411
63411
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
63412
63412
|
tree: response.tree,
|
|
63413
63413
|
rowCountProp: props.rowCount
|
|
@@ -63438,16 +63438,16 @@ const useGridRows = (apiRef, props) => {
|
|
|
63438
63438
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
63439
63439
|
if (areNewRowsAlreadyInState) {
|
|
63440
63440
|
if (!isNewLoadingAlreadyInState) {
|
|
63441
|
-
apiRef.current.setState((state) => _extends$
|
|
63442
|
-
rows: _extends$
|
|
63441
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63442
|
+
rows: _extends$c({}, state.rows, {
|
|
63443
63443
|
loading: props.loading
|
|
63444
63444
|
})
|
|
63445
63445
|
}));
|
|
63446
63446
|
apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
|
|
63447
63447
|
}
|
|
63448
63448
|
if (!isNewRowCountAlreadyInState) {
|
|
63449
|
-
apiRef.current.setState((state) => _extends$
|
|
63450
|
-
rows: _extends$
|
|
63449
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63450
|
+
rows: _extends$c({}, state.rows, {
|
|
63451
63451
|
totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
|
|
63452
63452
|
totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
|
|
63453
63453
|
})
|
|
@@ -63472,7 +63472,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
63472
63472
|
};
|
|
63473
63473
|
const createFlatRowTree = (rows) => {
|
|
63474
63474
|
const tree2 = {
|
|
63475
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
63475
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, buildRootGroup(), {
|
|
63476
63476
|
children: rows
|
|
63477
63477
|
})
|
|
63478
63478
|
};
|
|
@@ -63499,7 +63499,7 @@ const updateFlatRowTree = ({
|
|
|
63499
63499
|
previousTree,
|
|
63500
63500
|
actions
|
|
63501
63501
|
}) => {
|
|
63502
|
-
const tree2 = _extends$
|
|
63502
|
+
const tree2 = _extends$c({}, previousTree);
|
|
63503
63503
|
const idsToRemoveFromRootGroup = {};
|
|
63504
63504
|
for (let i2 = 0; i2 < actions.remove.length; i2 += 1) {
|
|
63505
63505
|
const idToDelete = actions.remove[i2];
|
|
@@ -63521,7 +63521,7 @@ const updateFlatRowTree = ({
|
|
|
63521
63521
|
if (Object.values(idsToRemoveFromRootGroup).length) {
|
|
63522
63522
|
rootGroupChildren = rootGroupChildren.filter((id2) => !idsToRemoveFromRootGroup[id2]);
|
|
63523
63523
|
}
|
|
63524
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
63524
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
63525
63525
|
children: rootGroupChildren
|
|
63526
63526
|
});
|
|
63527
63527
|
return {
|
|
@@ -63671,7 +63671,7 @@ const emptyModel = {
|
|
|
63671
63671
|
type: "include",
|
|
63672
63672
|
ids: /* @__PURE__ */ new Set()
|
|
63673
63673
|
};
|
|
63674
|
-
const rowSelectionStateInitializer = (state, props) => _extends$
|
|
63674
|
+
const rowSelectionStateInitializer = (state, props) => _extends$c({}, state, {
|
|
63675
63675
|
rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
|
|
63676
63676
|
});
|
|
63677
63677
|
const useGridRowSelection = (apiRef, props) => {
|
|
@@ -63735,7 +63735,7 @@ const useGridRowSelection = (apiRef, props) => {
|
|
|
63735
63735
|
const currentModel = gridRowSelectionStateSelector(apiRef);
|
|
63736
63736
|
if (currentModel !== model) {
|
|
63737
63737
|
logger2.debug(`Setting selection model`);
|
|
63738
|
-
apiRef.current.setState((state) => _extends$
|
|
63738
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63739
63739
|
rowSelection: props.rowSelection ? model : emptyModel
|
|
63740
63740
|
}));
|
|
63741
63741
|
}
|
|
@@ -64198,7 +64198,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
64198
64198
|
};
|
|
64199
64199
|
const classes2 = useUtilityClasses$7(ownerState);
|
|
64200
64200
|
const updateSelectionColumn = React.useCallback((columnsState) => {
|
|
64201
|
-
const selectionColumn = _extends$
|
|
64201
|
+
const selectionColumn = _extends$c({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
|
|
64202
64202
|
cellClassName: classes2.cellCheckbox,
|
|
64203
64203
|
headerClassName: classes2.columnHeaderCheckbox,
|
|
64204
64204
|
headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
|
|
@@ -64212,7 +64212,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
64212
64212
|
delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
|
|
64213
64213
|
columnsState.orderedFields = columnsState.orderedFields.filter((field2) => field2 !== GRID_CHECKBOX_SELECTION_FIELD);
|
|
64214
64214
|
} else if (shouldHaveSelectionColumn && haveSelectionColumn) {
|
|
64215
|
-
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$
|
|
64215
|
+
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$c({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
|
|
64216
64216
|
}
|
|
64217
64217
|
return columnsState;
|
|
64218
64218
|
}, [apiRef, classes2, props.checkboxSelection]);
|
|
@@ -64220,7 +64220,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
64220
64220
|
};
|
|
64221
64221
|
const sortingStateInitializer = (state, props) => {
|
|
64222
64222
|
const sortModel = props.sortModel ?? props.initialState?.sorting?.sortModel ?? [];
|
|
64223
|
-
return _extends$
|
|
64223
|
+
return _extends$c({}, state, {
|
|
64224
64224
|
sorting: {
|
|
64225
64225
|
sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
|
|
64226
64226
|
sortedRows: []
|
|
@@ -64256,7 +64256,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
64256
64256
|
const existing = sortModel.find((c2) => c2.field === col.field);
|
|
64257
64257
|
if (existing) {
|
|
64258
64258
|
const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
|
|
64259
|
-
return nextSort === void 0 ? void 0 : _extends$
|
|
64259
|
+
return nextSort === void 0 ? void 0 : _extends$c({}, existing, {
|
|
64260
64260
|
sort: nextSort
|
|
64261
64261
|
});
|
|
64262
64262
|
}
|
|
@@ -64279,8 +64279,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
64279
64279
|
apiRef.current.setState((state) => {
|
|
64280
64280
|
if (props.sortingMode === "server") {
|
|
64281
64281
|
logger2.debug("Skipping sorting rows as sortingMode = server");
|
|
64282
|
-
return _extends$
|
|
64283
|
-
sorting: _extends$
|
|
64282
|
+
return _extends$c({}, state, {
|
|
64283
|
+
sorting: _extends$c({}, state.sorting, {
|
|
64284
64284
|
sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
|
|
64285
64285
|
})
|
|
64286
64286
|
});
|
|
@@ -64290,8 +64290,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
64290
64290
|
const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
|
|
64291
64291
|
sortRowList
|
|
64292
64292
|
});
|
|
64293
|
-
return _extends$
|
|
64294
|
-
sorting: _extends$
|
|
64293
|
+
return _extends$c({}, state, {
|
|
64294
|
+
sorting: _extends$c({}, state.sorting, {
|
|
64295
64295
|
sortedRows
|
|
64296
64296
|
})
|
|
64297
64297
|
});
|
|
@@ -64346,7 +64346,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
64346
64346
|
if (!shouldExportSortModel) {
|
|
64347
64347
|
return prevState;
|
|
64348
64348
|
}
|
|
64349
|
-
return _extends$
|
|
64349
|
+
return _extends$c({}, prevState, {
|
|
64350
64350
|
sorting: {
|
|
64351
64351
|
sortModel: sortModelToExport
|
|
64352
64352
|
}
|
|
@@ -64358,7 +64358,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
64358
64358
|
return params2;
|
|
64359
64359
|
}
|
|
64360
64360
|
apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
|
|
64361
|
-
return _extends$
|
|
64361
|
+
return _extends$c({}, params2, {
|
|
64362
64362
|
callbacks: [...params2.callbacks, apiRef.current.applySorting]
|
|
64363
64363
|
});
|
|
64364
64364
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
@@ -64654,8 +64654,8 @@ const EMPTY_DIMENSIONS = {
|
|
|
64654
64654
|
const dimensionsStateInitializer = (state, props, apiRef) => {
|
|
64655
64655
|
const dimensions = EMPTY_DIMENSIONS;
|
|
64656
64656
|
const density2 = gridDensityFactorSelector(apiRef);
|
|
64657
|
-
return _extends$
|
|
64658
|
-
dimensions: _extends$
|
|
64657
|
+
return _extends$c({}, state, {
|
|
64658
|
+
dimensions: _extends$c({}, dimensions, getStaticDimensions(props, apiRef, density2, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
|
|
64659
64659
|
});
|
|
64660
64660
|
};
|
|
64661
64661
|
const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
|
|
@@ -64684,7 +64684,7 @@ function useGridDimensions(apiRef, props) {
|
|
|
64684
64684
|
} = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
|
|
64685
64685
|
const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
|
|
64686
64686
|
const setDimensions = React.useCallback((dimensions) => {
|
|
64687
|
-
apiRef.current.setState((state) => _extends$
|
|
64687
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64688
64688
|
dimensions
|
|
64689
64689
|
}));
|
|
64690
64690
|
if (apiRef.current.rootElementRef.current) {
|
|
@@ -64908,7 +64908,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
|
|
|
64908
64908
|
const dataRowCount = gridRowCountSelector(apiRef);
|
|
64909
64909
|
const pagination = gridPaginationSelector(apiRef);
|
|
64910
64910
|
const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
|
|
64911
|
-
return _extends$
|
|
64911
|
+
return _extends$c({}, state, {
|
|
64912
64912
|
rowsMeta: {
|
|
64913
64913
|
currentPageTotalHeight: rowCount * baseRowHeight,
|
|
64914
64914
|
positions: Array.from({
|
|
@@ -64955,12 +64955,12 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
64955
64955
|
entry2.content = baseRowHeight;
|
|
64956
64956
|
entry2.needsFirstMeasurement = false;
|
|
64957
64957
|
} else {
|
|
64958
|
-
const rowHeightFromUser = getRowHeightProp(_extends$
|
|
64958
|
+
const rowHeightFromUser = getRowHeightProp(_extends$c({}, row, {
|
|
64959
64959
|
densityFactor
|
|
64960
64960
|
}));
|
|
64961
64961
|
if (rowHeightFromUser === "auto") {
|
|
64962
64962
|
if (entry2.needsFirstMeasurement) {
|
|
64963
|
-
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$
|
|
64963
|
+
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$c({}, row, {
|
|
64964
64964
|
densityFactor
|
|
64965
64965
|
})) : baseRowHeight;
|
|
64966
64966
|
entry2.content = estimatedRowHeight ?? baseRowHeight;
|
|
@@ -64975,7 +64975,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
64975
64975
|
}
|
|
64976
64976
|
if (getRowSpacing) {
|
|
64977
64977
|
const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
64978
|
-
const spacing2 = getRowSpacing(_extends$
|
|
64978
|
+
const spacing2 = getRowSpacing(_extends$c({}, row, {
|
|
64979
64979
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
64980
64980
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
64981
64981
|
indexRelativeToCurrentPage
|
|
@@ -65017,7 +65017,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
65017
65017
|
pinnedBottomRowsTotalHeight
|
|
65018
65018
|
};
|
|
65019
65019
|
apiRef.current.setState((state) => {
|
|
65020
|
-
return _extends$
|
|
65020
|
+
return _extends$c({}, state, {
|
|
65021
65021
|
rowsMeta
|
|
65022
65022
|
});
|
|
65023
65023
|
});
|
|
@@ -65296,18 +65296,18 @@ const createGroupLookup = (columnGroupingModel) => {
|
|
|
65296
65296
|
console.warn(`MUI X: group groupId=${groupId} has no children.`);
|
|
65297
65297
|
}
|
|
65298
65298
|
}
|
|
65299
|
-
const groupParam = _extends$
|
|
65299
|
+
const groupParam = _extends$c({}, other, {
|
|
65300
65300
|
groupId
|
|
65301
65301
|
});
|
|
65302
65302
|
const subTreeLookup = createGroupLookup(children3);
|
|
65303
65303
|
if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
|
|
65304
65304
|
throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
|
|
65305
65305
|
}
|
|
65306
|
-
groupLookup = _extends$
|
|
65306
|
+
groupLookup = _extends$c({}, groupLookup, subTreeLookup, {
|
|
65307
65307
|
[groupId]: groupParam
|
|
65308
65308
|
});
|
|
65309
65309
|
});
|
|
65310
|
-
return _extends$
|
|
65310
|
+
return _extends$c({}, groupLookup);
|
|
65311
65311
|
};
|
|
65312
65312
|
const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
65313
65313
|
if (!props.columnGroupingModel) {
|
|
@@ -65319,7 +65319,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
|
65319
65319
|
const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel ?? []);
|
|
65320
65320
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, apiRef.current.state.pinnedColumns ?? {});
|
|
65321
65321
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
65322
|
-
return _extends$
|
|
65322
|
+
return _extends$c({}, state, {
|
|
65323
65323
|
columnGrouping: {
|
|
65324
65324
|
lookup: groupLookup,
|
|
65325
65325
|
unwrappedGroupingModel,
|
|
@@ -65348,8 +65348,8 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
65348
65348
|
const orderedFields = state.columns?.orderedFields ?? [];
|
|
65349
65349
|
const pinnedColumns = state.pinnedColumns ?? {};
|
|
65350
65350
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
|
|
65351
|
-
return _extends$
|
|
65352
|
-
columnGrouping: _extends$
|
|
65351
|
+
return _extends$c({}, state, {
|
|
65352
|
+
columnGrouping: _extends$c({}, state.columnGrouping, {
|
|
65353
65353
|
headerStructure: columnGroupsHeaderStructure
|
|
65354
65354
|
})
|
|
65355
65355
|
});
|
|
@@ -65364,7 +65364,7 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
65364
65364
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, pinnedColumns);
|
|
65365
65365
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
65366
65366
|
apiRef.current.setState((state) => {
|
|
65367
|
-
return _extends$
|
|
65367
|
+
return _extends$c({}, state, {
|
|
65368
65368
|
columnGrouping: {
|
|
65369
65369
|
lookup: groupLookup,
|
|
65370
65370
|
unwrappedGroupingModel,
|
|
@@ -65514,7 +65514,7 @@ function extractColumnWidths(apiRef, options, columns2) {
|
|
|
65514
65514
|
root2.classList.remove(gridClasses.autosizing);
|
|
65515
65515
|
return widthByField;
|
|
65516
65516
|
}
|
|
65517
|
-
const columnResizeStateInitializer = (state) => _extends$
|
|
65517
|
+
const columnResizeStateInitializer = (state) => _extends$c({}, state, {
|
|
65518
65518
|
columnResize: {
|
|
65519
65519
|
resizingColumnField: ""
|
|
65520
65520
|
}
|
|
@@ -65738,15 +65738,15 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
65738
65738
|
const handleResizeStart = React.useCallback(({
|
|
65739
65739
|
field: field2
|
|
65740
65740
|
}) => {
|
|
65741
|
-
apiRef.current.setState((state) => _extends$
|
|
65742
|
-
columnResize: _extends$
|
|
65741
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65742
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
65743
65743
|
resizingColumnField: field2
|
|
65744
65744
|
})
|
|
65745
65745
|
}));
|
|
65746
65746
|
}, [apiRef]);
|
|
65747
65747
|
const handleResizeStop = React.useCallback(() => {
|
|
65748
|
-
apiRef.current.setState((state) => _extends$
|
|
65749
|
-
columnResize: _extends$
|
|
65748
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65749
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
65750
65750
|
resizingColumnField: ""
|
|
65751
65751
|
})
|
|
65752
65752
|
}));
|
|
@@ -65784,7 +65784,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
65784
65784
|
if (column2.resizable === false) {
|
|
65785
65785
|
return;
|
|
65786
65786
|
}
|
|
65787
|
-
apiRef.current.autosizeColumns(_extends$
|
|
65787
|
+
apiRef.current.autosizeColumns(_extends$c({}, props.autosizeOptions, {
|
|
65788
65788
|
disableColumnVirtualization: false,
|
|
65789
65789
|
columns: [column2.field]
|
|
65790
65790
|
}));
|
|
@@ -65801,7 +65801,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
65801
65801
|
}
|
|
65802
65802
|
isAutosizingRef.current = true;
|
|
65803
65803
|
const state = gridColumnsStateSelector(apiRef);
|
|
65804
|
-
const options = _extends$
|
|
65804
|
+
const options = _extends$c({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
|
|
65805
65805
|
columns: userOptions?.columns ?? state.orderedFields
|
|
65806
65806
|
});
|
|
65807
65807
|
options.columns = options.columns.filter((c2) => state.columnVisibilityModel[c2] !== false);
|
|
@@ -65812,7 +65812,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
65812
65812
|
await columnVirtualizationDisabled();
|
|
65813
65813
|
}
|
|
65814
65814
|
const widthByField = extractColumnWidths(apiRef, options, columns2);
|
|
65815
|
-
const newColumns = columns2.map((column2) => _extends$
|
|
65815
|
+
const newColumns = columns2.map((column2) => _extends$c({}, column2, {
|
|
65816
65816
|
width: widthByField[column2.field],
|
|
65817
65817
|
computedWidth: widthByField[column2.field],
|
|
65818
65818
|
flex: 0
|
|
@@ -65920,9 +65920,9 @@ const EMPTY_RANGE = {
|
|
|
65920
65920
|
const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
|
|
65921
65921
|
const DEFAULT_ROWS_TO_PROCESS = 20;
|
|
65922
65922
|
const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
|
|
65923
|
-
const spannedCells = resetState ? {} : _extends$
|
|
65924
|
-
const hiddenCells = resetState ? {} : _extends$
|
|
65925
|
-
const hiddenCellOriginMap = resetState ? {} : _extends$
|
|
65923
|
+
const spannedCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.spannedCells);
|
|
65924
|
+
const hiddenCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCells);
|
|
65925
|
+
const hiddenCellOriginMap = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
|
|
65926
65926
|
if (resetState) {
|
|
65927
65927
|
processedRange = EMPTY_RANGE;
|
|
65928
65928
|
}
|
|
@@ -66034,7 +66034,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
|
|
|
66034
66034
|
};
|
|
66035
66035
|
const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
66036
66036
|
if (!props.rowSpanning) {
|
|
66037
|
-
return _extends$
|
|
66037
|
+
return _extends$c({}, state, {
|
|
66038
66038
|
rowSpanning: EMPTY_STATE
|
|
66039
66039
|
});
|
|
66040
66040
|
}
|
|
@@ -66044,7 +66044,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
66044
66044
|
const columnsLookup = state.columns.lookup;
|
|
66045
66045
|
const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean(state.filter.filterModel.quickFilterValues?.length);
|
|
66046
66046
|
if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
|
|
66047
|
-
return _extends$
|
|
66047
|
+
return _extends$c({}, state, {
|
|
66048
66048
|
rowSpanning: EMPTY_STATE
|
|
66049
66049
|
});
|
|
66050
66050
|
}
|
|
@@ -66059,7 +66059,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
66059
66059
|
hiddenCells,
|
|
66060
66060
|
hiddenCellOriginMap
|
|
66061
66061
|
} = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
|
|
66062
|
-
return _extends$
|
|
66062
|
+
return _extends$c({}, state, {
|
|
66063
66063
|
rowSpanning: {
|
|
66064
66064
|
spannedCells,
|
|
66065
66065
|
hiddenCells,
|
|
@@ -66110,7 +66110,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
66110
66110
|
return;
|
|
66111
66111
|
}
|
|
66112
66112
|
apiRef.current.setState((state) => {
|
|
66113
|
-
return _extends$
|
|
66113
|
+
return _extends$c({}, state, {
|
|
66114
66114
|
rowSpanning: {
|
|
66115
66115
|
spannedCells,
|
|
66116
66116
|
hiddenCells,
|
|
@@ -66134,7 +66134,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
66134
66134
|
React.useEffect(() => {
|
|
66135
66135
|
if (!props.rowSpanning) {
|
|
66136
66136
|
if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
|
|
66137
|
-
apiRef.current.setState((state) => _extends$
|
|
66137
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66138
66138
|
rowSpanning: EMPTY_STATE
|
|
66139
66139
|
}));
|
|
66140
66140
|
}
|
|
@@ -66143,8 +66143,8 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
66143
66143
|
}
|
|
66144
66144
|
}, [apiRef, resetRowSpanningState, props.rowSpanning]);
|
|
66145
66145
|
};
|
|
66146
|
-
const listViewStateInitializer = (state, props, apiRef) => _extends$
|
|
66147
|
-
listViewColumn: props.listViewColumn ? _extends$
|
|
66146
|
+
const listViewStateInitializer = (state, props, apiRef) => _extends$c({}, state, {
|
|
66147
|
+
listViewColumn: props.listViewColumn ? _extends$c({}, props.listViewColumn, {
|
|
66148
66148
|
computedWidth: getListColumnWidth(apiRef)
|
|
66149
66149
|
}) : void 0
|
|
66150
66150
|
});
|
|
@@ -66154,8 +66154,8 @@ function useGridListView(apiRef, props) {
|
|
|
66154
66154
|
if (!state.listViewColumn) {
|
|
66155
66155
|
return state;
|
|
66156
66156
|
}
|
|
66157
|
-
return _extends$
|
|
66158
|
-
listViewColumn: _extends$
|
|
66157
|
+
return _extends$c({}, state, {
|
|
66158
|
+
listViewColumn: _extends$c({}, state.listViewColumn, {
|
|
66159
66159
|
computedWidth: getListColumnWidth(apiRef)
|
|
66160
66160
|
})
|
|
66161
66161
|
});
|
|
@@ -66174,8 +66174,8 @@ function useGridListView(apiRef, props) {
|
|
|
66174
66174
|
const listColumn = props.listViewColumn;
|
|
66175
66175
|
if (listColumn) {
|
|
66176
66176
|
apiRef.current.setState((state) => {
|
|
66177
|
-
return _extends$
|
|
66178
|
-
listViewColumn: _extends$
|
|
66177
|
+
return _extends$c({}, state, {
|
|
66178
|
+
listViewColumn: _extends$c({}, listColumn, {
|
|
66179
66179
|
computedWidth: getListColumnWidth(apiRef)
|
|
66180
66180
|
})
|
|
66181
66181
|
});
|
|
@@ -66220,7 +66220,7 @@ class CacheChunkManager {
|
|
|
66220
66220
|
const chunkedKeys = [];
|
|
66221
66221
|
for (let i2 = key2.start; i2 < key2.end; i2 += this.chunkSize) {
|
|
66222
66222
|
const end2 = Math.min(i2 + this.chunkSize - 1, key2.end);
|
|
66223
|
-
chunkedKeys.push(_extends$
|
|
66223
|
+
chunkedKeys.push(_extends$c({}, key2, {
|
|
66224
66224
|
start: i2,
|
|
66225
66225
|
end: end2
|
|
66226
66226
|
}));
|
|
@@ -66232,8 +66232,8 @@ class CacheChunkManager {
|
|
|
66232
66232
|
const responses = /* @__PURE__ */ new Map();
|
|
66233
66233
|
cacheKeys.forEach((chunkKey) => {
|
|
66234
66234
|
const isLastChunk = chunkKey.end === key2.end;
|
|
66235
|
-
const responseSlice = _extends$
|
|
66236
|
-
pageInfo: _extends$
|
|
66235
|
+
const responseSlice = _extends$c({}, response, {
|
|
66236
|
+
pageInfo: _extends$c({}, response.pageInfo, {
|
|
66237
66237
|
// If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
|
|
66238
66238
|
hasNextPage: response.pageInfo?.hasNextPage !== void 0 && !isLastChunk ? true : response.pageInfo?.hasNextPage,
|
|
66239
66239
|
nextCursor: response.pageInfo?.nextCursor !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : response.pageInfo?.nextCursor
|
|
@@ -66298,7 +66298,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
|
|
|
66298
66298
|
return;
|
|
66299
66299
|
}
|
|
66300
66300
|
options.clearDataSourceState?.();
|
|
66301
|
-
const fetchParams = _extends$
|
|
66301
|
+
const fetchParams = _extends$c({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params2);
|
|
66302
66302
|
const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
|
|
66303
66303
|
const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
|
|
66304
66304
|
if (responses.every((response) => response !== void 0)) {
|
|
@@ -66541,7 +66541,7 @@ function GridColumnGroupHeader(props) {
|
|
|
66541
66541
|
if (groupId && render2) {
|
|
66542
66542
|
headerComponent = render2(renderParams);
|
|
66543
66543
|
}
|
|
66544
|
-
const ownerState = _extends$
|
|
66544
|
+
const ownerState = _extends$c({}, props, {
|
|
66545
66545
|
classes: rootProps.classes,
|
|
66546
66546
|
headerAlign,
|
|
66547
66547
|
depth,
|
|
@@ -66575,8 +66575,8 @@ function GridColumnGroupHeader(props) {
|
|
|
66575
66575
|
onBlur: publish("columnGroupHeaderBlur")
|
|
66576
66576
|
}), [publish]);
|
|
66577
66577
|
const headerClassName = typeof group2.headerClassName === "function" ? group2.headerClassName(renderParams) : group2.headerClassName;
|
|
66578
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
66579
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
66578
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
66579
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
66580
66580
|
ref: headerCellRef,
|
|
66581
66581
|
classes: classes2,
|
|
66582
66582
|
columnMenuOpen: false,
|
|
@@ -66715,7 +66715,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
66715
66715
|
const sectionLength = renderedColumns.length;
|
|
66716
66716
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
66717
66717
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
|
|
66718
|
-
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$
|
|
66718
|
+
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$c({}, sortColumnLookup[colDef.field], {
|
|
66719
66719
|
columnMenuOpen: open2,
|
|
66720
66720
|
filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
|
|
66721
66721
|
headerHeight,
|
|
@@ -66787,7 +66787,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
66787
66787
|
columnFields
|
|
66788
66788
|
}) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
|
|
66789
66789
|
const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
|
|
66790
|
-
return _extends$
|
|
66790
|
+
return _extends$c({}, groupStructure, {
|
|
66791
66791
|
columnFields: groupStructure.columnFields.filter((field2) => columnVisibility[field2] !== false)
|
|
66792
66792
|
});
|
|
66793
66793
|
}).filter((groupStructure) => groupStructure.columnFields.length > 0);
|
|
@@ -66916,7 +66916,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref2)
|
|
|
66916
66916
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
|
|
66917
66917
|
const rootProps = useGridRootProps();
|
|
66918
66918
|
const classes2 = useUtilityClasses$5(rootProps);
|
|
66919
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$
|
|
66919
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$c({
|
|
66920
66920
|
className: clsx$1(classes2.root, className),
|
|
66921
66921
|
ownerState: rootProps
|
|
66922
66922
|
}, other, {
|
|
@@ -66958,7 +66958,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref2)
|
|
|
66958
66958
|
columnGroupsHeaderStructure,
|
|
66959
66959
|
hasOtherElementInTabSequence
|
|
66960
66960
|
});
|
|
66961
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$
|
|
66961
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$c({}, other, getInnerProps(), {
|
|
66962
66962
|
ref: ref2,
|
|
66963
66963
|
children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
|
|
66964
66964
|
}));
|
|
@@ -67007,7 +67007,7 @@ function GridPinnedRows(_) {
|
|
|
67007
67007
|
const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref2) {
|
|
67008
67008
|
const apiRef = useGridApiContext();
|
|
67009
67009
|
const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
|
|
67010
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
67010
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
67011
67011
|
ref: ref2,
|
|
67012
67012
|
children: noResultsOverlayLabel
|
|
67013
67013
|
}));
|
|
@@ -68532,7 +68532,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
|
|
|
68532
68532
|
const rootProps = useGridRootProps();
|
|
68533
68533
|
const [nextSortDirection] = sortingOrder;
|
|
68534
68534
|
const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
|
|
68535
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
68535
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({}, other)) : null;
|
|
68536
68536
|
});
|
|
68537
68537
|
const encoder$2 = new TextEncoder();
|
|
68538
68538
|
let bufferLength = 2 * 1024;
|
|
@@ -68748,7 +68748,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref2) {
|
|
|
68748
68748
|
shrink: true,
|
|
68749
68749
|
variant: "outlined",
|
|
68750
68750
|
children: label2
|
|
68751
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$
|
|
68751
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$c({
|
|
68752
68752
|
id: id2,
|
|
68753
68753
|
labelId,
|
|
68754
68754
|
label: label2,
|
|
@@ -68804,13 +68804,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref2) {
|
|
|
68804
68804
|
const {
|
|
68805
68805
|
estimatedRowCount
|
|
68806
68806
|
} = rootProps;
|
|
68807
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$
|
|
68807
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$c({
|
|
68808
68808
|
component: "div",
|
|
68809
68809
|
onRowsPerPageChange: useEventCallback((event2) => {
|
|
68810
68810
|
onRowsPerPageChange?.(Number(event2.target.value));
|
|
68811
68811
|
}),
|
|
68812
68812
|
labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
|
|
68813
|
-
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$
|
|
68813
|
+
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$c({}, params2, {
|
|
68814
68814
|
estimated: estimatedRowCount
|
|
68815
68815
|
})),
|
|
68816
68816
|
getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
|
|
@@ -68822,7 +68822,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref2) {
|
|
|
68822
68822
|
const {
|
|
68823
68823
|
material
|
|
68824
68824
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded3$1);
|
|
68825
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$
|
|
68825
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$c({}, rest, material, {
|
|
68826
68826
|
ref: ref2
|
|
68827
68827
|
}));
|
|
68828
68828
|
});
|
|
@@ -68849,7 +68849,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
68849
68849
|
}
|
|
68850
68850
|
}, [autoFocus]);
|
|
68851
68851
|
if (!label2) {
|
|
68852
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
68852
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
68853
68853
|
className: clsx$1(className, material?.className),
|
|
68854
68854
|
inputProps: slotProps?.htmlInput,
|
|
68855
68855
|
ref: handleRef,
|
|
@@ -68858,7 +68858,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
68858
68858
|
}
|
|
68859
68859
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
|
|
68860
68860
|
className,
|
|
68861
|
-
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
68861
|
+
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
68862
68862
|
inputProps: slotProps?.htmlInput,
|
|
68863
68863
|
ref: handleRef,
|
|
68864
68864
|
touchRippleRef: rippleRef
|
|
@@ -68871,7 +68871,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
|
|
|
68871
68871
|
const {
|
|
68872
68872
|
material
|
|
68873
68873
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded5);
|
|
68874
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$
|
|
68874
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$c({}, rest, material, {
|
|
68875
68875
|
ref: ref2
|
|
68876
68876
|
}));
|
|
68877
68877
|
});
|
|
@@ -68879,7 +68879,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref2) {
|
|
|
68879
68879
|
const {
|
|
68880
68880
|
material
|
|
68881
68881
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded6);
|
|
68882
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$
|
|
68882
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$c({}, rest, material, {
|
|
68883
68883
|
ref: ref2
|
|
68884
68884
|
}));
|
|
68885
68885
|
});
|
|
@@ -68887,7 +68887,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref2)
|
|
|
68887
68887
|
const {
|
|
68888
68888
|
material
|
|
68889
68889
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded7);
|
|
68890
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$
|
|
68890
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$c({}, rest, material, {
|
|
68891
68891
|
ref: ref2
|
|
68892
68892
|
}));
|
|
68893
68893
|
});
|
|
@@ -68895,7 +68895,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref2) {
|
|
|
68895
68895
|
const {
|
|
68896
68896
|
material
|
|
68897
68897
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded8);
|
|
68898
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$
|
|
68898
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$c({}, rest, material, {
|
|
68899
68899
|
ref: ref2
|
|
68900
68900
|
}));
|
|
68901
68901
|
});
|
|
@@ -68903,7 +68903,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref2) {
|
|
|
68903
68903
|
const {
|
|
68904
68904
|
material
|
|
68905
68905
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded9);
|
|
68906
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$
|
|
68906
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$c({}, rest, material, {
|
|
68907
68907
|
ref: ref2
|
|
68908
68908
|
}));
|
|
68909
68909
|
});
|
|
@@ -68911,7 +68911,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref2) {
|
|
|
68911
68911
|
const {
|
|
68912
68912
|
material
|
|
68913
68913
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded10);
|
|
68914
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$
|
|
68914
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$c({}, rest, material, {
|
|
68915
68915
|
ref: ref2
|
|
68916
68916
|
}));
|
|
68917
68917
|
});
|
|
@@ -68919,7 +68919,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref2) {
|
|
|
68919
68919
|
const {
|
|
68920
68920
|
material
|
|
68921
68921
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded11);
|
|
68922
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$
|
|
68922
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$c({}, rest, material, {
|
|
68923
68923
|
ref: ref2
|
|
68924
68924
|
}));
|
|
68925
68925
|
});
|
|
@@ -68927,7 +68927,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref2) {
|
|
|
68927
68927
|
const {
|
|
68928
68928
|
material
|
|
68929
68929
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded12);
|
|
68930
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$
|
|
68930
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$c({}, rest, material, {
|
|
68931
68931
|
ref: ref2
|
|
68932
68932
|
}));
|
|
68933
68933
|
});
|
|
@@ -68935,7 +68935,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref2) {
|
|
|
68935
68935
|
const {
|
|
68936
68936
|
material
|
|
68937
68937
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded13);
|
|
68938
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$
|
|
68938
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$c({}, rest, material, {
|
|
68939
68939
|
ref: ref2
|
|
68940
68940
|
}));
|
|
68941
68941
|
});
|
|
@@ -68962,12 +68962,12 @@ function BaseTextField(props) {
|
|
|
68962
68962
|
slotProps,
|
|
68963
68963
|
material
|
|
68964
68964
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded15);
|
|
68965
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
68965
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({
|
|
68966
68966
|
variant: "outlined"
|
|
68967
68967
|
}, rest, material, {
|
|
68968
68968
|
inputProps: slotProps?.htmlInput,
|
|
68969
68969
|
InputProps: transformInputProps(slotProps?.input),
|
|
68970
|
-
InputLabelProps: _extends$
|
|
68970
|
+
InputLabelProps: _extends$c({
|
|
68971
68971
|
shrink: true
|
|
68972
68972
|
}, slotProps?.inputLabel)
|
|
68973
68973
|
}));
|
|
@@ -68988,7 +68988,7 @@ function BaseAutocomplete(props) {
|
|
|
68988
68988
|
slotProps,
|
|
68989
68989
|
material
|
|
68990
68990
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded16);
|
|
68991
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$
|
|
68991
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$c({
|
|
68992
68992
|
id: id2,
|
|
68993
68993
|
multiple,
|
|
68994
68994
|
freeSolo,
|
|
@@ -69003,7 +69003,7 @@ function BaseAutocomplete(props) {
|
|
|
69003
69003
|
}), {
|
|
69004
69004
|
key: key2
|
|
69005
69005
|
} = _getTagProps, tagProps = _objectWithoutPropertiesLoose$1(_getTagProps, _excluded17);
|
|
69006
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$
|
|
69006
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$c({
|
|
69007
69007
|
variant: "outlined",
|
|
69008
69008
|
size: "small",
|
|
69009
69009
|
label: typeof option === "string" ? option : getOptionLabel?.(option)
|
|
@@ -69015,12 +69015,12 @@ function BaseAutocomplete(props) {
|
|
|
69015
69015
|
InputProps,
|
|
69016
69016
|
InputLabelProps
|
|
69017
69017
|
} = params2, inputRest = _objectWithoutPropertiesLoose$1(params2, _excluded18);
|
|
69018
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
69018
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({}, inputRest, {
|
|
69019
69019
|
label: label2,
|
|
69020
69020
|
placeholder,
|
|
69021
69021
|
inputProps,
|
|
69022
69022
|
InputProps: transformInputProps(InputProps, false),
|
|
69023
|
-
InputLabelProps: _extends$
|
|
69023
|
+
InputLabelProps: _extends$c({
|
|
69024
69024
|
shrink: true
|
|
69025
69025
|
}, InputLabelProps)
|
|
69026
69026
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
@@ -69028,7 +69028,7 @@ function BaseAutocomplete(props) {
|
|
|
69028
69028
|
}, rest, material));
|
|
69029
69029
|
}
|
|
69030
69030
|
function BaseInput(props) {
|
|
69031
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$
|
|
69031
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$c({}, transformInputProps(props)));
|
|
69032
69032
|
}
|
|
69033
69033
|
function transformInputProps(props, wrapAdornments = true) {
|
|
69034
69034
|
if (!props) {
|
|
@@ -69060,7 +69060,7 @@ function transformInputProps(props, wrapAdornments = true) {
|
|
|
69060
69060
|
}
|
|
69061
69061
|
if (slotProps?.htmlInput) {
|
|
69062
69062
|
if (result.inputProps) {
|
|
69063
|
-
result.inputProps = _extends$
|
|
69063
|
+
result.inputProps = _extends$c({}, result.inputProps, slotProps?.htmlInput);
|
|
69064
69064
|
} else {
|
|
69065
69065
|
result.inputProps = slotProps?.htmlInput;
|
|
69066
69066
|
}
|
|
@@ -69124,7 +69124,7 @@ function BasePopper(props) {
|
|
|
69124
69124
|
onExited(node2);
|
|
69125
69125
|
}
|
|
69126
69126
|
};
|
|
69127
|
-
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$
|
|
69127
|
+
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$c({}, p.TransitionProps, {
|
|
69128
69128
|
style: {
|
|
69129
69129
|
transformOrigin: transformOrigin[p.placement]
|
|
69130
69130
|
},
|
|
@@ -69134,7 +69134,7 @@ function BasePopper(props) {
|
|
|
69134
69134
|
})
|
|
69135
69135
|
})));
|
|
69136
69136
|
}
|
|
69137
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$
|
|
69137
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$c({
|
|
69138
69138
|
id: id2,
|
|
69139
69139
|
className,
|
|
69140
69140
|
open: open2,
|
|
@@ -69179,9 +69179,9 @@ function BaseSelectOption(_ref) {
|
|
|
69179
69179
|
native: native2
|
|
69180
69180
|
} = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded21);
|
|
69181
69181
|
if (native2) {
|
|
69182
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$
|
|
69182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$c({}, props));
|
|
69183
69183
|
}
|
|
69184
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$
|
|
69184
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$c({}, props));
|
|
69185
69185
|
}
|
|
69186
69186
|
const iconSlots = {
|
|
69187
69187
|
booleanCellTrueIcon: GridCheckIcon,
|
|
@@ -69243,7 +69243,7 @@ const baseSlots = {
|
|
|
69243
69243
|
baseSkeleton: BaseSkeleton,
|
|
69244
69244
|
baseSwitch: BaseSwitch
|
|
69245
69245
|
};
|
|
69246
|
-
const materialSlots = _extends$
|
|
69246
|
+
const materialSlots = _extends$c({}, baseSlots, iconSlots);
|
|
69247
69247
|
const useUtilityClasses = () => {
|
|
69248
69248
|
const slots = {
|
|
69249
69249
|
root: ["bottomContainer"]
|
|
@@ -69257,12 +69257,12 @@ const Element$1 = styled$1("div")({
|
|
|
69257
69257
|
});
|
|
69258
69258
|
function GridBottomContainer(props) {
|
|
69259
69259
|
const classes2 = useUtilityClasses();
|
|
69260
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$
|
|
69260
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$c({}, props, {
|
|
69261
69261
|
className: clsx$1(classes2.root, gridClasses["container--bottom"]),
|
|
69262
69262
|
role: "presentation"
|
|
69263
69263
|
}));
|
|
69264
69264
|
}
|
|
69265
|
-
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$
|
|
69265
|
+
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$c({}, materialSlots, {
|
|
69266
69266
|
cell: MemoizedGridCell,
|
|
69267
69267
|
skeletonCell: Memoized$1,
|
|
69268
69268
|
columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
|
|
@@ -69298,7 +69298,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
69298
69298
|
signature: "DataGrid",
|
|
69299
69299
|
listView: false
|
|
69300
69300
|
};
|
|
69301
|
-
const getDataGridForcedProps = (themedProps) => _extends$
|
|
69301
|
+
const getDataGridForcedProps = (themedProps) => _extends$c({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
69302
69302
|
filterMode: "server",
|
|
69303
69303
|
sortingMode: "server",
|
|
69304
69304
|
paginationMode: "server"
|
|
@@ -69312,7 +69312,7 @@ const useDataGridProps = (inProps) => {
|
|
|
69312
69312
|
name: "MuiDataGrid"
|
|
69313
69313
|
})
|
|
69314
69314
|
);
|
|
69315
|
-
const localeText = React.useMemo(() => _extends$
|
|
69315
|
+
const localeText = React.useMemo(() => _extends$c({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
69316
69316
|
const slots = React.useMemo(() => computeSlots({
|
|
69317
69317
|
defaultSlots,
|
|
69318
69318
|
slots: themedProps.slots
|
|
@@ -69323,7 +69323,7 @@ const useDataGridProps = (inProps) => {
|
|
|
69323
69323
|
return acc;
|
|
69324
69324
|
}, {});
|
|
69325
69325
|
}, [themedProps]);
|
|
69326
|
-
return React.useMemo(() => _extends$
|
|
69326
|
+
return React.useMemo(() => _extends$c({}, themedProps, injectDefaultProps, {
|
|
69327
69327
|
localeText,
|
|
69328
69328
|
slots
|
|
69329
69329
|
}, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
|
|
@@ -69345,7 +69345,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref2) {
|
|
|
69345
69345
|
privateApiRef,
|
|
69346
69346
|
configuration,
|
|
69347
69347
|
props,
|
|
69348
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$
|
|
69348
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$c({
|
|
69349
69349
|
className: props.className,
|
|
69350
69350
|
style: props.style,
|
|
69351
69351
|
sx: props.sx
|
|
@@ -70336,7 +70336,7 @@ var defineProperty$7 = function(obj, key2, value2) {
|
|
|
70336
70336
|
}
|
|
70337
70337
|
return obj;
|
|
70338
70338
|
};
|
|
70339
|
-
var _extends$
|
|
70339
|
+
var _extends$b = Object.assign || function(target2) {
|
|
70340
70340
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
70341
70341
|
var source2 = arguments[i2];
|
|
70342
70342
|
for (var key2 in source2) {
|
|
@@ -70348,7 +70348,7 @@ var _extends$c = Object.assign || function(target2) {
|
|
|
70348
70348
|
return target2;
|
|
70349
70349
|
};
|
|
70350
70350
|
function getClientRect(offsets2) {
|
|
70351
|
-
return _extends$
|
|
70351
|
+
return _extends$b({}, offsets2, {
|
|
70352
70352
|
right: offsets2.left + offsets2.width,
|
|
70353
70353
|
bottom: offsets2.top + offsets2.height
|
|
70354
70354
|
});
|
|
@@ -70532,7 +70532,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
|
|
|
70532
70532
|
}
|
|
70533
70533
|
};
|
|
70534
70534
|
var sortedAreas = Object.keys(rects).map(function(key2) {
|
|
70535
|
-
return _extends$
|
|
70535
|
+
return _extends$b({
|
|
70536
70536
|
key: key2
|
|
70537
70537
|
}, rects[key2], {
|
|
70538
70538
|
area: getArea(rects[key2])
|
|
@@ -70840,9 +70840,9 @@ function computeStyle(data2, options) {
|
|
|
70840
70840
|
var attributes = {
|
|
70841
70841
|
"x-placement": data2.placement
|
|
70842
70842
|
};
|
|
70843
|
-
data2.attributes = _extends$
|
|
70844
|
-
data2.styles = _extends$
|
|
70845
|
-
data2.arrowStyles = _extends$
|
|
70843
|
+
data2.attributes = _extends$b({}, attributes, data2.attributes);
|
|
70844
|
+
data2.styles = _extends$b({}, styles2, data2.styles);
|
|
70845
|
+
data2.arrowStyles = _extends$b({}, data2.offsets.arrow, data2.arrowStyles);
|
|
70846
70846
|
return data2;
|
|
70847
70847
|
}
|
|
70848
70848
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -70977,7 +70977,7 @@ function flip$1(data2, options) {
|
|
|
70977
70977
|
variation = getOppositeVariation(variation);
|
|
70978
70978
|
}
|
|
70979
70979
|
data2.placement = placement + (variation ? "-" + variation : "");
|
|
70980
|
-
data2.offsets.popper = _extends$
|
|
70980
|
+
data2.offsets.popper = _extends$b({}, data2.offsets.popper, getPopperOffsets(data2.instance.popper, data2.offsets.reference, data2.placement));
|
|
70981
70981
|
data2 = runModifiers(data2.instance.modifiers, data2, "flip");
|
|
70982
70982
|
}
|
|
70983
70983
|
});
|
|
@@ -71136,7 +71136,7 @@ function preventOverflow(data2, options) {
|
|
|
71136
71136
|
};
|
|
71137
71137
|
order2.forEach(function(placement) {
|
|
71138
71138
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
71139
|
-
popper2 = _extends$
|
|
71139
|
+
popper2 = _extends$b({}, popper2, check[side](placement));
|
|
71140
71140
|
});
|
|
71141
71141
|
data2.offsets.popper = popper2;
|
|
71142
71142
|
return data2;
|
|
@@ -71154,7 +71154,7 @@ function shift(data2) {
|
|
|
71154
71154
|
start: defineProperty$7({}, side, reference2[side]),
|
|
71155
71155
|
end: defineProperty$7({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
71156
71156
|
};
|
|
71157
|
-
data2.offsets.popper = _extends$
|
|
71157
|
+
data2.offsets.popper = _extends$b({}, popper2, shiftOffsets[shiftvariation]);
|
|
71158
71158
|
}
|
|
71159
71159
|
return data2;
|
|
71160
71160
|
}
|
|
@@ -71557,7 +71557,7 @@ var Popper$1 = function() {
|
|
|
71557
71557
|
return requestAnimationFrame(_this.update);
|
|
71558
71558
|
};
|
|
71559
71559
|
this.update = debounce$3(this.update.bind(this));
|
|
71560
|
-
this.options = _extends$
|
|
71560
|
+
this.options = _extends$b({}, Popper3.Defaults, options);
|
|
71561
71561
|
this.state = {
|
|
71562
71562
|
isDestroyed: false,
|
|
71563
71563
|
isCreated: false,
|
|
@@ -71566,11 +71566,11 @@ var Popper$1 = function() {
|
|
|
71566
71566
|
this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
|
|
71567
71567
|
this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
|
|
71568
71568
|
this.options.modifiers = {};
|
|
71569
|
-
Object.keys(_extends$
|
|
71570
|
-
_this.options.modifiers[name2] = _extends$
|
|
71569
|
+
Object.keys(_extends$b({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
71570
|
+
_this.options.modifiers[name2] = _extends$b({}, Popper3.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
71571
71571
|
});
|
|
71572
71572
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
|
|
71573
|
-
return _extends$
|
|
71573
|
+
return _extends$b({
|
|
71574
71574
|
name: name2
|
|
71575
71575
|
}, _this.options.modifiers[name2]);
|
|
71576
71576
|
}).sort(function(a2, b2) {
|
|
@@ -71814,38 +71814,6 @@ function ScopedGlobalStyles(props) {
|
|
|
71814
71814
|
}, [parentClassName, styles2]);
|
|
71815
71815
|
return component;
|
|
71816
71816
|
}
|
|
71817
|
-
function _extends$b() {
|
|
71818
|
-
_extends$b = Object.assign ? Object.assign.bind() : function(target2) {
|
|
71819
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
71820
|
-
var source2 = arguments[i2];
|
|
71821
|
-
for (var key2 in source2) {
|
|
71822
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
|
71823
|
-
target2[key2] = source2[key2];
|
|
71824
|
-
}
|
|
71825
|
-
}
|
|
71826
|
-
}
|
|
71827
|
-
return target2;
|
|
71828
|
-
};
|
|
71829
|
-
return _extends$b.apply(this, arguments);
|
|
71830
|
-
}
|
|
71831
|
-
function _assertThisInitialized$1(self2) {
|
|
71832
|
-
if (self2 === void 0) {
|
|
71833
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71834
|
-
}
|
|
71835
|
-
return self2;
|
|
71836
|
-
}
|
|
71837
|
-
function _setPrototypeOf$1(o2, p) {
|
|
71838
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
71839
|
-
o3.__proto__ = p2;
|
|
71840
|
-
return o3;
|
|
71841
|
-
};
|
|
71842
|
-
return _setPrototypeOf$1(o2, p);
|
|
71843
|
-
}
|
|
71844
|
-
function _inheritsLoose(subClass, superClass) {
|
|
71845
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
71846
|
-
subClass.prototype.constructor = subClass;
|
|
71847
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
71848
|
-
}
|
|
71849
71817
|
var safeIsNaN = Number.isNaN || function ponyfill(value2) {
|
|
71850
71818
|
return typeof value2 === "number" && value2 !== value2;
|
|
71851
71819
|
};
|
|
@@ -72213,7 +72181,7 @@ function createListComponent(_ref) {
|
|
|
72213
72181
|
className,
|
|
72214
72182
|
onScroll: onScroll6,
|
|
72215
72183
|
ref: this._outerRefSetter,
|
|
72216
|
-
style: _extends$
|
|
72184
|
+
style: _extends$c({
|
|
72217
72185
|
position: "relative",
|
|
72218
72186
|
height: height2,
|
|
72219
72187
|
width: width2,
|
|
@@ -230349,22 +230317,22 @@ async function getDecoder(fileDirectory) {
|
|
|
230349
230317
|
const Decoder = await importFn();
|
|
230350
230318
|
return new Decoder(fileDirectory);
|
|
230351
230319
|
}
|
|
230352
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
230353
|
-
addDecoder(5, () => import("./lzw-
|
|
230320
|
+
addDecoder([void 0, 1], () => import("./raw-C9wxSTEx.js").then((m2) => m2.default));
|
|
230321
|
+
addDecoder(5, () => import("./lzw-CzubbbMJ.js").then((m2) => m2.default));
|
|
230354
230322
|
addDecoder(6, () => {
|
|
230355
230323
|
throw new Error("old style JPEG compression is not supported.");
|
|
230356
230324
|
});
|
|
230357
|
-
addDecoder(7, () => import("./jpeg-
|
|
230358
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
230359
|
-
addDecoder(32773, () => import("./packbits-
|
|
230325
|
+
addDecoder(7, () => import("./jpeg-BVOGozQR.js").then((m2) => m2.default));
|
|
230326
|
+
addDecoder([8, 32946], () => import("./deflate-bMqc070m.js").then((m2) => m2.default));
|
|
230327
|
+
addDecoder(32773, () => import("./packbits-h_xMBVqr.js").then((m2) => m2.default));
|
|
230360
230328
|
addDecoder(
|
|
230361
230329
|
34887,
|
|
230362
|
-
() => import("./lerc-
|
|
230330
|
+
() => import("./lerc-mli9SB1o.js").then(async (m2) => {
|
|
230363
230331
|
await m2.zstd.init();
|
|
230364
230332
|
return m2;
|
|
230365
230333
|
}).then((m2) => m2.default)
|
|
230366
230334
|
);
|
|
230367
|
-
addDecoder(50001, () => import("./webimage-
|
|
230335
|
+
addDecoder(50001, () => import("./webimage-D4la8kDB.js").then((m2) => m2.default));
|
|
230368
230336
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
230369
230337
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
230370
230338
|
}
|
|
@@ -253743,7 +253711,7 @@ var config$1 = function config(options) {
|
|
|
253743
253711
|
}
|
|
253744
253712
|
return Object.freeze(DEFAULT_CONFIG);
|
|
253745
253713
|
};
|
|
253746
|
-
_extends$
|
|
253714
|
+
_extends$c(config$1, DEFAULT_CONFIG, {
|
|
253747
253715
|
MATRIX_OPTIONS,
|
|
253748
253716
|
NUMBER_OPTIONS
|
|
253749
253717
|
});
|
|
@@ -265568,9 +265536,9 @@ var createUnitClass = /* @__PURE__ */ factory(name$6, dependencies$6, (_ref) =>
|
|
|
265568
265536
|
}
|
|
265569
265537
|
}
|
|
265570
265538
|
};
|
|
265571
|
-
PREFIXES.SHORTLONG = _extends$
|
|
265572
|
-
PREFIXES.BINARY_SHORT = _extends$
|
|
265573
|
-
PREFIXES.BINARY_LONG = _extends$
|
|
265539
|
+
PREFIXES.SHORTLONG = _extends$c({}, PREFIXES.SHORT, PREFIXES.LONG);
|
|
265540
|
+
PREFIXES.BINARY_SHORT = _extends$c({}, PREFIXES.BINARY_SHORT_SI, PREFIXES.BINARY_SHORT_IEC);
|
|
265541
|
+
PREFIXES.BINARY_LONG = _extends$c({}, PREFIXES.BINARY_LONG_SI, PREFIXES.BINARY_LONG_IEC);
|
|
265574
265542
|
var BASE_DIMENSIONS = ["MASS", "LENGTH", "TIME", "CURRENT", "TEMPERATURE", "LUMINOUS_INTENSITY", "AMOUNT_OF_SUBSTANCE", "ANGLE", "BIT"];
|
|
265575
265543
|
var BASE_UNITS = {
|
|
265576
265544
|
NONE: {
|
|
@@ -271777,12 +271745,12 @@ class ErrorBoundary2 extends React__default.Component {
|
|
|
271777
271745
|
}
|
|
271778
271746
|
}
|
|
271779
271747
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
271780
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
271748
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-iE6KBbYh.js");
|
|
271781
271749
|
return { default: SpatialWrapper2 };
|
|
271782
271750
|
});
|
|
271783
271751
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
271784
271752
|
const LazySpatialAccelerated = React__default.lazy(async () => {
|
|
271785
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
271753
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-oeCOA2zP.js");
|
|
271786
271754
|
return { default: SpatialWrapper2 };
|
|
271787
271755
|
});
|
|
271788
271756
|
const SpatialAcceleratedAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialAccelerated, { ...props }) }) }) }));
|
|
@@ -274772,8 +274740,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
274772
274740
|
}, {
|
|
274773
274741
|
key: "render",
|
|
274774
274742
|
value: function render2() {
|
|
274775
|
-
var props = _extends$
|
|
274776
|
-
return /* @__PURE__ */ React.createElement(CollectionView, _extends$
|
|
274743
|
+
var props = _extends$d({}, (_objectDestructuringEmpty(this.props), this.props));
|
|
274744
|
+
return /* @__PURE__ */ React.createElement(CollectionView, _extends$d({
|
|
274777
274745
|
cellLayoutManager: this,
|
|
274778
274746
|
isScrollingChange: this._isScrollingChange,
|
|
274779
274747
|
ref: this._setCollectionViewRef
|
|
@@ -276066,7 +276034,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
276066
276034
|
gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
|
|
276067
276035
|
var childrenToDisplay = this._childrenToDisplay;
|
|
276068
276036
|
var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
|
|
276069
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
276037
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({
|
|
276070
276038
|
ref: this._setScrollingContainerRef
|
|
276071
276039
|
}, containerProps, {
|
|
276072
276040
|
"aria-label": this.props["aria-label"],
|
|
@@ -276984,7 +276952,7 @@ var List$2 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
276984
276952
|
value: function render2() {
|
|
276985
276953
|
var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
|
|
276986
276954
|
var classNames2 = clsx("ReactVirtualized__List", className);
|
|
276987
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
276955
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
276988
276956
|
autoContainerWidth: true,
|
|
276989
276957
|
cellRenderer: this._cellRenderer,
|
|
276990
276958
|
className: classNames2,
|
|
@@ -278479,7 +278447,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
278479
278447
|
return null;
|
|
278480
278448
|
}
|
|
278481
278449
|
var additionalRowCount = showVerticalScrollbar ? 1 : 0, height2 = this._getBottomGridHeight(props), width2 = this._getLeftGridWidth(props), scrollbarSize2 = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, gridWidth = hideBottomLeftGridScrollbar ? width2 + scrollbarSize2 : width2;
|
|
278482
|
-
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
278450
|
+
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
278483
278451
|
cellRenderer: this._cellRendererBottomLeftGrid,
|
|
278484
278452
|
className: this.props.classNameBottomLeftGrid,
|
|
278485
278453
|
columnCount: fixedColumnCount,
|
|
@@ -278509,7 +278477,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
278509
278477
|
key: "_renderBottomRightGrid",
|
|
278510
278478
|
value: function _renderBottomRightGrid(props) {
|
|
278511
278479
|
var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
|
|
278512
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
278480
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
278513
278481
|
cellRenderer: this._cellRendererBottomRightGrid,
|
|
278514
278482
|
className: this.props.classNameBottomRightGrid,
|
|
278515
278483
|
columnCount: Math.max(0, columnCount - fixedColumnCount),
|
|
@@ -278534,7 +278502,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
278534
278502
|
if (!fixedColumnCount || !fixedRowCount) {
|
|
278535
278503
|
return null;
|
|
278536
278504
|
}
|
|
278537
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
278505
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
278538
278506
|
className: this.props.classNameTopLeftGrid,
|
|
278539
278507
|
columnCount: fixedColumnCount,
|
|
278540
278508
|
height: this._getTopGridHeight(props),
|
|
@@ -278561,7 +278529,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
278561
278529
|
left: 0
|
|
278562
278530
|
});
|
|
278563
278531
|
}
|
|
278564
|
-
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
278532
|
+
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
278565
278533
|
cellRenderer: this._cellRendererTopRightGrid,
|
|
278566
278534
|
className: this.props.classNameTopRightGrid,
|
|
278567
278535
|
columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
|
|
@@ -278836,7 +278804,7 @@ function defaultRowRenderer(_ref) {
|
|
|
278836
278804
|
};
|
|
278837
278805
|
}
|
|
278838
278806
|
}
|
|
278839
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
278807
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({}, a11yProps, {
|
|
278840
278808
|
className,
|
|
278841
278809
|
key: key2,
|
|
278842
278810
|
role: "row",
|
|
@@ -279119,7 +279087,7 @@ var Table$1 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
279119
279087
|
paddingRight: scrollbarWidth,
|
|
279120
279088
|
width: width2
|
|
279121
279089
|
}, rowStyleObject)
|
|
279122
|
-
}), /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
279090
|
+
}), /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
279123
279091
|
elementRef: this._setGridElementRef,
|
|
279124
279092
|
"aria-readonly": null,
|
|
279125
279093
|
autoContainerWidth: true,
|
|
@@ -284114,7 +284082,7 @@ function HiglassGlobalStyles(props) {
|
|
|
284114
284082
|
}
|
|
284115
284083
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
284116
284084
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
284117
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
284085
|
+
const { HiGlassComponent } = await import("./higlass-B7oMqAJq.js");
|
|
284118
284086
|
return { default: HiGlassComponent };
|
|
284119
284087
|
});
|
|
284120
284088
|
const HG_SIZE = 800;
|
|
@@ -287061,7 +287029,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
287061
287029
|
const { classes: classes2 } = props;
|
|
287062
287030
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
287063
287031
|
}
|
|
287064
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
287032
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BKhY1M3y.js"));
|
|
287065
287033
|
function createWorker() {
|
|
287066
287034
|
return new WorkerFactory();
|
|
287067
287035
|
}
|
|
@@ -400082,7 +400050,7 @@ export {
|
|
|
400082
400050
|
Vector42 as ag,
|
|
400083
400051
|
Line3 as ah,
|
|
400084
400052
|
SphereGeometry2 as ai,
|
|
400085
|
-
_extends$
|
|
400053
|
+
_extends$c as aj,
|
|
400086
400054
|
Plane2 as ak,
|
|
400087
400055
|
Triangle as al,
|
|
400088
400056
|
BackSide as am,
|