@vitessce/statistical-plots 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/{deflate-COFoVj3m.js → deflate-DD-Jz2qv.js} +1 -1
- package/dist/{index-SvDouI4P.js → index-BdzAC4Cq.js} +530 -562
- package/dist/index.js +1 -1
- package/dist/{jpeg-KdTJVUwS.js → jpeg-eKmOr--c.js} +1 -1
- package/dist/{lerc-dL8eLHoB.js → lerc-Bvt14Cst.js} +1 -1
- package/dist/{lzw-OaUWS4n6.js → lzw-BwDPLy3M.js} +1 -1
- package/dist/{packbits-tsK08Y1j.js → packbits-DldZz8Fa.js} +1 -1
- package/dist/{raw-CmFp3NrZ.js → raw-B0uYXVYf.js} +1 -1
- package/dist/{webimage-DQFtvN7V.js → webimage-BXiR6Y9m.js} +1 -1
- package/package.json +8 -8
|
@@ -19151,14 +19151,14 @@ var createCache = function createCache2(options) {
|
|
|
19151
19151
|
cache2.sheet.hydrate(nodesToHydrate);
|
|
19152
19152
|
return cache2;
|
|
19153
19153
|
};
|
|
19154
|
-
function _extends$
|
|
19155
|
-
return _extends$
|
|
19154
|
+
function _extends$3() {
|
|
19155
|
+
return _extends$3 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
19156
19156
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
19157
19157
|
var t4 = arguments[e3];
|
|
19158
19158
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n2[r3] = t4[r3]);
|
|
19159
19159
|
}
|
|
19160
19160
|
return n2;
|
|
19161
|
-
}, _extends$
|
|
19161
|
+
}, _extends$3.apply(null, arguments);
|
|
19162
19162
|
}
|
|
19163
19163
|
var reactIs$1 = { exports: {} };
|
|
19164
19164
|
var reactIs_development$1 = {};
|
|
@@ -20702,7 +20702,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
20702
20702
|
}
|
|
20703
20703
|
});
|
|
20704
20704
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
20705
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
20705
|
+
var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
|
|
20706
20706
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
20707
20707
|
}));
|
|
20708
20708
|
return newStyled2.apply(void 0, styles2);
|
|
@@ -26563,14 +26563,14 @@ function chainPropTypes(propType1, propType2) {
|
|
|
26563
26563
|
return propType1(...args) || propType2(...args);
|
|
26564
26564
|
};
|
|
26565
26565
|
}
|
|
26566
|
-
function _extends$
|
|
26567
|
-
return _extends$
|
|
26566
|
+
function _extends$2() {
|
|
26567
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
26568
26568
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
26569
26569
|
var t4 = arguments[e3];
|
|
26570
26570
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n2[r3] = t4[r3]);
|
|
26571
26571
|
}
|
|
26572
26572
|
return n2;
|
|
26573
|
-
}, _extends$
|
|
26573
|
+
}, _extends$2.apply(null, arguments);
|
|
26574
26574
|
}
|
|
26575
26575
|
function _objectWithoutPropertiesLoose(r3, e3) {
|
|
26576
26576
|
if (null == r3) return {};
|
|
@@ -26581,13 +26581,13 @@ function _objectWithoutPropertiesLoose(r3, e3) {
|
|
|
26581
26581
|
}
|
|
26582
26582
|
return t4;
|
|
26583
26583
|
}
|
|
26584
|
-
function _setPrototypeOf
|
|
26585
|
-
return _setPrototypeOf
|
|
26584
|
+
function _setPrototypeOf(t4, e3) {
|
|
26585
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t5, e4) {
|
|
26586
26586
|
return t5.__proto__ = e4, t5;
|
|
26587
|
-
}, _setPrototypeOf
|
|
26587
|
+
}, _setPrototypeOf(t4, e3);
|
|
26588
26588
|
}
|
|
26589
|
-
function _inheritsLoose
|
|
26590
|
-
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf
|
|
26589
|
+
function _inheritsLoose(t4, o2) {
|
|
26590
|
+
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf(t4, o2);
|
|
26591
26591
|
}
|
|
26592
26592
|
const config$1 = {
|
|
26593
26593
|
disabled: false
|
|
@@ -26619,7 +26619,7 @@ var ENTERING = "entering";
|
|
|
26619
26619
|
var ENTERED = "entered";
|
|
26620
26620
|
var EXITING = "exiting";
|
|
26621
26621
|
var Transition$1 = /* @__PURE__ */ function(_React$Component) {
|
|
26622
|
-
_inheritsLoose
|
|
26622
|
+
_inheritsLoose(Transition2, _React$Component);
|
|
26623
26623
|
function Transition2(props, context2) {
|
|
26624
26624
|
var _this;
|
|
26625
26625
|
_this = _React$Component.call(this, props, context2) || this;
|
|
@@ -27035,7 +27035,7 @@ Transition$1.EXITED = EXITED;
|
|
|
27035
27035
|
Transition$1.ENTERING = ENTERING;
|
|
27036
27036
|
Transition$1.ENTERED = ENTERED;
|
|
27037
27037
|
Transition$1.EXITING = EXITING;
|
|
27038
|
-
function _assertThisInitialized
|
|
27038
|
+
function _assertThisInitialized(e3) {
|
|
27039
27039
|
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
27040
27040
|
return e3;
|
|
27041
27041
|
}
|
|
@@ -27143,11 +27143,11 @@ var defaultProps$P = {
|
|
|
27143
27143
|
}
|
|
27144
27144
|
};
|
|
27145
27145
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
27146
|
-
_inheritsLoose
|
|
27146
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
27147
27147
|
function TransitionGroup2(props, context2) {
|
|
27148
27148
|
var _this;
|
|
27149
27149
|
_this = _React$Component.call(this, props, context2) || this;
|
|
27150
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized
|
|
27150
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
27151
27151
|
_this.state = {
|
|
27152
27152
|
contextValue: {
|
|
27153
27153
|
isMounting: true
|
|
@@ -27184,7 +27184,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
27184
27184
|
}
|
|
27185
27185
|
if (this.mounted) {
|
|
27186
27186
|
this.setState(function(state) {
|
|
27187
|
-
var children2 = _extends$
|
|
27187
|
+
var children2 = _extends$2({}, state.children);
|
|
27188
27188
|
delete children2[child.key];
|
|
27189
27189
|
return {
|
|
27190
27190
|
children: children2
|
|
@@ -49692,7 +49692,7 @@ const keys$4 = {
|
|
|
49692
49692
|
}
|
|
49693
49693
|
};
|
|
49694
49694
|
const values$4 = wrap$2(keys$4);
|
|
49695
|
-
const vars = _extends$
|
|
49695
|
+
const vars = _extends$2({
|
|
49696
49696
|
breakpoints,
|
|
49697
49697
|
spacing,
|
|
49698
49698
|
transition,
|
|
@@ -49807,7 +49807,7 @@ const GridEditInputCell = forwardRef((props, ref2) => {
|
|
|
49807
49807
|
inputRef.current.focus();
|
|
49808
49808
|
}
|
|
49809
49809
|
}, [hasFocus]);
|
|
49810
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$
|
|
49810
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$2({
|
|
49811
49811
|
as: rootProps.slots.baseInput,
|
|
49812
49812
|
inputRef,
|
|
49813
49813
|
className: classes2.root,
|
|
@@ -49891,7 +49891,7 @@ GridEditInputCell.propTypes = {
|
|
|
49891
49891
|
*/
|
|
49892
49892
|
value: _pt.any
|
|
49893
49893
|
};
|
|
49894
|
-
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$
|
|
49894
|
+
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$2({}, params2));
|
|
49895
49895
|
const gridRowsStateSelector = createRootSelector((state) => state.rows);
|
|
49896
49896
|
const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
|
|
49897
49897
|
const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
|
|
@@ -49946,8 +49946,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
|
|
|
49946
49946
|
}
|
|
49947
49947
|
return model;
|
|
49948
49948
|
};
|
|
49949
|
-
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$
|
|
49950
|
-
sorting: _extends$
|
|
49949
|
+
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$2({}, state, {
|
|
49950
|
+
sorting: _extends$2({}, state.sorting, {
|
|
49951
49951
|
sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
|
|
49952
49952
|
})
|
|
49953
49953
|
});
|
|
@@ -50075,7 +50075,7 @@ function GridFilterInputValue(props) {
|
|
|
50075
50075
|
setFilterValueState(value2);
|
|
50076
50076
|
setIsApplying(true);
|
|
50077
50077
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
50078
|
-
const newItem = _extends$
|
|
50078
|
+
const newItem = _extends$2({}, item, {
|
|
50079
50079
|
value: type2 === "number" && !Number.isNaN(Number(value2)) ? Number(value2) : value2,
|
|
50080
50080
|
fromInput: id2
|
|
50081
50081
|
});
|
|
@@ -50090,7 +50090,7 @@ function GridFilterInputValue(props) {
|
|
|
50090
50090
|
}
|
|
50091
50091
|
}, [id2, item]);
|
|
50092
50092
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
50093
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
50093
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
|
|
50094
50094
|
id: id2,
|
|
50095
50095
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
50096
50096
|
placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
|
|
@@ -50098,14 +50098,14 @@ function GridFilterInputValue(props) {
|
|
|
50098
50098
|
onChange: onFilterChange,
|
|
50099
50099
|
type: type2 || "text",
|
|
50100
50100
|
disabled,
|
|
50101
|
-
slotProps: _extends$
|
|
50102
|
-
input: _extends$
|
|
50101
|
+
slotProps: _extends$2({}, textFieldProps == null ? void 0 : textFieldProps.slotProps, {
|
|
50102
|
+
input: _extends$2({
|
|
50103
50103
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
50104
50104
|
fontSize: "small",
|
|
50105
50105
|
color: "action"
|
|
50106
50106
|
}) : null
|
|
50107
50107
|
}, (_a3 = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _a3.input),
|
|
50108
|
-
htmlInput: _extends$
|
|
50108
|
+
htmlInput: _extends$2({
|
|
50109
50109
|
tabIndex
|
|
50110
50110
|
}, (_b2 = textFieldProps == null ? void 0 : textFieldProps.slotProps) == null ? void 0 : _b2.htmlInput)
|
|
50111
50111
|
}),
|
|
@@ -50231,7 +50231,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
50231
50231
|
}, [item.value]);
|
|
50232
50232
|
const handleChange = React.useCallback((event2, value2) => {
|
|
50233
50233
|
setFilterValueState(value2.map(String));
|
|
50234
|
-
applyValue(_extends$
|
|
50234
|
+
applyValue(_extends$2({}, item, {
|
|
50235
50235
|
value: [...value2.map((filterItemValue) => type2 === "number" ? Number(filterItemValue) : filterItemValue)]
|
|
50236
50236
|
}));
|
|
50237
50237
|
}, [applyValue, item, type2]);
|
|
@@ -50243,7 +50243,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
50243
50243
|
}
|
|
50244
50244
|
}, [setOptions]);
|
|
50245
50245
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
50246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
50246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
|
|
50247
50247
|
multiple: true,
|
|
50248
50248
|
freeSolo: true,
|
|
50249
50249
|
options,
|
|
@@ -50497,7 +50497,7 @@ function getHasEval() {
|
|
|
50497
50497
|
return hasEval;
|
|
50498
50498
|
}
|
|
50499
50499
|
const cleanFilterItem = (item, apiRef) => {
|
|
50500
|
-
const cleanItem = _extends$
|
|
50500
|
+
const cleanItem = _extends$2({}, item);
|
|
50501
50501
|
if (cleanItem.id == null) {
|
|
50502
50502
|
cleanItem.id = Math.round(Math.random() * 1e5);
|
|
50503
50503
|
}
|
|
@@ -50531,18 +50531,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
|
|
|
50531
50531
|
}
|
|
50532
50532
|
}
|
|
50533
50533
|
if (hasItemWithoutOperator || hasItemsWithoutIds) {
|
|
50534
|
-
return _extends$
|
|
50534
|
+
return _extends$2({}, model, {
|
|
50535
50535
|
items: items.map((item) => cleanFilterItem(item, apiRef))
|
|
50536
50536
|
});
|
|
50537
50537
|
}
|
|
50538
50538
|
if (model.items !== items) {
|
|
50539
|
-
return _extends$
|
|
50539
|
+
return _extends$2({}, model, {
|
|
50540
50540
|
items
|
|
50541
50541
|
});
|
|
50542
50542
|
}
|
|
50543
50543
|
return model;
|
|
50544
50544
|
};
|
|
50545
|
-
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$
|
|
50545
|
+
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$2({}, filteringState, {
|
|
50546
50546
|
filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
|
|
50547
50547
|
});
|
|
50548
50548
|
const removeDiacritics = (value2) => {
|
|
@@ -50573,7 +50573,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
|
|
|
50573
50573
|
if (ignoreDiacritics) {
|
|
50574
50574
|
parsedValue = removeDiacritics(parsedValue);
|
|
50575
50575
|
}
|
|
50576
|
-
const newFilterItem = _extends$
|
|
50576
|
+
const newFilterItem = _extends$2({}, filterItem, {
|
|
50577
50577
|
value: parsedValue
|
|
50578
50578
|
});
|
|
50579
50579
|
const filterOperators = column2.filterOperators;
|
|
@@ -50998,7 +50998,7 @@ function GridMenu(props) {
|
|
|
50998
50998
|
}
|
|
50999
50999
|
onClose(event2);
|
|
51000
51000
|
};
|
|
51001
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$
|
|
51001
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$2({
|
|
51002
51002
|
as: rootProps.slots.basePopper,
|
|
51003
51003
|
className: clsx(classes2.root, className, variablesClass),
|
|
51004
51004
|
ownerState: rootProps,
|
|
@@ -51159,7 +51159,7 @@ function GridActionsCell(props) {
|
|
|
51159
51159
|
hideMenu();
|
|
51160
51160
|
}
|
|
51161
51161
|
};
|
|
51162
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
51162
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
|
|
51163
51163
|
role: "menu",
|
|
51164
51164
|
ref: rootRef,
|
|
51165
51165
|
tabIndex: -1,
|
|
@@ -51171,7 +51171,7 @@ function GridActionsCell(props) {
|
|
|
51171
51171
|
touchRippleRef: handleTouchRippleRef(index2),
|
|
51172
51172
|
onClick: handleButtonClick(index2, button.props.onClick),
|
|
51173
51173
|
tabIndex: focusedButtonIndex === index2 ? tabIndex : -1
|
|
51174
|
-
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
51174
|
+
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
51175
51175
|
ref: buttonRef,
|
|
51176
51176
|
id: buttonId,
|
|
51177
51177
|
"aria-label": apiRef.current.getLocaleText("actionsCellMore"),
|
|
@@ -51269,9 +51269,9 @@ GridActionsCell.propTypes = {
|
|
|
51269
51269
|
*/
|
|
51270
51270
|
value: _pt.any
|
|
51271
51271
|
};
|
|
51272
|
-
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$
|
|
51272
|
+
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$2({}, params2));
|
|
51273
51273
|
const GRID_ACTIONS_COLUMN_TYPE = "actions";
|
|
51274
|
-
const GRID_ACTIONS_COL_DEF = _extends$
|
|
51274
|
+
const GRID_ACTIONS_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
51275
51275
|
sortable: false,
|
|
51276
51276
|
filterable: false,
|
|
51277
51277
|
// @ts-ignore
|
|
@@ -51387,7 +51387,7 @@ const getRowsStateFromCache = ({
|
|
|
51387
51387
|
},
|
|
51388
51388
|
idToActionLookup: {}
|
|
51389
51389
|
};
|
|
51390
|
-
return _extends$
|
|
51390
|
+
return _extends$2({}, groupingParamsWithHydrateRows, {
|
|
51391
51391
|
totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
|
|
51392
51392
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
51393
51393
|
tree: groupingParamsWithHydrateRows.tree,
|
|
@@ -51433,7 +51433,7 @@ const updateCacheWithNewRows = ({
|
|
|
51433
51433
|
updates.forEach((update2) => {
|
|
51434
51434
|
const id2 = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
|
|
51435
51435
|
if (uniqueUpdates.has(id2)) {
|
|
51436
|
-
uniqueUpdates.set(id2, _extends$
|
|
51436
|
+
uniqueUpdates.set(id2, _extends$2({}, uniqueUpdates.get(id2), update2));
|
|
51437
51437
|
} else {
|
|
51438
51438
|
uniqueUpdates.set(id2, update2);
|
|
51439
51439
|
}
|
|
@@ -51445,10 +51445,10 @@ const updateCacheWithNewRows = ({
|
|
|
51445
51445
|
modify: [...previousCache.updates.actions.modify ?? []],
|
|
51446
51446
|
remove: [...previousCache.updates.actions.remove ?? []]
|
|
51447
51447
|
},
|
|
51448
|
-
idToActionLookup: _extends$
|
|
51448
|
+
idToActionLookup: _extends$2({}, previousCache.updates.idToActionLookup),
|
|
51449
51449
|
groupKeys
|
|
51450
51450
|
};
|
|
51451
|
-
const dataRowIdToModelLookup = _extends$
|
|
51451
|
+
const dataRowIdToModelLookup = _extends$2({}, previousCache.dataRowIdToModelLookup);
|
|
51452
51452
|
const alreadyAppliedActionsToRemove = {
|
|
51453
51453
|
insert: {},
|
|
51454
51454
|
modify: {},
|
|
@@ -51475,7 +51475,7 @@ const updateCacheWithNewRows = ({
|
|
|
51475
51475
|
} else if (actionAlreadyAppliedToRow == null) {
|
|
51476
51476
|
partialUpdates.actions.modify.push(id2);
|
|
51477
51477
|
}
|
|
51478
|
-
dataRowIdToModelLookup[id2] = _extends$
|
|
51478
|
+
dataRowIdToModelLookup[id2] = _extends$2({}, oldRow, partialRow);
|
|
51479
51479
|
return;
|
|
51480
51480
|
}
|
|
51481
51481
|
if (actionAlreadyAppliedToRow === "remove") {
|
|
@@ -51512,7 +51512,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
|
|
|
51512
51512
|
const pinnedRowsCache = apiRef.current.caches.pinnedRows;
|
|
51513
51513
|
const prevModel = pinnedRowsCache.idLookup[id2];
|
|
51514
51514
|
if (prevModel) {
|
|
51515
|
-
pinnedRowsCache.idLookup[id2] = _extends$
|
|
51515
|
+
pinnedRowsCache.idLookup[id2] = _extends$2({}, prevModel, update2);
|
|
51516
51516
|
}
|
|
51517
51517
|
} else {
|
|
51518
51518
|
nonPinnedRowsUpdates.push(update2);
|
|
@@ -51573,7 +51573,7 @@ function GridBooleanCellRaw(props) {
|
|
|
51573
51573
|
if (isServerSideRowGroupingRow && value2 === void 0) {
|
|
51574
51574
|
return null;
|
|
51575
51575
|
}
|
|
51576
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
51576
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
|
|
51577
51577
|
fontSize: "small",
|
|
51578
51578
|
className: classes2.root,
|
|
51579
51579
|
titleAccess: apiRef.current.getLocaleText(value2 ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
|
|
@@ -51651,7 +51651,7 @@ const renderBooleanCell = (params2) => {
|
|
|
51651
51651
|
if (params2.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params2.rowNode)) {
|
|
51652
51652
|
return "";
|
|
51653
51653
|
}
|
|
51654
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$
|
|
51654
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$2({}, params2));
|
|
51655
51655
|
};
|
|
51656
51656
|
const _excluded$S = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
|
|
51657
51657
|
const useUtilityClasses$F = (ownerState) => {
|
|
@@ -51702,11 +51702,11 @@ function GridEditBooleanCell(props) {
|
|
|
51702
51702
|
inputRef.current.focus();
|
|
51703
51703
|
}
|
|
51704
51704
|
}, [hasFocus]);
|
|
51705
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$
|
|
51705
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$2({
|
|
51706
51706
|
htmlFor: id2,
|
|
51707
51707
|
className: clsx(classes2.root, className)
|
|
51708
51708
|
}, other, {
|
|
51709
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
51709
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
|
|
51710
51710
|
id: id2,
|
|
51711
51711
|
inputRef,
|
|
51712
51712
|
checked: Boolean(valueState),
|
|
@@ -51780,7 +51780,7 @@ GridEditBooleanCell.propTypes = {
|
|
|
51780
51780
|
*/
|
|
51781
51781
|
value: _pt.any
|
|
51782
51782
|
};
|
|
51783
|
-
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$
|
|
51783
|
+
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$2({}, params2));
|
|
51784
51784
|
const _excluded$R = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
|
|
51785
51785
|
function GridFilterInputBoolean(props) {
|
|
51786
51786
|
var _a3, _b2;
|
|
@@ -51804,7 +51804,7 @@ function GridFilterInputBoolean(props) {
|
|
|
51804
51804
|
const onFilterChange = React.useCallback((event2) => {
|
|
51805
51805
|
const value2 = sanitizeFilterItemValue(event2.target.value);
|
|
51806
51806
|
setFilterValueState(value2);
|
|
51807
|
-
applyValue(_extends$
|
|
51807
|
+
applyValue(_extends$2({}, item, {
|
|
51808
51808
|
value: value2
|
|
51809
51809
|
}));
|
|
51810
51810
|
}, [applyValue, item]);
|
|
@@ -51814,7 +51814,7 @@ function GridFilterInputBoolean(props) {
|
|
|
51814
51814
|
const label2 = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
51815
51815
|
const rootSlotProps = slotProps == null ? void 0 : slotProps.root.slotProps;
|
|
51816
51816
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
51817
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$
|
|
51817
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$2({
|
|
51818
51818
|
fullWidth: true,
|
|
51819
51819
|
labelId,
|
|
51820
51820
|
id: selectId,
|
|
@@ -51823,21 +51823,21 @@ function GridFilterInputBoolean(props) {
|
|
|
51823
51823
|
onChange: onFilterChange,
|
|
51824
51824
|
native: isSelectNative,
|
|
51825
51825
|
slotProps: {
|
|
51826
|
-
htmlInput: _extends$
|
|
51826
|
+
htmlInput: _extends$2({
|
|
51827
51827
|
ref: focusElementRef,
|
|
51828
51828
|
tabIndex
|
|
51829
51829
|
}, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
|
|
51830
51830
|
}
|
|
51831
51831
|
}, baseSelectProps, others, slotProps == null ? void 0 : slotProps.root, {
|
|
51832
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51832
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
51833
51833
|
native: isSelectNative,
|
|
51834
51834
|
value: "",
|
|
51835
51835
|
children: apiRef.current.getLocaleText("filterValueAny")
|
|
51836
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51836
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
51837
51837
|
native: isSelectNative,
|
|
51838
51838
|
value: "true",
|
|
51839
51839
|
children: apiRef.current.getLocaleText("filterValueTrue")
|
|
51840
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51840
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
51841
51841
|
native: isSelectNative,
|
|
51842
51842
|
value: "false",
|
|
51843
51843
|
children: apiRef.current.getLocaleText("filterValueFalse")
|
|
@@ -51925,7 +51925,7 @@ const stringToBoolean = (value2) => {
|
|
|
51925
51925
|
return void 0;
|
|
51926
51926
|
}
|
|
51927
51927
|
};
|
|
51928
|
-
const GRID_BOOLEAN_COL_DEF = _extends$
|
|
51928
|
+
const GRID_BOOLEAN_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
51929
51929
|
type: "boolean",
|
|
51930
51930
|
display: "flex",
|
|
51931
51931
|
align: "center",
|
|
@@ -52292,7 +52292,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
|
|
|
52292
52292
|
return null;
|
|
52293
52293
|
}
|
|
52294
52294
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
|
|
52295
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
52295
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
|
|
52296
52296
|
tabIndex,
|
|
52297
52297
|
checked: isChecked && !isIndeterminate,
|
|
52298
52298
|
onChange: handleChange,
|
|
@@ -52607,7 +52607,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref2)
|
|
|
52607
52607
|
return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
|
|
52608
52608
|
}, [apiRef, handleSelectionChange]);
|
|
52609
52609
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
|
|
52610
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
52610
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
|
|
52611
52611
|
indeterminate: isIndeterminate,
|
|
52612
52612
|
checked: isChecked && !isIndeterminate,
|
|
52613
52613
|
onChange: handleChange,
|
|
@@ -52646,7 +52646,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
|
|
|
52646
52646
|
return state.props.getRowId ? state.props.getRowId(row) : row.id;
|
|
52647
52647
|
});
|
|
52648
52648
|
const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
|
|
52649
|
-
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$
|
|
52649
|
+
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$2({}, GRID_BOOLEAN_COL_DEF, {
|
|
52650
52650
|
type: "custom",
|
|
52651
52651
|
field: GRID_CHECKBOX_SELECTION_FIELD,
|
|
52652
52652
|
width: 50,
|
|
@@ -52664,8 +52664,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$3({}, GRID_BOOLEAN_COL_DEF, {
|
|
|
52664
52664
|
const rowId = gridRowIdSelector(apiRef, row);
|
|
52665
52665
|
return apiRef.current.isRowSelected(rowId);
|
|
52666
52666
|
},
|
|
52667
|
-
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$
|
|
52668
|
-
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$
|
|
52667
|
+
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$2({}, params2)),
|
|
52668
|
+
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$2({}, params2))
|
|
52669
52669
|
});
|
|
52670
52670
|
const _excluded$O = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
|
|
52671
52671
|
function convertFilterItemValueToInputValue(itemValue, inputType) {
|
|
@@ -52712,7 +52712,7 @@ function GridFilterInputDate(props) {
|
|
|
52712
52712
|
setIsApplying(true);
|
|
52713
52713
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
52714
52714
|
const date2 = new Date(value2);
|
|
52715
|
-
applyValue(_extends$
|
|
52715
|
+
applyValue(_extends$2({}, item, {
|
|
52716
52716
|
value: Number.isNaN(date2.getTime()) ? void 0 : date2
|
|
52717
52717
|
}));
|
|
52718
52718
|
setIsApplying(false);
|
|
@@ -52723,7 +52723,7 @@ function GridFilterInputDate(props) {
|
|
|
52723
52723
|
setFilterValueState(value2);
|
|
52724
52724
|
}, [item.value, type2]);
|
|
52725
52725
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
52726
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
52726
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$2({
|
|
52727
52727
|
fullWidth: true,
|
|
52728
52728
|
id: id2,
|
|
52729
52729
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
@@ -52733,14 +52733,14 @@ function GridFilterInputDate(props) {
|
|
|
52733
52733
|
type: type2 || "text",
|
|
52734
52734
|
disabled,
|
|
52735
52735
|
inputRef: focusElementRef,
|
|
52736
|
-
slotProps: _extends$
|
|
52737
|
-
input: _extends$
|
|
52736
|
+
slotProps: _extends$2({}, rootSlotProps, {
|
|
52737
|
+
input: _extends$2({
|
|
52738
52738
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
52739
52739
|
fontSize: "small",
|
|
52740
52740
|
color: "action"
|
|
52741
52741
|
}) : null
|
|
52742
52742
|
}, rootSlotProps == null ? void 0 : rootSlotProps.input),
|
|
52743
|
-
htmlInput: _extends$
|
|
52743
|
+
htmlInput: _extends$2({
|
|
52744
52744
|
max: type2 === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
|
|
52745
52745
|
tabIndex
|
|
52746
52746
|
}, rootSlotProps == null ? void 0 : rootSlotProps.htmlInput)
|
|
@@ -52988,7 +52988,7 @@ function GridEditDateCell(props) {
|
|
|
52988
52988
|
inputRef.current.focus();
|
|
52989
52989
|
}
|
|
52990
52990
|
}, [hasFocus]);
|
|
52991
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$
|
|
52991
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$2({
|
|
52992
52992
|
as: rootProps.slots.baseInput,
|
|
52993
52993
|
inputRef,
|
|
52994
52994
|
fullWidth: true,
|
|
@@ -52998,7 +52998,7 @@ function GridEditDateCell(props) {
|
|
|
52998
52998
|
onChange: handleChange
|
|
52999
52999
|
}, other, slotProps == null ? void 0 : slotProps.root, {
|
|
53000
53000
|
slotProps: {
|
|
53001
|
-
htmlInput: _extends$
|
|
53001
|
+
htmlInput: _extends$2({
|
|
53002
53002
|
max: isDateTime2 ? "9999-12-31T23:59" : "9999-12-31"
|
|
53003
53003
|
}, (_b2 = (_a3 = slotProps == null ? void 0 : slotProps.root) == null ? void 0 : _a3.slotProps) == null ? void 0 : _b2.htmlInput)
|
|
53004
53004
|
}
|
|
@@ -53070,7 +53070,7 @@ GridEditDateCell.propTypes = {
|
|
|
53070
53070
|
*/
|
|
53071
53071
|
value: _pt.any
|
|
53072
53072
|
};
|
|
53073
|
-
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$
|
|
53073
|
+
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$2({}, params2));
|
|
53074
53074
|
function throwIfNotDateObject({
|
|
53075
53075
|
value: value2,
|
|
53076
53076
|
columnType,
|
|
@@ -53107,7 +53107,7 @@ const gridDateTimeFormatter = (value2, row, column2, apiRef) => {
|
|
|
53107
53107
|
});
|
|
53108
53108
|
return value2.toLocaleString();
|
|
53109
53109
|
};
|
|
53110
|
-
const GRID_DATE_COL_DEF = _extends$
|
|
53110
|
+
const GRID_DATE_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
53111
53111
|
type: "date",
|
|
53112
53112
|
sortComparator: gridDateComparator,
|
|
53113
53113
|
valueFormatter: gridDateFormatter,
|
|
@@ -53116,7 +53116,7 @@ const GRID_DATE_COL_DEF = _extends$3({}, GRID_STRING_COL_DEF, {
|
|
|
53116
53116
|
// @ts-ignore
|
|
53117
53117
|
pastedValueParser: (value2) => new Date(value2)
|
|
53118
53118
|
});
|
|
53119
|
-
const GRID_DATETIME_COL_DEF = _extends$
|
|
53119
|
+
const GRID_DATETIME_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
53120
53120
|
type: "dateTime",
|
|
53121
53121
|
sortComparator: gridDateComparator,
|
|
53122
53122
|
valueFormatter: gridDateTimeFormatter,
|
|
@@ -53266,7 +53266,7 @@ const getGridNumericOperators = () => [{
|
|
|
53266
53266
|
type: "number"
|
|
53267
53267
|
}
|
|
53268
53268
|
}];
|
|
53269
|
-
const GRID_NUMERIC_COL_DEF = _extends$
|
|
53269
|
+
const GRID_NUMERIC_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
53270
53270
|
type: "number",
|
|
53271
53271
|
align: "right",
|
|
53272
53272
|
headerAlign: "right",
|
|
@@ -53283,7 +53283,7 @@ function getValueOptions(column2, additionalParams) {
|
|
|
53283
53283
|
if (!column2) {
|
|
53284
53284
|
return void 0;
|
|
53285
53285
|
}
|
|
53286
|
-
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$
|
|
53286
|
+
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$2({
|
|
53287
53287
|
field: column2.field
|
|
53288
53288
|
}, additionalParams)) : column2.valueOptions;
|
|
53289
53289
|
}
|
|
@@ -53363,7 +53363,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53363
53363
|
}
|
|
53364
53364
|
if (reason === "backdropClick" || event2.key === "Escape") {
|
|
53365
53365
|
const params2 = apiRef.current.getCellParams(id2, field2);
|
|
53366
|
-
apiRef.current.publishEvent("cellEditStop", _extends$
|
|
53366
|
+
apiRef.current.publishEvent("cellEditStop", _extends$2({}, params2, {
|
|
53367
53367
|
reason: event2.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
|
|
53368
53368
|
}));
|
|
53369
53369
|
}
|
|
@@ -53377,7 +53377,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53377
53377
|
if (!valueOptions || !colDef) {
|
|
53378
53378
|
return null;
|
|
53379
53379
|
}
|
|
53380
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
53380
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
|
|
53381
53381
|
ref: ref2,
|
|
53382
53382
|
value: valueProp,
|
|
53383
53383
|
onChange: handleChange,
|
|
@@ -53396,7 +53396,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53396
53396
|
children: valueOptions.map((valueOption) => {
|
|
53397
53397
|
var _a4;
|
|
53398
53398
|
const value2 = getOptionValue(valueOption);
|
|
53399
|
-
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
53399
|
+
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, ((_a4 = rootProps.slotProps) == null ? void 0 : _a4.baseSelectOption) || {}, {
|
|
53400
53400
|
native: isSelectNative,
|
|
53401
53401
|
key: value2,
|
|
53402
53402
|
value: value2
|
|
@@ -53473,7 +53473,7 @@ GridEditSingleSelectCell.propTypes = {
|
|
|
53473
53473
|
*/
|
|
53474
53474
|
value: _pt.any
|
|
53475
53475
|
};
|
|
53476
|
-
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$
|
|
53476
|
+
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$2({}, params2));
|
|
53477
53477
|
const _excluded$L = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
|
|
53478
53478
|
const renderSingleSelectOptions = ({
|
|
53479
53479
|
column: column2,
|
|
@@ -53490,7 +53490,7 @@ const renderSingleSelectOptions = ({
|
|
|
53490
53490
|
if (label2 === "") {
|
|
53491
53491
|
label2 = " ";
|
|
53492
53492
|
}
|
|
53493
|
-
return /* @__PURE__ */ createElement(OptionComponent, _extends$
|
|
53493
|
+
return /* @__PURE__ */ createElement(OptionComponent, _extends$2({}, baseSelectOptionProps, {
|
|
53494
53494
|
native: isSelectNative,
|
|
53495
53495
|
key: value2,
|
|
53496
53496
|
value: value2
|
|
@@ -53530,7 +53530,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53530
53530
|
const onFilterChange = React.useCallback((event2) => {
|
|
53531
53531
|
let value2 = event2.target.value;
|
|
53532
53532
|
value2 = getValueFromValueOptions(value2, currentValueOptions, getOptionValue);
|
|
53533
|
-
applyValue(_extends$
|
|
53533
|
+
applyValue(_extends$2({}, item, {
|
|
53534
53534
|
value: value2
|
|
53535
53535
|
}));
|
|
53536
53536
|
}, [currentValueOptions, getOptionValue, applyValue, item]);
|
|
@@ -53539,7 +53539,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53539
53539
|
}
|
|
53540
53540
|
const label2 = (slotProps == null ? void 0 : slotProps.root.label) ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
53541
53541
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
53542
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
53542
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$2({
|
|
53543
53543
|
fullWidth: true,
|
|
53544
53544
|
id: id2,
|
|
53545
53545
|
label: label2,
|
|
@@ -53547,7 +53547,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53547
53547
|
value: filterValue,
|
|
53548
53548
|
onChange: onFilterChange,
|
|
53549
53549
|
slotProps: {
|
|
53550
|
-
htmlInput: _extends$
|
|
53550
|
+
htmlInput: _extends$2({
|
|
53551
53551
|
tabIndex,
|
|
53552
53552
|
ref: focusElementRef,
|
|
53553
53553
|
type: type2 || "text",
|
|
@@ -53647,12 +53647,12 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
53647
53647
|
}, []);
|
|
53648
53648
|
}, [getOptionValue, item.value, resolvedValueOptions]);
|
|
53649
53649
|
const handleChange = React.useCallback((event2, value2) => {
|
|
53650
|
-
applyValue(_extends$
|
|
53650
|
+
applyValue(_extends$2({}, item, {
|
|
53651
53651
|
value: value2.map(getOptionValue)
|
|
53652
53652
|
}));
|
|
53653
53653
|
}, [applyValue, item, getOptionValue]);
|
|
53654
53654
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
53655
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
53655
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$2({
|
|
53656
53656
|
multiple: true,
|
|
53657
53657
|
options: resolvedValueOptions,
|
|
53658
53658
|
isOptionEqualToValue,
|
|
@@ -53756,7 +53756,7 @@ const defaultGetOptionValue = (value2) => {
|
|
|
53756
53756
|
const defaultGetOptionLabel = (value2) => {
|
|
53757
53757
|
return isObject$4(value2) ? value2.label : String(value2);
|
|
53758
53758
|
};
|
|
53759
|
-
const GRID_SINGLE_SELECT_COL_DEF = _extends$
|
|
53759
|
+
const GRID_SINGLE_SELECT_COL_DEF = _extends$2({}, GRID_STRING_COL_DEF, {
|
|
53760
53760
|
type: "singleSelect",
|
|
53761
53761
|
getOptionLabel: defaultGetOptionLabel,
|
|
53762
53762
|
getOptionValue: defaultGetOptionValue,
|
|
@@ -53922,7 +53922,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
53922
53922
|
widthAllocatedBeforeFlex += computedWidth;
|
|
53923
53923
|
}
|
|
53924
53924
|
if (column2.computedWidth !== computedWidth) {
|
|
53925
|
-
column2 = _extends$
|
|
53925
|
+
column2 = _extends$2({}, column2, {
|
|
53926
53926
|
computedWidth
|
|
53927
53927
|
});
|
|
53928
53928
|
}
|
|
@@ -53943,7 +53943,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
53943
53943
|
columnsLookup[field2].computedWidth = computedColumnWidths[field2].computedWidth;
|
|
53944
53944
|
});
|
|
53945
53945
|
}
|
|
53946
|
-
return _extends$
|
|
53946
|
+
return _extends$2({}, rawState, {
|
|
53947
53947
|
lookup: columnsLookup
|
|
53948
53948
|
});
|
|
53949
53949
|
};
|
|
@@ -53969,10 +53969,10 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
53969
53969
|
}
|
|
53970
53970
|
}
|
|
53971
53971
|
const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field2) => !orderedFieldsLookup[field2])];
|
|
53972
|
-
const newColumnLookup = _extends$
|
|
53972
|
+
const newColumnLookup = _extends$2({}, columnsState.lookup);
|
|
53973
53973
|
for (let i2 = 0; i2 < columnsWithUpdatedDimensions.length; i2 += 1) {
|
|
53974
53974
|
const field2 = columnsWithUpdatedDimensions[i2];
|
|
53975
|
-
const newColDef = _extends$
|
|
53975
|
+
const newColDef = _extends$2({}, newColumnLookup[field2], {
|
|
53976
53976
|
hasBeenResized: true
|
|
53977
53977
|
});
|
|
53978
53978
|
Object.entries(dimensions[field2]).forEach(([key2, value2]) => {
|
|
@@ -53980,7 +53980,7 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
53980
53980
|
});
|
|
53981
53981
|
newColumnLookup[field2] = newColDef;
|
|
53982
53982
|
}
|
|
53983
|
-
const newColumnsState = _extends$
|
|
53983
|
+
const newColumnsState = _extends$2({}, columnsState, {
|
|
53984
53984
|
orderedFields: newOrderedFields,
|
|
53985
53985
|
lookup: newColumnLookup
|
|
53986
53986
|
});
|
|
@@ -54015,7 +54015,7 @@ const createColumnsState = ({
|
|
|
54015
54015
|
const currentState = gridColumnsStateSelector(apiRef);
|
|
54016
54016
|
columnsState = {
|
|
54017
54017
|
orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
|
|
54018
|
-
lookup: _extends$
|
|
54018
|
+
lookup: _extends$2({}, currentState.lookup),
|
|
54019
54019
|
// Will be cleaned later if keepOnlyColumnsToUpsert=true
|
|
54020
54020
|
columnVisibilityModel,
|
|
54021
54021
|
initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
|
|
@@ -54023,7 +54023,7 @@ const createColumnsState = ({
|
|
|
54023
54023
|
}
|
|
54024
54024
|
let columnsToKeep = {};
|
|
54025
54025
|
if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
|
|
54026
|
-
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$
|
|
54026
|
+
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$2({}, acc, {
|
|
54027
54027
|
[key2]: false
|
|
54028
54028
|
}), {});
|
|
54029
54029
|
}
|
|
@@ -54034,7 +54034,7 @@ const createColumnsState = ({
|
|
|
54034
54034
|
columnsToKeep[field2] = true;
|
|
54035
54035
|
let existingState = columnsState.lookup[field2];
|
|
54036
54036
|
if (existingState == null) {
|
|
54037
|
-
existingState = _extends$
|
|
54037
|
+
existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
|
|
54038
54038
|
field: field2,
|
|
54039
54039
|
hasBeenResized: false
|
|
54040
54040
|
});
|
|
@@ -54043,7 +54043,7 @@ const createColumnsState = ({
|
|
|
54043
54043
|
columnsState.orderedFields.push(field2);
|
|
54044
54044
|
}
|
|
54045
54045
|
if (existingState && existingState.type !== newColumn.type) {
|
|
54046
|
-
existingState = _extends$
|
|
54046
|
+
existingState = _extends$2({}, getDefaultColTypeDef(newColumn.type), {
|
|
54047
54047
|
field: field2
|
|
54048
54048
|
});
|
|
54049
54049
|
}
|
|
@@ -54056,7 +54056,7 @@ const createColumnsState = ({
|
|
|
54056
54056
|
}
|
|
54057
54057
|
}
|
|
54058
54058
|
});
|
|
54059
|
-
columnsState.lookup[field2] = resolveProps(existingState, _extends$
|
|
54059
|
+
columnsState.lookup[field2] = resolveProps(existingState, _extends$2({}, getDefaultColTypeDef(newColumn.type), newColumn, {
|
|
54060
54060
|
hasBeenResized
|
|
54061
54061
|
}));
|
|
54062
54062
|
});
|
|
@@ -54153,7 +54153,7 @@ function GridScrollAreaWrapper(props) {
|
|
|
54153
54153
|
if (!dragging) {
|
|
54154
54154
|
return null;
|
|
54155
54155
|
}
|
|
54156
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$
|
|
54156
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$2({}, props));
|
|
54157
54157
|
}
|
|
54158
54158
|
function GridScrollAreaContent(props) {
|
|
54159
54159
|
const {
|
|
@@ -54179,7 +54179,7 @@ function GridScrollAreaContent(props) {
|
|
|
54179
54179
|
};
|
|
54180
54180
|
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
54181
54181
|
const rootProps = useGridRootProps();
|
|
54182
|
-
const ownerState = _extends$
|
|
54182
|
+
const ownerState = _extends$2({}, rootProps, {
|
|
54183
54183
|
scrollDirection
|
|
54184
54184
|
});
|
|
54185
54185
|
const classes2 = useUtilityClasses$B(ownerState);
|
|
@@ -54327,14 +54327,14 @@ const virtualizationStateInitializer = (state, props) => {
|
|
|
54327
54327
|
enabledForRows: !disableVirtualization && !autoHeight,
|
|
54328
54328
|
renderContext: EMPTY_RENDER_CONTEXT
|
|
54329
54329
|
};
|
|
54330
|
-
return _extends$
|
|
54330
|
+
return _extends$2({}, state, {
|
|
54331
54331
|
virtualization
|
|
54332
54332
|
});
|
|
54333
54333
|
};
|
|
54334
54334
|
function useGridVirtualization(apiRef, props) {
|
|
54335
54335
|
const setVirtualization = (enabled) => {
|
|
54336
|
-
apiRef.current.setState((state) => _extends$
|
|
54337
|
-
virtualization: _extends$
|
|
54336
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
54337
|
+
virtualization: _extends$2({}, state.virtualization, {
|
|
54338
54338
|
enabled,
|
|
54339
54339
|
enabledForColumns: enabled,
|
|
54340
54340
|
enabledForRows: enabled && !props.autoHeight
|
|
@@ -54342,8 +54342,8 @@ function useGridVirtualization(apiRef, props) {
|
|
|
54342
54342
|
}));
|
|
54343
54343
|
};
|
|
54344
54344
|
const setColumnVirtualization = (enabled) => {
|
|
54345
|
-
apiRef.current.setState((state) => _extends$
|
|
54346
|
-
virtualization: _extends$
|
|
54345
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
54346
|
+
virtualization: _extends$2({}, state.virtualization, {
|
|
54347
54347
|
enabledForColumns: enabled
|
|
54348
54348
|
})
|
|
54349
54349
|
}));
|
|
@@ -54383,7 +54383,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
|
|
|
54383
54383
|
if (columnIndex === -1) {
|
|
54384
54384
|
return null;
|
|
54385
54385
|
}
|
|
54386
|
-
return _extends$
|
|
54386
|
+
return _extends$2({}, focusedCell, {
|
|
54387
54387
|
rowIndex,
|
|
54388
54388
|
columnIndex
|
|
54389
54389
|
});
|
|
@@ -54497,8 +54497,8 @@ const useGridVirtualScroller = () => {
|
|
|
54497
54497
|
}
|
|
54498
54498
|
const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
|
|
54499
54499
|
apiRef.current.setState((state) => {
|
|
54500
|
-
return _extends$
|
|
54501
|
-
virtualization: _extends$
|
|
54500
|
+
return _extends$2({}, state, {
|
|
54501
|
+
virtualization: _extends$2({}, state.virtualization, {
|
|
54502
54502
|
renderContext: nextRenderContext
|
|
54503
54503
|
})
|
|
54504
54504
|
});
|
|
@@ -54693,7 +54693,7 @@ const useGridVirtualScroller = () => {
|
|
|
54693
54693
|
const showBottomBorder = isLastVisibleInSection && params2.position === "top";
|
|
54694
54694
|
const firstColumnIndex = currentRenderContext.firstColumnIndex;
|
|
54695
54695
|
const lastColumnIndex = currentRenderContext.lastColumnIndex;
|
|
54696
|
-
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$
|
|
54696
|
+
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$2({
|
|
54697
54697
|
row: model,
|
|
54698
54698
|
rowId: id2,
|
|
54699
54699
|
index: rowIndex,
|
|
@@ -54900,7 +54900,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
54900
54900
|
lastColumnIndex: inputs.visibleColumns.length
|
|
54901
54901
|
};
|
|
54902
54902
|
if (inputs.listView) {
|
|
54903
|
-
return _extends$
|
|
54903
|
+
return _extends$2({}, renderContext, {
|
|
54904
54904
|
lastColumnIndex: 1
|
|
54905
54905
|
});
|
|
54906
54906
|
}
|
|
@@ -55178,14 +55178,14 @@ function GridOverlayWrapper(props) {
|
|
|
55178
55178
|
if (height2 === 0) {
|
|
55179
55179
|
height2 = minimalContentHeight;
|
|
55180
55180
|
}
|
|
55181
|
-
const classes2 = useUtilityClasses$A(_extends$
|
|
55181
|
+
const classes2 = useUtilityClasses$A(_extends$2({}, props, {
|
|
55182
55182
|
classes: rootProps.classes
|
|
55183
55183
|
}));
|
|
55184
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$
|
|
55184
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$2({
|
|
55185
55185
|
className: clsx(classes2.root)
|
|
55186
55186
|
}, props, {
|
|
55187
55187
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
55188
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$
|
|
55188
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$2({
|
|
55189
55189
|
className: clsx(classes2.inner),
|
|
55190
55190
|
style: {
|
|
55191
55191
|
height: height2,
|
|
@@ -55241,8 +55241,8 @@ const useGridOverlays = () => {
|
|
|
55241
55241
|
}
|
|
55242
55242
|
const Overlay = (_a4 = rootProps.slots) == null ? void 0 : _a4[overlayType];
|
|
55243
55243
|
const overlayProps = (_b3 = rootProps.slotProps) == null ? void 0 : _b3[overlayType];
|
|
55244
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$
|
|
55245
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$
|
|
55244
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$2({}, overlaysProps, {
|
|
55245
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$2({}, overlayProps))
|
|
55246
55246
|
}));
|
|
55247
55247
|
};
|
|
55248
55248
|
return {
|
|
@@ -55269,7 +55269,7 @@ function GridHeaders() {
|
|
|
55269
55269
|
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
55270
55270
|
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
55271
55271
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
55272
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$
|
|
55272
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$2({
|
|
55273
55273
|
ref: columnsContainerRef,
|
|
55274
55274
|
visibleColumns,
|
|
55275
55275
|
filterColumnLookup,
|
|
@@ -55319,7 +55319,7 @@ const GridMainContainer = forwardRef((props, ref2) => {
|
|
|
55319
55319
|
const rootProps = useGridRootProps();
|
|
55320
55320
|
const configuration2 = useGridConfiguration();
|
|
55321
55321
|
const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
|
|
55322
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$
|
|
55322
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$2({
|
|
55323
55323
|
ownerState,
|
|
55324
55324
|
className: props.className,
|
|
55325
55325
|
tabIndex: -1
|
|
@@ -55344,7 +55344,7 @@ const Element$2 = styled$1("div")({
|
|
|
55344
55344
|
});
|
|
55345
55345
|
function GridTopContainer(props) {
|
|
55346
55346
|
const classes2 = useUtilityClasses$z();
|
|
55347
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$
|
|
55347
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$2({}, props, {
|
|
55348
55348
|
className: clsx(classes2.root, gridClasses["container--top"]),
|
|
55349
55349
|
role: "presentation"
|
|
55350
55350
|
}));
|
|
@@ -55377,7 +55377,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
|
|
|
55377
55377
|
classes: rootProps.classes,
|
|
55378
55378
|
overflowedContent
|
|
55379
55379
|
};
|
|
55380
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$
|
|
55380
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$2({}, props, {
|
|
55381
55381
|
ownerState,
|
|
55382
55382
|
className: clsx(classes2.root, props.className),
|
|
55383
55383
|
ref: ref2
|
|
@@ -55479,7 +55479,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
|
|
|
55479
55479
|
const rowsMeta = gridRowsMetaSelector(apiRef);
|
|
55480
55480
|
return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
|
|
55481
55481
|
});
|
|
55482
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$
|
|
55482
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$2({
|
|
55483
55483
|
className: clsx(classes2.root, className),
|
|
55484
55484
|
ownerState: rootProps,
|
|
55485
55485
|
style: {
|
|
@@ -55755,7 +55755,7 @@ function GridVirtualScroller(props) {
|
|
|
55755
55755
|
getOverlay,
|
|
55756
55756
|
overlaysProps
|
|
55757
55757
|
} = useGridOverlays();
|
|
55758
|
-
const ownerState = _extends$
|
|
55758
|
+
const ownerState = _extends$2({
|
|
55759
55759
|
classes: rootProps.classes,
|
|
55760
55760
|
hasScrollX,
|
|
55761
55761
|
hasPinnedRight
|
|
@@ -55773,15 +55773,15 @@ function GridVirtualScroller(props) {
|
|
|
55773
55773
|
getScrollAreaProps
|
|
55774
55774
|
} = virtualScroller;
|
|
55775
55775
|
const rows = getRows();
|
|
55776
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$
|
|
55776
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$2({
|
|
55777
55777
|
className: classes2.root
|
|
55778
55778
|
}, getContainerProps(), {
|
|
55779
55779
|
ownerState,
|
|
55780
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
55780
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
|
|
55781
55781
|
scrollDirection: "left"
|
|
55782
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
55782
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$2({
|
|
55783
55783
|
scrollDirection: "right"
|
|
55784
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$
|
|
55784
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$2({
|
|
55785
55785
|
className: classes2.scroller
|
|
55786
55786
|
}, getScrollerProps(), {
|
|
55787
55787
|
ownerState,
|
|
@@ -55790,8 +55790,8 @@ function GridVirtualScroller(props) {
|
|
|
55790
55790
|
position: "top",
|
|
55791
55791
|
virtualScroller
|
|
55792
55792
|
})]
|
|
55793
|
-
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$
|
|
55794
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$
|
|
55793
|
+
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$2({}, getContentProps(), {
|
|
55794
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$2({}, getRenderZoneProps(), {
|
|
55795
55795
|
children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
|
|
55796
55796
|
virtualScroller
|
|
55797
55797
|
})]
|
|
@@ -55804,9 +55804,9 @@ function GridVirtualScroller(props) {
|
|
|
55804
55804
|
virtualScroller
|
|
55805
55805
|
})
|
|
55806
55806
|
})]
|
|
55807
|
-
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
55807
|
+
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
|
|
55808
55808
|
position: "horizontal"
|
|
55809
|
-
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
55809
|
+
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$2({
|
|
55810
55810
|
position: "vertical"
|
|
55811
55811
|
}, getScrollbarVerticalProps())), props.children]
|
|
55812
55812
|
}));
|
|
@@ -55817,7 +55817,7 @@ function GridFooterPlaceholder() {
|
|
|
55817
55817
|
if (rootProps.hideFooter) {
|
|
55818
55818
|
return null;
|
|
55819
55819
|
}
|
|
55820
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$
|
|
55820
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$2(
|
|
55821
55821
|
{},
|
|
55822
55822
|
(_a3 = rootProps.slotProps) == null ? void 0 : _a3.footer
|
|
55823
55823
|
/* FIXME: typing error */
|
|
@@ -55843,7 +55843,7 @@ function computeSlots({
|
|
|
55843
55843
|
if (!overrides || Object.keys(overrides).length === 0) {
|
|
55844
55844
|
return defaultSlots2;
|
|
55845
55845
|
}
|
|
55846
|
-
const result = _extends$
|
|
55846
|
+
const result = _extends$2({}, defaultSlots2);
|
|
55847
55847
|
Object.keys(overrides).forEach((key2) => {
|
|
55848
55848
|
const k = key2;
|
|
55849
55849
|
if (overrides[k] !== void 0) {
|
|
@@ -56056,7 +56056,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
56056
56056
|
border: 0
|
|
56057
56057
|
};
|
|
56058
56058
|
}
|
|
56059
|
-
const cellStyle = attachPinnedStyle(_extends$
|
|
56059
|
+
const cellStyle = attachPinnedStyle(_extends$2({
|
|
56060
56060
|
"--width": `${width2}px`
|
|
56061
56061
|
}, styleProp), isRtl, pinnedPosition, pinnedOffset);
|
|
56062
56062
|
const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
|
|
@@ -56093,7 +56093,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
56093
56093
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
56094
56094
|
"data-colindex": colIndex,
|
|
56095
56095
|
role: "presentation",
|
|
56096
|
-
style: _extends$
|
|
56096
|
+
style: _extends$2({
|
|
56097
56097
|
width: "var(--width)"
|
|
56098
56098
|
}, style2)
|
|
56099
56099
|
});
|
|
@@ -56108,7 +56108,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
56108
56108
|
const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
|
|
56109
56109
|
const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2$7);
|
|
56110
56110
|
const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
|
|
56111
|
-
const params2 = _extends$
|
|
56111
|
+
const params2 = _extends$2({}, cellParams, {
|
|
56112
56112
|
row: updatedRow,
|
|
56113
56113
|
formattedValue
|
|
56114
56114
|
}, editCellStateRest);
|
|
@@ -56130,7 +56130,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
56130
56130
|
onDragEnter: publish("cellDragEnter", onDragEnter),
|
|
56131
56131
|
onDragOver: publish("cellDragOver", onDragOver)
|
|
56132
56132
|
};
|
|
56133
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
56133
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
|
|
56134
56134
|
className: clsx(classes2.root, classNames, className),
|
|
56135
56135
|
role: "gridcell",
|
|
56136
56136
|
"data-field": field2,
|
|
@@ -56232,16 +56232,16 @@ function GridSkeletonCell(props) {
|
|
|
56232
56232
|
height: CONTENT_HEIGHT
|
|
56233
56233
|
};
|
|
56234
56234
|
}, [type2]);
|
|
56235
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
56235
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
|
|
56236
56236
|
"data-field": field2,
|
|
56237
56237
|
className: clsx(classes2.root, className),
|
|
56238
|
-
style: _extends$
|
|
56238
|
+
style: _extends$2({
|
|
56239
56239
|
height: height2,
|
|
56240
56240
|
maxWidth: width2,
|
|
56241
56241
|
minWidth: width2
|
|
56242
56242
|
}, style2)
|
|
56243
56243
|
}, other, {
|
|
56244
|
-
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$
|
|
56244
|
+
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$2({}, skeletonProps))
|
|
56245
56245
|
}));
|
|
56246
56246
|
}
|
|
56247
56247
|
GridSkeletonCell.propTypes = {
|
|
@@ -57246,7 +57246,7 @@ function GridPreferencesPanel() {
|
|
|
57246
57246
|
filterPanelTriggerRef
|
|
57247
57247
|
} = useGridPreferencePanelContext();
|
|
57248
57248
|
const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
|
|
57249
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$
|
|
57249
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$2({
|
|
57250
57250
|
id: preferencePanelState.panelId,
|
|
57251
57251
|
open: columns.length > 0 && preferencePanelState.open,
|
|
57252
57252
|
"aria-labelledby": preferencePanelState.labelId,
|
|
@@ -57259,7 +57259,7 @@ function GridHeader() {
|
|
|
57259
57259
|
var _a3;
|
|
57260
57260
|
const rootProps = useGridRootProps();
|
|
57261
57261
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
57262
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$
|
|
57262
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.toolbar))]
|
|
57263
57263
|
});
|
|
57264
57264
|
}
|
|
57265
57265
|
const _excluded$G = ["className", "children"];
|
|
@@ -57297,7 +57297,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref2) {
|
|
|
57297
57297
|
if (isSSR2) {
|
|
57298
57298
|
return null;
|
|
57299
57299
|
}
|
|
57300
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$
|
|
57300
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$2({
|
|
57301
57301
|
className: clsx(classes2.root, className, cssVariables.className),
|
|
57302
57302
|
ownerState
|
|
57303
57303
|
}, other, {
|
|
@@ -57345,7 +57345,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref2
|
|
|
57345
57345
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$F);
|
|
57346
57346
|
const rootProps = useGridRootProps();
|
|
57347
57347
|
const classes2 = useUtilityClasses$r(rootProps);
|
|
57348
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$
|
|
57348
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$2({
|
|
57349
57349
|
className: clsx(classes2.root, className),
|
|
57350
57350
|
ownerState: rootProps
|
|
57351
57351
|
}, other, {
|
|
@@ -57389,7 +57389,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref2) {
|
|
|
57389
57389
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$E);
|
|
57390
57390
|
const rootProps = useGridRootProps();
|
|
57391
57391
|
const classes2 = useUtilityClasses$q(rootProps);
|
|
57392
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$
|
|
57392
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$2({
|
|
57393
57393
|
className: clsx(classes2.root, className),
|
|
57394
57394
|
ownerState: rootProps
|
|
57395
57395
|
}, other, {
|
|
@@ -57412,7 +57412,7 @@ function useGridComponentRenderer(defaultElement, render, props, state = {}) {
|
|
|
57412
57412
|
props.className = clsx(render.props.className, props.className);
|
|
57413
57413
|
}
|
|
57414
57414
|
if (render.props.style || props.style) {
|
|
57415
|
-
props.style = _extends$
|
|
57415
|
+
props.style = _extends$2({}, props.style, render.props.style);
|
|
57416
57416
|
}
|
|
57417
57417
|
if (render.props.sx || props.sx) {
|
|
57418
57418
|
props.sx = mergeSx(props.sx, render.props.sx);
|
|
@@ -57552,7 +57552,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref2) {
|
|
|
57552
57552
|
onItemFocus,
|
|
57553
57553
|
onItemDisabled
|
|
57554
57554
|
}), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
|
|
57555
|
-
const element2 = useGridComponentRenderer(ToolbarRoot$1, render, _extends$
|
|
57555
|
+
const element2 = useGridComponentRenderer(ToolbarRoot$1, render, _extends$2({
|
|
57556
57556
|
role: "toolbar",
|
|
57557
57557
|
"aria-orientation": "horizontal",
|
|
57558
57558
|
"aria-label": rootProps.label || void 0,
|
|
@@ -57629,7 +57629,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref2) {
|
|
|
57629
57629
|
}
|
|
57630
57630
|
previousAriaDisabled.current = ariaDisabled;
|
|
57631
57631
|
}, [ariaDisabled, id2, onItemDisabled]);
|
|
57632
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$
|
|
57632
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseIconButton, {
|
|
57633
57633
|
tabIndex: focusableItemId === id2 ? 0 : -1
|
|
57634
57634
|
}, other, {
|
|
57635
57635
|
disabled,
|
|
@@ -57686,7 +57686,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
57686
57686
|
} = props;
|
|
57687
57687
|
const apiRef = useGridApiContext();
|
|
57688
57688
|
const rootProps = useGridRootProps();
|
|
57689
|
-
const ownerState = _extends$
|
|
57689
|
+
const ownerState = _extends$2({}, props, {
|
|
57690
57690
|
classes: rootProps.classes
|
|
57691
57691
|
});
|
|
57692
57692
|
const classes2 = useUtilityClasses$o(ownerState);
|
|
@@ -57698,11 +57698,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
57698
57698
|
const columnName = colDef.headerName ?? colDef.field;
|
|
57699
57699
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
57700
57700
|
className: classes2.root,
|
|
57701
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
57701
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
|
|
57702
57702
|
title: apiRef.current.getLocaleText("columnMenuLabel"),
|
|
57703
57703
|
enterDelay: 1e3
|
|
57704
57704
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseTooltip, {
|
|
57705
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
57705
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
57706
57706
|
ref: iconButtonRef,
|
|
57707
57707
|
tabIndex: -1,
|
|
57708
57708
|
className: classes2.button,
|
|
@@ -57751,7 +57751,7 @@ function GridColumnHeaderMenu({
|
|
|
57751
57751
|
target: target2,
|
|
57752
57752
|
onClose: hideMenu,
|
|
57753
57753
|
onExited,
|
|
57754
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$
|
|
57754
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$2({
|
|
57755
57755
|
colDef,
|
|
57756
57756
|
hideMenu,
|
|
57757
57757
|
open,
|
|
@@ -57993,7 +57993,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
|
|
|
57993
57993
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
57994
57994
|
const rootProps = useGridRootProps();
|
|
57995
57995
|
const classes2 = useUtilityClasses$n(rootProps);
|
|
57996
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$
|
|
57996
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$2({
|
|
57997
57997
|
className: clsx(classes2.root, className),
|
|
57998
57998
|
ownerState: rootProps
|
|
57999
57999
|
}, other, {
|
|
@@ -58019,7 +58019,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
58019
58019
|
}
|
|
58020
58020
|
}
|
|
58021
58021
|
}, [description2, label2]);
|
|
58022
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
58022
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
|
|
58023
58023
|
title: description2 || tooltip2
|
|
58024
58024
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseTooltip, {
|
|
58025
58025
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
|
|
@@ -58063,7 +58063,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
58063
58063
|
side = GridColumnHeaderSeparatorSides.Right
|
|
58064
58064
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
58065
58065
|
const rootProps = useGridRootProps();
|
|
58066
|
-
const ownerState = _extends$
|
|
58066
|
+
const ownerState = _extends$2({}, props, {
|
|
58067
58067
|
side,
|
|
58068
58068
|
classes: rootProps.classes
|
|
58069
58069
|
});
|
|
@@ -58074,7 +58074,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
58074
58074
|
}, []);
|
|
58075
58075
|
return (
|
|
58076
58076
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
58077
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
58077
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$2({
|
|
58078
58078
|
className: classes2.root,
|
|
58079
58079
|
style: {
|
|
58080
58080
|
minHeight: height2
|
|
@@ -58143,9 +58143,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
58143
58143
|
}
|
|
58144
58144
|
}
|
|
58145
58145
|
}, [apiRef, hasFocus]);
|
|
58146
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
58146
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
|
|
58147
58147
|
className: clsx(classes2.root, headerClassName),
|
|
58148
|
-
style: _extends$
|
|
58148
|
+
style: _extends$2({}, style2, {
|
|
58149
58149
|
width: width2
|
|
58150
58150
|
}),
|
|
58151
58151
|
role: "columnheader",
|
|
@@ -58154,7 +58154,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
58154
58154
|
"aria-sort": ariaSort
|
|
58155
58155
|
}, other, {
|
|
58156
58156
|
ref: handleRef,
|
|
58157
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
58157
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
|
|
58158
58158
|
className: classes2.draggableContainer,
|
|
58159
58159
|
draggable: isDraggable,
|
|
58160
58160
|
role: "presentation"
|
|
@@ -58171,7 +58171,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
58171
58171
|
})
|
|
58172
58172
|
}), columnTitleIconButtons]
|
|
58173
58173
|
}), columnMenuIconButton]
|
|
58174
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$
|
|
58174
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$2({
|
|
58175
58175
|
resizable: !rootProps.disableColumnResize && !!resizable,
|
|
58176
58176
|
resizing: isResizing,
|
|
58177
58177
|
height: height2,
|
|
@@ -58256,7 +58256,7 @@ function GridColumnHeaderItem(props) {
|
|
|
58256
58256
|
if (colDef.renderHeader) {
|
|
58257
58257
|
headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
|
|
58258
58258
|
}
|
|
58259
|
-
const ownerState = _extends$
|
|
58259
|
+
const ownerState = _extends$2({}, props, {
|
|
58260
58260
|
classes: rootProps.classes,
|
|
58261
58261
|
showRightBorder,
|
|
58262
58262
|
showLeftBorder
|
|
@@ -58322,10 +58322,10 @@ function GridColumnHeaderItem(props) {
|
|
|
58322
58322
|
const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
|
|
58323
58323
|
const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
|
|
58324
58324
|
const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
58325
|
-
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$
|
|
58325
|
+
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$2({
|
|
58326
58326
|
field: colDef.field,
|
|
58327
58327
|
counter: filterItemsCounter
|
|
58328
|
-
}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$
|
|
58328
|
+
}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$2({
|
|
58329
58329
|
field: colDef.field,
|
|
58330
58330
|
direction: sortDirection,
|
|
58331
58331
|
index: sortIndex,
|
|
@@ -58350,8 +58350,8 @@ function GridColumnHeaderItem(props) {
|
|
|
58350
58350
|
colDef
|
|
58351
58351
|
}) : colDef.headerClassName;
|
|
58352
58352
|
const label2 = colDef.headerName ?? colDef.field;
|
|
58353
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
58354
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
58353
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
58354
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
|
|
58355
58355
|
ref: headerCellRef,
|
|
58356
58356
|
classes: classes2,
|
|
58357
58357
|
columnMenuOpen,
|
|
@@ -58432,7 +58432,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
|
|
|
58432
58432
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$y);
|
|
58433
58433
|
const rootProps = useGridRootProps();
|
|
58434
58434
|
const classes2 = useUtilityClasses$k(rootProps);
|
|
58435
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$
|
|
58435
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$2({
|
|
58436
58436
|
className: clsx(classes2.root, className),
|
|
58437
58437
|
ownerState: rootProps
|
|
58438
58438
|
}, other, {
|
|
@@ -58460,7 +58460,7 @@ function getIcon(icons, direction, className, sortingOrder) {
|
|
|
58460
58460
|
Icon = icons.columnUnsortedIcon;
|
|
58461
58461
|
iconProps.sortingOrder = sortingOrder;
|
|
58462
58462
|
}
|
|
58463
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
58463
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({
|
|
58464
58464
|
fontSize: "small",
|
|
58465
58465
|
className
|
|
58466
58466
|
}, iconProps)) : null;
|
|
@@ -58475,7 +58475,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
58475
58475
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
58476
58476
|
const apiRef = useGridApiContext();
|
|
58477
58477
|
const rootProps = useGridRootProps();
|
|
58478
|
-
const ownerState = _extends$
|
|
58478
|
+
const ownerState = _extends$2({}, props, {
|
|
58479
58479
|
classes: rootProps.classes
|
|
58480
58480
|
});
|
|
58481
58481
|
const classes2 = useUtilityClasses$j(ownerState);
|
|
@@ -58483,7 +58483,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
58483
58483
|
if (!iconElement) {
|
|
58484
58484
|
return null;
|
|
58485
58485
|
}
|
|
58486
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
58486
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
58487
58487
|
tabIndex: -1,
|
|
58488
58488
|
"aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
58489
58489
|
title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
@@ -58526,7 +58526,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
58526
58526
|
if (!props.counter) {
|
|
58527
58527
|
return null;
|
|
58528
58528
|
}
|
|
58529
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$
|
|
58529
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$2({}, props));
|
|
58530
58530
|
}
|
|
58531
58531
|
GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
58532
58532
|
// ----------------------------- Warning --------------------------------
|
|
@@ -58546,7 +58546,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58546
58546
|
} = props;
|
|
58547
58547
|
const apiRef = useGridApiContext();
|
|
58548
58548
|
const rootProps = useGridRootProps();
|
|
58549
|
-
const ownerState = _extends$
|
|
58549
|
+
const ownerState = _extends$2({}, props, {
|
|
58550
58550
|
classes: rootProps.classes
|
|
58551
58551
|
});
|
|
58552
58552
|
const classes2 = useUtilityClasses$i(ownerState);
|
|
@@ -58572,7 +58572,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58572
58572
|
if (!counter2) {
|
|
58573
58573
|
return null;
|
|
58574
58574
|
}
|
|
58575
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
58575
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
58576
58576
|
id: labelId,
|
|
58577
58577
|
onClick: toggleFilter,
|
|
58578
58578
|
"aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
|
|
@@ -58587,7 +58587,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58587
58587
|
fontSize: "small"
|
|
58588
58588
|
})
|
|
58589
58589
|
}));
|
|
58590
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
58590
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
|
|
58591
58591
|
title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
|
|
58592
58592
|
enterDelay: 1e3
|
|
58593
58593
|
}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseTooltip, {
|
|
@@ -58737,7 +58737,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
|
|
|
58737
58737
|
hideMenu(event2);
|
|
58738
58738
|
}
|
|
58739
58739
|
}, [hideMenu]);
|
|
58740
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$
|
|
58740
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$2({
|
|
58741
58741
|
as: rootProps.slots.baseMenuList,
|
|
58742
58742
|
id: id2,
|
|
58743
58743
|
className: clsx(gridClasses.menuList, className),
|
|
@@ -58773,14 +58773,14 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
58773
58773
|
colDef,
|
|
58774
58774
|
addDividers = true
|
|
58775
58775
|
} = props;
|
|
58776
|
-
const processedComponents = React.useMemo(() => _extends$
|
|
58776
|
+
const processedComponents = React.useMemo(() => _extends$2({}, defaultSlots2, slots), [defaultSlots2, slots]);
|
|
58777
58777
|
const processedSlotProps = React.useMemo(() => {
|
|
58778
58778
|
if (!slotProps || Object.keys(slotProps).length === 0) {
|
|
58779
58779
|
return defaultSlotProps;
|
|
58780
58780
|
}
|
|
58781
|
-
const mergedProps = _extends$
|
|
58781
|
+
const mergedProps = _extends$2({}, slotProps);
|
|
58782
58782
|
Object.entries(defaultSlotProps).forEach(([key2, currentSlotProps]) => {
|
|
58783
|
-
mergedProps[key2] = _extends$
|
|
58783
|
+
mergedProps[key2] = _extends$2({}, currentSlotProps, slotProps[key2] || {});
|
|
58784
58784
|
});
|
|
58785
58785
|
return mergedProps;
|
|
58786
58786
|
}, [defaultSlotProps, slotProps]);
|
|
@@ -58807,7 +58807,7 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
58807
58807
|
const processedComponentProps = processedSlotProps[key2];
|
|
58808
58808
|
if (processedComponentProps) {
|
|
58809
58809
|
const customProps = _objectWithoutPropertiesLoose(processedComponentProps, _excluded$v);
|
|
58810
|
-
itemProps = _extends$
|
|
58810
|
+
itemProps = _extends$2({}, itemProps, customProps);
|
|
58811
58811
|
}
|
|
58812
58812
|
return addDividers && index2 !== sorted.length - 1 ? [...acc, [processedComponents[key2], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key2], itemProps]];
|
|
58813
58813
|
}, []);
|
|
@@ -58884,7 +58884,7 @@ GridColumnMenuManageItem.propTypes = {
|
|
|
58884
58884
|
};
|
|
58885
58885
|
function GridColumnMenuColumnsItem(props) {
|
|
58886
58886
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
58887
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$
|
|
58887
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$2({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$2({}, props))]
|
|
58888
58888
|
});
|
|
58889
58889
|
}
|
|
58890
58890
|
GridColumnMenuColumnsItem.propTypes = {
|
|
@@ -59009,15 +59009,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
|
|
|
59009
59009
|
slots,
|
|
59010
59010
|
slotProps
|
|
59011
59011
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$u);
|
|
59012
|
-
const orderedSlots = useGridColumnMenuSlots(_extends$
|
|
59012
|
+
const orderedSlots = useGridColumnMenuSlots(_extends$2({}, other, {
|
|
59013
59013
|
defaultSlots: defaultSlots2,
|
|
59014
59014
|
defaultSlotProps,
|
|
59015
59015
|
slots,
|
|
59016
59016
|
slotProps
|
|
59017
59017
|
}));
|
|
59018
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$
|
|
59018
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$2({}, other, {
|
|
59019
59019
|
ref: ref2,
|
|
59020
|
-
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$
|
|
59020
|
+
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$2({}, otherProps), index2))
|
|
59021
59021
|
}));
|
|
59022
59022
|
});
|
|
59023
59023
|
GridGenericColumnMenu.propTypes = {
|
|
@@ -59053,7 +59053,7 @@ GridGenericColumnMenu.propTypes = {
|
|
|
59053
59053
|
slots: _pt.object
|
|
59054
59054
|
};
|
|
59055
59055
|
const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref2) {
|
|
59056
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$
|
|
59056
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$2({}, props, {
|
|
59057
59057
|
ref: ref2,
|
|
59058
59058
|
defaultSlots: GRID_COLUMN_MENU_SLOTS,
|
|
59059
59059
|
defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
|
|
@@ -59108,7 +59108,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
59108
59108
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
59109
59109
|
const rootProps = useGridRootProps();
|
|
59110
59110
|
const classes2 = useUtilityClasses$h(rootProps);
|
|
59111
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$
|
|
59111
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$2({
|
|
59112
59112
|
tabIndex: -1,
|
|
59113
59113
|
className: clsx(classes2.root, className),
|
|
59114
59114
|
ownerState: rootProps
|
|
@@ -59119,8 +59119,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
59119
59119
|
function GridColumnsPanel(props) {
|
|
59120
59120
|
var _a3;
|
|
59121
59121
|
const rootProps = useGridRootProps();
|
|
59122
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$
|
|
59123
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$
|
|
59122
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$2({}, props, {
|
|
59123
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.columnsManagement))
|
|
59124
59124
|
}));
|
|
59125
59125
|
}
|
|
59126
59126
|
const _excluded$s = ["children", "className", "classes"];
|
|
@@ -59176,7 +59176,7 @@ const GridPanel = forwardRef((props, ref2) => {
|
|
|
59176
59176
|
if (!fallbackTarget) {
|
|
59177
59177
|
return null;
|
|
59178
59178
|
}
|
|
59179
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$
|
|
59179
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$2({
|
|
59180
59180
|
as: rootProps.slots.basePopper,
|
|
59181
59181
|
ownerState: rootProps,
|
|
59182
59182
|
placement: "bottom-end",
|
|
@@ -59243,7 +59243,7 @@ function GridPanelContent(props) {
|
|
|
59243
59243
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
59244
59244
|
const rootProps = useGridRootProps();
|
|
59245
59245
|
const classes2 = useUtilityClasses$g(rootProps);
|
|
59246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$
|
|
59246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$2({
|
|
59247
59247
|
className: clsx(classes2.root, className),
|
|
59248
59248
|
ownerState: rootProps
|
|
59249
59249
|
}, other));
|
|
@@ -59281,7 +59281,7 @@ function GridPanelFooter(props) {
|
|
|
59281
59281
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
59282
59282
|
const rootProps = useGridRootProps();
|
|
59283
59283
|
const classes2 = useUtilityClasses$f(rootProps);
|
|
59284
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$
|
|
59284
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$2({
|
|
59285
59285
|
className: clsx(classes2.root, className),
|
|
59286
59286
|
ownerState: rootProps
|
|
59287
59287
|
}, other));
|
|
@@ -59483,7 +59483,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59483
59483
|
filterValue = void 0;
|
|
59484
59484
|
}
|
|
59485
59485
|
}
|
|
59486
|
-
applyFilterChanges(_extends$
|
|
59486
|
+
applyFilterChanges(_extends$2({}, item, {
|
|
59487
59487
|
field: field2,
|
|
59488
59488
|
operator: newOperator.value,
|
|
59489
59489
|
value: filterValue
|
|
@@ -59493,7 +59493,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59493
59493
|
const operator2 = event2.target.value;
|
|
59494
59494
|
const newOperator = currentColumn == null ? void 0 : currentColumn.filterOperators.find((op) => op.value === operator2);
|
|
59495
59495
|
const eraseItemValue = !(newOperator == null ? void 0 : newOperator.InputComponent) || (newOperator == null ? void 0 : newOperator.InputComponent) !== (currentOperator == null ? void 0 : currentOperator.InputComponent);
|
|
59496
|
-
applyFilterChanges(_extends$
|
|
59496
|
+
applyFilterChanges(_extends$2({}, item, {
|
|
59497
59497
|
operator: operator2,
|
|
59498
59498
|
value: eraseItemValue ? void 0 : item.value
|
|
59499
59499
|
}));
|
|
@@ -59515,16 +59515,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59515
59515
|
}
|
|
59516
59516
|
}
|
|
59517
59517
|
}), [currentOperator]);
|
|
59518
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$
|
|
59518
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$2({
|
|
59519
59519
|
className: classes2.root,
|
|
59520
59520
|
"data-id": item.id,
|
|
59521
59521
|
ownerState: rootProps
|
|
59522
59522
|
}, other, {
|
|
59523
59523
|
ref: ref2,
|
|
59524
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$
|
|
59524
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$2({}, deleteIconProps, {
|
|
59525
59525
|
className: clsx(classes2.deleteIcon, deleteIconProps.className),
|
|
59526
59526
|
ownerState: rootProps,
|
|
59527
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
59527
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
59528
59528
|
"aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
59529
59529
|
title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
59530
59530
|
onClick: handleDeleteFilter,
|
|
@@ -59535,7 +59535,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59535
59535
|
fontSize: "small"
|
|
59536
59536
|
})
|
|
59537
59537
|
}))
|
|
59538
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$
|
|
59538
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$2({
|
|
59539
59539
|
as: rootProps.slots.baseSelect,
|
|
59540
59540
|
sx: [hasLogicOperatorColumn ? {
|
|
59541
59541
|
display: "flex"
|
|
@@ -59560,12 +59560,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59560
59560
|
disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
|
|
59561
59561
|
native: isBaseSelectNative
|
|
59562
59562
|
}, (_d2 = rootProps.slotProps) == null ? void 0 : _d2.baseSelect, {
|
|
59563
|
-
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59563
|
+
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
59564
59564
|
native: isBaseSelectNative,
|
|
59565
59565
|
key: logicOperator.toString(),
|
|
59566
59566
|
value: logicOperator.toString()
|
|
59567
59567
|
}), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
|
|
59568
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$
|
|
59568
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$2({
|
|
59569
59569
|
as: rootProps.slots.baseSelect
|
|
59570
59570
|
}, columnInputProps, {
|
|
59571
59571
|
className: clsx(classes2.columnInput, columnInputProps.className),
|
|
@@ -59579,12 +59579,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59579
59579
|
native: isBaseSelectNative,
|
|
59580
59580
|
disabled: readOnly
|
|
59581
59581
|
}, (_e = rootProps.slotProps) == null ? void 0 : _e.baseSelect, {
|
|
59582
|
-
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59582
|
+
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
59583
59583
|
native: isBaseSelectNative,
|
|
59584
59584
|
key: col.field,
|
|
59585
59585
|
value: col.field
|
|
59586
59586
|
}), getColumnLabel(col)))
|
|
59587
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$
|
|
59587
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$2({
|
|
59588
59588
|
as: rootProps.slots.baseSelect,
|
|
59589
59589
|
size: "small"
|
|
59590
59590
|
}, operatorInputProps, {
|
|
@@ -59599,15 +59599,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59599
59599
|
inputRef: filterSelectorRef,
|
|
59600
59600
|
disabled: readOnly
|
|
59601
59601
|
}, (_f2 = rootProps.slotProps) == null ? void 0 : _f2.baseSelect, {
|
|
59602
|
-
children: (_g2 = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g2.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59602
|
+
children: (_g2 = currentColumn == null ? void 0 : currentColumn.filterOperators) == null ? void 0 : _g2.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$2({}, baseSelectOptionProps, {
|
|
59603
59603
|
native: isBaseSelectNative,
|
|
59604
59604
|
key: operator2.value,
|
|
59605
59605
|
value: operator2.value
|
|
59606
59606
|
}), operator2.label || apiRef.current.getLocaleText(`filterOperator${capitalize$1(operator2.value)}`)))
|
|
59607
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$
|
|
59607
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$2({}, valueInputPropsOther, {
|
|
59608
59608
|
className: clsx(classes2.valueInput, valueInputPropsOther.className),
|
|
59609
59609
|
ownerState: rootProps,
|
|
59610
|
-
children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$
|
|
59610
|
+
children: (currentOperator == null ? void 0 : currentOperator.InputComponent) ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$2({
|
|
59611
59611
|
apiRef,
|
|
59612
59612
|
item,
|
|
59613
59613
|
applyValue: applyFilterChanges,
|
|
@@ -59835,7 +59835,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59835
59835
|
apiRef.current.deleteFilterItem(validFilters[0]);
|
|
59836
59836
|
return apiRef.current.hideFilterPanel();
|
|
59837
59837
|
}
|
|
59838
|
-
return apiRef.current.setFilterModel(_extends$
|
|
59838
|
+
return apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
59839
59839
|
items: readOnlyFilters
|
|
59840
59840
|
}), "removeAllFilterItems");
|
|
59841
59841
|
}, [apiRef, readOnlyFilters, filterModel, validFilters]);
|
|
@@ -59849,10 +59849,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59849
59849
|
lastFilterRef.current.focus();
|
|
59850
59850
|
}
|
|
59851
59851
|
}, [validFilters.length]);
|
|
59852
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$
|
|
59852
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$2({}, other, {
|
|
59853
59853
|
ref: ref2,
|
|
59854
59854
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
|
|
59855
|
-
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
59855
|
+
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
|
|
59856
59856
|
item,
|
|
59857
59857
|
applyFilterChanges: applyFilter,
|
|
59858
59858
|
deleteFilter,
|
|
@@ -59864,7 +59864,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59864
59864
|
readOnly: true,
|
|
59865
59865
|
logicOperators,
|
|
59866
59866
|
columnsSort
|
|
59867
|
-
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
59867
|
+
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$2({
|
|
59868
59868
|
item,
|
|
59869
59869
|
applyFilterChanges: applyFilter,
|
|
59870
59870
|
deleteFilter,
|
|
@@ -59877,12 +59877,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59877
59877
|
columnsSort
|
|
59878
59878
|
}, filterFormProps), item.id == null ? index2 + readOnlyFilters.length : item.id))]
|
|
59879
59879
|
}), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
|
|
59880
|
-
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59880
|
+
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
|
|
59881
59881
|
onClick: addNewFilter,
|
|
59882
59882
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
|
|
59883
59883
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
59884
59884
|
children: apiRef.current.getLocaleText("filterPanelAddFilter")
|
|
59885
|
-
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59885
|
+
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
|
|
59886
59886
|
onClick: handleRemoveAll,
|
|
59887
59887
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
|
|
59888
59888
|
}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseButton, {
|
|
@@ -60023,7 +60023,7 @@ function GridShadowScrollArea(props) {
|
|
|
60023
60023
|
const {
|
|
60024
60024
|
children: children2
|
|
60025
60025
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
60026
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$
|
|
60026
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$2({}, rest, {
|
|
60027
60027
|
children: children2
|
|
60028
60028
|
}));
|
|
60029
60029
|
}
|
|
@@ -60090,7 +60090,7 @@ function GridColumnsManagement(props) {
|
|
|
60090
60090
|
}, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
|
|
60091
60091
|
const toggleAllColumns = React.useCallback((isVisible) => {
|
|
60092
60092
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
60093
|
-
const newModel = _extends$
|
|
60093
|
+
const newModel = _extends$2({}, currentModel);
|
|
60094
60094
|
const togglableColumns = getTogglableColumns ? getTogglableColumns(columns) : null;
|
|
60095
60095
|
(toggleAllMode === "filteredOnly" ? currentColumns : columns).forEach((col) => {
|
|
60096
60096
|
if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
|
|
@@ -60133,7 +60133,7 @@ function GridColumnsManagement(props) {
|
|
|
60133
60133
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
|
|
60134
60134
|
className: classes2.header,
|
|
60135
60135
|
ownerState: rootProps,
|
|
60136
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$
|
|
60136
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$2({
|
|
60137
60137
|
as: rootProps.slots.baseTextField,
|
|
60138
60138
|
ownerState: rootProps,
|
|
60139
60139
|
placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
|
|
@@ -60148,7 +60148,7 @@ function GridColumnsManagement(props) {
|
|
|
60148
60148
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
60149
60149
|
fontSize: "small"
|
|
60150
60150
|
}),
|
|
60151
|
-
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
60151
|
+
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$2({
|
|
60152
60152
|
size: "small",
|
|
60153
60153
|
"aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
|
|
60154
60154
|
style: searchValue ? {
|
|
@@ -60179,7 +60179,7 @@ function GridColumnsManagement(props) {
|
|
|
60179
60179
|
ownerState: rootProps,
|
|
60180
60180
|
children: [currentColumns.map((column2) => {
|
|
60181
60181
|
var _a4;
|
|
60182
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
60182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
|
|
60183
60183
|
className: classes2.row,
|
|
60184
60184
|
disabled: column2.hideable === false,
|
|
60185
60185
|
checked: columnVisibilityModel[column2.field] !== false,
|
|
@@ -60198,7 +60198,7 @@ function GridColumnsManagement(props) {
|
|
|
60198
60198
|
}), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
|
|
60199
60199
|
ownerState: rootProps,
|
|
60200
60200
|
className: classes2.footer,
|
|
60201
|
-
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
60201
|
+
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$2({
|
|
60202
60202
|
disabled: hideableColumns.length === 0,
|
|
60203
60203
|
checked: allHideableColumnsVisible,
|
|
60204
60204
|
indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
|
|
@@ -60206,7 +60206,7 @@ function GridColumnsManagement(props) {
|
|
|
60206
60206
|
name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
60207
60207
|
label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
60208
60208
|
density: "compact"
|
|
60209
|
-
}, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
60209
|
+
}, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
|
|
60210
60210
|
onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
|
|
60211
60211
|
disabled: isResetDisabled
|
|
60212
60212
|
}, (_d2 = rootProps.slotProps) == null ? void 0 : _d2.baseButton, {
|
|
@@ -60339,11 +60339,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
|
|
|
60339
60339
|
return null;
|
|
60340
60340
|
}
|
|
60341
60341
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
60342
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
60342
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$2({
|
|
60343
60343
|
title: apiRef.current.getLocaleText("toolbarExportLabel"),
|
|
60344
60344
|
enterDelay: 1e3
|
|
60345
60345
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseTooltip, tooltipProps, {
|
|
60346
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
60346
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
|
|
60347
60347
|
size: "small",
|
|
60348
60348
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
|
|
60349
60349
|
"aria-expanded": open,
|
|
@@ -60398,7 +60398,7 @@ function GridCsvExportMenuItem(props) {
|
|
|
60398
60398
|
hideMenu,
|
|
60399
60399
|
options
|
|
60400
60400
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$m);
|
|
60401
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
60401
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
|
|
60402
60402
|
onClick: () => {
|
|
60403
60403
|
apiRef.current.exportDataAsCsv(options);
|
|
60404
60404
|
hideMenu == null ? void 0 : hideMenu();
|
|
@@ -60434,7 +60434,7 @@ function GridPrintExportMenuItem(props) {
|
|
|
60434
60434
|
hideMenu,
|
|
60435
60435
|
options
|
|
60436
60436
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded2$5);
|
|
60437
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
60437
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({
|
|
60438
60438
|
onClick: () => {
|
|
60439
60439
|
apiRef.current.exportDataAsPrint(options);
|
|
60440
60440
|
hideMenu == null ? void 0 : hideMenu();
|
|
@@ -60478,7 +60478,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref2) {
|
|
|
60478
60478
|
if (preProcessedButtons.length === 0) {
|
|
60479
60479
|
return null;
|
|
60480
60480
|
}
|
|
60481
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$
|
|
60481
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$2({}, other, {
|
|
60482
60482
|
ref: ref2,
|
|
60483
60483
|
children: preProcessedButtons.map((button, index2) => /* @__PURE__ */ React.cloneElement(button.component, {
|
|
60484
60484
|
key: index2
|
|
@@ -60697,7 +60697,7 @@ function QuickFilter(props) {
|
|
|
60697
60697
|
ref2.current.style.setProperty("--trigger-width", `${(_a3 = triggerRef.current) == null ? void 0 : _a3.offsetWidth}px`);
|
|
60698
60698
|
}
|
|
60699
60699
|
}, []);
|
|
60700
|
-
const element2 = useGridComponentRenderer("div", render, _extends$
|
|
60700
|
+
const element2 = useGridComponentRenderer("div", render, _extends$2({
|
|
60701
60701
|
className: resolvedClassName
|
|
60702
60702
|
}, other, {
|
|
60703
60703
|
ref: ref2
|
|
@@ -60799,9 +60799,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref2)
|
|
|
60799
60799
|
onValueChange(event2);
|
|
60800
60800
|
onChange == null ? void 0 : onChange(event2);
|
|
60801
60801
|
};
|
|
60802
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$
|
|
60803
|
-
slotProps: _extends$
|
|
60804
|
-
htmlInput: _extends$
|
|
60802
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseTextField, {
|
|
60803
|
+
slotProps: _extends$2({
|
|
60804
|
+
htmlInput: _extends$2({
|
|
60805
60805
|
role: "searchbox",
|
|
60806
60806
|
id: controlId,
|
|
60807
60807
|
tabIndex: state.expanded ? void 0 : -1
|
|
@@ -60871,7 +60871,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref2) {
|
|
|
60871
60871
|
clearValue();
|
|
60872
60872
|
onClick == null ? void 0 : onClick(event2);
|
|
60873
60873
|
};
|
|
60874
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$
|
|
60874
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseIconButton, {
|
|
60875
60875
|
className: resolvedClassName,
|
|
60876
60876
|
tabIndex: -1
|
|
60877
60877
|
}, other, {
|
|
@@ -60928,7 +60928,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref2)
|
|
|
60928
60928
|
onExpandedChange(!state.expanded);
|
|
60929
60929
|
onClick == null ? void 0 : onClick(event2);
|
|
60930
60930
|
};
|
|
60931
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$
|
|
60931
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
60932
60932
|
className: resolvedClassName,
|
|
60933
60933
|
"aria-controls": controlId,
|
|
60934
60934
|
"aria-expanded": state.expanded
|
|
@@ -61030,16 +61030,16 @@ function GridToolbarQuickFilter(props) {
|
|
|
61030
61030
|
formatter: quickFilterFormatter,
|
|
61031
61031
|
debounceMs,
|
|
61032
61032
|
render: (quickFilterProps, state) => {
|
|
61033
|
-
const currentOwnerState = _extends$
|
|
61033
|
+
const currentOwnerState = _extends$2({}, ownerState, {
|
|
61034
61034
|
expanded: state.expanded
|
|
61035
61035
|
});
|
|
61036
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$
|
|
61036
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$2({}, quickFilterProps, {
|
|
61037
61037
|
className: clsx(classes2.root, className),
|
|
61038
61038
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
|
|
61039
61039
|
render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
61040
61040
|
title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
61041
61041
|
enterDelay: 0,
|
|
61042
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$
|
|
61042
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$2({
|
|
61043
61043
|
className: classes2.trigger
|
|
61044
61044
|
}, triggerProps, {
|
|
61045
61045
|
ownerState: currentOwnerState,
|
|
@@ -61057,7 +61057,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
61057
61057
|
ref: ref2,
|
|
61058
61058
|
slotProps: controlSlotProps
|
|
61059
61059
|
} = _ref, controlProps = _objectWithoutPropertiesLoose(_ref, _excluded2$4);
|
|
61060
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$
|
|
61060
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$2({
|
|
61061
61061
|
as: rootProps.slots.baseTextField,
|
|
61062
61062
|
className: classes2.control,
|
|
61063
61063
|
ownerState: currentOwnerState,
|
|
@@ -61065,8 +61065,8 @@ function GridToolbarQuickFilter(props) {
|
|
|
61065
61065
|
"aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
61066
61066
|
placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
|
|
61067
61067
|
size: "small",
|
|
61068
|
-
slotProps: _extends$
|
|
61069
|
-
input: _extends$
|
|
61068
|
+
slotProps: _extends$2({
|
|
61069
|
+
input: _extends$2({
|
|
61070
61070
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
61071
61071
|
fontSize: "small"
|
|
61072
61072
|
}),
|
|
@@ -61158,7 +61158,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref2)
|
|
|
61158
61158
|
}
|
|
61159
61159
|
onPointerUp == null ? void 0 : onPointerUp(event2);
|
|
61160
61160
|
};
|
|
61161
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$
|
|
61161
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
61162
61162
|
id: buttonId,
|
|
61163
61163
|
"aria-haspopup": "true",
|
|
61164
61164
|
"aria-expanded": open ? "true" : void 0,
|
|
@@ -61233,7 +61233,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref2
|
|
|
61233
61233
|
}
|
|
61234
61234
|
onPointerUp == null ? void 0 : onPointerUp(event2);
|
|
61235
61235
|
};
|
|
61236
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$
|
|
61236
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
61237
61237
|
id: buttonId,
|
|
61238
61238
|
"aria-haspopup": "true",
|
|
61239
61239
|
"aria-expanded": open ? "true" : void 0,
|
|
@@ -61285,7 +61285,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref2) {
|
|
|
61285
61285
|
apiRef.current.exportDataAsCsv(options);
|
|
61286
61286
|
onClick == null ? void 0 : onClick(event2);
|
|
61287
61287
|
};
|
|
61288
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$
|
|
61288
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
61289
61289
|
onClick: handleClick
|
|
61290
61290
|
}, other, {
|
|
61291
61291
|
ref: ref2
|
|
@@ -61345,7 +61345,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref2) {
|
|
|
61345
61345
|
apiRef.current.exportDataAsPrint(options);
|
|
61346
61346
|
onClick == null ? void 0 : onClick(event2);
|
|
61347
61347
|
};
|
|
61348
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$
|
|
61348
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
61349
61349
|
onClick: handleClick
|
|
61350
61350
|
}, other, {
|
|
61351
61351
|
ref: ref2
|
|
@@ -61425,7 +61425,7 @@ function GridToolbarDivider(props) {
|
|
|
61425
61425
|
const other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
61426
61426
|
const rootProps = useGridRootProps();
|
|
61427
61427
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
61428
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$
|
|
61428
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$2({
|
|
61429
61429
|
as: rootProps.slots.baseDivider,
|
|
61430
61430
|
orientation: "vertical",
|
|
61431
61431
|
className: classes2.divider
|
|
@@ -61443,7 +61443,7 @@ function GridToolbarLabel(props) {
|
|
|
61443
61443
|
const other = _objectWithoutPropertiesLoose(props, _excluded2$3);
|
|
61444
61444
|
const rootProps = useGridRootProps();
|
|
61445
61445
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
61446
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$
|
|
61446
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$2({
|
|
61447
61447
|
className: classes2.label
|
|
61448
61448
|
}, other));
|
|
61449
61449
|
}
|
|
@@ -61478,7 +61478,7 @@ function GridToolbar(props) {
|
|
|
61478
61478
|
}), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
61479
61479
|
title: apiRef.current.getLocaleText("toolbarFilters"),
|
|
61480
61480
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
|
|
61481
|
-
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$
|
|
61481
|
+
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$2({}, triggerProps, {
|
|
61482
61482
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
|
|
61483
61483
|
badgeContent: state.filterCount,
|
|
61484
61484
|
color: "primary",
|
|
@@ -61508,18 +61508,18 @@ function GridToolbar(props) {
|
|
|
61508
61508
|
open: exportMenuOpen,
|
|
61509
61509
|
onClose: closeExportMenu,
|
|
61510
61510
|
position: "bottom-end",
|
|
61511
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$
|
|
61511
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$2({
|
|
61512
61512
|
id: exportMenuId,
|
|
61513
61513
|
"aria-labelledby": exportMenuTriggerId,
|
|
61514
61514
|
autoFocusItem: true
|
|
61515
61515
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseMenuList, {
|
|
61516
61516
|
children: [!(printOptions == null ? void 0 : printOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
|
|
61517
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
61517
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_b2 = rootProps.slotProps) == null ? void 0 : _b2.baseMenuItem)),
|
|
61518
61518
|
options: printOptions,
|
|
61519
61519
|
onClick: closeExportMenu,
|
|
61520
61520
|
children: apiRef.current.getLocaleText("toolbarExportPrint")
|
|
61521
61521
|
}), !(csvOptions == null ? void 0 : csvOptions.disableToolbarButton) && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
|
|
61522
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
61522
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$2({}, (_c2 = rootProps.slotProps) == null ? void 0 : _c2.baseMenuItem)),
|
|
61523
61523
|
options: csvOptions,
|
|
61524
61524
|
onClick: closeExportMenu,
|
|
61525
61525
|
children: apiRef.current.getLocaleText("toolbarExportCSV")
|
|
@@ -61527,7 +61527,7 @@ function GridToolbar(props) {
|
|
|
61527
61527
|
}))
|
|
61528
61528
|
})]
|
|
61529
61529
|
}), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
61530
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$
|
|
61530
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$2({}, quickFilterProps))]
|
|
61531
61531
|
})]
|
|
61532
61532
|
});
|
|
61533
61533
|
}
|
|
@@ -61597,7 +61597,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
|
|
|
61597
61597
|
const ownerState = useGridRootProps();
|
|
61598
61598
|
const classes2 = useUtilityClasses$a(ownerState);
|
|
61599
61599
|
const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
|
|
61600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$
|
|
61600
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$2({
|
|
61601
61601
|
className: clsx(classes2.root, className),
|
|
61602
61602
|
ownerState
|
|
61603
61603
|
}, other, {
|
|
@@ -61623,12 +61623,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref2) {
|
|
|
61623
61623
|
const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
|
|
61624
61624
|
selectedRowCount
|
|
61625
61625
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
|
|
61626
|
-
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$
|
|
61626
|
+
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$2({}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.footerRowCount, {
|
|
61627
61627
|
rowCount: totalTopLevelRowCount,
|
|
61628
61628
|
visibleRowCount: visibleTopLevelRowCount
|
|
61629
61629
|
})) : null;
|
|
61630
61630
|
const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
|
|
61631
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$
|
|
61631
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$2({}, props, {
|
|
61632
61632
|
ref: ref2,
|
|
61633
61633
|
children: [selectedRowCountElement, rowCountElement, paginationElement]
|
|
61634
61634
|
}));
|
|
@@ -61788,7 +61788,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
61788
61788
|
"data-colindex": colIndex,
|
|
61789
61789
|
empty: visibleColumns && !visibleColumns.has(column2.field),
|
|
61790
61790
|
className: clsx(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
|
|
61791
|
-
style: _extends$
|
|
61791
|
+
style: _extends$2({
|
|
61792
61792
|
"--width": `${column2.computedWidth}px`
|
|
61793
61793
|
}, pinnedStyle)
|
|
61794
61794
|
}, `skeleton-column-${i2}-${column2.field}`));
|
|
@@ -61849,7 +61849,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
61849
61849
|
}
|
|
61850
61850
|
};
|
|
61851
61851
|
useGridEvent(apiRef, "columnResize", handleColumnResize);
|
|
61852
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$
|
|
61852
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$2({
|
|
61853
61853
|
className: classes2.root
|
|
61854
61854
|
}, rest, {
|
|
61855
61855
|
ref: handleRef,
|
|
@@ -61861,7 +61861,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
|
|
|
61861
61861
|
const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
|
|
61862
61862
|
const viewportHeight = (dimensions == null ? void 0 : dimensions.viewportInnerSize.height) ?? 0;
|
|
61863
61863
|
const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
|
|
61864
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$
|
|
61864
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$2({}, props, {
|
|
61865
61865
|
skeletonRowsCount,
|
|
61866
61866
|
ref: forwardedRef
|
|
61867
61867
|
}));
|
|
@@ -61896,8 +61896,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref2)
|
|
|
61896
61896
|
const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
61897
61897
|
const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
|
|
61898
61898
|
const Component2 = activeVariant.component(rootProps);
|
|
61899
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
61900
|
-
style: _extends$
|
|
61899
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({
|
|
61900
|
+
style: _extends$2({}, activeVariant.style, style2)
|
|
61901
61901
|
}, other, {
|
|
61902
61902
|
ref: ref2,
|
|
61903
61903
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, {})
|
|
@@ -61923,7 +61923,7 @@ GridLoadingOverlay.propTypes = {
|
|
|
61923
61923
|
const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref2) {
|
|
61924
61924
|
const apiRef = useGridApiContext();
|
|
61925
61925
|
const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
|
|
61926
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
61926
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
|
|
61927
61927
|
ref: ref2,
|
|
61928
61928
|
children: noRowsLabel
|
|
61929
61929
|
}));
|
|
@@ -61944,9 +61944,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
|
|
|
61944
61944
|
apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
|
|
61945
61945
|
};
|
|
61946
61946
|
const showManageColumnsButton = !rootProps.disableColumnSelector && columns.length > 0;
|
|
61947
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$
|
|
61947
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$2({}, props, {
|
|
61948
61948
|
ref: ref2,
|
|
61949
|
-
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
61949
|
+
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$2({
|
|
61950
61950
|
size: "small"
|
|
61951
61951
|
}, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseButton, {
|
|
61952
61952
|
onClick: handleOpenManageColumns,
|
|
@@ -62063,7 +62063,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref2) {
|
|
|
62063
62063
|
return null;
|
|
62064
62064
|
}
|
|
62065
62065
|
const text2 = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
|
|
62066
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$
|
|
62066
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$2({
|
|
62067
62067
|
className: clsx(classes2.root, className),
|
|
62068
62068
|
ownerState
|
|
62069
62069
|
}, other, {
|
|
@@ -62197,7 +62197,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
62197
62197
|
slotProps,
|
|
62198
62198
|
disableColumnReorder
|
|
62199
62199
|
} = rootProps;
|
|
62200
|
-
const heightEntry = useGridSelector(apiRef, () => _extends$
|
|
62200
|
+
const heightEntry = useGridSelector(apiRef, () => _extends$2({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
|
|
62201
62201
|
const style2 = React.useMemo(() => {
|
|
62202
62202
|
if (isNotVisible) {
|
|
62203
62203
|
return {
|
|
@@ -62206,7 +62206,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
62206
62206
|
height: 0
|
|
62207
62207
|
};
|
|
62208
62208
|
}
|
|
62209
|
-
const rowStyle = _extends$
|
|
62209
|
+
const rowStyle = _extends$2({}, styleProp, {
|
|
62210
62210
|
maxHeight: rowHeight === "auto" ? "none" : rowHeight,
|
|
62211
62211
|
// max-height doesn't support "auto"
|
|
62212
62212
|
minHeight: rowHeight,
|
|
@@ -62231,7 +62231,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
62231
62231
|
const ariaAttributes = getRowAriaAttributes(rowNode, index2);
|
|
62232
62232
|
if (typeof rootProps.getRowClassName === "function") {
|
|
62233
62233
|
const indexRelativeToCurrentPage = index2 - (((_a3 = currentPage.range) == null ? void 0 : _a3.firstRowIndex) || 0);
|
|
62234
|
-
const rowParams = _extends$
|
|
62234
|
+
const rowParams = _extends$2({}, apiRef.current.getRowParams(rowId), {
|
|
62235
62235
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
62236
62236
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
62237
62237
|
indexRelativeToCurrentPage
|
|
@@ -62262,7 +62262,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
62262
62262
|
const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
|
|
62263
62263
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
62264
62264
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
|
|
62265
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$
|
|
62265
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$2({
|
|
62266
62266
|
column: column2,
|
|
62267
62267
|
width: width2,
|
|
62268
62268
|
rowId,
|
|
@@ -62311,7 +62311,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
62311
62311
|
onMouseOut: publish("rowMouseOut", onMouseOut),
|
|
62312
62312
|
onMouseOver: publish("rowMouseOver", onMouseOver)
|
|
62313
62313
|
} : null;
|
|
62314
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
62314
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$2({
|
|
62315
62315
|
"data-id": rowId,
|
|
62316
62316
|
"data-rowindex": index2,
|
|
62317
62317
|
role: "row",
|
|
@@ -62456,7 +62456,7 @@ const useGridIsRtl = (apiRef) => {
|
|
|
62456
62456
|
if (isFirstEffect.current) {
|
|
62457
62457
|
isFirstEffect.current = false;
|
|
62458
62458
|
} else {
|
|
62459
|
-
apiRef.current.setState((state) => _extends$
|
|
62459
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
62460
62460
|
isRtl
|
|
62461
62461
|
}));
|
|
62462
62462
|
}
|
|
@@ -63011,7 +63011,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
63011
63011
|
}, [apiRef]);
|
|
63012
63012
|
const updateControlState = React.useCallback((key2, state, reason) => {
|
|
63013
63013
|
return apiRef.current.setState((previousState) => {
|
|
63014
|
-
return _extends$
|
|
63014
|
+
return _extends$2({}, previousState, {
|
|
63015
63015
|
[key2]: state(previousState[key2])
|
|
63016
63016
|
});
|
|
63017
63017
|
}, reason);
|
|
@@ -63027,7 +63027,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
63027
63027
|
useGridApiMethod(apiRef, privateStateApi, "private");
|
|
63028
63028
|
};
|
|
63029
63029
|
const propsStateInitializer = (state, props) => {
|
|
63030
|
-
return _extends$
|
|
63030
|
+
return _extends$2({}, state, {
|
|
63031
63031
|
props: {
|
|
63032
63032
|
getRowId: props.getRowId
|
|
63033
63033
|
}
|
|
@@ -63035,7 +63035,7 @@ const propsStateInitializer = (state, props) => {
|
|
|
63035
63035
|
};
|
|
63036
63036
|
const useGridProps = (apiRef, props) => {
|
|
63037
63037
|
React.useEffect(() => {
|
|
63038
|
-
apiRef.current.setState((state) => _extends$
|
|
63038
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63039
63039
|
props: {
|
|
63040
63040
|
getRowId: props.getRowId
|
|
63041
63041
|
}
|
|
@@ -63287,7 +63287,7 @@ const useGridClipboard = (apiRef, props) => {
|
|
|
63287
63287
|
useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
|
|
63288
63288
|
useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
|
|
63289
63289
|
};
|
|
63290
|
-
const columnMenuStateInitializer = (state) => _extends$
|
|
63290
|
+
const columnMenuStateInitializer = (state) => _extends$2({}, state, {
|
|
63291
63291
|
columnMenu: {
|
|
63292
63292
|
open: false
|
|
63293
63293
|
}
|
|
@@ -63307,7 +63307,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
63307
63307
|
return state;
|
|
63308
63308
|
}
|
|
63309
63309
|
logger2.debug("Opening Column Menu");
|
|
63310
|
-
return _extends$
|
|
63310
|
+
return _extends$2({}, state, {
|
|
63311
63311
|
columnMenu: {
|
|
63312
63312
|
open: true,
|
|
63313
63313
|
field: field2
|
|
@@ -63347,7 +63347,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
63347
63347
|
if (shouldUpdate) {
|
|
63348
63348
|
apiRef.current.setState((state) => {
|
|
63349
63349
|
logger2.debug("Hiding Column Menu");
|
|
63350
|
-
return _extends$
|
|
63350
|
+
return _extends$2({}, state, {
|
|
63351
63351
|
columnMenu: newState
|
|
63352
63352
|
});
|
|
63353
63353
|
});
|
|
@@ -63381,7 +63381,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
|
|
|
63381
63381
|
columnVisibilityModel: props.columnVisibilityModel ?? ((_c2 = (_b2 = props.initialState) == null ? void 0 : _b2.columns) == null ? void 0 : _c2.columnVisibilityModel) ?? {},
|
|
63382
63382
|
keepOnlyColumnsToUpsert: true
|
|
63383
63383
|
});
|
|
63384
|
-
return _extends$
|
|
63384
|
+
return _extends$2({}, state, {
|
|
63385
63385
|
columns: columnsState,
|
|
63386
63386
|
// In pro/premium, this part of the state is defined. We give it an empty but defined value
|
|
63387
63387
|
// for the community version.
|
|
@@ -63419,7 +63419,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63419
63419
|
var _a4, _b3;
|
|
63420
63420
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
63421
63421
|
if (currentModel !== model) {
|
|
63422
|
-
apiRef.current.setState((state) => _extends$
|
|
63422
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63423
63423
|
columns: createColumnsState({
|
|
63424
63424
|
apiRef,
|
|
63425
63425
|
columnsToUpsert: [],
|
|
@@ -63445,7 +63445,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63445
63445
|
const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
|
|
63446
63446
|
const isCurrentlyVisible = columnVisibilityModel[field2] ?? true;
|
|
63447
63447
|
if (isVisible !== isCurrentlyVisible) {
|
|
63448
|
-
const newModel = _extends$
|
|
63448
|
+
const newModel = _extends$2({}, columnVisibilityModel, {
|
|
63449
63449
|
[field2]: isVisible
|
|
63450
63450
|
});
|
|
63451
63451
|
apiRef.current.setColumnVisibilityModel(newModel);
|
|
@@ -63465,7 +63465,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63465
63465
|
const updatedColumns = [...allColumns];
|
|
63466
63466
|
const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
|
|
63467
63467
|
updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
|
|
63468
|
-
setGridColumnsState(_extends$
|
|
63468
|
+
setGridColumnsState(_extends$2({}, gridColumnsStateSelector(apiRef), {
|
|
63469
63469
|
orderedFields: updatedColumns
|
|
63470
63470
|
}));
|
|
63471
63471
|
const params2 = {
|
|
@@ -63479,12 +63479,12 @@ function useGridColumns(apiRef, props) {
|
|
|
63479
63479
|
logger2.debug(`Updating column ${field2} width to ${width2}`);
|
|
63480
63480
|
const columnsState = gridColumnsStateSelector(apiRef);
|
|
63481
63481
|
const column2 = columnsState.lookup[field2];
|
|
63482
|
-
const newColumn = _extends$
|
|
63482
|
+
const newColumn = _extends$2({}, column2, {
|
|
63483
63483
|
width: width2,
|
|
63484
63484
|
hasBeenResized: true
|
|
63485
63485
|
});
|
|
63486
|
-
setGridColumnsState(hydrateColumnsWidth(_extends$
|
|
63487
|
-
lookup: _extends$
|
|
63486
|
+
setGridColumnsState(hydrateColumnsWidth(_extends$2({}, columnsState, {
|
|
63487
|
+
lookup: _extends$2({}, columnsState.lookup, {
|
|
63488
63488
|
[field2]: newColumn
|
|
63489
63489
|
})
|
|
63490
63490
|
}), apiRef.current.getRootDimensions()));
|
|
@@ -63545,7 +63545,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63545
63545
|
if (Object.keys(dimensions).length > 0) {
|
|
63546
63546
|
columnsStateToExport.dimensions = dimensions;
|
|
63547
63547
|
}
|
|
63548
|
-
return _extends$
|
|
63548
|
+
return _extends$2({}, prevState, {
|
|
63549
63549
|
columns: columnsStateToExport
|
|
63550
63550
|
});
|
|
63551
63551
|
}, [apiRef, props.columnVisibilityModel, (_a3 = props.initialState) == null ? void 0 : _a3.columns]);
|
|
@@ -63573,7 +63573,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63573
63573
|
var _a4;
|
|
63574
63574
|
if (value2 === GridPreferencePanelsValue.columns) {
|
|
63575
63575
|
const ColumnsPanel = props.slots.columnsPanel;
|
|
63576
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$
|
|
63576
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$2({}, (_a4 = props.slotProps) == null ? void 0 : _a4.columnsPanel));
|
|
63577
63577
|
}
|
|
63578
63578
|
return initialValue;
|
|
63579
63579
|
}, [props.slots.columnsPanel, (_b2 = props.slotProps) == null ? void 0 : _b2.columnsPanel]);
|
|
@@ -63638,13 +63638,13 @@ function useGridColumns(apiRef, props) {
|
|
|
63638
63638
|
}, [apiRef, logger2, props.columnVisibilityModel]);
|
|
63639
63639
|
}
|
|
63640
63640
|
function mergeColumnsState(columnsState) {
|
|
63641
|
-
return (state) => _extends$
|
|
63641
|
+
return (state) => _extends$2({}, state, {
|
|
63642
63642
|
columns: columnsState
|
|
63643
63643
|
});
|
|
63644
63644
|
}
|
|
63645
63645
|
const densityStateInitializer = (state, props) => {
|
|
63646
63646
|
var _a3;
|
|
63647
|
-
return _extends$
|
|
63647
|
+
return _extends$2({}, state, {
|
|
63648
63648
|
density: ((_a3 = props.initialState) == null ? void 0 : _a3.density) ?? props.density ?? "standard"
|
|
63649
63649
|
});
|
|
63650
63650
|
};
|
|
@@ -63664,7 +63664,7 @@ const useGridDensity = (apiRef, props) => {
|
|
|
63664
63664
|
return;
|
|
63665
63665
|
}
|
|
63666
63666
|
logger2.debug(`Set grid density to ${newDensity}`);
|
|
63667
|
-
apiRef.current.setState((state) => _extends$
|
|
63667
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63668
63668
|
density: newDensity
|
|
63669
63669
|
}));
|
|
63670
63670
|
});
|
|
@@ -63684,14 +63684,14 @@ const useGridDensity = (apiRef, props) => {
|
|
|
63684
63684
|
if (!shouldExportRowCount) {
|
|
63685
63685
|
return prevState;
|
|
63686
63686
|
}
|
|
63687
|
-
return _extends$
|
|
63687
|
+
return _extends$2({}, prevState, {
|
|
63688
63688
|
density: exportedDensity
|
|
63689
63689
|
});
|
|
63690
63690
|
}, [apiRef, props.density, (_a3 = props.initialState) == null ? void 0 : _a3.density]);
|
|
63691
63691
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63692
63692
|
var _a4;
|
|
63693
63693
|
const restoredDensity = ((_a4 = context2.stateToRestore) == null ? void 0 : _a4.density) ? context2.stateToRestore.density : gridDensitySelector(apiRef);
|
|
63694
|
-
apiRef.current.setState((state) => _extends$
|
|
63694
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63695
63695
|
density: restoredDensity
|
|
63696
63696
|
}));
|
|
63697
63697
|
return params2;
|
|
@@ -63821,7 +63821,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
|
|
|
63821
63821
|
}
|
|
63822
63822
|
const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
|
|
63823
63823
|
if (validPage !== paginationModel.page) {
|
|
63824
|
-
paginationModel = _extends$
|
|
63824
|
+
paginationModel = _extends$2({}, paginationModel, {
|
|
63825
63825
|
page: validPage
|
|
63826
63826
|
});
|
|
63827
63827
|
}
|
|
@@ -63869,8 +63869,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63869
63869
|
return;
|
|
63870
63870
|
}
|
|
63871
63871
|
logger2.debug("Setting 'paginationModel' to", paginationModel);
|
|
63872
|
-
apiRef.current.setState((state) => _extends$
|
|
63873
|
-
pagination: _extends$
|
|
63872
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63873
|
+
pagination: _extends$2({}, state.pagination, {
|
|
63874
63874
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
63875
63875
|
})
|
|
63876
63876
|
}), "setPaginationModel");
|
|
@@ -63894,17 +63894,17 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63894
63894
|
if (!shouldExportPaginationModel) {
|
|
63895
63895
|
return prevState;
|
|
63896
63896
|
}
|
|
63897
|
-
return _extends$
|
|
63898
|
-
pagination: _extends$
|
|
63897
|
+
return _extends$2({}, prevState, {
|
|
63898
|
+
pagination: _extends$2({}, prevState.pagination, {
|
|
63899
63899
|
paginationModel
|
|
63900
63900
|
})
|
|
63901
63901
|
});
|
|
63902
63902
|
}, [apiRef, props.paginationModel, (_b2 = (_a3 = props.initialState) == null ? void 0 : _a3.pagination) == null ? void 0 : _b2.paginationModel, props.autoPageSize]);
|
|
63903
63903
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63904
63904
|
var _a4, _b3;
|
|
63905
|
-
const paginationModel = ((_a4 = context2.stateToRestore.pagination) == null ? void 0 : _a4.paginationModel) ? _extends$
|
|
63906
|
-
apiRef.current.setState((state) => _extends$
|
|
63907
|
-
pagination: _extends$
|
|
63905
|
+
const paginationModel = ((_a4 = context2.stateToRestore.pagination) == null ? void 0 : _a4.paginationModel) ? _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), (_b3 = context2.stateToRestore.pagination) == null ? void 0 : _b3.paginationModel) : gridPaginationModelSelector(apiRef);
|
|
63906
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63907
|
+
pagination: _extends$2({}, state.pagination, {
|
|
63908
63908
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
63909
63909
|
})
|
|
63910
63910
|
}), "stateRestorePreProcessing");
|
|
@@ -63955,7 +63955,7 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63955
63955
|
}
|
|
63956
63956
|
}, [apiRef]);
|
|
63957
63957
|
const handleFilterModelChange = React.useCallback((filterModel) => {
|
|
63958
|
-
const currentActiveFilters = _extends$
|
|
63958
|
+
const currentActiveFilters = _extends$2({}, filterModel, {
|
|
63959
63959
|
// replace items with the active items
|
|
63960
63960
|
items: gridFilterActiveItemsSelector(apiRef)
|
|
63961
63961
|
});
|
|
@@ -63979,8 +63979,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63979
63979
|
if (!props.pagination) {
|
|
63980
63980
|
return;
|
|
63981
63981
|
}
|
|
63982
|
-
apiRef.current.setState((state) => _extends$
|
|
63983
|
-
pagination: _extends$
|
|
63982
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
63983
|
+
pagination: _extends$2({}, state.pagination, {
|
|
63984
63984
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
|
|
63985
63985
|
})
|
|
63986
63986
|
}));
|
|
@@ -63991,8 +63991,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63991
63991
|
if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled2) {
|
|
63992
63992
|
return state;
|
|
63993
63993
|
}
|
|
63994
|
-
return _extends$
|
|
63995
|
-
pagination: _extends$
|
|
63994
|
+
return _extends$2({}, state, {
|
|
63995
|
+
pagination: _extends$2({}, state.pagination, {
|
|
63996
63996
|
paginationMode: props.paginationMode,
|
|
63997
63997
|
enabled: props.pagination === true
|
|
63998
63998
|
})
|
|
@@ -64061,7 +64061,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
64061
64061
|
}, [apiRef]);
|
|
64062
64062
|
const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
|
|
64063
64063
|
var _a3, _b2, _c2;
|
|
64064
|
-
const normalizeOptions2 = _extends$
|
|
64064
|
+
const normalizeOptions2 = _extends$2({
|
|
64065
64065
|
copyStyles: true,
|
|
64066
64066
|
hideToolbar: false,
|
|
64067
64067
|
hideFooter: false,
|
|
@@ -64158,7 +64158,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
64158
64158
|
if (!((_b2 = (_a3 = previousGridState.current) == null ? void 0 : _a3.columns) == null ? void 0 : _b2.columnVisibilityModel)) {
|
|
64159
64159
|
apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
|
|
64160
64160
|
}
|
|
64161
|
-
apiRef.current.setState((state) => _extends$
|
|
64161
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64162
64162
|
virtualization: previousVirtualizationState.current
|
|
64163
64163
|
}));
|
|
64164
64164
|
apiRef.current.setRows(previousRows.current);
|
|
@@ -64180,8 +64180,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
64180
64180
|
page: 0,
|
|
64181
64181
|
pageSize: visibleRowCount
|
|
64182
64182
|
};
|
|
64183
|
-
apiRef.current.setState((state) => _extends$
|
|
64184
|
-
pagination: _extends$
|
|
64183
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64184
|
+
pagination: _extends$2({}, state.pagination, {
|
|
64185
64185
|
paginationModel: getDerivedPaginationModel(
|
|
64186
64186
|
state.pagination,
|
|
64187
64187
|
// Using signature `DataGridPro` to allow more than 100 rows in the print export
|
|
@@ -64192,8 +64192,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
64192
64192
|
}));
|
|
64193
64193
|
}
|
|
64194
64194
|
previousVirtualizationState.current = apiRef.current.state.virtualization;
|
|
64195
|
-
apiRef.current.setState((state) => _extends$
|
|
64196
|
-
virtualization: _extends$
|
|
64195
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64196
|
+
virtualization: _extends$2({}, state.virtualization, {
|
|
64197
64197
|
enabled: false,
|
|
64198
64198
|
enabledForColumns: false
|
|
64199
64199
|
})
|
|
@@ -64237,8 +64237,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
64237
64237
|
const filterStateInitializer = (state, props, apiRef) => {
|
|
64238
64238
|
var _a3, _b2;
|
|
64239
64239
|
const filterModel = props.filterModel ?? ((_b2 = (_a3 = props.initialState) == null ? void 0 : _a3.filter) == null ? void 0 : _b2.filterModel) ?? getDefaultGridFilterModel();
|
|
64240
|
-
return _extends$
|
|
64241
|
-
filter: _extends$
|
|
64240
|
+
return _extends$2({}, state, {
|
|
64241
|
+
filter: _extends$2({
|
|
64242
64242
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
|
|
64243
64243
|
}, defaultGridFilterLookup),
|
|
64244
64244
|
visibleRowsLookup: {}
|
|
@@ -64270,11 +64270,11 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64270
64270
|
apiRef.current.setState((state) => {
|
|
64271
64271
|
const filterModel = gridFilterModelSelector(apiRef);
|
|
64272
64272
|
const filterState = apiRef.current.getFilterState(filterModel);
|
|
64273
|
-
const newState = _extends$
|
|
64274
|
-
filter: _extends$
|
|
64273
|
+
const newState = _extends$2({}, state, {
|
|
64274
|
+
filter: _extends$2({}, state.filter, filterState)
|
|
64275
64275
|
});
|
|
64276
64276
|
const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
64277
|
-
return _extends$
|
|
64277
|
+
return _extends$2({}, newState, {
|
|
64278
64278
|
visibleRowsLookup: visibleRowsLookupState
|
|
64279
64279
|
});
|
|
64280
64280
|
});
|
|
@@ -64295,7 +64295,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64295
64295
|
} else {
|
|
64296
64296
|
items[itemIndex] = item;
|
|
64297
64297
|
}
|
|
64298
|
-
apiRef.current.setFilterModel(_extends$
|
|
64298
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64299
64299
|
items
|
|
64300
64300
|
}), "upsertFilterItem");
|
|
64301
64301
|
}, [apiRef]);
|
|
@@ -64310,7 +64310,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64310
64310
|
existingItems[itemIndex] = item;
|
|
64311
64311
|
}
|
|
64312
64312
|
});
|
|
64313
|
-
apiRef.current.setFilterModel(_extends$
|
|
64313
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64314
64314
|
items: existingItems
|
|
64315
64315
|
}), "upsertFilterItems");
|
|
64316
64316
|
}, [apiRef]);
|
|
@@ -64320,7 +64320,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64320
64320
|
if (items.length === filterModel.items.length) {
|
|
64321
64321
|
return;
|
|
64322
64322
|
}
|
|
64323
|
-
apiRef.current.setFilterModel(_extends$
|
|
64323
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64324
64324
|
items
|
|
64325
64325
|
}), "deleteFilterItem");
|
|
64326
64326
|
}, [apiRef]);
|
|
@@ -64360,7 +64360,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64360
64360
|
operator: targetColumn.filterOperators[0].value
|
|
64361
64361
|
}, apiRef)];
|
|
64362
64362
|
}
|
|
64363
|
-
apiRef.current.setFilterModel(_extends$
|
|
64363
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64364
64364
|
items: newFilterItems
|
|
64365
64365
|
}));
|
|
64366
64366
|
}
|
|
@@ -64375,7 +64375,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64375
64375
|
if (filterModel.logicOperator === logicOperator) {
|
|
64376
64376
|
return;
|
|
64377
64377
|
}
|
|
64378
|
-
apiRef.current.setFilterModel(_extends$
|
|
64378
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64379
64379
|
logicOperator
|
|
64380
64380
|
}), "changeLogicOperator");
|
|
64381
64381
|
}, [apiRef]);
|
|
@@ -64384,7 +64384,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64384
64384
|
if (isDeepEqual(filterModel.quickFilterValues, values2)) {
|
|
64385
64385
|
return;
|
|
64386
64386
|
}
|
|
64387
|
-
apiRef.current.setFilterModel(_extends$
|
|
64387
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64388
64388
|
quickFilterValues: [...values2]
|
|
64389
64389
|
}));
|
|
64390
64390
|
}, [apiRef]);
|
|
@@ -64403,7 +64403,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64403
64403
|
isRowMatchingFilters,
|
|
64404
64404
|
filterModel: filterModel ?? getDefaultGridFilterModel()
|
|
64405
64405
|
});
|
|
64406
|
-
return _extends$
|
|
64406
|
+
return _extends$2({}, filterResult, {
|
|
64407
64407
|
filterModel
|
|
64408
64408
|
});
|
|
64409
64409
|
}, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
|
|
@@ -64437,7 +64437,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64437
64437
|
if (!shouldExportFilterModel) {
|
|
64438
64438
|
return prevState;
|
|
64439
64439
|
}
|
|
64440
|
-
return _extends$
|
|
64440
|
+
return _extends$2({}, prevState, {
|
|
64441
64441
|
filter: {
|
|
64442
64442
|
filterModel: filterModelToExport
|
|
64443
64443
|
}
|
|
@@ -64450,7 +64450,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64450
64450
|
return params2;
|
|
64451
64451
|
}
|
|
64452
64452
|
apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
|
|
64453
|
-
return _extends$
|
|
64453
|
+
return _extends$2({}, params2, {
|
|
64454
64454
|
callbacks: [...params2.callbacks, apiRef.current.unstable_applyFilters]
|
|
64455
64455
|
});
|
|
64456
64456
|
}, [apiRef, props.disableMultipleColumnsFiltering]);
|
|
@@ -64458,7 +64458,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64458
64458
|
var _a4;
|
|
64459
64459
|
if (value2 === GridPreferencePanelsValue.filters) {
|
|
64460
64460
|
const FilterPanel = props.slots.filterPanel;
|
|
64461
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$
|
|
64461
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$2({}, (_a4 = props.slotProps) == null ? void 0 : _a4.filterPanel));
|
|
64462
64462
|
}
|
|
64463
64463
|
return initialValue;
|
|
64464
64464
|
}, [props.slots.filterPanel, (_c2 = props.slotProps) == null ? void 0 : _c2.filterPanel]);
|
|
@@ -64514,7 +64514,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64514
64514
|
const columnsLookup = gridColumnLookupSelector(apiRef);
|
|
64515
64515
|
const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
|
|
64516
64516
|
if (newFilterItems.length < filterModel.items.length) {
|
|
64517
|
-
apiRef.current.setFilterModel(_extends$
|
|
64517
|
+
apiRef.current.setFilterModel(_extends$2({}, filterModel, {
|
|
64518
64518
|
items: newFilterItems
|
|
64519
64519
|
}));
|
|
64520
64520
|
}
|
|
@@ -64526,7 +64526,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64526
64526
|
}, [apiRef]);
|
|
64527
64527
|
const updateVisibleRowsLookupState = React.useCallback(() => {
|
|
64528
64528
|
apiRef.current.setState((state) => {
|
|
64529
|
-
return _extends$
|
|
64529
|
+
return _extends$2({}, state, {
|
|
64530
64530
|
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
64531
64531
|
});
|
|
64532
64532
|
});
|
|
@@ -64550,7 +64550,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64550
64550
|
}
|
|
64551
64551
|
}, [apiRef, logger2, props.filterModel]);
|
|
64552
64552
|
};
|
|
64553
|
-
const focusStateInitializer = (state) => _extends$
|
|
64553
|
+
const focusStateInitializer = (state) => _extends$2({}, state, {
|
|
64554
64554
|
focus: {
|
|
64555
64555
|
cell: null,
|
|
64556
64556
|
columnHeader: null,
|
|
@@ -64582,7 +64582,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64582
64582
|
}
|
|
64583
64583
|
apiRef.current.setState((state) => {
|
|
64584
64584
|
logger2.debug(`Focusing on cell with id=${id2} and field=${field2}`);
|
|
64585
|
-
return _extends$
|
|
64585
|
+
return _extends$2({}, state, {
|
|
64586
64586
|
tabIndex: {
|
|
64587
64587
|
cell: {
|
|
64588
64588
|
id: id2,
|
|
@@ -64616,7 +64616,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64616
64616
|
publishCellFocusOut(cell2, event2);
|
|
64617
64617
|
apiRef.current.setState((state) => {
|
|
64618
64618
|
logger2.debug(`Focusing on column header with colIndex=${field2}`);
|
|
64619
|
-
return _extends$
|
|
64619
|
+
return _extends$2({}, state, {
|
|
64620
64620
|
tabIndex: {
|
|
64621
64621
|
columnHeader: {
|
|
64622
64622
|
field: field2
|
|
@@ -64641,7 +64641,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64641
64641
|
publishCellFocusOut(cell2, event2);
|
|
64642
64642
|
apiRef.current.setState((state) => {
|
|
64643
64643
|
logger2.debug(`Focusing on column header filter with colIndex=${field2}`);
|
|
64644
|
-
return _extends$
|
|
64644
|
+
return _extends$2({}, state, {
|
|
64645
64645
|
tabIndex: {
|
|
64646
64646
|
columnHeader: null,
|
|
64647
64647
|
columnHeaderFilter: {
|
|
@@ -64667,7 +64667,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64667
64667
|
apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell2.id, cell2.field), event2);
|
|
64668
64668
|
}
|
|
64669
64669
|
apiRef.current.setState((state) => {
|
|
64670
|
-
return _extends$
|
|
64670
|
+
return _extends$2({}, state, {
|
|
64671
64671
|
tabIndex: {
|
|
64672
64672
|
columnGroupHeader: {
|
|
64673
64673
|
field: field2,
|
|
@@ -64774,7 +64774,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64774
64774
|
return;
|
|
64775
64775
|
}
|
|
64776
64776
|
logger2.debug(`Clearing focus`);
|
|
64777
|
-
apiRef.current.setState((state) => _extends$
|
|
64777
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64778
64778
|
focus: {
|
|
64779
64779
|
cell: null,
|
|
64780
64780
|
columnHeader: null,
|
|
@@ -64813,7 +64813,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64813
64813
|
if (cellParams) {
|
|
64814
64814
|
apiRef.current.setCellFocus(cellParams.id, cellParams.field);
|
|
64815
64815
|
} else {
|
|
64816
|
-
apiRef.current.setState((state) => _extends$
|
|
64816
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64817
64817
|
focus: {
|
|
64818
64818
|
cell: null,
|
|
64819
64819
|
columnHeader: null,
|
|
@@ -64848,7 +64848,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64848
64848
|
const nextRow = currentPage.rows[clamp$4(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
|
|
64849
64849
|
nextRowId = (nextRow == null ? void 0 : nextRow.id) ?? null;
|
|
64850
64850
|
}
|
|
64851
|
-
apiRef.current.setState((state) => _extends$
|
|
64851
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
64852
64852
|
focus: {
|
|
64853
64853
|
cell: nextRowId === null ? null : {
|
|
64854
64854
|
id: nextRowId,
|
|
@@ -64876,7 +64876,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64876
64876
|
}
|
|
64877
64877
|
const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
64878
64878
|
apiRef.current.setState((state) => {
|
|
64879
|
-
return _extends$
|
|
64879
|
+
return _extends$2({}, state, {
|
|
64880
64880
|
tabIndex: {
|
|
64881
64881
|
cell: {
|
|
64882
64882
|
id: currentPage.rows[0].id,
|
|
@@ -65434,8 +65434,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
65434
65434
|
return;
|
|
65435
65435
|
}
|
|
65436
65436
|
logger2.debug("Setting 'rowCount' to", newRowCount);
|
|
65437
|
-
apiRef.current.setState((state) => _extends$
|
|
65438
|
-
pagination: _extends$
|
|
65437
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65438
|
+
pagination: _extends$2({}, state.pagination, {
|
|
65439
65439
|
rowCount: newRowCount
|
|
65440
65440
|
})
|
|
65441
65441
|
}));
|
|
@@ -65456,8 +65456,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
65456
65456
|
if (!shouldExportRowCount) {
|
|
65457
65457
|
return prevState;
|
|
65458
65458
|
}
|
|
65459
|
-
return _extends$
|
|
65460
|
-
pagination: _extends$
|
|
65459
|
+
return _extends$2({}, prevState, {
|
|
65460
|
+
pagination: _extends$2({}, prevState.pagination, {
|
|
65461
65461
|
rowCount: exportedRowCount
|
|
65462
65462
|
})
|
|
65463
65463
|
});
|
|
@@ -65465,8 +65465,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
65465
65465
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65466
65466
|
var _a4;
|
|
65467
65467
|
const restoredRowCount = ((_a4 = context2.stateToRestore.pagination) == null ? void 0 : _a4.rowCount) ? context2.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
|
|
65468
|
-
apiRef.current.setState((state) => _extends$
|
|
65469
|
-
pagination: _extends$
|
|
65468
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65469
|
+
pagination: _extends$2({}, state.pagination, {
|
|
65470
65470
|
rowCount: restoredRowCount
|
|
65471
65471
|
})
|
|
65472
65472
|
}));
|
|
@@ -65516,8 +65516,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65516
65516
|
return;
|
|
65517
65517
|
}
|
|
65518
65518
|
logger2.debug("Setting 'paginationMeta' to", newPaginationMeta);
|
|
65519
|
-
apiRef.current.setState((state) => _extends$
|
|
65520
|
-
pagination: _extends$
|
|
65519
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65520
|
+
pagination: _extends$2({}, state.pagination, {
|
|
65521
65521
|
meta: newPaginationMeta
|
|
65522
65522
|
})
|
|
65523
65523
|
}));
|
|
@@ -65538,8 +65538,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65538
65538
|
if (!shouldExportRowCount) {
|
|
65539
65539
|
return prevState;
|
|
65540
65540
|
}
|
|
65541
|
-
return _extends$
|
|
65542
|
-
pagination: _extends$
|
|
65541
|
+
return _extends$2({}, prevState, {
|
|
65542
|
+
pagination: _extends$2({}, prevState.pagination, {
|
|
65543
65543
|
meta: exportedPaginationMeta
|
|
65544
65544
|
})
|
|
65545
65545
|
});
|
|
@@ -65547,8 +65547,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65547
65547
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65548
65548
|
var _a4;
|
|
65549
65549
|
const restoredPaginationMeta = ((_a4 = context2.stateToRestore.pagination) == null ? void 0 : _a4.meta) ? context2.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
|
|
65550
|
-
apiRef.current.setState((state) => _extends$
|
|
65551
|
-
pagination: _extends$
|
|
65550
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65551
|
+
pagination: _extends$2({}, state.pagination, {
|
|
65552
65552
|
meta: restoredPaginationMeta
|
|
65553
65553
|
})
|
|
65554
65554
|
}));
|
|
@@ -65564,12 +65564,12 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65564
65564
|
};
|
|
65565
65565
|
const paginationStateInitializer = (state, props) => {
|
|
65566
65566
|
var _a3, _b2, _c2, _d2, _e, _f2, _g2;
|
|
65567
|
-
const paginationModel = _extends$
|
|
65567
|
+
const paginationModel = _extends$2({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? ((_b2 = (_a3 = props.initialState) == null ? void 0 : _a3.pagination) == null ? void 0 : _b2.paginationModel));
|
|
65568
65568
|
throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
|
|
65569
65569
|
const rowCount = props.rowCount ?? ((_d2 = (_c2 = props.initialState) == null ? void 0 : _c2.pagination) == null ? void 0 : _d2.rowCount) ?? (props.paginationMode === "client" ? (_e = state.rows) == null ? void 0 : _e.totalRowCount : void 0);
|
|
65570
65570
|
const meta = props.paginationMeta ?? ((_g2 = (_f2 = props.initialState) == null ? void 0 : _f2.pagination) == null ? void 0 : _g2.meta) ?? {};
|
|
65571
|
-
return _extends$
|
|
65572
|
-
pagination: _extends$
|
|
65571
|
+
return _extends$2({}, state, {
|
|
65572
|
+
pagination: _extends$2({}, state.pagination, {
|
|
65573
65573
|
paginationModel,
|
|
65574
65574
|
rowCount,
|
|
65575
65575
|
meta,
|
|
@@ -65585,7 +65585,7 @@ const useGridPagination = (apiRef, props) => {
|
|
|
65585
65585
|
};
|
|
65586
65586
|
const preferencePanelStateInitializer = (state, props) => {
|
|
65587
65587
|
var _a3;
|
|
65588
|
-
return _extends$
|
|
65588
|
+
return _extends$2({}, state, {
|
|
65589
65589
|
preferencePanel: ((_a3 = props.initialState) == null ? void 0 : _a3.preferencePanel) ?? {
|
|
65590
65590
|
open: false
|
|
65591
65591
|
}
|
|
@@ -65604,7 +65604,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65604
65604
|
apiRef.current.publishEvent("preferencePanelClose", {
|
|
65605
65605
|
openedPanelValue: preferencePanelState.openedPanelValue
|
|
65606
65606
|
});
|
|
65607
|
-
return _extends$
|
|
65607
|
+
return _extends$2({}, state, {
|
|
65608
65608
|
preferencePanel: {
|
|
65609
65609
|
open: false
|
|
65610
65610
|
}
|
|
@@ -65613,8 +65613,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65613
65613
|
}, [apiRef, logger2]);
|
|
65614
65614
|
const showPreferences = React.useCallback((newValue, panelId, labelId) => {
|
|
65615
65615
|
logger2.debug("Opening Preferences Panel");
|
|
65616
|
-
apiRef.current.setState((state) => _extends$
|
|
65617
|
-
preferencePanel: _extends$
|
|
65616
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65617
|
+
preferencePanel: _extends$2({}, state.preferencePanel, {
|
|
65618
65618
|
open: true,
|
|
65619
65619
|
openedPanelValue: newValue,
|
|
65620
65620
|
panelId,
|
|
@@ -65641,14 +65641,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65641
65641
|
if (!shouldExportPreferencePanel) {
|
|
65642
65642
|
return prevState;
|
|
65643
65643
|
}
|
|
65644
|
-
return _extends$
|
|
65644
|
+
return _extends$2({}, prevState, {
|
|
65645
65645
|
preferencePanel: preferencePanelToExport
|
|
65646
65646
|
});
|
|
65647
65647
|
}, [apiRef, (_a3 = props.initialState) == null ? void 0 : _a3.preferencePanel]);
|
|
65648
65648
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65649
65649
|
const preferencePanel = context2.stateToRestore.preferencePanel;
|
|
65650
65650
|
if (preferencePanel != null) {
|
|
65651
|
-
apiRef.current.setState((state) => _extends$
|
|
65651
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
65652
65652
|
preferencePanel
|
|
65653
65653
|
}));
|
|
65654
65654
|
}
|
|
@@ -65706,7 +65706,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65706
65706
|
if (params2.cellMode === GridCellModes.Edit) {
|
|
65707
65707
|
return;
|
|
65708
65708
|
}
|
|
65709
|
-
const newParams = _extends$
|
|
65709
|
+
const newParams = _extends$2({}, params2, {
|
|
65710
65710
|
reason: GridCellEditStartReasons.cellDoubleClick
|
|
65711
65711
|
});
|
|
65712
65712
|
apiRef.current.publishEvent("cellEditStart", newParams, event2);
|
|
@@ -65718,7 +65718,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65718
65718
|
if (apiRef.current.getCellMode(params2.id, params2.field) === GridCellModes.View) {
|
|
65719
65719
|
return;
|
|
65720
65720
|
}
|
|
65721
|
-
const newParams = _extends$
|
|
65721
|
+
const newParams = _extends$2({}, params2, {
|
|
65722
65722
|
reason: GridCellEditStopReasons.cellFocusOut
|
|
65723
65723
|
});
|
|
65724
65724
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -65738,7 +65738,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65738
65738
|
event2.preventDefault();
|
|
65739
65739
|
}
|
|
65740
65740
|
if (reason) {
|
|
65741
|
-
const newParams = _extends$
|
|
65741
|
+
const newParams = _extends$2({}, params2, {
|
|
65742
65742
|
reason
|
|
65743
65743
|
});
|
|
65744
65744
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -65763,7 +65763,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65763
65763
|
reason = GridCellEditStartReasons.deleteKeyDown;
|
|
65764
65764
|
}
|
|
65765
65765
|
if (reason) {
|
|
65766
|
-
const newParams = _extends$
|
|
65766
|
+
const newParams = _extends$2({}, params2, {
|
|
65767
65767
|
reason,
|
|
65768
65768
|
key: event2.key
|
|
65769
65769
|
});
|
|
@@ -65850,10 +65850,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65850
65850
|
apiRef.current.publishEvent("cellModesModelChange", newModel);
|
|
65851
65851
|
});
|
|
65852
65852
|
const updateFieldInCellModesModel = React.useCallback((id2, field2, newProps) => {
|
|
65853
|
-
const newModel = _extends$
|
|
65853
|
+
const newModel = _extends$2({}, cellModesModelRef.current);
|
|
65854
65854
|
if (newProps !== null) {
|
|
65855
|
-
newModel[id2] = _extends$
|
|
65856
|
-
[field2]: _extends$
|
|
65855
|
+
newModel[id2] = _extends$2({}, newModel[id2], {
|
|
65856
|
+
[field2]: _extends$2({}, newProps)
|
|
65857
65857
|
});
|
|
65858
65858
|
} else {
|
|
65859
65859
|
const _newModel$id = newModel[id2], otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field2].map(toPropertyKey));
|
|
@@ -65866,10 +65866,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65866
65866
|
}, [updateCellModesModel]);
|
|
65867
65867
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
65868
65868
|
apiRef.current.setState((state) => {
|
|
65869
|
-
const newEditingState = _extends$
|
|
65869
|
+
const newEditingState = _extends$2({}, state.editRows);
|
|
65870
65870
|
if (newProps !== null) {
|
|
65871
|
-
newEditingState[id2] = _extends$
|
|
65872
|
-
[field2]: _extends$
|
|
65871
|
+
newEditingState[id2] = _extends$2({}, newEditingState[id2], {
|
|
65872
|
+
[field2]: _extends$2({}, newProps)
|
|
65873
65873
|
});
|
|
65874
65874
|
} else {
|
|
65875
65875
|
delete newEditingState[id2][field2];
|
|
@@ -65877,7 +65877,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65877
65877
|
delete newEditingState[id2];
|
|
65878
65878
|
}
|
|
65879
65879
|
}
|
|
65880
|
-
return _extends$
|
|
65880
|
+
return _extends$2({}, state, {
|
|
65881
65881
|
editRows: newEditingState
|
|
65882
65882
|
});
|
|
65883
65883
|
});
|
|
@@ -65889,7 +65889,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65889
65889
|
} = params2, other = _objectWithoutPropertiesLoose(params2, _excluded$6);
|
|
65890
65890
|
throwIfNotEditable(id2, field2);
|
|
65891
65891
|
throwIfNotInMode(id2, field2, GridCellModes.View);
|
|
65892
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
65892
|
+
updateFieldInCellModesModel(id2, field2, _extends$2({
|
|
65893
65893
|
mode: GridCellModes.Edit
|
|
65894
65894
|
}, other));
|
|
65895
65895
|
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -65925,7 +65925,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65925
65925
|
}));
|
|
65926
65926
|
if (apiRef.current.getCellMode(id2, field2) === GridCellModes.Edit) {
|
|
65927
65927
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
65928
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
65928
|
+
updateOrDeleteFieldState(id2, field2, _extends$2({}, newProps, {
|
|
65929
65929
|
value: editingState[id2][field2].value,
|
|
65930
65930
|
isProcessingProps: false
|
|
65931
65931
|
}));
|
|
@@ -65938,7 +65938,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65938
65938
|
field: field2
|
|
65939
65939
|
} = params2, other = _objectWithoutPropertiesLoose(params2, _excluded2$2);
|
|
65940
65940
|
throwIfNotInMode(id2, field2, GridCellModes.Edit);
|
|
65941
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
65941
|
+
updateFieldInCellModesModel(id2, field2, _extends$2({
|
|
65942
65942
|
mode: GridCellModes.View
|
|
65943
65943
|
}, other));
|
|
65944
65944
|
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -66021,13 +66021,13 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
66021
66021
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
66022
66022
|
}
|
|
66023
66023
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
66024
|
-
let newProps = _extends$
|
|
66024
|
+
let newProps = _extends$2({}, editingState[id2][field2], {
|
|
66025
66025
|
value: parsedValue,
|
|
66026
66026
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
66027
66027
|
});
|
|
66028
66028
|
if (column2.preProcessEditCellProps) {
|
|
66029
66029
|
const hasChanged = value2 !== editingState[id2][field2].value;
|
|
66030
|
-
newProps = _extends$
|
|
66030
|
+
newProps = _extends$2({}, newProps, {
|
|
66031
66031
|
isProcessingProps: true
|
|
66032
66032
|
});
|
|
66033
66033
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -66042,7 +66042,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
66042
66042
|
return false;
|
|
66043
66043
|
}
|
|
66044
66044
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
66045
|
-
newProps = _extends$
|
|
66045
|
+
newProps = _extends$2({}, newProps, {
|
|
66046
66046
|
isProcessingProps: false
|
|
66047
66047
|
});
|
|
66048
66048
|
newProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -66060,7 +66060,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
66060
66060
|
const {
|
|
66061
66061
|
value: value2
|
|
66062
66062
|
} = editingState[id2][field2];
|
|
66063
|
-
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$
|
|
66063
|
+
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$2({}, row, {
|
|
66064
66064
|
[field2]: value2
|
|
66065
66065
|
});
|
|
66066
66066
|
}, [apiRef]);
|
|
@@ -66090,12 +66090,12 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
66090
66090
|
const prevMode = ((_b2 = (_a3 = copyOfPrevCellModes[id2]) == null ? void 0 : _a3[field2]) == null ? void 0 : _b2.mode) || GridCellModes.View;
|
|
66091
66091
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
66092
66092
|
if (params2.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
|
|
66093
|
-
updateStateToStartCellEditMode(_extends$
|
|
66093
|
+
updateStateToStartCellEditMode(_extends$2({
|
|
66094
66094
|
id: originalId,
|
|
66095
66095
|
field: field2
|
|
66096
66096
|
}, params2));
|
|
66097
66097
|
} else if (params2.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
|
|
66098
|
-
updateStateToStopCellEditMode(_extends$
|
|
66098
|
+
updateStateToStopCellEditMode(_extends$2({
|
|
66099
66099
|
id: originalId,
|
|
66100
66100
|
field: field2
|
|
66101
66101
|
}, params2));
|
|
@@ -66146,7 +66146,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66146
66146
|
return;
|
|
66147
66147
|
}
|
|
66148
66148
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
66149
|
-
const newParams = _extends$
|
|
66149
|
+
const newParams = _extends$2({}, rowParams, {
|
|
66150
66150
|
field: params2.field,
|
|
66151
66151
|
reason: GridRowEditStartReasons.cellDoubleClick
|
|
66152
66152
|
});
|
|
@@ -66176,7 +66176,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66176
66176
|
return;
|
|
66177
66177
|
}
|
|
66178
66178
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
66179
|
-
const newParams = _extends$
|
|
66179
|
+
const newParams = _extends$2({}, rowParams, {
|
|
66180
66180
|
field: params2.field,
|
|
66181
66181
|
reason: GridRowEditStopReasons.rowFocusOut
|
|
66182
66182
|
});
|
|
@@ -66225,7 +66225,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66225
66225
|
if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params2.id)) {
|
|
66226
66226
|
return;
|
|
66227
66227
|
}
|
|
66228
|
-
const newParams = _extends$
|
|
66228
|
+
const newParams = _extends$2({}, apiRef.current.getRowParams(params2.id), {
|
|
66229
66229
|
reason,
|
|
66230
66230
|
field: params2.field
|
|
66231
66231
|
});
|
|
@@ -66252,7 +66252,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66252
66252
|
}
|
|
66253
66253
|
if (reason) {
|
|
66254
66254
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
66255
|
-
const newParams = _extends$
|
|
66255
|
+
const newParams = _extends$2({}, rowParams, {
|
|
66256
66256
|
field: params2.field,
|
|
66257
66257
|
reason
|
|
66258
66258
|
});
|
|
@@ -66328,9 +66328,9 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66328
66328
|
apiRef.current.publishEvent("rowModesModelChange", newModel);
|
|
66329
66329
|
});
|
|
66330
66330
|
const updateRowInRowModesModel = React.useCallback((id2, newProps) => {
|
|
66331
|
-
const newModel = _extends$
|
|
66331
|
+
const newModel = _extends$2({}, rowModesModelRef.current);
|
|
66332
66332
|
if (newProps !== null) {
|
|
66333
|
-
newModel[id2] = _extends$
|
|
66333
|
+
newModel[id2] = _extends$2({}, newProps);
|
|
66334
66334
|
} else {
|
|
66335
66335
|
delete newModel[id2];
|
|
66336
66336
|
}
|
|
@@ -66338,23 +66338,23 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66338
66338
|
}, [updateRowModesModel]);
|
|
66339
66339
|
const updateOrDeleteRowState = React.useCallback((id2, newProps) => {
|
|
66340
66340
|
apiRef.current.setState((state) => {
|
|
66341
|
-
const newEditingState = _extends$
|
|
66341
|
+
const newEditingState = _extends$2({}, state.editRows);
|
|
66342
66342
|
if (newProps !== null) {
|
|
66343
66343
|
newEditingState[id2] = newProps;
|
|
66344
66344
|
} else {
|
|
66345
66345
|
delete newEditingState[id2];
|
|
66346
66346
|
}
|
|
66347
|
-
return _extends$
|
|
66347
|
+
return _extends$2({}, state, {
|
|
66348
66348
|
editRows: newEditingState
|
|
66349
66349
|
});
|
|
66350
66350
|
});
|
|
66351
66351
|
}, [apiRef]);
|
|
66352
66352
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
66353
66353
|
apiRef.current.setState((state) => {
|
|
66354
|
-
const newEditingState = _extends$
|
|
66354
|
+
const newEditingState = _extends$2({}, state.editRows);
|
|
66355
66355
|
if (newProps !== null) {
|
|
66356
|
-
newEditingState[id2] = _extends$
|
|
66357
|
-
[field2]: _extends$
|
|
66356
|
+
newEditingState[id2] = _extends$2({}, newEditingState[id2], {
|
|
66357
|
+
[field2]: _extends$2({}, newProps)
|
|
66358
66358
|
});
|
|
66359
66359
|
} else {
|
|
66360
66360
|
delete newEditingState[id2][field2];
|
|
@@ -66362,7 +66362,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66362
66362
|
delete newEditingState[id2];
|
|
66363
66363
|
}
|
|
66364
66364
|
}
|
|
66365
|
-
return _extends$
|
|
66365
|
+
return _extends$2({}, state, {
|
|
66366
66366
|
editRows: newEditingState
|
|
66367
66367
|
});
|
|
66368
66368
|
});
|
|
@@ -66372,7 +66372,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66372
66372
|
id: id2
|
|
66373
66373
|
} = params2, other = _objectWithoutPropertiesLoose(params2, _excluded$5);
|
|
66374
66374
|
throwIfNotInMode(id2, GridRowModes.View);
|
|
66375
|
-
updateRowInRowModesModel(id2, _extends$
|
|
66375
|
+
updateRowInRowModesModel(id2, _extends$2({
|
|
66376
66376
|
mode: GridRowModes.Edit
|
|
66377
66377
|
}, other));
|
|
66378
66378
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -66423,7 +66423,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66423
66423
|
})).then((processedProps) => {
|
|
66424
66424
|
if (apiRef.current.getRowMode(id2) === GridRowModes.Edit) {
|
|
66425
66425
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
66426
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
66426
|
+
updateOrDeleteFieldState(id2, field2, _extends$2({}, processedProps, {
|
|
66427
66427
|
value: editingState[id2][field2].value,
|
|
66428
66428
|
isProcessingProps: false
|
|
66429
66429
|
}));
|
|
@@ -66436,7 +66436,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66436
66436
|
id: id2
|
|
66437
66437
|
} = params2, other = _objectWithoutPropertiesLoose(params2, _excluded2$1);
|
|
66438
66438
|
throwIfNotInMode(id2, GridRowModes.Edit);
|
|
66439
|
-
updateRowInRowModesModel(id2, _extends$
|
|
66439
|
+
updateRowInRowModesModel(id2, _extends$2({
|
|
66440
66440
|
mode: GridRowModes.View
|
|
66441
66441
|
}, other));
|
|
66442
66442
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -66520,7 +66520,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66520
66520
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
66521
66521
|
}
|
|
66522
66522
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
66523
|
-
let newProps = _extends$
|
|
66523
|
+
let newProps = _extends$2({}, editingState[id2][field2], {
|
|
66524
66524
|
value: parsedValue,
|
|
66525
66525
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
66526
66526
|
});
|
|
@@ -66531,7 +66531,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66531
66531
|
const promises = [];
|
|
66532
66532
|
if (column2.preProcessEditCellProps) {
|
|
66533
66533
|
const hasChanged = newProps.value !== editingState[id2][field2].value;
|
|
66534
|
-
newProps = _extends$
|
|
66534
|
+
newProps = _extends$2({}, newProps, {
|
|
66535
66535
|
isProcessingProps: true
|
|
66536
66536
|
});
|
|
66537
66537
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -66548,7 +66548,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66548
66548
|
return;
|
|
66549
66549
|
}
|
|
66550
66550
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
66551
|
-
processedProps = _extends$
|
|
66551
|
+
processedProps = _extends$2({}, processedProps, {
|
|
66552
66552
|
isProcessingProps: false
|
|
66553
66553
|
});
|
|
66554
66554
|
processedProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -66564,7 +66564,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66564
66564
|
if (!fieldColumn.preProcessEditCellProps) {
|
|
66565
66565
|
return;
|
|
66566
66566
|
}
|
|
66567
|
-
fieldProps = _extends$
|
|
66567
|
+
fieldProps = _extends$2({}, fieldProps, {
|
|
66568
66568
|
isProcessingProps: true
|
|
66569
66569
|
});
|
|
66570
66570
|
updateOrDeleteFieldState(id2, thisField, fieldProps);
|
|
@@ -66581,7 +66581,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66581
66581
|
resolve2(false);
|
|
66582
66582
|
return;
|
|
66583
66583
|
}
|
|
66584
|
-
processedProps = _extends$
|
|
66584
|
+
processedProps = _extends$2({}, processedProps, {
|
|
66585
66585
|
isProcessingProps: false
|
|
66586
66586
|
});
|
|
66587
66587
|
updateOrDeleteFieldState(id2, thisField, processedProps);
|
|
@@ -66604,7 +66604,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66604
66604
|
if (!editingState[id2]) {
|
|
66605
66605
|
return apiRef.current.getRow(id2);
|
|
66606
66606
|
}
|
|
66607
|
-
let rowUpdate = _extends$
|
|
66607
|
+
let rowUpdate = _extends$2({}, prevRowValuesLookup.current[id2], row);
|
|
66608
66608
|
Object.entries(editingState[id2]).forEach(([field2, fieldProps]) => {
|
|
66609
66609
|
const column2 = apiRef.current.getColumn(field2);
|
|
66610
66610
|
if (column2 == null ? void 0 : column2.valueSetter) {
|
|
@@ -66644,18 +66644,18 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66644
66644
|
const prevMode = ((_a3 = copyOfPrevRowModesModel[id2]) == null ? void 0 : _a3.mode) || GridRowModes.View;
|
|
66645
66645
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
66646
66646
|
if (params2.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
|
|
66647
|
-
updateStateToStartRowEditMode(_extends$
|
|
66647
|
+
updateStateToStartRowEditMode(_extends$2({
|
|
66648
66648
|
id: originalId
|
|
66649
66649
|
}, params2));
|
|
66650
66650
|
} else if (params2.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
|
|
66651
|
-
updateStateToStopRowEditMode(_extends$
|
|
66651
|
+
updateStateToStopRowEditMode(_extends$2({
|
|
66652
66652
|
id: originalId
|
|
66653
66653
|
}, params2));
|
|
66654
66654
|
}
|
|
66655
66655
|
});
|
|
66656
66656
|
}, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
|
|
66657
66657
|
};
|
|
66658
|
-
const editingStateInitializer = (state) => _extends$
|
|
66658
|
+
const editingStateInitializer = (state) => _extends$2({}, state, {
|
|
66659
66659
|
editRows: {}
|
|
66660
66660
|
});
|
|
66661
66661
|
const useGridEditing = (apiRef, props) => {
|
|
@@ -66774,7 +66774,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
|
|
|
66774
66774
|
loading: props.loading,
|
|
66775
66775
|
rowCount: props.rowCount
|
|
66776
66776
|
});
|
|
66777
|
-
return _extends$
|
|
66777
|
+
return _extends$2({}, state, {
|
|
66778
66778
|
rows: getRowsStateFromCache({
|
|
66779
66779
|
apiRef,
|
|
66780
66780
|
rowCountProp: props.rowCount,
|
|
@@ -66815,7 +66815,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
66815
66815
|
}) => {
|
|
66816
66816
|
const run2 = () => {
|
|
66817
66817
|
lastUpdateMs.current = Date.now();
|
|
66818
|
-
apiRef.current.setState((state) => _extends$
|
|
66818
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
66819
66819
|
rows: getRowsStateFromCache({
|
|
66820
66820
|
apiRef,
|
|
66821
66821
|
rowCountProp: props.rowCount,
|
|
@@ -66888,8 +66888,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
66888
66888
|
return;
|
|
66889
66889
|
}
|
|
66890
66890
|
logger2.debug(`Setting loading to ${loading}`);
|
|
66891
|
-
apiRef.current.setState((state) => _extends$
|
|
66892
|
-
rows: _extends$
|
|
66891
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
66892
|
+
rows: _extends$2({}, state.rows, {
|
|
66893
66893
|
loading
|
|
66894
66894
|
})
|
|
66895
66895
|
}));
|
|
@@ -66916,13 +66916,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
66916
66916
|
if (currentNode.type !== "group") {
|
|
66917
66917
|
throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
|
|
66918
66918
|
}
|
|
66919
|
-
const newNode = _extends$
|
|
66919
|
+
const newNode = _extends$2({}, currentNode, {
|
|
66920
66920
|
childrenExpanded: isExpanded
|
|
66921
66921
|
});
|
|
66922
66922
|
apiRef.current.setState((state) => {
|
|
66923
|
-
return _extends$
|
|
66924
|
-
rows: _extends$
|
|
66925
|
-
tree: _extends$
|
|
66923
|
+
return _extends$2({}, state, {
|
|
66924
|
+
rows: _extends$2({}, state.rows, {
|
|
66925
|
+
tree: _extends$2({}, state.rows.tree, {
|
|
66926
66926
|
[id2]: newNode
|
|
66927
66927
|
})
|
|
66928
66928
|
})
|
|
@@ -66983,10 +66983,10 @@ const useGridRows = (apiRef, props) => {
|
|
|
66983
66983
|
logger2.debug(`Moving row ${rowId} to index ${targetIndex}`);
|
|
66984
66984
|
const updatedRows = [...allRows];
|
|
66985
66985
|
updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
|
|
66986
|
-
return _extends$
|
|
66987
|
-
rows: _extends$
|
|
66988
|
-
tree: _extends$
|
|
66989
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
66986
|
+
return _extends$2({}, state, {
|
|
66987
|
+
rows: _extends$2({}, state.rows, {
|
|
66988
|
+
tree: _extends$2({}, state.rows.tree, {
|
|
66989
|
+
[GRID_ROOT_GROUP_ID]: _extends$2({}, group2, {
|
|
66990
66990
|
children: updatedRows
|
|
66991
66991
|
})
|
|
66992
66992
|
})
|
|
@@ -67006,8 +67006,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
67006
67006
|
if (treeDepth > 1) {
|
|
67007
67007
|
throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
|
|
67008
67008
|
}
|
|
67009
|
-
const tree2 = _extends$
|
|
67010
|
-
const dataRowIdToModelLookup = _extends$
|
|
67009
|
+
const tree2 = _extends$2({}, gridRowTreeSelector(apiRef));
|
|
67010
|
+
const dataRowIdToModelLookup = _extends$2({}, gridRowsLookupSelector(apiRef));
|
|
67011
67011
|
const rootGroup = tree2[GRID_ROOT_GROUP_ID];
|
|
67012
67012
|
const rootGroupChildren = [...rootGroup.children];
|
|
67013
67013
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -67030,7 +67030,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
67030
67030
|
tree2[rowId] = rowTreeNodeConfig;
|
|
67031
67031
|
seenIds.add(rowId);
|
|
67032
67032
|
}
|
|
67033
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
67033
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
|
|
67034
67034
|
children: rootGroupChildren
|
|
67035
67035
|
});
|
|
67036
67036
|
const dataRowIds = rootGroupChildren.filter((childId) => {
|
|
@@ -67038,8 +67038,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
67038
67038
|
return ((_a3 = tree2[childId]) == null ? void 0 : _a3.type) === "leaf";
|
|
67039
67039
|
});
|
|
67040
67040
|
apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
|
|
67041
|
-
apiRef.current.setState((state) => _extends$
|
|
67042
|
-
rows: _extends$
|
|
67041
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
67042
|
+
rows: _extends$2({}, state.rows, {
|
|
67043
67043
|
loading: props.loading,
|
|
67044
67044
|
totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
|
|
67045
67045
|
dataRowIdToModelLookup,
|
|
@@ -67074,7 +67074,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
67074
67074
|
logger2.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
67075
67075
|
let cache2;
|
|
67076
67076
|
if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
|
|
67077
|
-
cache2 = _extends$
|
|
67077
|
+
cache2 = _extends$2({}, apiRef.current.caches.rows, {
|
|
67078
67078
|
updates: {
|
|
67079
67079
|
type: "full",
|
|
67080
67080
|
rows: gridDataRowIdsSelector(apiRef)
|
|
@@ -67118,8 +67118,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
67118
67118
|
dataRowIds: gridDataRowIdsSelector(apiRef),
|
|
67119
67119
|
dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
|
|
67120
67120
|
});
|
|
67121
|
-
return _extends$
|
|
67122
|
-
rows: _extends$
|
|
67121
|
+
return _extends$2({}, state, {
|
|
67122
|
+
rows: _extends$2({}, state.rows, response, {
|
|
67123
67123
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
67124
67124
|
tree: response.tree,
|
|
67125
67125
|
rowCountProp: props.rowCount
|
|
@@ -67150,16 +67150,16 @@ const useGridRows = (apiRef, props) => {
|
|
|
67150
67150
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
67151
67151
|
if (areNewRowsAlreadyInState) {
|
|
67152
67152
|
if (!isNewLoadingAlreadyInState) {
|
|
67153
|
-
apiRef.current.setState((state) => _extends$
|
|
67154
|
-
rows: _extends$
|
|
67153
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
67154
|
+
rows: _extends$2({}, state.rows, {
|
|
67155
67155
|
loading: props.loading
|
|
67156
67156
|
})
|
|
67157
67157
|
}));
|
|
67158
67158
|
apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
|
|
67159
67159
|
}
|
|
67160
67160
|
if (!isNewRowCountAlreadyInState) {
|
|
67161
|
-
apiRef.current.setState((state) => _extends$
|
|
67162
|
-
rows: _extends$
|
|
67161
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
67162
|
+
rows: _extends$2({}, state.rows, {
|
|
67163
67163
|
totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
|
|
67164
67164
|
totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
|
|
67165
67165
|
})
|
|
@@ -67184,7 +67184,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
67184
67184
|
};
|
|
67185
67185
|
const createFlatRowTree = (rows) => {
|
|
67186
67186
|
const tree2 = {
|
|
67187
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
67187
|
+
[GRID_ROOT_GROUP_ID]: _extends$2({}, buildRootGroup(), {
|
|
67188
67188
|
children: rows
|
|
67189
67189
|
})
|
|
67190
67190
|
};
|
|
@@ -67211,7 +67211,7 @@ const updateFlatRowTree = ({
|
|
|
67211
67211
|
previousTree,
|
|
67212
67212
|
actions
|
|
67213
67213
|
}) => {
|
|
67214
|
-
const tree2 = _extends$
|
|
67214
|
+
const tree2 = _extends$2({}, previousTree);
|
|
67215
67215
|
const idsToRemoveFromRootGroup = {};
|
|
67216
67216
|
for (let i2 = 0; i2 < actions.remove.length; i2 += 1) {
|
|
67217
67217
|
const idToDelete = actions.remove[i2];
|
|
@@ -67233,7 +67233,7 @@ const updateFlatRowTree = ({
|
|
|
67233
67233
|
if (Object.values(idsToRemoveFromRootGroup).length) {
|
|
67234
67234
|
rootGroupChildren = rootGroupChildren.filter((id2) => !idsToRemoveFromRootGroup[id2]);
|
|
67235
67235
|
}
|
|
67236
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
67236
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$2({}, rootGroup, {
|
|
67237
67237
|
children: rootGroupChildren
|
|
67238
67238
|
});
|
|
67239
67239
|
return {
|
|
@@ -67385,7 +67385,7 @@ const emptyModel = {
|
|
|
67385
67385
|
type: "include",
|
|
67386
67386
|
ids: /* @__PURE__ */ new Set()
|
|
67387
67387
|
};
|
|
67388
|
-
const rowSelectionStateInitializer = (state, props) => _extends$
|
|
67388
|
+
const rowSelectionStateInitializer = (state, props) => _extends$2({}, state, {
|
|
67389
67389
|
rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
|
|
67390
67390
|
});
|
|
67391
67391
|
const useGridRowSelection = (apiRef, props) => {
|
|
@@ -67450,7 +67450,7 @@ const useGridRowSelection = (apiRef, props) => {
|
|
|
67450
67450
|
const currentModel = gridRowSelectionStateSelector(apiRef);
|
|
67451
67451
|
if (currentModel !== model) {
|
|
67452
67452
|
logger2.debug(`Setting selection model`);
|
|
67453
|
-
apiRef.current.setState((state) => _extends$
|
|
67453
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
67454
67454
|
rowSelection: props.rowSelection ? model : emptyModel
|
|
67455
67455
|
}));
|
|
67456
67456
|
}
|
|
@@ -67919,7 +67919,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67919
67919
|
};
|
|
67920
67920
|
const classes2 = useUtilityClasses$7(ownerState);
|
|
67921
67921
|
const updateSelectionColumn = React.useCallback((columnsState) => {
|
|
67922
|
-
const selectionColumn = _extends$
|
|
67922
|
+
const selectionColumn = _extends$2({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
|
|
67923
67923
|
cellClassName: classes2.cellCheckbox,
|
|
67924
67924
|
headerClassName: classes2.columnHeaderCheckbox,
|
|
67925
67925
|
headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
|
|
@@ -67933,7 +67933,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67933
67933
|
delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
|
|
67934
67934
|
columnsState.orderedFields = columnsState.orderedFields.filter((field2) => field2 !== GRID_CHECKBOX_SELECTION_FIELD);
|
|
67935
67935
|
} else if (shouldHaveSelectionColumn && haveSelectionColumn) {
|
|
67936
|
-
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$
|
|
67936
|
+
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$2({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
|
|
67937
67937
|
}
|
|
67938
67938
|
return columnsState;
|
|
67939
67939
|
}, [apiRef, classes2, props.checkboxSelection]);
|
|
@@ -67942,7 +67942,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67942
67942
|
const sortingStateInitializer = (state, props) => {
|
|
67943
67943
|
var _a3, _b2;
|
|
67944
67944
|
const sortModel = props.sortModel ?? ((_b2 = (_a3 = props.initialState) == null ? void 0 : _a3.sorting) == null ? void 0 : _b2.sortModel) ?? [];
|
|
67945
|
-
return _extends$
|
|
67945
|
+
return _extends$2({}, state, {
|
|
67946
67946
|
sorting: {
|
|
67947
67947
|
sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
|
|
67948
67948
|
sortedRows: []
|
|
@@ -67979,7 +67979,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67979
67979
|
const existing = sortModel.find((c2) => c2.field === col.field);
|
|
67980
67980
|
if (existing) {
|
|
67981
67981
|
const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
|
|
67982
|
-
return nextSort === void 0 ? void 0 : _extends$
|
|
67982
|
+
return nextSort === void 0 ? void 0 : _extends$2({}, existing, {
|
|
67983
67983
|
sort: nextSort
|
|
67984
67984
|
});
|
|
67985
67985
|
}
|
|
@@ -68002,8 +68002,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
68002
68002
|
apiRef.current.setState((state) => {
|
|
68003
68003
|
if (props.sortingMode === "server") {
|
|
68004
68004
|
logger2.debug("Skipping sorting rows as sortingMode = server");
|
|
68005
|
-
return _extends$
|
|
68006
|
-
sorting: _extends$
|
|
68005
|
+
return _extends$2({}, state, {
|
|
68006
|
+
sorting: _extends$2({}, state.sorting, {
|
|
68007
68007
|
sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
|
|
68008
68008
|
})
|
|
68009
68009
|
});
|
|
@@ -68013,8 +68013,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
68013
68013
|
const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
|
|
68014
68014
|
sortRowList
|
|
68015
68015
|
});
|
|
68016
|
-
return _extends$
|
|
68017
|
-
sorting: _extends$
|
|
68016
|
+
return _extends$2({}, state, {
|
|
68017
|
+
sorting: _extends$2({}, state.sorting, {
|
|
68018
68018
|
sortedRows
|
|
68019
68019
|
})
|
|
68020
68020
|
});
|
|
@@ -68070,7 +68070,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
68070
68070
|
if (!shouldExportSortModel) {
|
|
68071
68071
|
return prevState;
|
|
68072
68072
|
}
|
|
68073
|
-
return _extends$
|
|
68073
|
+
return _extends$2({}, prevState, {
|
|
68074
68074
|
sorting: {
|
|
68075
68075
|
sortModel: sortModelToExport
|
|
68076
68076
|
}
|
|
@@ -68083,7 +68083,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
68083
68083
|
return params2;
|
|
68084
68084
|
}
|
|
68085
68085
|
apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
|
|
68086
|
-
return _extends$
|
|
68086
|
+
return _extends$2({}, params2, {
|
|
68087
68087
|
callbacks: [...params2.callbacks, apiRef.current.applySorting]
|
|
68088
68088
|
});
|
|
68089
68089
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
@@ -68380,8 +68380,8 @@ const EMPTY_DIMENSIONS = {
|
|
|
68380
68380
|
const dimensionsStateInitializer = (state, props, apiRef) => {
|
|
68381
68381
|
const dimensions = EMPTY_DIMENSIONS;
|
|
68382
68382
|
const density2 = gridDensityFactorSelector(apiRef);
|
|
68383
|
-
return _extends$
|
|
68384
|
-
dimensions: _extends$
|
|
68383
|
+
return _extends$2({}, state, {
|
|
68384
|
+
dimensions: _extends$2({}, dimensions, getStaticDimensions(props, apiRef, density2, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
|
|
68385
68385
|
});
|
|
68386
68386
|
};
|
|
68387
68387
|
const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
|
|
@@ -68410,7 +68410,7 @@ function useGridDimensions(apiRef, props) {
|
|
|
68410
68410
|
} = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
|
|
68411
68411
|
const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
|
|
68412
68412
|
const setDimensions = React.useCallback((dimensions) => {
|
|
68413
|
-
apiRef.current.setState((state) => _extends$
|
|
68413
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
68414
68414
|
dimensions
|
|
68415
68415
|
}));
|
|
68416
68416
|
if (apiRef.current.rootElementRef.current) {
|
|
@@ -68635,7 +68635,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
|
|
|
68635
68635
|
const dataRowCount = gridRowCountSelector(apiRef);
|
|
68636
68636
|
const pagination = gridPaginationSelector(apiRef);
|
|
68637
68637
|
const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
|
|
68638
|
-
return _extends$
|
|
68638
|
+
return _extends$2({}, state, {
|
|
68639
68639
|
rowsMeta: {
|
|
68640
68640
|
currentPageTotalHeight: rowCount * baseRowHeight,
|
|
68641
68641
|
positions: Array.from({
|
|
@@ -68682,12 +68682,12 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68682
68682
|
entry2.content = baseRowHeight;
|
|
68683
68683
|
entry2.needsFirstMeasurement = false;
|
|
68684
68684
|
} else {
|
|
68685
|
-
const rowHeightFromUser = getRowHeightProp(_extends$
|
|
68685
|
+
const rowHeightFromUser = getRowHeightProp(_extends$2({}, row, {
|
|
68686
68686
|
densityFactor
|
|
68687
68687
|
}));
|
|
68688
68688
|
if (rowHeightFromUser === "auto") {
|
|
68689
68689
|
if (entry2.needsFirstMeasurement) {
|
|
68690
|
-
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$
|
|
68690
|
+
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$2({}, row, {
|
|
68691
68691
|
densityFactor
|
|
68692
68692
|
})) : baseRowHeight;
|
|
68693
68693
|
entry2.content = estimatedRowHeight ?? baseRowHeight;
|
|
@@ -68702,7 +68702,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68702
68702
|
}
|
|
68703
68703
|
if (getRowSpacing) {
|
|
68704
68704
|
const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
68705
|
-
const spacing2 = getRowSpacing(_extends$
|
|
68705
|
+
const spacing2 = getRowSpacing(_extends$2({}, row, {
|
|
68706
68706
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
68707
68707
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
68708
68708
|
indexRelativeToCurrentPage
|
|
@@ -68744,7 +68744,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68744
68744
|
pinnedBottomRowsTotalHeight
|
|
68745
68745
|
};
|
|
68746
68746
|
apiRef.current.setState((state) => {
|
|
68747
|
-
return _extends$
|
|
68747
|
+
return _extends$2({}, state, {
|
|
68748
68748
|
rowsMeta
|
|
68749
68749
|
});
|
|
68750
68750
|
});
|
|
@@ -69027,18 +69027,18 @@ const createGroupLookup = (columnGroupingModel) => {
|
|
|
69027
69027
|
console.warn(`MUI X: group groupId=${groupId} has no children.`);
|
|
69028
69028
|
}
|
|
69029
69029
|
}
|
|
69030
|
-
const groupParam = _extends$
|
|
69030
|
+
const groupParam = _extends$2({}, other, {
|
|
69031
69031
|
groupId
|
|
69032
69032
|
});
|
|
69033
69033
|
const subTreeLookup = createGroupLookup(children2);
|
|
69034
69034
|
if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
|
|
69035
69035
|
throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
|
|
69036
69036
|
}
|
|
69037
|
-
groupLookup = _extends$
|
|
69037
|
+
groupLookup = _extends$2({}, groupLookup, subTreeLookup, {
|
|
69038
69038
|
[groupId]: groupParam
|
|
69039
69039
|
});
|
|
69040
69040
|
});
|
|
69041
|
-
return _extends$
|
|
69041
|
+
return _extends$2({}, groupLookup);
|
|
69042
69042
|
};
|
|
69043
69043
|
const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
69044
69044
|
if (!props.columnGroupingModel) {
|
|
@@ -69053,7 +69053,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
|
69053
69053
|
var _a3;
|
|
69054
69054
|
return ((_a3 = unwrappedGroupingModel[field2]) == null ? void 0 : _a3.length) ?? 0;
|
|
69055
69055
|
}));
|
|
69056
|
-
return _extends$
|
|
69056
|
+
return _extends$2({}, state, {
|
|
69057
69057
|
columnGrouping: {
|
|
69058
69058
|
lookup: groupLookup,
|
|
69059
69059
|
unwrappedGroupingModel,
|
|
@@ -69083,8 +69083,8 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
69083
69083
|
const orderedFields = ((_a3 = state.columns) == null ? void 0 : _a3.orderedFields) ?? [];
|
|
69084
69084
|
const pinnedColumns = state.pinnedColumns ?? {};
|
|
69085
69085
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
|
|
69086
|
-
return _extends$
|
|
69087
|
-
columnGrouping: _extends$
|
|
69086
|
+
return _extends$2({}, state, {
|
|
69087
|
+
columnGrouping: _extends$2({}, state.columnGrouping, {
|
|
69088
69088
|
headerStructure: columnGroupsHeaderStructure
|
|
69089
69089
|
})
|
|
69090
69090
|
});
|
|
@@ -69103,7 +69103,7 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
69103
69103
|
return ((_a4 = unwrappedGroupingModel[field2]) == null ? void 0 : _a4.length) ?? 0;
|
|
69104
69104
|
}));
|
|
69105
69105
|
apiRef.current.setState((state) => {
|
|
69106
|
-
return _extends$
|
|
69106
|
+
return _extends$2({}, state, {
|
|
69107
69107
|
columnGrouping: {
|
|
69108
69108
|
lookup: groupLookup,
|
|
69109
69109
|
unwrappedGroupingModel,
|
|
@@ -69253,7 +69253,7 @@ function extractColumnWidths(apiRef, options, columns) {
|
|
|
69253
69253
|
root2.classList.remove(gridClasses.autosizing);
|
|
69254
69254
|
return widthByField;
|
|
69255
69255
|
}
|
|
69256
|
-
const columnResizeStateInitializer = (state) => _extends$
|
|
69256
|
+
const columnResizeStateInitializer = (state) => _extends$2({}, state, {
|
|
69257
69257
|
columnResize: {
|
|
69258
69258
|
resizingColumnField: ""
|
|
69259
69259
|
}
|
|
@@ -69479,15 +69479,15 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69479
69479
|
const handleResizeStart = React.useCallback(({
|
|
69480
69480
|
field: field2
|
|
69481
69481
|
}) => {
|
|
69482
|
-
apiRef.current.setState((state) => _extends$
|
|
69483
|
-
columnResize: _extends$
|
|
69482
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
69483
|
+
columnResize: _extends$2({}, state.columnResize, {
|
|
69484
69484
|
resizingColumnField: field2
|
|
69485
69485
|
})
|
|
69486
69486
|
}));
|
|
69487
69487
|
}, [apiRef]);
|
|
69488
69488
|
const handleResizeStop = React.useCallback(() => {
|
|
69489
|
-
apiRef.current.setState((state) => _extends$
|
|
69490
|
-
columnResize: _extends$
|
|
69489
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
69490
|
+
columnResize: _extends$2({}, state.columnResize, {
|
|
69491
69491
|
resizingColumnField: ""
|
|
69492
69492
|
})
|
|
69493
69493
|
}));
|
|
@@ -69525,7 +69525,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69525
69525
|
if (column2.resizable === false) {
|
|
69526
69526
|
return;
|
|
69527
69527
|
}
|
|
69528
|
-
apiRef.current.autosizeColumns(_extends$
|
|
69528
|
+
apiRef.current.autosizeColumns(_extends$2({}, props.autosizeOptions, {
|
|
69529
69529
|
disableColumnVirtualization: false,
|
|
69530
69530
|
columns: [column2.field]
|
|
69531
69531
|
}));
|
|
@@ -69543,7 +69543,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69543
69543
|
}
|
|
69544
69544
|
isAutosizingRef.current = true;
|
|
69545
69545
|
const state = gridColumnsStateSelector(apiRef);
|
|
69546
|
-
const options = _extends$
|
|
69546
|
+
const options = _extends$2({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
|
|
69547
69547
|
columns: (userOptions == null ? void 0 : userOptions.columns) ?? state.orderedFields
|
|
69548
69548
|
});
|
|
69549
69549
|
options.columns = options.columns.filter((c2) => state.columnVisibilityModel[c2] !== false);
|
|
@@ -69554,7 +69554,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69554
69554
|
await columnVirtualizationDisabled();
|
|
69555
69555
|
}
|
|
69556
69556
|
const widthByField = extractColumnWidths(apiRef, options, columns);
|
|
69557
|
-
const newColumns = columns.map((column2) => _extends$
|
|
69557
|
+
const newColumns = columns.map((column2) => _extends$2({}, column2, {
|
|
69558
69558
|
width: widthByField[column2.field],
|
|
69559
69559
|
computedWidth: widthByField[column2.field],
|
|
69560
69560
|
flex: 0
|
|
@@ -69665,9 +69665,9 @@ const EMPTY_RANGE = {
|
|
|
69665
69665
|
const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
|
|
69666
69666
|
const DEFAULT_ROWS_TO_PROCESS = 20;
|
|
69667
69667
|
const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
|
|
69668
|
-
const spannedCells = resetState ? {} : _extends$
|
|
69669
|
-
const hiddenCells = resetState ? {} : _extends$
|
|
69670
|
-
const hiddenCellOriginMap = resetState ? {} : _extends$
|
|
69668
|
+
const spannedCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.spannedCells);
|
|
69669
|
+
const hiddenCells = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCells);
|
|
69670
|
+
const hiddenCellOriginMap = resetState ? {} : _extends$2({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
|
|
69671
69671
|
if (resetState) {
|
|
69672
69672
|
processedRange = EMPTY_RANGE;
|
|
69673
69673
|
}
|
|
@@ -69781,7 +69781,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
|
|
|
69781
69781
|
const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
69782
69782
|
var _a3;
|
|
69783
69783
|
if (!props.rowSpanning) {
|
|
69784
|
-
return _extends$
|
|
69784
|
+
return _extends$2({}, state, {
|
|
69785
69785
|
rowSpanning: EMPTY_STATE
|
|
69786
69786
|
});
|
|
69787
69787
|
}
|
|
@@ -69791,7 +69791,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
69791
69791
|
const columnsLookup = state.columns.lookup;
|
|
69792
69792
|
const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean((_a3 = state.filter.filterModel.quickFilterValues) == null ? void 0 : _a3.length);
|
|
69793
69793
|
if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
|
|
69794
|
-
return _extends$
|
|
69794
|
+
return _extends$2({}, state, {
|
|
69795
69795
|
rowSpanning: EMPTY_STATE
|
|
69796
69796
|
});
|
|
69797
69797
|
}
|
|
@@ -69806,7 +69806,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
69806
69806
|
hiddenCells,
|
|
69807
69807
|
hiddenCellOriginMap
|
|
69808
69808
|
} = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
|
|
69809
|
-
return _extends$
|
|
69809
|
+
return _extends$2({}, state, {
|
|
69810
69810
|
rowSpanning: {
|
|
69811
69811
|
spannedCells,
|
|
69812
69812
|
hiddenCells,
|
|
@@ -69857,7 +69857,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69857
69857
|
return;
|
|
69858
69858
|
}
|
|
69859
69859
|
apiRef.current.setState((state) => {
|
|
69860
|
-
return _extends$
|
|
69860
|
+
return _extends$2({}, state, {
|
|
69861
69861
|
rowSpanning: {
|
|
69862
69862
|
spannedCells,
|
|
69863
69863
|
hiddenCells,
|
|
@@ -69881,7 +69881,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69881
69881
|
React.useEffect(() => {
|
|
69882
69882
|
if (!props.rowSpanning) {
|
|
69883
69883
|
if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
|
|
69884
|
-
apiRef.current.setState((state) => _extends$
|
|
69884
|
+
apiRef.current.setState((state) => _extends$2({}, state, {
|
|
69885
69885
|
rowSpanning: EMPTY_STATE
|
|
69886
69886
|
}));
|
|
69887
69887
|
}
|
|
@@ -69890,8 +69890,8 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69890
69890
|
}
|
|
69891
69891
|
}, [apiRef, resetRowSpanningState, props.rowSpanning]);
|
|
69892
69892
|
};
|
|
69893
|
-
const listViewStateInitializer = (state, props, apiRef) => _extends$
|
|
69894
|
-
listViewColumn: props.listViewColumn ? _extends$
|
|
69893
|
+
const listViewStateInitializer = (state, props, apiRef) => _extends$2({}, state, {
|
|
69894
|
+
listViewColumn: props.listViewColumn ? _extends$2({}, props.listViewColumn, {
|
|
69895
69895
|
computedWidth: getListColumnWidth(apiRef)
|
|
69896
69896
|
}) : void 0
|
|
69897
69897
|
});
|
|
@@ -69901,8 +69901,8 @@ function useGridListView(apiRef, props) {
|
|
|
69901
69901
|
if (!state.listViewColumn) {
|
|
69902
69902
|
return state;
|
|
69903
69903
|
}
|
|
69904
|
-
return _extends$
|
|
69905
|
-
listViewColumn: _extends$
|
|
69904
|
+
return _extends$2({}, state, {
|
|
69905
|
+
listViewColumn: _extends$2({}, state.listViewColumn, {
|
|
69906
69906
|
computedWidth: getListColumnWidth(apiRef)
|
|
69907
69907
|
})
|
|
69908
69908
|
});
|
|
@@ -69921,8 +69921,8 @@ function useGridListView(apiRef, props) {
|
|
|
69921
69921
|
const listColumn = props.listViewColumn;
|
|
69922
69922
|
if (listColumn) {
|
|
69923
69923
|
apiRef.current.setState((state) => {
|
|
69924
|
-
return _extends$
|
|
69925
|
-
listViewColumn: _extends$
|
|
69924
|
+
return _extends$2({}, state, {
|
|
69925
|
+
listViewColumn: _extends$2({}, listColumn, {
|
|
69926
69926
|
computedWidth: getListColumnWidth(apiRef)
|
|
69927
69927
|
})
|
|
69928
69928
|
});
|
|
@@ -69967,7 +69967,7 @@ class CacheChunkManager {
|
|
|
69967
69967
|
const chunkedKeys = [];
|
|
69968
69968
|
for (let i2 = key2.start; i2 < key2.end; i2 += this.chunkSize) {
|
|
69969
69969
|
const end2 = Math.min(i2 + this.chunkSize - 1, key2.end);
|
|
69970
|
-
chunkedKeys.push(_extends$
|
|
69970
|
+
chunkedKeys.push(_extends$2({}, key2, {
|
|
69971
69971
|
start: i2,
|
|
69972
69972
|
end: end2
|
|
69973
69973
|
}));
|
|
@@ -69980,8 +69980,8 @@ class CacheChunkManager {
|
|
|
69980
69980
|
cacheKeys.forEach((chunkKey) => {
|
|
69981
69981
|
var _a3, _b2, _c2, _d2;
|
|
69982
69982
|
const isLastChunk = chunkKey.end === key2.end;
|
|
69983
|
-
const responseSlice = _extends$
|
|
69984
|
-
pageInfo: _extends$
|
|
69983
|
+
const responseSlice = _extends$2({}, response, {
|
|
69984
|
+
pageInfo: _extends$2({}, response.pageInfo, {
|
|
69985
69985
|
// If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
|
|
69986
69986
|
hasNextPage: ((_a3 = response.pageInfo) == null ? void 0 : _a3.hasNextPage) !== void 0 && !isLastChunk ? true : (_b2 = response.pageInfo) == null ? void 0 : _b2.hasNextPage,
|
|
69987
69987
|
nextCursor: ((_c2 = response.pageInfo) == null ? void 0 : _c2.nextCursor) !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : (_d2 = response.pageInfo) == null ? void 0 : _d2.nextCursor
|
|
@@ -70048,7 +70048,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
|
|
|
70048
70048
|
return;
|
|
70049
70049
|
}
|
|
70050
70050
|
(_c2 = options.clearDataSourceState) == null ? void 0 : _c2.call(options);
|
|
70051
|
-
const fetchParams = _extends$
|
|
70051
|
+
const fetchParams = _extends$2({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params2);
|
|
70052
70052
|
const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
|
|
70053
70053
|
const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
|
|
70054
70054
|
if (responses.every((response) => response !== void 0)) {
|
|
@@ -70292,7 +70292,7 @@ function GridColumnGroupHeader(props) {
|
|
|
70292
70292
|
if (groupId && render) {
|
|
70293
70293
|
headerComponent = render(renderParams);
|
|
70294
70294
|
}
|
|
70295
|
-
const ownerState = _extends$
|
|
70295
|
+
const ownerState = _extends$2({}, props, {
|
|
70296
70296
|
classes: rootProps.classes,
|
|
70297
70297
|
headerAlign,
|
|
70298
70298
|
depth,
|
|
@@ -70326,8 +70326,8 @@ function GridColumnGroupHeader(props) {
|
|
|
70326
70326
|
onBlur: publish("columnGroupHeaderBlur")
|
|
70327
70327
|
}), [publish]);
|
|
70328
70328
|
const headerClassName = typeof group2.headerClassName === "function" ? group2.headerClassName(renderParams) : group2.headerClassName;
|
|
70329
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
70330
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
70329
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$2({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
70330
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$2({
|
|
70331
70331
|
ref: headerCellRef,
|
|
70332
70332
|
classes: classes2,
|
|
70333
70333
|
columnMenuOpen: false,
|
|
@@ -70466,7 +70466,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
70466
70466
|
const sectionLength = renderedColumns.length;
|
|
70467
70467
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
70468
70468
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
|
|
70469
|
-
columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$
|
|
70469
|
+
columns.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$2({}, sortColumnLookup[colDef.field], {
|
|
70470
70470
|
columnMenuOpen: open,
|
|
70471
70471
|
filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
|
|
70472
70472
|
headerHeight,
|
|
@@ -70539,7 +70539,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
70539
70539
|
columnFields
|
|
70540
70540
|
}) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
|
|
70541
70541
|
const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
|
|
70542
|
-
return _extends$
|
|
70542
|
+
return _extends$2({}, groupStructure, {
|
|
70543
70543
|
columnFields: groupStructure.columnFields.filter((field2) => columnVisibility[field2] !== false)
|
|
70544
70544
|
});
|
|
70545
70545
|
}).filter((groupStructure) => groupStructure.columnFields.length > 0);
|
|
@@ -70668,7 +70668,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref2)
|
|
|
70668
70668
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
70669
70669
|
const rootProps = useGridRootProps();
|
|
70670
70670
|
const classes2 = useUtilityClasses$5(rootProps);
|
|
70671
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$
|
|
70671
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$2({
|
|
70672
70672
|
className: clsx(classes2.root, className),
|
|
70673
70673
|
ownerState: rootProps
|
|
70674
70674
|
}, other, {
|
|
@@ -70710,7 +70710,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref2)
|
|
|
70710
70710
|
columnGroupsHeaderStructure,
|
|
70711
70711
|
hasOtherElementInTabSequence
|
|
70712
70712
|
});
|
|
70713
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$
|
|
70713
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$2({}, other, getInnerProps(), {
|
|
70714
70714
|
ref: ref2,
|
|
70715
70715
|
children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
|
|
70716
70716
|
}));
|
|
@@ -70759,7 +70759,7 @@ function GridPinnedRows(_) {
|
|
|
70759
70759
|
const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref2) {
|
|
70760
70760
|
const apiRef = useGridApiContext();
|
|
70761
70761
|
const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
|
|
70762
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
70762
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$2({}, props, {
|
|
70763
70763
|
ref: ref2,
|
|
70764
70764
|
children: noResultsOverlayLabel
|
|
70765
70765
|
}));
|
|
@@ -72284,7 +72284,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
|
|
|
72284
72284
|
const rootProps = useGridRootProps();
|
|
72285
72285
|
const [nextSortDirection] = sortingOrder;
|
|
72286
72286
|
const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
|
|
72287
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
72287
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$2({}, other)) : null;
|
|
72288
72288
|
});
|
|
72289
72289
|
const encoder$1 = new TextEncoder();
|
|
72290
72290
|
let bufferLength = 2 * 1024;
|
|
@@ -72501,7 +72501,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref2) {
|
|
|
72501
72501
|
shrink: true,
|
|
72502
72502
|
variant: "outlined",
|
|
72503
72503
|
children: label2
|
|
72504
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$
|
|
72504
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$2({
|
|
72505
72505
|
id: id2,
|
|
72506
72506
|
labelId,
|
|
72507
72507
|
label: label2,
|
|
@@ -72557,13 +72557,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref2) {
|
|
|
72557
72557
|
const {
|
|
72558
72558
|
estimatedRowCount
|
|
72559
72559
|
} = rootProps;
|
|
72560
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$
|
|
72560
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$2({
|
|
72561
72561
|
component: "div",
|
|
72562
72562
|
onRowsPerPageChange: useEventCallback((event2) => {
|
|
72563
72563
|
onRowsPerPageChange == null ? void 0 : onRowsPerPageChange(Number(event2.target.value));
|
|
72564
72564
|
}),
|
|
72565
72565
|
labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
|
|
72566
|
-
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$
|
|
72566
|
+
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$2({}, params2, {
|
|
72567
72567
|
estimated: estimatedRowCount
|
|
72568
72568
|
})),
|
|
72569
72569
|
getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
|
|
@@ -72575,7 +72575,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref2) {
|
|
|
72575
72575
|
const {
|
|
72576
72576
|
material
|
|
72577
72577
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
72578
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$
|
|
72578
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$2({}, rest, material, {
|
|
72579
72579
|
ref: ref2
|
|
72580
72580
|
}));
|
|
72581
72581
|
});
|
|
@@ -72603,7 +72603,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
72603
72603
|
}
|
|
72604
72604
|
}, [autoFocus]);
|
|
72605
72605
|
if (!label2) {
|
|
72606
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
72606
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
|
|
72607
72607
|
className: clsx(className, material == null ? void 0 : material.className),
|
|
72608
72608
|
inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
|
|
72609
72609
|
ref: handleRef,
|
|
@@ -72612,7 +72612,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
72612
72612
|
}
|
|
72613
72613
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
|
|
72614
72614
|
className,
|
|
72615
|
-
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
72615
|
+
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$2({}, other, material, {
|
|
72616
72616
|
inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
|
|
72617
72617
|
ref: handleRef,
|
|
72618
72618
|
touchRippleRef: rippleRef
|
|
@@ -72625,7 +72625,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
|
|
|
72625
72625
|
const {
|
|
72626
72626
|
material
|
|
72627
72627
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded5);
|
|
72628
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$
|
|
72628
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$2({}, rest, material, {
|
|
72629
72629
|
ref: ref2
|
|
72630
72630
|
}));
|
|
72631
72631
|
});
|
|
@@ -72633,7 +72633,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref2) {
|
|
|
72633
72633
|
const {
|
|
72634
72634
|
material
|
|
72635
72635
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded6);
|
|
72636
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$
|
|
72636
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$2({}, rest, material, {
|
|
72637
72637
|
ref: ref2
|
|
72638
72638
|
}));
|
|
72639
72639
|
});
|
|
@@ -72641,7 +72641,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref2)
|
|
|
72641
72641
|
const {
|
|
72642
72642
|
material
|
|
72643
72643
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded7);
|
|
72644
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$
|
|
72644
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$2({}, rest, material, {
|
|
72645
72645
|
ref: ref2
|
|
72646
72646
|
}));
|
|
72647
72647
|
});
|
|
@@ -72649,7 +72649,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref2) {
|
|
|
72649
72649
|
const {
|
|
72650
72650
|
material
|
|
72651
72651
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded8);
|
|
72652
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$
|
|
72652
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$2({}, rest, material, {
|
|
72653
72653
|
ref: ref2
|
|
72654
72654
|
}));
|
|
72655
72655
|
});
|
|
@@ -72657,7 +72657,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref2) {
|
|
|
72657
72657
|
const {
|
|
72658
72658
|
material
|
|
72659
72659
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded9);
|
|
72660
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$
|
|
72660
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, _extends$2({}, rest, material, {
|
|
72661
72661
|
ref: ref2
|
|
72662
72662
|
}));
|
|
72663
72663
|
});
|
|
@@ -72665,7 +72665,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref2) {
|
|
|
72665
72665
|
const {
|
|
72666
72666
|
material
|
|
72667
72667
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded10);
|
|
72668
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, _extends$
|
|
72668
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, _extends$2({}, rest, material, {
|
|
72669
72669
|
ref: ref2
|
|
72670
72670
|
}));
|
|
72671
72671
|
});
|
|
@@ -72673,7 +72673,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref2) {
|
|
|
72673
72673
|
const {
|
|
72674
72674
|
material
|
|
72675
72675
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded11);
|
|
72676
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$
|
|
72676
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, _extends$2({}, rest, material, {
|
|
72677
72677
|
ref: ref2
|
|
72678
72678
|
}));
|
|
72679
72679
|
});
|
|
@@ -72681,7 +72681,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref2) {
|
|
|
72681
72681
|
const {
|
|
72682
72682
|
material
|
|
72683
72683
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded12);
|
|
72684
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$
|
|
72684
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$2({}, rest, material, {
|
|
72685
72685
|
ref: ref2
|
|
72686
72686
|
}));
|
|
72687
72687
|
});
|
|
@@ -72689,7 +72689,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref2) {
|
|
|
72689
72689
|
const {
|
|
72690
72690
|
material
|
|
72691
72691
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded13);
|
|
72692
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$
|
|
72692
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$2({}, rest, material, {
|
|
72693
72693
|
ref: ref2
|
|
72694
72694
|
}));
|
|
72695
72695
|
});
|
|
@@ -72716,12 +72716,12 @@ function BaseTextField(props) {
|
|
|
72716
72716
|
slotProps,
|
|
72717
72717
|
material
|
|
72718
72718
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded15);
|
|
72719
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
72719
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({
|
|
72720
72720
|
variant: "outlined"
|
|
72721
72721
|
}, rest, material, {
|
|
72722
72722
|
inputProps: slotProps == null ? void 0 : slotProps.htmlInput,
|
|
72723
72723
|
InputProps: transformInputProps(slotProps == null ? void 0 : slotProps.input),
|
|
72724
|
-
InputLabelProps: _extends$
|
|
72724
|
+
InputLabelProps: _extends$2({
|
|
72725
72725
|
shrink: true
|
|
72726
72726
|
}, slotProps == null ? void 0 : slotProps.inputLabel)
|
|
72727
72727
|
}));
|
|
@@ -72742,7 +72742,7 @@ function BaseAutocomplete(props) {
|
|
|
72742
72742
|
slotProps,
|
|
72743
72743
|
material
|
|
72744
72744
|
} = props, rest = _objectWithoutPropertiesLoose(props, _excluded16);
|
|
72745
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$
|
|
72745
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$2({
|
|
72746
72746
|
id: id2,
|
|
72747
72747
|
multiple,
|
|
72748
72748
|
freeSolo,
|
|
@@ -72757,7 +72757,7 @@ function BaseAutocomplete(props) {
|
|
|
72757
72757
|
}), {
|
|
72758
72758
|
key: key2
|
|
72759
72759
|
} = _getTagProps, tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded17);
|
|
72760
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$
|
|
72760
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$2({
|
|
72761
72761
|
variant: "outlined",
|
|
72762
72762
|
size: "small",
|
|
72763
72763
|
label: typeof option === "string" ? option : getOptionLabel == null ? void 0 : getOptionLabel(option)
|
|
@@ -72770,12 +72770,12 @@ function BaseAutocomplete(props) {
|
|
|
72770
72770
|
InputProps,
|
|
72771
72771
|
InputLabelProps
|
|
72772
72772
|
} = params2, inputRest = _objectWithoutPropertiesLoose(params2, _excluded18);
|
|
72773
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
72773
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$2({}, inputRest, {
|
|
72774
72774
|
label: label2,
|
|
72775
72775
|
placeholder,
|
|
72776
72776
|
inputProps,
|
|
72777
72777
|
InputProps: transformInputProps(InputProps, false),
|
|
72778
|
-
InputLabelProps: _extends$
|
|
72778
|
+
InputLabelProps: _extends$2({
|
|
72779
72779
|
shrink: true
|
|
72780
72780
|
}, InputLabelProps)
|
|
72781
72781
|
}, slotProps == null ? void 0 : slotProps.textField, (_a3 = rootProps.slotProps) == null ? void 0 : _a3.baseTextField));
|
|
@@ -72783,7 +72783,7 @@ function BaseAutocomplete(props) {
|
|
|
72783
72783
|
}, rest, material));
|
|
72784
72784
|
}
|
|
72785
72785
|
function BaseInput(props) {
|
|
72786
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$
|
|
72786
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$2({}, transformInputProps(props)));
|
|
72787
72787
|
}
|
|
72788
72788
|
function transformInputProps(props, wrapAdornments = true) {
|
|
72789
72789
|
if (!props) {
|
|
@@ -72815,7 +72815,7 @@ function transformInputProps(props, wrapAdornments = true) {
|
|
|
72815
72815
|
}
|
|
72816
72816
|
if (slotProps == null ? void 0 : slotProps.htmlInput) {
|
|
72817
72817
|
if (result.inputProps) {
|
|
72818
|
-
result.inputProps = _extends$
|
|
72818
|
+
result.inputProps = _extends$2({}, result.inputProps, slotProps == null ? void 0 : slotProps.htmlInput);
|
|
72819
72819
|
} else {
|
|
72820
72820
|
result.inputProps = slotProps == null ? void 0 : slotProps.htmlInput;
|
|
72821
72821
|
}
|
|
@@ -72881,7 +72881,7 @@ function BasePopper(props) {
|
|
|
72881
72881
|
};
|
|
72882
72882
|
content2 = (p) => {
|
|
72883
72883
|
var _a3;
|
|
72884
|
-
return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$
|
|
72884
|
+
return wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$2({}, p.TransitionProps, {
|
|
72885
72885
|
style: {
|
|
72886
72886
|
transformOrigin: transformOrigin[p.placement]
|
|
72887
72887
|
},
|
|
@@ -72892,7 +72892,7 @@ function BasePopper(props) {
|
|
|
72892
72892
|
})));
|
|
72893
72893
|
};
|
|
72894
72894
|
}
|
|
72895
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$1, _extends$
|
|
72895
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$1, _extends$2({
|
|
72896
72896
|
id: id2,
|
|
72897
72897
|
className,
|
|
72898
72898
|
open,
|
|
@@ -72937,9 +72937,9 @@ function BaseSelectOption(_ref) {
|
|
|
72937
72937
|
native: native2
|
|
72938
72938
|
} = _ref, props = _objectWithoutPropertiesLoose(_ref, _excluded21);
|
|
72939
72939
|
if (native2) {
|
|
72940
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$
|
|
72940
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$2({}, props));
|
|
72941
72941
|
}
|
|
72942
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$
|
|
72942
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$2({}, props));
|
|
72943
72943
|
}
|
|
72944
72944
|
const iconSlots = {
|
|
72945
72945
|
booleanCellTrueIcon: GridCheckIcon,
|
|
@@ -73001,7 +73001,7 @@ const baseSlots = {
|
|
|
73001
73001
|
baseSkeleton: BaseSkeleton,
|
|
73002
73002
|
baseSwitch: BaseSwitch
|
|
73003
73003
|
};
|
|
73004
|
-
const materialSlots = _extends$
|
|
73004
|
+
const materialSlots = _extends$2({}, baseSlots, iconSlots);
|
|
73005
73005
|
const useUtilityClasses = () => {
|
|
73006
73006
|
const slots = {
|
|
73007
73007
|
root: ["bottomContainer"]
|
|
@@ -73015,12 +73015,12 @@ const Element$1 = styled$1("div")({
|
|
|
73015
73015
|
});
|
|
73016
73016
|
function GridBottomContainer(props) {
|
|
73017
73017
|
const classes2 = useUtilityClasses();
|
|
73018
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$
|
|
73018
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$2({}, props, {
|
|
73019
73019
|
className: clsx(classes2.root, gridClasses["container--bottom"]),
|
|
73020
73020
|
role: "presentation"
|
|
73021
73021
|
}));
|
|
73022
73022
|
}
|
|
73023
|
-
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$
|
|
73023
|
+
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$2({}, materialSlots, {
|
|
73024
73024
|
cell: MemoizedGridCell,
|
|
73025
73025
|
skeletonCell: Memoized$1,
|
|
73026
73026
|
columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
|
|
@@ -73056,7 +73056,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
73056
73056
|
signature: "DataGrid",
|
|
73057
73057
|
listView: false
|
|
73058
73058
|
};
|
|
73059
|
-
const getDataGridForcedProps = (themedProps) => _extends$
|
|
73059
|
+
const getDataGridForcedProps = (themedProps) => _extends$2({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
73060
73060
|
filterMode: "server",
|
|
73061
73061
|
sortingMode: "server",
|
|
73062
73062
|
paginationMode: "server"
|
|
@@ -73070,7 +73070,7 @@ const useDataGridProps = (inProps) => {
|
|
|
73070
73070
|
name: "MuiDataGrid"
|
|
73071
73071
|
})
|
|
73072
73072
|
);
|
|
73073
|
-
const localeText = React.useMemo(() => _extends$
|
|
73073
|
+
const localeText = React.useMemo(() => _extends$2({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
73074
73074
|
const slots = React.useMemo(() => computeSlots({
|
|
73075
73075
|
defaultSlots,
|
|
73076
73076
|
slots: themedProps.slots
|
|
@@ -73081,7 +73081,7 @@ const useDataGridProps = (inProps) => {
|
|
|
73081
73081
|
return acc;
|
|
73082
73082
|
}, {});
|
|
73083
73083
|
}, [themedProps]);
|
|
73084
|
-
return React.useMemo(() => _extends$
|
|
73084
|
+
return React.useMemo(() => _extends$2({}, themedProps, injectDefaultProps, {
|
|
73085
73085
|
localeText,
|
|
73086
73086
|
slots
|
|
73087
73087
|
}, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
|
|
@@ -73104,7 +73104,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref2) {
|
|
|
73104
73104
|
privateApiRef,
|
|
73105
73105
|
configuration,
|
|
73106
73106
|
props,
|
|
73107
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$
|
|
73107
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$2({
|
|
73108
73108
|
className: props.className,
|
|
73109
73109
|
style: props.style,
|
|
73110
73110
|
sx: props.sx
|
|
@@ -74095,7 +74095,7 @@ var defineProperty = function(obj, key2, value2) {
|
|
|
74095
74095
|
}
|
|
74096
74096
|
return obj;
|
|
74097
74097
|
};
|
|
74098
|
-
var _extends$
|
|
74098
|
+
var _extends$1 = Object.assign || function(target2) {
|
|
74099
74099
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
74100
74100
|
var source2 = arguments[i2];
|
|
74101
74101
|
for (var key2 in source2) {
|
|
@@ -74107,7 +74107,7 @@ var _extends$2 = Object.assign || function(target2) {
|
|
|
74107
74107
|
return target2;
|
|
74108
74108
|
};
|
|
74109
74109
|
function getClientRect(offsets2) {
|
|
74110
|
-
return _extends$
|
|
74110
|
+
return _extends$1({}, offsets2, {
|
|
74111
74111
|
right: offsets2.left + offsets2.width,
|
|
74112
74112
|
bottom: offsets2.top + offsets2.height
|
|
74113
74113
|
});
|
|
@@ -74291,7 +74291,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
|
|
|
74291
74291
|
}
|
|
74292
74292
|
};
|
|
74293
74293
|
var sortedAreas = Object.keys(rects).map(function(key2) {
|
|
74294
|
-
return _extends$
|
|
74294
|
+
return _extends$1({
|
|
74295
74295
|
key: key2
|
|
74296
74296
|
}, rects[key2], {
|
|
74297
74297
|
area: getArea(rects[key2])
|
|
@@ -74599,9 +74599,9 @@ function computeStyle(data2, options) {
|
|
|
74599
74599
|
var attributes = {
|
|
74600
74600
|
"x-placement": data2.placement
|
|
74601
74601
|
};
|
|
74602
|
-
data2.attributes = _extends$
|
|
74603
|
-
data2.styles = _extends$
|
|
74604
|
-
data2.arrowStyles = _extends$
|
|
74602
|
+
data2.attributes = _extends$1({}, attributes, data2.attributes);
|
|
74603
|
+
data2.styles = _extends$1({}, styles2, data2.styles);
|
|
74604
|
+
data2.arrowStyles = _extends$1({}, data2.offsets.arrow, data2.arrowStyles);
|
|
74605
74605
|
return data2;
|
|
74606
74606
|
}
|
|
74607
74607
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -74736,7 +74736,7 @@ function flip$1(data2, options) {
|
|
|
74736
74736
|
variation = getOppositeVariation(variation);
|
|
74737
74737
|
}
|
|
74738
74738
|
data2.placement = placement + (variation ? "-" + variation : "");
|
|
74739
|
-
data2.offsets.popper = _extends$
|
|
74739
|
+
data2.offsets.popper = _extends$1({}, data2.offsets.popper, getPopperOffsets(data2.instance.popper, data2.offsets.reference, data2.placement));
|
|
74740
74740
|
data2 = runModifiers(data2.instance.modifiers, data2, "flip");
|
|
74741
74741
|
}
|
|
74742
74742
|
});
|
|
@@ -74895,7 +74895,7 @@ function preventOverflow(data2, options) {
|
|
|
74895
74895
|
};
|
|
74896
74896
|
order2.forEach(function(placement) {
|
|
74897
74897
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
74898
|
-
popper2 = _extends$
|
|
74898
|
+
popper2 = _extends$1({}, popper2, check[side](placement));
|
|
74899
74899
|
});
|
|
74900
74900
|
data2.offsets.popper = popper2;
|
|
74901
74901
|
return data2;
|
|
@@ -74913,7 +74913,7 @@ function shift(data2) {
|
|
|
74913
74913
|
start: defineProperty({}, side, reference2[side]),
|
|
74914
74914
|
end: defineProperty({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
74915
74915
|
};
|
|
74916
|
-
data2.offsets.popper = _extends$
|
|
74916
|
+
data2.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
74917
74917
|
}
|
|
74918
74918
|
return data2;
|
|
74919
74919
|
}
|
|
@@ -75316,7 +75316,7 @@ var Popper = function() {
|
|
|
75316
75316
|
return requestAnimationFrame(_this.update);
|
|
75317
75317
|
};
|
|
75318
75318
|
this.update = debounce$1(this.update.bind(this));
|
|
75319
|
-
this.options = _extends$
|
|
75319
|
+
this.options = _extends$1({}, Popper3.Defaults, options);
|
|
75320
75320
|
this.state = {
|
|
75321
75321
|
isDestroyed: false,
|
|
75322
75322
|
isCreated: false,
|
|
@@ -75325,11 +75325,11 @@ var Popper = function() {
|
|
|
75325
75325
|
this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
|
|
75326
75326
|
this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
|
|
75327
75327
|
this.options.modifiers = {};
|
|
75328
|
-
Object.keys(_extends$
|
|
75329
|
-
_this.options.modifiers[name2] = _extends$
|
|
75328
|
+
Object.keys(_extends$1({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
75329
|
+
_this.options.modifiers[name2] = _extends$1({}, Popper3.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
75330
75330
|
});
|
|
75331
75331
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
|
|
75332
|
-
return _extends$
|
|
75332
|
+
return _extends$1({
|
|
75333
75333
|
name: name2
|
|
75334
75334
|
}, _this.options.modifiers[name2]);
|
|
75335
75335
|
}).sort(function(a2, b2) {
|
|
@@ -75559,38 +75559,6 @@ React.forwardRef((props, ref2) => {
|
|
|
75559
75559
|
...style2
|
|
75560
75560
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
75561
75561
|
});
|
|
75562
|
-
function _extends$1() {
|
|
75563
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target2) {
|
|
75564
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
75565
|
-
var source2 = arguments[i2];
|
|
75566
|
-
for (var key2 in source2) {
|
|
75567
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
|
75568
|
-
target2[key2] = source2[key2];
|
|
75569
|
-
}
|
|
75570
|
-
}
|
|
75571
|
-
}
|
|
75572
|
-
return target2;
|
|
75573
|
-
};
|
|
75574
|
-
return _extends$1.apply(this, arguments);
|
|
75575
|
-
}
|
|
75576
|
-
function _assertThisInitialized(self2) {
|
|
75577
|
-
if (self2 === void 0) {
|
|
75578
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
75579
|
-
}
|
|
75580
|
-
return self2;
|
|
75581
|
-
}
|
|
75582
|
-
function _setPrototypeOf(o2, p) {
|
|
75583
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
75584
|
-
o3.__proto__ = p2;
|
|
75585
|
-
return o3;
|
|
75586
|
-
};
|
|
75587
|
-
return _setPrototypeOf(o2, p);
|
|
75588
|
-
}
|
|
75589
|
-
function _inheritsLoose(subClass, superClass) {
|
|
75590
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
75591
|
-
subClass.prototype.constructor = subClass;
|
|
75592
|
-
_setPrototypeOf(subClass, superClass);
|
|
75593
|
-
}
|
|
75594
75562
|
var safeIsNaN = Number.isNaN || function ponyfill(value2) {
|
|
75595
75563
|
return typeof value2 === "number" && value2 !== value2;
|
|
75596
75564
|
};
|
|
@@ -75958,7 +75926,7 @@ function createListComponent(_ref) {
|
|
|
75958
75926
|
className,
|
|
75959
75927
|
onScroll,
|
|
75960
75928
|
ref: this._outerRefSetter,
|
|
75961
|
-
style: _extends$
|
|
75929
|
+
style: _extends$2({
|
|
75962
75930
|
position: "relative",
|
|
75963
75931
|
height: height2,
|
|
75964
75932
|
width: width2,
|
|
@@ -179859,22 +179827,22 @@ function addDecoder(cases2, importFn) {
|
|
|
179859
179827
|
}
|
|
179860
179828
|
cases2.forEach((c2) => registry$1.set(c2, importFn));
|
|
179861
179829
|
}
|
|
179862
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
179863
|
-
addDecoder(5, () => import("./lzw-
|
|
179830
|
+
addDecoder([void 0, 1], () => import("./raw-B0uYXVYf.js").then((m2) => m2.default));
|
|
179831
|
+
addDecoder(5, () => import("./lzw-BwDPLy3M.js").then((m2) => m2.default));
|
|
179864
179832
|
addDecoder(6, () => {
|
|
179865
179833
|
throw new Error("old style JPEG compression is not supported.");
|
|
179866
179834
|
});
|
|
179867
|
-
addDecoder(7, () => import("./jpeg-
|
|
179868
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
179869
|
-
addDecoder(32773, () => import("./packbits-
|
|
179835
|
+
addDecoder(7, () => import("./jpeg-eKmOr--c.js").then((m2) => m2.default));
|
|
179836
|
+
addDecoder([8, 32946], () => import("./deflate-DD-Jz2qv.js").then((m2) => m2.default));
|
|
179837
|
+
addDecoder(32773, () => import("./packbits-DldZz8Fa.js").then((m2) => m2.default));
|
|
179870
179838
|
addDecoder(
|
|
179871
179839
|
34887,
|
|
179872
|
-
() => import("./lerc-
|
|
179840
|
+
() => import("./lerc-Bvt14Cst.js").then(async (m2) => {
|
|
179873
179841
|
await m2.zstd.init();
|
|
179874
179842
|
return m2;
|
|
179875
179843
|
}).then((m2) => m2.default)
|
|
179876
179844
|
);
|
|
179877
|
-
addDecoder(50001, () => import("./webimage-
|
|
179845
|
+
addDecoder(50001, () => import("./webimage-BXiR6Y9m.js").then((m2) => m2.default));
|
|
179878
179846
|
function decodeRowAcc(row, stride) {
|
|
179879
179847
|
let length2 = row.length - stride;
|
|
179880
179848
|
let offset2 = 0;
|