@vitessce/all 3.9.3 → 3.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrbitControls-CtNyt3m6.js → OrbitControls-COiSfwgZ.js} +1 -1
- package/dist/{ReactNeuroglancer-Drzvi2B1.js → ReactNeuroglancer-BsmE8PyU.js} +1 -1
- package/dist/{deflate-UxP0NhCM.js → deflate-ClPM2AX_.js} +1 -1
- package/dist/{higlass-F0EWfn1U.js → higlass-DUYpEXhD.js} +1 -1
- package/dist/{index-Dj8mq7qw.js → index-5-K_2Uhu.js} +3 -3
- package/dist/{index-BEdNNnBm.js → index-C-dFydbG.js} +2 -2
- package/dist/{index-Bhio36zT.js → index-DMwHBnRb.js} +549 -581
- package/dist/index.js +1 -1
- package/dist/{jpeg-Dd5hOit9.js → jpeg-GtoIw4IT.js} +1 -1
- package/dist/{lerc-Cs8rllqp.js → lerc-DcSwwDzY.js} +1 -1
- package/dist/{lzw-BVwtoLGt.js → lzw-D6__ol7A.js} +1 -1
- package/dist/{packbits-BT_ZtTHH.js → packbits-qyK2t5DY.js} +1 -1
- package/dist/{raw-CiZtvi02.js → raw-DITpx3I3.js} +1 -1
- package/dist/{troika-three-text.esm-1a1oWjdg.js → troika-three-text.esm-BX5BPsT5.js} +1 -1
- package/dist/{webimage-DINDiGit.js → webimage-DggQ0O5v.js} +1 -1
- package/package.json +33 -33
|
@@ -12807,14 +12807,14 @@ var createCache = function createCache2(options) {
|
|
|
12807
12807
|
cache2.sheet.hydrate(nodesToHydrate);
|
|
12808
12808
|
return cache2;
|
|
12809
12809
|
};
|
|
12810
|
-
function _extends$
|
|
12811
|
-
return _extends$
|
|
12810
|
+
function _extends$d() {
|
|
12811
|
+
return _extends$d = Object.assign ? Object.assign.bind() : function(n3) {
|
|
12812
12812
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
12813
12813
|
var t4 = arguments[e3];
|
|
12814
12814
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
12815
12815
|
}
|
|
12816
12816
|
return n3;
|
|
12817
|
-
}, _extends$
|
|
12817
|
+
}, _extends$d.apply(null, arguments);
|
|
12818
12818
|
}
|
|
12819
12819
|
var reactIs$3 = { exports: {} };
|
|
12820
12820
|
var reactIs_development$3 = {};
|
|
@@ -14358,7 +14358,7 @@ var createStyled$1 = function createStyled(tag2, options) {
|
|
|
14358
14358
|
}
|
|
14359
14359
|
});
|
|
14360
14360
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
14361
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
14361
|
+
var newStyled2 = createStyled(nextTag, _extends$d({}, options, nextOptions, {
|
|
14362
14362
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
14363
14363
|
}));
|
|
14364
14364
|
return newStyled2.apply(void 0, styles2);
|
|
@@ -19744,14 +19744,14 @@ function chainPropTypes(propType1, propType2) {
|
|
|
19744
19744
|
return propType1(...args) || propType2(...args);
|
|
19745
19745
|
};
|
|
19746
19746
|
}
|
|
19747
|
-
function _extends$
|
|
19748
|
-
return _extends$
|
|
19747
|
+
function _extends$c() {
|
|
19748
|
+
return _extends$c = Object.assign ? Object.assign.bind() : function(n3) {
|
|
19749
19749
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
19750
19750
|
var t4 = arguments[e3];
|
|
19751
19751
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
19752
19752
|
}
|
|
19753
19753
|
return n3;
|
|
19754
|
-
}, _extends$
|
|
19754
|
+
}, _extends$c.apply(null, arguments);
|
|
19755
19755
|
}
|
|
19756
19756
|
function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
19757
19757
|
if (null == r3) return {};
|
|
@@ -19762,13 +19762,13 @@ function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
|
19762
19762
|
}
|
|
19763
19763
|
return t4;
|
|
19764
19764
|
}
|
|
19765
|
-
function _setPrototypeOf$
|
|
19766
|
-
return _setPrototypeOf$
|
|
19765
|
+
function _setPrototypeOf$1(t4, e3) {
|
|
19766
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t5, e4) {
|
|
19767
19767
|
return t5.__proto__ = e4, t5;
|
|
19768
|
-
}, _setPrototypeOf$
|
|
19768
|
+
}, _setPrototypeOf$1(t4, e3);
|
|
19769
19769
|
}
|
|
19770
|
-
function _inheritsLoose
|
|
19771
|
-
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$
|
|
19770
|
+
function _inheritsLoose(t4, o2) {
|
|
19771
|
+
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$1(t4, o2);
|
|
19772
19772
|
}
|
|
19773
19773
|
const config$4 = {
|
|
19774
19774
|
disabled: false
|
|
@@ -19800,7 +19800,7 @@ var ENTERING = "entering";
|
|
|
19800
19800
|
var ENTERED = "entered";
|
|
19801
19801
|
var EXITING = "exiting";
|
|
19802
19802
|
var Transition$1 = /* @__PURE__ */ function(_React$Component) {
|
|
19803
|
-
_inheritsLoose
|
|
19803
|
+
_inheritsLoose(Transition2, _React$Component);
|
|
19804
19804
|
function Transition2(props, context2) {
|
|
19805
19805
|
var _this;
|
|
19806
19806
|
_this = _React$Component.call(this, props, context2) || this;
|
|
@@ -20216,7 +20216,7 @@ Transition$1.EXITED = EXITED;
|
|
|
20216
20216
|
Transition$1.ENTERING = ENTERING;
|
|
20217
20217
|
Transition$1.ENTERED = ENTERED;
|
|
20218
20218
|
Transition$1.EXITING = EXITING;
|
|
20219
|
-
function _assertThisInitialized$
|
|
20219
|
+
function _assertThisInitialized$1(e3) {
|
|
20220
20220
|
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20221
20221
|
return e3;
|
|
20222
20222
|
}
|
|
@@ -20324,11 +20324,11 @@ var defaultProps$Q = {
|
|
|
20324
20324
|
}
|
|
20325
20325
|
};
|
|
20326
20326
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
20327
|
-
_inheritsLoose
|
|
20327
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
20328
20328
|
function TransitionGroup2(props, context2) {
|
|
20329
20329
|
var _this;
|
|
20330
20330
|
_this = _React$Component.call(this, props, context2) || this;
|
|
20331
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized$
|
|
20331
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
|
|
20332
20332
|
_this.state = {
|
|
20333
20333
|
contextValue: {
|
|
20334
20334
|
isMounting: true
|
|
@@ -20365,7 +20365,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
20365
20365
|
}
|
|
20366
20366
|
if (this.mounted) {
|
|
20367
20367
|
this.setState(function(state) {
|
|
20368
|
-
var children3 = _extends$
|
|
20368
|
+
var children3 = _extends$c({}, state.children);
|
|
20369
20369
|
delete children3[child.key];
|
|
20370
20370
|
return {
|
|
20371
20371
|
children: children3
|
|
@@ -47921,7 +47921,7 @@ const keys$8 = {
|
|
|
47921
47921
|
}
|
|
47922
47922
|
};
|
|
47923
47923
|
const values$4 = wrap$4(keys$8);
|
|
47924
|
-
const vars = _extends$
|
|
47924
|
+
const vars = _extends$c({
|
|
47925
47925
|
breakpoints,
|
|
47926
47926
|
spacing,
|
|
47927
47927
|
transition,
|
|
@@ -48036,7 +48036,7 @@ const GridEditInputCell = forwardRef((props, ref2) => {
|
|
|
48036
48036
|
inputRef.current.focus();
|
|
48037
48037
|
}
|
|
48038
48038
|
}, [hasFocus]);
|
|
48039
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$
|
|
48039
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$c({
|
|
48040
48040
|
as: rootProps.slots.baseInput,
|
|
48041
48041
|
inputRef,
|
|
48042
48042
|
className: classes2.root,
|
|
@@ -48120,7 +48120,7 @@ GridEditInputCell.propTypes = {
|
|
|
48120
48120
|
*/
|
|
48121
48121
|
value: PropTypes.any
|
|
48122
48122
|
};
|
|
48123
|
-
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$
|
|
48123
|
+
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$c({}, params2));
|
|
48124
48124
|
const gridRowsStateSelector = createRootSelector((state) => state.rows);
|
|
48125
48125
|
const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
|
|
48126
48126
|
const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
|
|
@@ -48173,8 +48173,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
|
|
|
48173
48173
|
}
|
|
48174
48174
|
return model;
|
|
48175
48175
|
};
|
|
48176
|
-
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$
|
|
48177
|
-
sorting: _extends$
|
|
48176
|
+
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$c({}, state, {
|
|
48177
|
+
sorting: _extends$c({}, state.sorting, {
|
|
48178
48178
|
sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
|
|
48179
48179
|
})
|
|
48180
48180
|
});
|
|
@@ -48301,7 +48301,7 @@ function GridFilterInputValue(props) {
|
|
|
48301
48301
|
setFilterValueState(value2);
|
|
48302
48302
|
setIsApplying(true);
|
|
48303
48303
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
48304
|
-
const newItem = _extends$
|
|
48304
|
+
const newItem = _extends$c({}, item, {
|
|
48305
48305
|
value: type2 === "number" && !Number.isNaN(Number(value2)) ? Number(value2) : value2,
|
|
48306
48306
|
fromInput: id2
|
|
48307
48307
|
});
|
|
@@ -48316,7 +48316,7 @@ function GridFilterInputValue(props) {
|
|
|
48316
48316
|
}
|
|
48317
48317
|
}, [id2, item]);
|
|
48318
48318
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
48319
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
48319
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
48320
48320
|
id: id2,
|
|
48321
48321
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
48322
48322
|
placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
|
|
@@ -48324,14 +48324,14 @@ function GridFilterInputValue(props) {
|
|
|
48324
48324
|
onChange: onFilterChange,
|
|
48325
48325
|
type: type2 || "text",
|
|
48326
48326
|
disabled,
|
|
48327
|
-
slotProps: _extends$
|
|
48328
|
-
input: _extends$
|
|
48327
|
+
slotProps: _extends$c({}, textFieldProps?.slotProps, {
|
|
48328
|
+
input: _extends$c({
|
|
48329
48329
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
48330
48330
|
fontSize: "small",
|
|
48331
48331
|
color: "action"
|
|
48332
48332
|
}) : null
|
|
48333
48333
|
}, textFieldProps?.slotProps?.input),
|
|
48334
|
-
htmlInput: _extends$
|
|
48334
|
+
htmlInput: _extends$c({
|
|
48335
48335
|
tabIndex
|
|
48336
48336
|
}, textFieldProps?.slotProps?.htmlInput)
|
|
48337
48337
|
}),
|
|
@@ -48457,7 +48457,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
48457
48457
|
}, [item.value]);
|
|
48458
48458
|
const handleChange = React.useCallback((event2, value2) => {
|
|
48459
48459
|
setFilterValueState(value2.map(String));
|
|
48460
|
-
applyValue(_extends$
|
|
48460
|
+
applyValue(_extends$c({}, item, {
|
|
48461
48461
|
value: [...value2.map((filterItemValue) => type2 === "number" ? Number(filterItemValue) : filterItemValue)]
|
|
48462
48462
|
}));
|
|
48463
48463
|
}, [applyValue, item, type2]);
|
|
@@ -48469,7 +48469,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
48469
48469
|
}
|
|
48470
48470
|
}, [setOptions]);
|
|
48471
48471
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
48472
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
48472
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
48473
48473
|
multiple: true,
|
|
48474
48474
|
freeSolo: true,
|
|
48475
48475
|
options,
|
|
@@ -48722,7 +48722,7 @@ function getHasEval() {
|
|
|
48722
48722
|
return hasEval;
|
|
48723
48723
|
}
|
|
48724
48724
|
const cleanFilterItem = (item, apiRef) => {
|
|
48725
|
-
const cleanItem = _extends$
|
|
48725
|
+
const cleanItem = _extends$c({}, item);
|
|
48726
48726
|
if (cleanItem.id == null) {
|
|
48727
48727
|
cleanItem.id = Math.round(Math.random() * 1e5);
|
|
48728
48728
|
}
|
|
@@ -48756,18 +48756,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
|
|
|
48756
48756
|
}
|
|
48757
48757
|
}
|
|
48758
48758
|
if (hasItemWithoutOperator || hasItemsWithoutIds) {
|
|
48759
|
-
return _extends$
|
|
48759
|
+
return _extends$c({}, model, {
|
|
48760
48760
|
items: items.map((item) => cleanFilterItem(item, apiRef))
|
|
48761
48761
|
});
|
|
48762
48762
|
}
|
|
48763
48763
|
if (model.items !== items) {
|
|
48764
|
-
return _extends$
|
|
48764
|
+
return _extends$c({}, model, {
|
|
48765
48765
|
items
|
|
48766
48766
|
});
|
|
48767
48767
|
}
|
|
48768
48768
|
return model;
|
|
48769
48769
|
};
|
|
48770
|
-
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$
|
|
48770
|
+
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$c({}, filteringState, {
|
|
48771
48771
|
filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
|
|
48772
48772
|
});
|
|
48773
48773
|
const removeDiacritics = (value2) => {
|
|
@@ -48797,7 +48797,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
|
|
|
48797
48797
|
if (ignoreDiacritics) {
|
|
48798
48798
|
parsedValue = removeDiacritics(parsedValue);
|
|
48799
48799
|
}
|
|
48800
|
-
const newFilterItem = _extends$
|
|
48800
|
+
const newFilterItem = _extends$c({}, filterItem, {
|
|
48801
48801
|
value: parsedValue
|
|
48802
48802
|
});
|
|
48803
48803
|
const filterOperators = column2.filterOperators;
|
|
@@ -49219,7 +49219,7 @@ function GridMenu(props) {
|
|
|
49219
49219
|
}
|
|
49220
49220
|
onClose(event2);
|
|
49221
49221
|
};
|
|
49222
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$
|
|
49222
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$c({
|
|
49223
49223
|
as: rootProps.slots.basePopper,
|
|
49224
49224
|
className: clsx$1(classes2.root, className, variablesClass),
|
|
49225
49225
|
ownerState: rootProps,
|
|
@@ -49378,7 +49378,7 @@ function GridActionsCell(props) {
|
|
|
49378
49378
|
hideMenu();
|
|
49379
49379
|
}
|
|
49380
49380
|
};
|
|
49381
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
49381
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
49382
49382
|
role: "menu",
|
|
49383
49383
|
ref: rootRef,
|
|
49384
49384
|
tabIndex: -1,
|
|
@@ -49390,7 +49390,7 @@ function GridActionsCell(props) {
|
|
|
49390
49390
|
touchRippleRef: handleTouchRippleRef(index2),
|
|
49391
49391
|
onClick: handleButtonClick(index2, button.props.onClick),
|
|
49392
49392
|
tabIndex: focusedButtonIndex === index2 ? tabIndex : -1
|
|
49393
|
-
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
49393
|
+
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
49394
49394
|
ref: buttonRef,
|
|
49395
49395
|
id: buttonId,
|
|
49396
49396
|
"aria-label": apiRef.current.getLocaleText("actionsCellMore"),
|
|
@@ -49488,9 +49488,9 @@ GridActionsCell.propTypes = {
|
|
|
49488
49488
|
*/
|
|
49489
49489
|
value: PropTypes.any
|
|
49490
49490
|
};
|
|
49491
|
-
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$
|
|
49491
|
+
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$c({}, params2));
|
|
49492
49492
|
const GRID_ACTIONS_COLUMN_TYPE = "actions";
|
|
49493
|
-
const GRID_ACTIONS_COL_DEF = _extends$
|
|
49493
|
+
const GRID_ACTIONS_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
49494
49494
|
sortable: false,
|
|
49495
49495
|
filterable: false,
|
|
49496
49496
|
// @ts-ignore
|
|
@@ -49606,7 +49606,7 @@ const getRowsStateFromCache = ({
|
|
|
49606
49606
|
},
|
|
49607
49607
|
idToActionLookup: {}
|
|
49608
49608
|
};
|
|
49609
|
-
return _extends$
|
|
49609
|
+
return _extends$c({}, groupingParamsWithHydrateRows, {
|
|
49610
49610
|
totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
|
|
49611
49611
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
49612
49612
|
tree: groupingParamsWithHydrateRows.tree,
|
|
@@ -49652,7 +49652,7 @@ const updateCacheWithNewRows = ({
|
|
|
49652
49652
|
updates.forEach((update2) => {
|
|
49653
49653
|
const id2 = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
|
|
49654
49654
|
if (uniqueUpdates.has(id2)) {
|
|
49655
|
-
uniqueUpdates.set(id2, _extends$
|
|
49655
|
+
uniqueUpdates.set(id2, _extends$c({}, uniqueUpdates.get(id2), update2));
|
|
49656
49656
|
} else {
|
|
49657
49657
|
uniqueUpdates.set(id2, update2);
|
|
49658
49658
|
}
|
|
@@ -49664,10 +49664,10 @@ const updateCacheWithNewRows = ({
|
|
|
49664
49664
|
modify: [...previousCache.updates.actions.modify ?? []],
|
|
49665
49665
|
remove: [...previousCache.updates.actions.remove ?? []]
|
|
49666
49666
|
},
|
|
49667
|
-
idToActionLookup: _extends$
|
|
49667
|
+
idToActionLookup: _extends$c({}, previousCache.updates.idToActionLookup),
|
|
49668
49668
|
groupKeys
|
|
49669
49669
|
};
|
|
49670
|
-
const dataRowIdToModelLookup = _extends$
|
|
49670
|
+
const dataRowIdToModelLookup = _extends$c({}, previousCache.dataRowIdToModelLookup);
|
|
49671
49671
|
const alreadyAppliedActionsToRemove = {
|
|
49672
49672
|
insert: {},
|
|
49673
49673
|
modify: {},
|
|
@@ -49694,7 +49694,7 @@ const updateCacheWithNewRows = ({
|
|
|
49694
49694
|
} else if (actionAlreadyAppliedToRow == null) {
|
|
49695
49695
|
partialUpdates.actions.modify.push(id2);
|
|
49696
49696
|
}
|
|
49697
|
-
dataRowIdToModelLookup[id2] = _extends$
|
|
49697
|
+
dataRowIdToModelLookup[id2] = _extends$c({}, oldRow, partialRow);
|
|
49698
49698
|
return;
|
|
49699
49699
|
}
|
|
49700
49700
|
if (actionAlreadyAppliedToRow === "remove") {
|
|
@@ -49731,7 +49731,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
|
|
|
49731
49731
|
const pinnedRowsCache = apiRef.current.caches.pinnedRows;
|
|
49732
49732
|
const prevModel = pinnedRowsCache.idLookup[id2];
|
|
49733
49733
|
if (prevModel) {
|
|
49734
|
-
pinnedRowsCache.idLookup[id2] = _extends$
|
|
49734
|
+
pinnedRowsCache.idLookup[id2] = _extends$c({}, prevModel, update2);
|
|
49735
49735
|
}
|
|
49736
49736
|
} else {
|
|
49737
49737
|
nonPinnedRowsUpdates.push(update2);
|
|
@@ -49792,7 +49792,7 @@ function GridBooleanCellRaw(props) {
|
|
|
49792
49792
|
if (isServerSideRowGroupingRow && value2 === void 0) {
|
|
49793
49793
|
return null;
|
|
49794
49794
|
}
|
|
49795
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
49795
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
49796
49796
|
fontSize: "small",
|
|
49797
49797
|
className: classes2.root,
|
|
49798
49798
|
titleAccess: apiRef.current.getLocaleText(value2 ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
|
|
@@ -49870,7 +49870,7 @@ const renderBooleanCell = (params2) => {
|
|
|
49870
49870
|
if (params2.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params2.rowNode)) {
|
|
49871
49871
|
return "";
|
|
49872
49872
|
}
|
|
49873
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$
|
|
49873
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$c({}, params2));
|
|
49874
49874
|
};
|
|
49875
49875
|
const _excluded$U = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
|
|
49876
49876
|
const useUtilityClasses$F = (ownerState) => {
|
|
@@ -49920,11 +49920,11 @@ function GridEditBooleanCell(props) {
|
|
|
49920
49920
|
inputRef.current.focus();
|
|
49921
49921
|
}
|
|
49922
49922
|
}, [hasFocus]);
|
|
49923
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$
|
|
49923
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$c({
|
|
49924
49924
|
htmlFor: id2,
|
|
49925
49925
|
className: clsx$1(classes2.root, className)
|
|
49926
49926
|
}, other, {
|
|
49927
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
49927
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
49928
49928
|
id: id2,
|
|
49929
49929
|
inputRef,
|
|
49930
49930
|
checked: Boolean(valueState),
|
|
@@ -49998,7 +49998,7 @@ GridEditBooleanCell.propTypes = {
|
|
|
49998
49998
|
*/
|
|
49999
49999
|
value: PropTypes.any
|
|
50000
50000
|
};
|
|
50001
|
-
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$
|
|
50001
|
+
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$c({}, params2));
|
|
50002
50002
|
const _excluded$T = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
|
|
50003
50003
|
function GridFilterInputBoolean(props) {
|
|
50004
50004
|
const {
|
|
@@ -50021,7 +50021,7 @@ function GridFilterInputBoolean(props) {
|
|
|
50021
50021
|
const onFilterChange = React.useCallback((event2) => {
|
|
50022
50022
|
const value2 = sanitizeFilterItemValue(event2.target.value);
|
|
50023
50023
|
setFilterValueState(value2);
|
|
50024
|
-
applyValue(_extends$
|
|
50024
|
+
applyValue(_extends$c({}, item, {
|
|
50025
50025
|
value: value2
|
|
50026
50026
|
}));
|
|
50027
50027
|
}, [applyValue, item]);
|
|
@@ -50031,7 +50031,7 @@ function GridFilterInputBoolean(props) {
|
|
|
50031
50031
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
50032
50032
|
const rootSlotProps = slotProps?.root.slotProps;
|
|
50033
50033
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
50034
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$
|
|
50034
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$c({
|
|
50035
50035
|
fullWidth: true,
|
|
50036
50036
|
labelId,
|
|
50037
50037
|
id: selectId,
|
|
@@ -50040,21 +50040,21 @@ function GridFilterInputBoolean(props) {
|
|
|
50040
50040
|
onChange: onFilterChange,
|
|
50041
50041
|
native: isSelectNative,
|
|
50042
50042
|
slotProps: {
|
|
50043
|
-
htmlInput: _extends$
|
|
50043
|
+
htmlInput: _extends$c({
|
|
50044
50044
|
ref: focusElementRef,
|
|
50045
50045
|
tabIndex
|
|
50046
50046
|
}, rootSlotProps?.htmlInput)
|
|
50047
50047
|
}
|
|
50048
50048
|
}, baseSelectProps, others, slotProps?.root, {
|
|
50049
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
50049
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
50050
50050
|
native: isSelectNative,
|
|
50051
50051
|
value: "",
|
|
50052
50052
|
children: apiRef.current.getLocaleText("filterValueAny")
|
|
50053
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
50053
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
50054
50054
|
native: isSelectNative,
|
|
50055
50055
|
value: "true",
|
|
50056
50056
|
children: apiRef.current.getLocaleText("filterValueTrue")
|
|
50057
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
50057
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
50058
50058
|
native: isSelectNative,
|
|
50059
50059
|
value: "false",
|
|
50060
50060
|
children: apiRef.current.getLocaleText("filterValueFalse")
|
|
@@ -50142,7 +50142,7 @@ const stringToBoolean = (value2) => {
|
|
|
50142
50142
|
return void 0;
|
|
50143
50143
|
}
|
|
50144
50144
|
};
|
|
50145
|
-
const GRID_BOOLEAN_COL_DEF = _extends$
|
|
50145
|
+
const GRID_BOOLEAN_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
50146
50146
|
type: "boolean",
|
|
50147
50147
|
display: "flex",
|
|
50148
50148
|
align: "center",
|
|
@@ -50499,7 +50499,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
|
|
|
50499
50499
|
return null;
|
|
50500
50500
|
}
|
|
50501
50501
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
|
|
50502
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
50502
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
50503
50503
|
tabIndex,
|
|
50504
50504
|
checked: isChecked && !isIndeterminate,
|
|
50505
50505
|
onChange: handleChange,
|
|
@@ -50812,7 +50812,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref2)
|
|
|
50812
50812
|
return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
|
|
50813
50813
|
}, [apiRef, handleSelectionChange]);
|
|
50814
50814
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
|
|
50815
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
50815
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
50816
50816
|
indeterminate: isIndeterminate,
|
|
50817
50817
|
checked: isChecked && !isIndeterminate,
|
|
50818
50818
|
onChange: handleChange,
|
|
@@ -50851,7 +50851,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
|
|
|
50851
50851
|
return state.props.getRowId ? state.props.getRowId(row) : row.id;
|
|
50852
50852
|
});
|
|
50853
50853
|
const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
|
|
50854
|
-
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$
|
|
50854
|
+
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$c({}, GRID_BOOLEAN_COL_DEF, {
|
|
50855
50855
|
type: "custom",
|
|
50856
50856
|
field: GRID_CHECKBOX_SELECTION_FIELD,
|
|
50857
50857
|
width: 50,
|
|
@@ -50869,8 +50869,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$d({}, GRID_BOOLEAN_COL_DEF, {
|
|
|
50869
50869
|
const rowId = gridRowIdSelector(apiRef, row);
|
|
50870
50870
|
return apiRef.current.isRowSelected(rowId);
|
|
50871
50871
|
},
|
|
50872
|
-
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$
|
|
50873
|
-
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$
|
|
50872
|
+
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$c({}, params2)),
|
|
50873
|
+
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$c({}, params2))
|
|
50874
50874
|
});
|
|
50875
50875
|
const _excluded$Q = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
|
|
50876
50876
|
function convertFilterItemValueToInputValue(itemValue, inputType) {
|
|
@@ -50916,7 +50916,7 @@ function GridFilterInputDate(props) {
|
|
|
50916
50916
|
setIsApplying(true);
|
|
50917
50917
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
50918
50918
|
const date2 = new Date(value2);
|
|
50919
|
-
applyValue(_extends$
|
|
50919
|
+
applyValue(_extends$c({}, item, {
|
|
50920
50920
|
value: Number.isNaN(date2.getTime()) ? void 0 : date2
|
|
50921
50921
|
}));
|
|
50922
50922
|
setIsApplying(false);
|
|
@@ -50927,7 +50927,7 @@ function GridFilterInputDate(props) {
|
|
|
50927
50927
|
setFilterValueState(value2);
|
|
50928
50928
|
}, [item.value, type2]);
|
|
50929
50929
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
50930
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
50930
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
50931
50931
|
fullWidth: true,
|
|
50932
50932
|
id: id2,
|
|
50933
50933
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
@@ -50937,14 +50937,14 @@ function GridFilterInputDate(props) {
|
|
|
50937
50937
|
type: type2 || "text",
|
|
50938
50938
|
disabled,
|
|
50939
50939
|
inputRef: focusElementRef,
|
|
50940
|
-
slotProps: _extends$
|
|
50941
|
-
input: _extends$
|
|
50940
|
+
slotProps: _extends$c({}, rootSlotProps, {
|
|
50941
|
+
input: _extends$c({
|
|
50942
50942
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
50943
50943
|
fontSize: "small",
|
|
50944
50944
|
color: "action"
|
|
50945
50945
|
}) : null
|
|
50946
50946
|
}, rootSlotProps?.input),
|
|
50947
|
-
htmlInput: _extends$
|
|
50947
|
+
htmlInput: _extends$c({
|
|
50948
50948
|
max: type2 === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
|
|
50949
50949
|
tabIndex
|
|
50950
50950
|
}, rootSlotProps?.htmlInput)
|
|
@@ -51190,7 +51190,7 @@ function GridEditDateCell(props) {
|
|
|
51190
51190
|
inputRef.current.focus();
|
|
51191
51191
|
}
|
|
51192
51192
|
}, [hasFocus]);
|
|
51193
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$
|
|
51193
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$c({
|
|
51194
51194
|
as: rootProps.slots.baseInput,
|
|
51195
51195
|
inputRef,
|
|
51196
51196
|
fullWidth: true,
|
|
@@ -51200,7 +51200,7 @@ function GridEditDateCell(props) {
|
|
|
51200
51200
|
onChange: handleChange
|
|
51201
51201
|
}, other, slotProps?.root, {
|
|
51202
51202
|
slotProps: {
|
|
51203
|
-
htmlInput: _extends$
|
|
51203
|
+
htmlInput: _extends$c({
|
|
51204
51204
|
max: isDateTime2 ? "9999-12-31T23:59" : "9999-12-31"
|
|
51205
51205
|
}, slotProps?.root?.slotProps?.htmlInput)
|
|
51206
51206
|
}
|
|
@@ -51272,7 +51272,7 @@ GridEditDateCell.propTypes = {
|
|
|
51272
51272
|
*/
|
|
51273
51273
|
value: PropTypes.any
|
|
51274
51274
|
};
|
|
51275
|
-
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$
|
|
51275
|
+
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$c({}, params2));
|
|
51276
51276
|
function throwIfNotDateObject({
|
|
51277
51277
|
value: value2,
|
|
51278
51278
|
columnType,
|
|
@@ -51309,7 +51309,7 @@ const gridDateTimeFormatter = (value2, row, column2, apiRef) => {
|
|
|
51309
51309
|
});
|
|
51310
51310
|
return value2.toLocaleString();
|
|
51311
51311
|
};
|
|
51312
|
-
const GRID_DATE_COL_DEF = _extends$
|
|
51312
|
+
const GRID_DATE_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
51313
51313
|
type: "date",
|
|
51314
51314
|
sortComparator: gridDateComparator,
|
|
51315
51315
|
valueFormatter: gridDateFormatter,
|
|
@@ -51318,7 +51318,7 @@ const GRID_DATE_COL_DEF = _extends$d({}, GRID_STRING_COL_DEF, {
|
|
|
51318
51318
|
// @ts-ignore
|
|
51319
51319
|
pastedValueParser: (value2) => new Date(value2)
|
|
51320
51320
|
});
|
|
51321
|
-
const GRID_DATETIME_COL_DEF = _extends$
|
|
51321
|
+
const GRID_DATETIME_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
51322
51322
|
type: "dateTime",
|
|
51323
51323
|
sortComparator: gridDateComparator,
|
|
51324
51324
|
valueFormatter: gridDateTimeFormatter,
|
|
@@ -51468,7 +51468,7 @@ const getGridNumericOperators = () => [{
|
|
|
51468
51468
|
type: "number"
|
|
51469
51469
|
}
|
|
51470
51470
|
}];
|
|
51471
|
-
const GRID_NUMERIC_COL_DEF = _extends$
|
|
51471
|
+
const GRID_NUMERIC_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
51472
51472
|
type: "number",
|
|
51473
51473
|
align: "right",
|
|
51474
51474
|
headerAlign: "right",
|
|
@@ -51485,7 +51485,7 @@ function getValueOptions(column2, additionalParams) {
|
|
|
51485
51485
|
if (!column2) {
|
|
51486
51486
|
return void 0;
|
|
51487
51487
|
}
|
|
51488
|
-
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$
|
|
51488
|
+
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$c({
|
|
51489
51489
|
field: column2.field
|
|
51490
51490
|
}, additionalParams)) : column2.valueOptions;
|
|
51491
51491
|
}
|
|
@@ -51563,7 +51563,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
51563
51563
|
}
|
|
51564
51564
|
if (reason === "backdropClick" || event2.key === "Escape") {
|
|
51565
51565
|
const params2 = apiRef.current.getCellParams(id2, field2);
|
|
51566
|
-
apiRef.current.publishEvent("cellEditStop", _extends$
|
|
51566
|
+
apiRef.current.publishEvent("cellEditStop", _extends$c({}, params2, {
|
|
51567
51567
|
reason: event2.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
|
|
51568
51568
|
}));
|
|
51569
51569
|
}
|
|
@@ -51577,7 +51577,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
51577
51577
|
if (!valueOptions || !colDef) {
|
|
51578
51578
|
return null;
|
|
51579
51579
|
}
|
|
51580
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
51580
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
51581
51581
|
ref: ref2,
|
|
51582
51582
|
value: valueProp,
|
|
51583
51583
|
onChange: handleChange,
|
|
@@ -51595,7 +51595,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
51595
51595
|
}, other, slotProps?.root, rootProps.slotProps?.baseSelect, {
|
|
51596
51596
|
children: valueOptions.map((valueOption) => {
|
|
51597
51597
|
const value2 = getOptionValue(valueOption);
|
|
51598
|
-
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
51598
|
+
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, rootProps.slotProps?.baseSelectOption || {}, {
|
|
51599
51599
|
native: isSelectNative,
|
|
51600
51600
|
key: value2,
|
|
51601
51601
|
value: value2
|
|
@@ -51672,7 +51672,7 @@ GridEditSingleSelectCell.propTypes = {
|
|
|
51672
51672
|
*/
|
|
51673
51673
|
value: PropTypes.any
|
|
51674
51674
|
};
|
|
51675
|
-
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$
|
|
51675
|
+
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$c({}, params2));
|
|
51676
51676
|
const _excluded$N = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
|
|
51677
51677
|
const renderSingleSelectOptions = ({
|
|
51678
51678
|
column: column2,
|
|
@@ -51689,7 +51689,7 @@ const renderSingleSelectOptions = ({
|
|
|
51689
51689
|
if (label2 === "") {
|
|
51690
51690
|
label2 = " ";
|
|
51691
51691
|
}
|
|
51692
|
-
return /* @__PURE__ */ createElement(OptionComponent, _extends$
|
|
51692
|
+
return /* @__PURE__ */ createElement(OptionComponent, _extends$c({}, baseSelectOptionProps, {
|
|
51693
51693
|
native: isSelectNative,
|
|
51694
51694
|
key: value2,
|
|
51695
51695
|
value: value2
|
|
@@ -51728,7 +51728,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
51728
51728
|
const onFilterChange = React.useCallback((event2) => {
|
|
51729
51729
|
let value2 = event2.target.value;
|
|
51730
51730
|
value2 = getValueFromValueOptions(value2, currentValueOptions, getOptionValue);
|
|
51731
|
-
applyValue(_extends$
|
|
51731
|
+
applyValue(_extends$c({}, item, {
|
|
51732
51732
|
value: value2
|
|
51733
51733
|
}));
|
|
51734
51734
|
}, [currentValueOptions, getOptionValue, applyValue, item]);
|
|
@@ -51737,7 +51737,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
51737
51737
|
}
|
|
51738
51738
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
51739
51739
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
51740
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
51740
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
51741
51741
|
fullWidth: true,
|
|
51742
51742
|
id: id2,
|
|
51743
51743
|
label: label2,
|
|
@@ -51745,7 +51745,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
51745
51745
|
value: filterValue,
|
|
51746
51746
|
onChange: onFilterChange,
|
|
51747
51747
|
slotProps: {
|
|
51748
|
-
htmlInput: _extends$
|
|
51748
|
+
htmlInput: _extends$c({
|
|
51749
51749
|
tabIndex,
|
|
51750
51750
|
ref: focusElementRef,
|
|
51751
51751
|
type: type2 || "text",
|
|
@@ -51845,12 +51845,12 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
51845
51845
|
}, []);
|
|
51846
51846
|
}, [getOptionValue, item.value, resolvedValueOptions]);
|
|
51847
51847
|
const handleChange = React.useCallback((event2, value2) => {
|
|
51848
|
-
applyValue(_extends$
|
|
51848
|
+
applyValue(_extends$c({}, item, {
|
|
51849
51849
|
value: value2.map(getOptionValue)
|
|
51850
51850
|
}));
|
|
51851
51851
|
}, [applyValue, item, getOptionValue]);
|
|
51852
51852
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
51853
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
51853
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
51854
51854
|
multiple: true,
|
|
51855
51855
|
options: resolvedValueOptions,
|
|
51856
51856
|
isOptionEqualToValue,
|
|
@@ -51954,7 +51954,7 @@ const defaultGetOptionValue = (value2) => {
|
|
|
51954
51954
|
const defaultGetOptionLabel = (value2) => {
|
|
51955
51955
|
return isObject$e(value2) ? value2.label : String(value2);
|
|
51956
51956
|
};
|
|
51957
|
-
const GRID_SINGLE_SELECT_COL_DEF = _extends$
|
|
51957
|
+
const GRID_SINGLE_SELECT_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
51958
51958
|
type: "singleSelect",
|
|
51959
51959
|
getOptionLabel: defaultGetOptionLabel,
|
|
51960
51960
|
getOptionValue: defaultGetOptionValue,
|
|
@@ -52120,7 +52120,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
52120
52120
|
widthAllocatedBeforeFlex += computedWidth;
|
|
52121
52121
|
}
|
|
52122
52122
|
if (column2.computedWidth !== computedWidth) {
|
|
52123
|
-
column2 = _extends$
|
|
52123
|
+
column2 = _extends$c({}, column2, {
|
|
52124
52124
|
computedWidth
|
|
52125
52125
|
});
|
|
52126
52126
|
}
|
|
@@ -52141,7 +52141,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
52141
52141
|
columnsLookup[field2].computedWidth = computedColumnWidths[field2].computedWidth;
|
|
52142
52142
|
});
|
|
52143
52143
|
}
|
|
52144
|
-
return _extends$
|
|
52144
|
+
return _extends$c({}, rawState, {
|
|
52145
52145
|
lookup: columnsLookup
|
|
52146
52146
|
});
|
|
52147
52147
|
};
|
|
@@ -52167,10 +52167,10 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
52167
52167
|
}
|
|
52168
52168
|
}
|
|
52169
52169
|
const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field2) => !orderedFieldsLookup[field2])];
|
|
52170
|
-
const newColumnLookup = _extends$
|
|
52170
|
+
const newColumnLookup = _extends$c({}, columnsState.lookup);
|
|
52171
52171
|
for (let i2 = 0; i2 < columnsWithUpdatedDimensions.length; i2 += 1) {
|
|
52172
52172
|
const field2 = columnsWithUpdatedDimensions[i2];
|
|
52173
|
-
const newColDef = _extends$
|
|
52173
|
+
const newColDef = _extends$c({}, newColumnLookup[field2], {
|
|
52174
52174
|
hasBeenResized: true
|
|
52175
52175
|
});
|
|
52176
52176
|
Object.entries(dimensions[field2]).forEach(([key2, value2]) => {
|
|
@@ -52178,7 +52178,7 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
52178
52178
|
});
|
|
52179
52179
|
newColumnLookup[field2] = newColDef;
|
|
52180
52180
|
}
|
|
52181
|
-
const newColumnsState = _extends$
|
|
52181
|
+
const newColumnsState = _extends$c({}, columnsState, {
|
|
52182
52182
|
orderedFields: newOrderedFields,
|
|
52183
52183
|
lookup: newColumnLookup
|
|
52184
52184
|
});
|
|
@@ -52212,7 +52212,7 @@ const createColumnsState = ({
|
|
|
52212
52212
|
const currentState = gridColumnsStateSelector(apiRef);
|
|
52213
52213
|
columnsState = {
|
|
52214
52214
|
orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
|
|
52215
|
-
lookup: _extends$
|
|
52215
|
+
lookup: _extends$c({}, currentState.lookup),
|
|
52216
52216
|
// Will be cleaned later if keepOnlyColumnsToUpsert=true
|
|
52217
52217
|
columnVisibilityModel,
|
|
52218
52218
|
initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
|
|
@@ -52220,7 +52220,7 @@ const createColumnsState = ({
|
|
|
52220
52220
|
}
|
|
52221
52221
|
let columnsToKeep = {};
|
|
52222
52222
|
if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
|
|
52223
|
-
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$
|
|
52223
|
+
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$c({}, acc, {
|
|
52224
52224
|
[key2]: false
|
|
52225
52225
|
}), {});
|
|
52226
52226
|
}
|
|
@@ -52231,7 +52231,7 @@ const createColumnsState = ({
|
|
|
52231
52231
|
columnsToKeep[field2] = true;
|
|
52232
52232
|
let existingState = columnsState.lookup[field2];
|
|
52233
52233
|
if (existingState == null) {
|
|
52234
|
-
existingState = _extends$
|
|
52234
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
52235
52235
|
field: field2,
|
|
52236
52236
|
hasBeenResized: false
|
|
52237
52237
|
});
|
|
@@ -52240,7 +52240,7 @@ const createColumnsState = ({
|
|
|
52240
52240
|
columnsState.orderedFields.push(field2);
|
|
52241
52241
|
}
|
|
52242
52242
|
if (existingState && existingState.type !== newColumn.type) {
|
|
52243
|
-
existingState = _extends$
|
|
52243
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
52244
52244
|
field: field2
|
|
52245
52245
|
});
|
|
52246
52246
|
}
|
|
@@ -52253,7 +52253,7 @@ const createColumnsState = ({
|
|
|
52253
52253
|
}
|
|
52254
52254
|
}
|
|
52255
52255
|
});
|
|
52256
|
-
columnsState.lookup[field2] = resolveProps(existingState, _extends$
|
|
52256
|
+
columnsState.lookup[field2] = resolveProps(existingState, _extends$c({}, getDefaultColTypeDef(newColumn.type), newColumn, {
|
|
52257
52257
|
hasBeenResized
|
|
52258
52258
|
}));
|
|
52259
52259
|
});
|
|
@@ -52350,7 +52350,7 @@ function GridScrollAreaWrapper(props) {
|
|
|
52350
52350
|
if (!dragging) {
|
|
52351
52351
|
return null;
|
|
52352
52352
|
}
|
|
52353
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$
|
|
52353
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$c({}, props));
|
|
52354
52354
|
}
|
|
52355
52355
|
function GridScrollAreaContent(props) {
|
|
52356
52356
|
const {
|
|
@@ -52376,7 +52376,7 @@ function GridScrollAreaContent(props) {
|
|
|
52376
52376
|
};
|
|
52377
52377
|
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
52378
52378
|
const rootProps = useGridRootProps();
|
|
52379
|
-
const ownerState = _extends$
|
|
52379
|
+
const ownerState = _extends$c({}, rootProps, {
|
|
52380
52380
|
scrollDirection
|
|
52381
52381
|
});
|
|
52382
52382
|
const classes2 = useUtilityClasses$B(ownerState);
|
|
@@ -52524,14 +52524,14 @@ const virtualizationStateInitializer = (state, props) => {
|
|
|
52524
52524
|
enabledForRows: !disableVirtualization && !autoHeight,
|
|
52525
52525
|
renderContext: EMPTY_RENDER_CONTEXT
|
|
52526
52526
|
};
|
|
52527
|
-
return _extends$
|
|
52527
|
+
return _extends$c({}, state, {
|
|
52528
52528
|
virtualization
|
|
52529
52529
|
});
|
|
52530
52530
|
};
|
|
52531
52531
|
function useGridVirtualization(apiRef, props) {
|
|
52532
52532
|
const setVirtualization = (enabled) => {
|
|
52533
|
-
apiRef.current.setState((state) => _extends$
|
|
52534
|
-
virtualization: _extends$
|
|
52533
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
52534
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
52535
52535
|
enabled,
|
|
52536
52536
|
enabledForColumns: enabled,
|
|
52537
52537
|
enabledForRows: enabled && !props.autoHeight
|
|
@@ -52539,8 +52539,8 @@ function useGridVirtualization(apiRef, props) {
|
|
|
52539
52539
|
}));
|
|
52540
52540
|
};
|
|
52541
52541
|
const setColumnVirtualization = (enabled) => {
|
|
52542
|
-
apiRef.current.setState((state) => _extends$
|
|
52543
|
-
virtualization: _extends$
|
|
52542
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
52543
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
52544
52544
|
enabledForColumns: enabled
|
|
52545
52545
|
})
|
|
52546
52546
|
}));
|
|
@@ -52580,7 +52580,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
|
|
|
52580
52580
|
if (columnIndex === -1) {
|
|
52581
52581
|
return null;
|
|
52582
52582
|
}
|
|
52583
|
-
return _extends$
|
|
52583
|
+
return _extends$c({}, focusedCell, {
|
|
52584
52584
|
rowIndex,
|
|
52585
52585
|
columnIndex
|
|
52586
52586
|
});
|
|
@@ -52693,8 +52693,8 @@ const useGridVirtualScroller = () => {
|
|
|
52693
52693
|
}
|
|
52694
52694
|
const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
|
|
52695
52695
|
apiRef.current.setState((state) => {
|
|
52696
|
-
return _extends$
|
|
52697
|
-
virtualization: _extends$
|
|
52696
|
+
return _extends$c({}, state, {
|
|
52697
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
52698
52698
|
renderContext: nextRenderContext
|
|
52699
52699
|
})
|
|
52700
52700
|
});
|
|
@@ -52887,7 +52887,7 @@ const useGridVirtualScroller = () => {
|
|
|
52887
52887
|
const showBottomBorder = isLastVisibleInSection && params2.position === "top";
|
|
52888
52888
|
const firstColumnIndex = currentRenderContext.firstColumnIndex;
|
|
52889
52889
|
const lastColumnIndex = currentRenderContext.lastColumnIndex;
|
|
52890
|
-
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$
|
|
52890
|
+
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$c({
|
|
52891
52891
|
row: model,
|
|
52892
52892
|
rowId: id2,
|
|
52893
52893
|
index: rowIndex,
|
|
@@ -53092,7 +53092,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
53092
53092
|
lastColumnIndex: inputs.visibleColumns.length
|
|
53093
53093
|
};
|
|
53094
53094
|
if (inputs.listView) {
|
|
53095
|
-
return _extends$
|
|
53095
|
+
return _extends$c({}, renderContext, {
|
|
53096
53096
|
lastColumnIndex: 1
|
|
53097
53097
|
});
|
|
53098
53098
|
}
|
|
@@ -53369,14 +53369,14 @@ function GridOverlayWrapper(props) {
|
|
|
53369
53369
|
if (height2 === 0) {
|
|
53370
53370
|
height2 = minimalContentHeight;
|
|
53371
53371
|
}
|
|
53372
|
-
const classes2 = useUtilityClasses$A(_extends$
|
|
53372
|
+
const classes2 = useUtilityClasses$A(_extends$c({}, props, {
|
|
53373
53373
|
classes: rootProps.classes
|
|
53374
53374
|
}));
|
|
53375
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$
|
|
53375
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$c({
|
|
53376
53376
|
className: clsx$1(classes2.root)
|
|
53377
53377
|
}, props, {
|
|
53378
53378
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
53379
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$
|
|
53379
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$c({
|
|
53380
53380
|
className: clsx$1(classes2.inner),
|
|
53381
53381
|
style: {
|
|
53382
53382
|
height: height2,
|
|
@@ -53430,8 +53430,8 @@ const useGridOverlays = () => {
|
|
|
53430
53430
|
}
|
|
53431
53431
|
const Overlay = rootProps.slots?.[overlayType];
|
|
53432
53432
|
const overlayProps = rootProps.slotProps?.[overlayType];
|
|
53433
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$
|
|
53434
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$
|
|
53433
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$c({}, overlaysProps, {
|
|
53434
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$c({}, overlayProps))
|
|
53435
53435
|
}));
|
|
53436
53436
|
};
|
|
53437
53437
|
return {
|
|
@@ -53457,7 +53457,7 @@ function GridHeaders() {
|
|
|
53457
53457
|
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
53458
53458
|
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
53459
53459
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
53460
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$
|
|
53460
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$c({
|
|
53461
53461
|
ref: columnsContainerRef,
|
|
53462
53462
|
visibleColumns,
|
|
53463
53463
|
filterColumnLookup,
|
|
@@ -53506,7 +53506,7 @@ const GridMainContainer = forwardRef((props, ref2) => {
|
|
|
53506
53506
|
const rootProps = useGridRootProps();
|
|
53507
53507
|
const configuration2 = useGridConfiguration();
|
|
53508
53508
|
const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
|
|
53509
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$
|
|
53509
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$c({
|
|
53510
53510
|
ownerState,
|
|
53511
53511
|
className: props.className,
|
|
53512
53512
|
tabIndex: -1
|
|
@@ -53531,7 +53531,7 @@ const Element$2 = styled$1("div")({
|
|
|
53531
53531
|
});
|
|
53532
53532
|
function GridTopContainer(props) {
|
|
53533
53533
|
const classes2 = useUtilityClasses$z();
|
|
53534
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$
|
|
53534
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$c({}, props, {
|
|
53535
53535
|
className: clsx$1(classes2.root, gridClasses["container--top"]),
|
|
53536
53536
|
role: "presentation"
|
|
53537
53537
|
}));
|
|
@@ -53563,7 +53563,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
|
|
|
53563
53563
|
classes: rootProps.classes,
|
|
53564
53564
|
overflowedContent
|
|
53565
53565
|
};
|
|
53566
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$
|
|
53566
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$c({}, props, {
|
|
53567
53567
|
ownerState,
|
|
53568
53568
|
className: clsx$1(classes2.root, props.className),
|
|
53569
53569
|
ref: ref2
|
|
@@ -53665,7 +53665,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
|
|
|
53665
53665
|
const rowsMeta = gridRowsMetaSelector(apiRef);
|
|
53666
53666
|
return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
|
|
53667
53667
|
});
|
|
53668
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$
|
|
53668
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$c({
|
|
53669
53669
|
className: clsx$1(classes2.root, className),
|
|
53670
53670
|
ownerState: rootProps,
|
|
53671
53671
|
style: {
|
|
@@ -53938,7 +53938,7 @@ function GridVirtualScroller(props) {
|
|
|
53938
53938
|
getOverlay,
|
|
53939
53939
|
overlaysProps
|
|
53940
53940
|
} = useGridOverlays();
|
|
53941
|
-
const ownerState = _extends$
|
|
53941
|
+
const ownerState = _extends$c({
|
|
53942
53942
|
classes: rootProps.classes,
|
|
53943
53943
|
hasScrollX,
|
|
53944
53944
|
hasPinnedRight
|
|
@@ -53956,15 +53956,15 @@ function GridVirtualScroller(props) {
|
|
|
53956
53956
|
getScrollAreaProps
|
|
53957
53957
|
} = virtualScroller;
|
|
53958
53958
|
const rows = getRows();
|
|
53959
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$
|
|
53959
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$c({
|
|
53960
53960
|
className: classes2.root
|
|
53961
53961
|
}, getContainerProps(), {
|
|
53962
53962
|
ownerState,
|
|
53963
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
53963
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
53964
53964
|
scrollDirection: "left"
|
|
53965
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
53965
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
53966
53966
|
scrollDirection: "right"
|
|
53967
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$
|
|
53967
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$c({
|
|
53968
53968
|
className: classes2.scroller
|
|
53969
53969
|
}, getScrollerProps(), {
|
|
53970
53970
|
ownerState,
|
|
@@ -53973,8 +53973,8 @@ function GridVirtualScroller(props) {
|
|
|
53973
53973
|
position: "top",
|
|
53974
53974
|
virtualScroller
|
|
53975
53975
|
})]
|
|
53976
|
-
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$
|
|
53977
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$
|
|
53976
|
+
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$c({}, getContentProps(), {
|
|
53977
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$c({}, getRenderZoneProps(), {
|
|
53978
53978
|
children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
|
|
53979
53979
|
virtualScroller
|
|
53980
53980
|
})]
|
|
@@ -53987,9 +53987,9 @@ function GridVirtualScroller(props) {
|
|
|
53987
53987
|
virtualScroller
|
|
53988
53988
|
})
|
|
53989
53989
|
})]
|
|
53990
|
-
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
53990
|
+
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
53991
53991
|
position: "horizontal"
|
|
53992
|
-
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
53992
|
+
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
53993
53993
|
position: "vertical"
|
|
53994
53994
|
}, getScrollbarVerticalProps())), props.children]
|
|
53995
53995
|
}));
|
|
@@ -53999,7 +53999,7 @@ function GridFooterPlaceholder() {
|
|
|
53999
53999
|
if (rootProps.hideFooter) {
|
|
54000
54000
|
return null;
|
|
54001
54001
|
}
|
|
54002
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$
|
|
54002
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$c(
|
|
54003
54003
|
{},
|
|
54004
54004
|
rootProps.slotProps?.footer
|
|
54005
54005
|
/* FIXME: typing error */
|
|
@@ -54025,7 +54025,7 @@ function computeSlots({
|
|
|
54025
54025
|
if (!overrides || Object.keys(overrides).length === 0) {
|
|
54026
54026
|
return defaultSlots2;
|
|
54027
54027
|
}
|
|
54028
|
-
const result = _extends$
|
|
54028
|
+
const result = _extends$c({}, defaultSlots2);
|
|
54029
54029
|
Object.keys(overrides).forEach((key2) => {
|
|
54030
54030
|
const k = key2;
|
|
54031
54031
|
if (overrides[k] !== void 0) {
|
|
@@ -54237,7 +54237,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
54237
54237
|
border: 0
|
|
54238
54238
|
};
|
|
54239
54239
|
}
|
|
54240
|
-
const cellStyle = attachPinnedStyle(_extends$
|
|
54240
|
+
const cellStyle = attachPinnedStyle(_extends$c({
|
|
54241
54241
|
"--width": `${width2}px`
|
|
54242
54242
|
}, styleProp), isRtl, pinnedPosition, pinnedOffset);
|
|
54243
54243
|
const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
|
|
@@ -54274,7 +54274,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
54274
54274
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
54275
54275
|
"data-colindex": colIndex,
|
|
54276
54276
|
role: "presentation",
|
|
54277
|
-
style: _extends$
|
|
54277
|
+
style: _extends$c({
|
|
54278
54278
|
width: "var(--width)"
|
|
54279
54279
|
}, style2)
|
|
54280
54280
|
});
|
|
@@ -54289,7 +54289,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
54289
54289
|
const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
|
|
54290
54290
|
const editCellStateRest = _objectWithoutPropertiesLoose$1(editCellState, _excluded2$8);
|
|
54291
54291
|
const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
|
|
54292
|
-
const params2 = _extends$
|
|
54292
|
+
const params2 = _extends$c({}, cellParams, {
|
|
54293
54293
|
row: updatedRow,
|
|
54294
54294
|
formattedValue
|
|
54295
54295
|
}, editCellStateRest);
|
|
@@ -54311,7 +54311,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
54311
54311
|
onDragEnter: publish("cellDragEnter", onDragEnter),
|
|
54312
54312
|
onDragOver: publish("cellDragOver", onDragOver)
|
|
54313
54313
|
};
|
|
54314
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
54314
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
54315
54315
|
className: clsx$1(classes2.root, classNames2, className),
|
|
54316
54316
|
role: "gridcell",
|
|
54317
54317
|
"data-field": field2,
|
|
@@ -54413,16 +54413,16 @@ function GridSkeletonCell(props) {
|
|
|
54413
54413
|
height: CONTENT_HEIGHT
|
|
54414
54414
|
};
|
|
54415
54415
|
}, [type2]);
|
|
54416
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
54416
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
54417
54417
|
"data-field": field2,
|
|
54418
54418
|
className: clsx$1(classes2.root, className),
|
|
54419
|
-
style: _extends$
|
|
54419
|
+
style: _extends$c({
|
|
54420
54420
|
height: height2,
|
|
54421
54421
|
maxWidth: width2,
|
|
54422
54422
|
minWidth: width2
|
|
54423
54423
|
}, style2)
|
|
54424
54424
|
}, other, {
|
|
54425
|
-
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$
|
|
54425
|
+
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$c({}, skeletonProps))
|
|
54426
54426
|
}));
|
|
54427
54427
|
}
|
|
54428
54428
|
GridSkeletonCell.propTypes = {
|
|
@@ -55426,7 +55426,7 @@ function GridPreferencesPanel() {
|
|
|
55426
55426
|
filterPanelTriggerRef
|
|
55427
55427
|
} = useGridPreferencePanelContext();
|
|
55428
55428
|
const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
|
|
55429
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$
|
|
55429
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$c({
|
|
55430
55430
|
id: preferencePanelState.panelId,
|
|
55431
55431
|
open: columns2.length > 0 && preferencePanelState.open,
|
|
55432
55432
|
"aria-labelledby": preferencePanelState.labelId,
|
|
@@ -55438,7 +55438,7 @@ function GridPreferencesPanel() {
|
|
|
55438
55438
|
function GridHeader() {
|
|
55439
55439
|
const rootProps = useGridRootProps();
|
|
55440
55440
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
55441
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$
|
|
55441
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$c({}, rootProps.slotProps?.toolbar))]
|
|
55442
55442
|
});
|
|
55443
55443
|
}
|
|
55444
55444
|
const _excluded$I = ["className", "children"];
|
|
@@ -55476,7 +55476,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref2) {
|
|
|
55476
55476
|
if (isSSR2) {
|
|
55477
55477
|
return null;
|
|
55478
55478
|
}
|
|
55479
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$
|
|
55479
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$c({
|
|
55480
55480
|
className: clsx$1(classes2.root, className, cssVariables.className),
|
|
55481
55481
|
ownerState
|
|
55482
55482
|
}, other, {
|
|
@@ -55524,7 +55524,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref2
|
|
|
55524
55524
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$H);
|
|
55525
55525
|
const rootProps = useGridRootProps();
|
|
55526
55526
|
const classes2 = useUtilityClasses$r(rootProps);
|
|
55527
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$
|
|
55527
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$c({
|
|
55528
55528
|
className: clsx$1(classes2.root, className),
|
|
55529
55529
|
ownerState: rootProps
|
|
55530
55530
|
}, other, {
|
|
@@ -55568,7 +55568,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref2) {
|
|
|
55568
55568
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$G);
|
|
55569
55569
|
const rootProps = useGridRootProps();
|
|
55570
55570
|
const classes2 = useUtilityClasses$q(rootProps);
|
|
55571
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$
|
|
55571
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$c({
|
|
55572
55572
|
className: clsx$1(classes2.root, className),
|
|
55573
55573
|
ownerState: rootProps
|
|
55574
55574
|
}, other, {
|
|
@@ -55591,7 +55591,7 @@ function useGridComponentRenderer(defaultElement, render2, props, state = {}) {
|
|
|
55591
55591
|
props.className = clsx$1(render2.props.className, props.className);
|
|
55592
55592
|
}
|
|
55593
55593
|
if (render2.props.style || props.style) {
|
|
55594
|
-
props.style = _extends$
|
|
55594
|
+
props.style = _extends$c({}, props.style, render2.props.style);
|
|
55595
55595
|
}
|
|
55596
55596
|
if (render2.props.sx || props.sx) {
|
|
55597
55597
|
props.sx = mergeSx(props.sx, render2.props.sx);
|
|
@@ -55728,7 +55728,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref2) {
|
|
|
55728
55728
|
onItemFocus,
|
|
55729
55729
|
onItemDisabled
|
|
55730
55730
|
}), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
|
|
55731
|
-
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$
|
|
55731
|
+
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$c({
|
|
55732
55732
|
role: "toolbar",
|
|
55733
55733
|
"aria-orientation": "horizontal",
|
|
55734
55734
|
"aria-label": rootProps.label || void 0,
|
|
@@ -55804,7 +55804,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref2) {
|
|
|
55804
55804
|
}
|
|
55805
55805
|
previousAriaDisabled.current = ariaDisabled;
|
|
55806
55806
|
}, [ariaDisabled, id2, onItemDisabled]);
|
|
55807
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
55807
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
55808
55808
|
tabIndex: focusableItemId === id2 ? 0 : -1
|
|
55809
55809
|
}, other, {
|
|
55810
55810
|
disabled,
|
|
@@ -55860,7 +55860,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
55860
55860
|
} = props;
|
|
55861
55861
|
const apiRef = useGridApiContext();
|
|
55862
55862
|
const rootProps = useGridRootProps();
|
|
55863
|
-
const ownerState = _extends$
|
|
55863
|
+
const ownerState = _extends$c({}, props, {
|
|
55864
55864
|
classes: rootProps.classes
|
|
55865
55865
|
});
|
|
55866
55866
|
const classes2 = useUtilityClasses$o(ownerState);
|
|
@@ -55872,11 +55872,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
55872
55872
|
const columnName = colDef.headerName ?? colDef.field;
|
|
55873
55873
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
55874
55874
|
className: classes2.root,
|
|
55875
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
55875
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
55876
55876
|
title: apiRef.current.getLocaleText("columnMenuLabel"),
|
|
55877
55877
|
enterDelay: 1e3
|
|
55878
55878
|
}, rootProps.slotProps?.baseTooltip, {
|
|
55879
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
55879
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
55880
55880
|
ref: iconButtonRef,
|
|
55881
55881
|
tabIndex: -1,
|
|
55882
55882
|
className: classes2.button,
|
|
@@ -55925,7 +55925,7 @@ function GridColumnHeaderMenu({
|
|
|
55925
55925
|
target: target2,
|
|
55926
55926
|
onClose: hideMenu,
|
|
55927
55927
|
onExited,
|
|
55928
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$
|
|
55928
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$c({
|
|
55929
55929
|
colDef,
|
|
55930
55930
|
hideMenu,
|
|
55931
55931
|
open: open2,
|
|
@@ -56165,7 +56165,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
|
|
|
56165
56165
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$D);
|
|
56166
56166
|
const rootProps = useGridRootProps();
|
|
56167
56167
|
const classes2 = useUtilityClasses$n(rootProps);
|
|
56168
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$
|
|
56168
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$c({
|
|
56169
56169
|
className: clsx$1(classes2.root, className),
|
|
56170
56170
|
ownerState: rootProps
|
|
56171
56171
|
}, other, {
|
|
@@ -56190,7 +56190,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
56190
56190
|
}
|
|
56191
56191
|
}
|
|
56192
56192
|
}, [description2, label2]);
|
|
56193
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
56193
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
56194
56194
|
title: description2 || tooltip2
|
|
56195
56195
|
}, rootProps.slotProps?.baseTooltip, {
|
|
56196
56196
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
|
|
@@ -56234,7 +56234,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
56234
56234
|
side = GridColumnHeaderSeparatorSides.Right
|
|
56235
56235
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$C);
|
|
56236
56236
|
const rootProps = useGridRootProps();
|
|
56237
|
-
const ownerState = _extends$
|
|
56237
|
+
const ownerState = _extends$c({}, props, {
|
|
56238
56238
|
side,
|
|
56239
56239
|
classes: rootProps.classes
|
|
56240
56240
|
});
|
|
@@ -56245,7 +56245,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
56245
56245
|
}, []);
|
|
56246
56246
|
return (
|
|
56247
56247
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
56248
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
56248
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
56249
56249
|
className: classes2.root,
|
|
56250
56250
|
style: {
|
|
56251
56251
|
minHeight: height2
|
|
@@ -56313,9 +56313,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
56313
56313
|
}
|
|
56314
56314
|
}
|
|
56315
56315
|
}, [apiRef, hasFocus]);
|
|
56316
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
56316
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
56317
56317
|
className: clsx$1(classes2.root, headerClassName),
|
|
56318
|
-
style: _extends$
|
|
56318
|
+
style: _extends$c({}, style2, {
|
|
56319
56319
|
width: width2
|
|
56320
56320
|
}),
|
|
56321
56321
|
role: "columnheader",
|
|
@@ -56324,7 +56324,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
56324
56324
|
"aria-sort": ariaSort
|
|
56325
56325
|
}, other, {
|
|
56326
56326
|
ref: handleRef,
|
|
56327
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
56327
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
56328
56328
|
className: classes2.draggableContainer,
|
|
56329
56329
|
draggable: isDraggable,
|
|
56330
56330
|
role: "presentation"
|
|
@@ -56341,7 +56341,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
56341
56341
|
})
|
|
56342
56342
|
}), columnTitleIconButtons]
|
|
56343
56343
|
}), columnMenuIconButton]
|
|
56344
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$
|
|
56344
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$c({
|
|
56345
56345
|
resizable: !rootProps.disableColumnResize && !!resizable,
|
|
56346
56346
|
resizing: isResizing,
|
|
56347
56347
|
height: height2,
|
|
@@ -56425,7 +56425,7 @@ function GridColumnHeaderItem(props) {
|
|
|
56425
56425
|
if (colDef.renderHeader) {
|
|
56426
56426
|
headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
|
|
56427
56427
|
}
|
|
56428
|
-
const ownerState = _extends$
|
|
56428
|
+
const ownerState = _extends$c({}, props, {
|
|
56429
56429
|
classes: rootProps.classes,
|
|
56430
56430
|
showRightBorder,
|
|
56431
56431
|
showLeftBorder
|
|
@@ -56491,10 +56491,10 @@ function GridColumnHeaderItem(props) {
|
|
|
56491
56491
|
const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
|
|
56492
56492
|
const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
|
|
56493
56493
|
const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
56494
|
-
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$
|
|
56494
|
+
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$c({
|
|
56495
56495
|
field: colDef.field,
|
|
56496
56496
|
counter: filterItemsCounter
|
|
56497
|
-
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$
|
|
56497
|
+
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$c({
|
|
56498
56498
|
field: colDef.field,
|
|
56499
56499
|
direction: sortDirection,
|
|
56500
56500
|
index: sortIndex,
|
|
@@ -56518,8 +56518,8 @@ function GridColumnHeaderItem(props) {
|
|
|
56518
56518
|
colDef
|
|
56519
56519
|
}) : colDef.headerClassName;
|
|
56520
56520
|
const label2 = colDef.headerName ?? colDef.field;
|
|
56521
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
56522
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
56521
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
56522
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
56523
56523
|
ref: headerCellRef,
|
|
56524
56524
|
classes: classes2,
|
|
56525
56525
|
columnMenuOpen,
|
|
@@ -56600,7 +56600,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
|
|
|
56600
56600
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$A);
|
|
56601
56601
|
const rootProps = useGridRootProps();
|
|
56602
56602
|
const classes2 = useUtilityClasses$k(rootProps);
|
|
56603
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$
|
|
56603
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$c({
|
|
56604
56604
|
className: clsx$1(classes2.root, className),
|
|
56605
56605
|
ownerState: rootProps
|
|
56606
56606
|
}, other, {
|
|
@@ -56628,7 +56628,7 @@ function getIcon(icons, direction, className, sortingOrder) {
|
|
|
56628
56628
|
Icon = icons.columnUnsortedIcon;
|
|
56629
56629
|
iconProps.sortingOrder = sortingOrder;
|
|
56630
56630
|
}
|
|
56631
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
56631
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
56632
56632
|
fontSize: "small",
|
|
56633
56633
|
className
|
|
56634
56634
|
}, iconProps)) : null;
|
|
@@ -56642,7 +56642,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
56642
56642
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$z);
|
|
56643
56643
|
const apiRef = useGridApiContext();
|
|
56644
56644
|
const rootProps = useGridRootProps();
|
|
56645
|
-
const ownerState = _extends$
|
|
56645
|
+
const ownerState = _extends$c({}, props, {
|
|
56646
56646
|
classes: rootProps.classes
|
|
56647
56647
|
});
|
|
56648
56648
|
const classes2 = useUtilityClasses$j(ownerState);
|
|
@@ -56650,7 +56650,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
56650
56650
|
if (!iconElement) {
|
|
56651
56651
|
return null;
|
|
56652
56652
|
}
|
|
56653
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
56653
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
56654
56654
|
tabIndex: -1,
|
|
56655
56655
|
"aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
56656
56656
|
title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
@@ -56693,7 +56693,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
56693
56693
|
if (!props.counter) {
|
|
56694
56694
|
return null;
|
|
56695
56695
|
}
|
|
56696
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$
|
|
56696
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$c({}, props));
|
|
56697
56697
|
}
|
|
56698
56698
|
GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
56699
56699
|
// ----------------------------- Warning --------------------------------
|
|
@@ -56712,7 +56712,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
56712
56712
|
} = props;
|
|
56713
56713
|
const apiRef = useGridApiContext();
|
|
56714
56714
|
const rootProps = useGridRootProps();
|
|
56715
|
-
const ownerState = _extends$
|
|
56715
|
+
const ownerState = _extends$c({}, props, {
|
|
56716
56716
|
classes: rootProps.classes
|
|
56717
56717
|
});
|
|
56718
56718
|
const classes2 = useUtilityClasses$i(ownerState);
|
|
@@ -56738,7 +56738,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
56738
56738
|
if (!counter2) {
|
|
56739
56739
|
return null;
|
|
56740
56740
|
}
|
|
56741
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
56741
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
56742
56742
|
id: labelId,
|
|
56743
56743
|
onClick: toggleFilter,
|
|
56744
56744
|
"aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
|
|
@@ -56753,7 +56753,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
56753
56753
|
fontSize: "small"
|
|
56754
56754
|
})
|
|
56755
56755
|
}));
|
|
56756
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
56756
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
56757
56757
|
title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
|
|
56758
56758
|
enterDelay: 1e3
|
|
56759
56759
|
}, rootProps.slotProps?.baseTooltip, {
|
|
@@ -56903,7 +56903,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
|
|
|
56903
56903
|
hideMenu(event2);
|
|
56904
56904
|
}
|
|
56905
56905
|
}, [hideMenu]);
|
|
56906
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$
|
|
56906
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$c({
|
|
56907
56907
|
as: rootProps.slots.baseMenuList,
|
|
56908
56908
|
id: id2,
|
|
56909
56909
|
className: clsx$1(gridClasses.menuList, className),
|
|
@@ -56939,14 +56939,14 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
56939
56939
|
colDef,
|
|
56940
56940
|
addDividers = true
|
|
56941
56941
|
} = props;
|
|
56942
|
-
const processedComponents = React.useMemo(() => _extends$
|
|
56942
|
+
const processedComponents = React.useMemo(() => _extends$c({}, defaultSlots2, slots), [defaultSlots2, slots]);
|
|
56943
56943
|
const processedSlotProps = React.useMemo(() => {
|
|
56944
56944
|
if (!slotProps || Object.keys(slotProps).length === 0) {
|
|
56945
56945
|
return defaultSlotProps;
|
|
56946
56946
|
}
|
|
56947
|
-
const mergedProps = _extends$
|
|
56947
|
+
const mergedProps = _extends$c({}, slotProps);
|
|
56948
56948
|
Object.entries(defaultSlotProps).forEach(([key2, currentSlotProps]) => {
|
|
56949
|
-
mergedProps[key2] = _extends$
|
|
56949
|
+
mergedProps[key2] = _extends$c({}, currentSlotProps, slotProps[key2] || {});
|
|
56950
56950
|
});
|
|
56951
56951
|
return mergedProps;
|
|
56952
56952
|
}, [defaultSlotProps, slotProps]);
|
|
@@ -56973,7 +56973,7 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
56973
56973
|
const processedComponentProps = processedSlotProps[key2];
|
|
56974
56974
|
if (processedComponentProps) {
|
|
56975
56975
|
const customProps = _objectWithoutPropertiesLoose$1(processedComponentProps, _excluded$x);
|
|
56976
|
-
itemProps = _extends$
|
|
56976
|
+
itemProps = _extends$c({}, itemProps, customProps);
|
|
56977
56977
|
}
|
|
56978
56978
|
return addDividers && index2 !== sorted.length - 1 ? [...acc, [processedComponents[key2], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key2], itemProps]];
|
|
56979
56979
|
}, []);
|
|
@@ -57050,7 +57050,7 @@ GridColumnMenuManageItem.propTypes = {
|
|
|
57050
57050
|
};
|
|
57051
57051
|
function GridColumnMenuColumnsItem(props) {
|
|
57052
57052
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
57053
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$
|
|
57053
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$c({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$c({}, props))]
|
|
57054
57054
|
});
|
|
57055
57055
|
}
|
|
57056
57056
|
GridColumnMenuColumnsItem.propTypes = {
|
|
@@ -57175,15 +57175,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
|
|
|
57175
57175
|
slots,
|
|
57176
57176
|
slotProps
|
|
57177
57177
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$w);
|
|
57178
|
-
const orderedSlots = useGridColumnMenuSlots(_extends$
|
|
57178
|
+
const orderedSlots = useGridColumnMenuSlots(_extends$c({}, other, {
|
|
57179
57179
|
defaultSlots: defaultSlots2,
|
|
57180
57180
|
defaultSlotProps,
|
|
57181
57181
|
slots,
|
|
57182
57182
|
slotProps
|
|
57183
57183
|
}));
|
|
57184
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$
|
|
57184
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$c({}, other, {
|
|
57185
57185
|
ref: ref2,
|
|
57186
|
-
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$
|
|
57186
|
+
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$c({}, otherProps), index2))
|
|
57187
57187
|
}));
|
|
57188
57188
|
});
|
|
57189
57189
|
GridGenericColumnMenu.propTypes = {
|
|
@@ -57219,7 +57219,7 @@ GridGenericColumnMenu.propTypes = {
|
|
|
57219
57219
|
slots: PropTypes.object
|
|
57220
57220
|
};
|
|
57221
57221
|
const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref2) {
|
|
57222
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$
|
|
57222
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$c({}, props, {
|
|
57223
57223
|
ref: ref2,
|
|
57224
57224
|
defaultSlots: GRID_COLUMN_MENU_SLOTS,
|
|
57225
57225
|
defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
|
|
@@ -57274,7 +57274,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
57274
57274
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$v);
|
|
57275
57275
|
const rootProps = useGridRootProps();
|
|
57276
57276
|
const classes2 = useUtilityClasses$h(rootProps);
|
|
57277
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$
|
|
57277
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$c({
|
|
57278
57278
|
tabIndex: -1,
|
|
57279
57279
|
className: clsx$1(classes2.root, className),
|
|
57280
57280
|
ownerState: rootProps
|
|
@@ -57284,8 +57284,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
57284
57284
|
});
|
|
57285
57285
|
function GridColumnsPanel(props) {
|
|
57286
57286
|
const rootProps = useGridRootProps();
|
|
57287
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$
|
|
57288
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$
|
|
57287
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$c({}, props, {
|
|
57288
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$c({}, rootProps.slotProps?.columnsManagement))
|
|
57289
57289
|
}));
|
|
57290
57290
|
}
|
|
57291
57291
|
const _excluded$u = ["children", "className", "classes"];
|
|
@@ -57339,7 +57339,7 @@ const GridPanel = forwardRef((props, ref2) => {
|
|
|
57339
57339
|
if (!fallbackTarget) {
|
|
57340
57340
|
return null;
|
|
57341
57341
|
}
|
|
57342
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$
|
|
57342
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$c({
|
|
57343
57343
|
as: rootProps.slots.basePopper,
|
|
57344
57344
|
ownerState: rootProps,
|
|
57345
57345
|
placement: "bottom-end",
|
|
@@ -57406,7 +57406,7 @@ function GridPanelContent(props) {
|
|
|
57406
57406
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$t);
|
|
57407
57407
|
const rootProps = useGridRootProps();
|
|
57408
57408
|
const classes2 = useUtilityClasses$g(rootProps);
|
|
57409
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$
|
|
57409
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$c({
|
|
57410
57410
|
className: clsx$1(classes2.root, className),
|
|
57411
57411
|
ownerState: rootProps
|
|
57412
57412
|
}, other));
|
|
@@ -57444,7 +57444,7 @@ function GridPanelFooter(props) {
|
|
|
57444
57444
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$s);
|
|
57445
57445
|
const rootProps = useGridRootProps();
|
|
57446
57446
|
const classes2 = useUtilityClasses$f(rootProps);
|
|
57447
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$
|
|
57447
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$c({
|
|
57448
57448
|
className: clsx$1(classes2.root, className),
|
|
57449
57449
|
ownerState: rootProps
|
|
57450
57450
|
}, other));
|
|
@@ -57644,7 +57644,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57644
57644
|
filterValue = void 0;
|
|
57645
57645
|
}
|
|
57646
57646
|
}
|
|
57647
|
-
applyFilterChanges(_extends$
|
|
57647
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
57648
57648
|
field: field2,
|
|
57649
57649
|
operator: newOperator.value,
|
|
57650
57650
|
value: filterValue
|
|
@@ -57654,7 +57654,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57654
57654
|
const operator2 = event2.target.value;
|
|
57655
57655
|
const newOperator = currentColumn?.filterOperators.find((op) => op.value === operator2);
|
|
57656
57656
|
const eraseItemValue = !newOperator?.InputComponent || newOperator?.InputComponent !== currentOperator?.InputComponent;
|
|
57657
|
-
applyFilterChanges(_extends$
|
|
57657
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
57658
57658
|
operator: operator2,
|
|
57659
57659
|
value: eraseItemValue ? void 0 : item.value
|
|
57660
57660
|
}));
|
|
@@ -57675,16 +57675,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57675
57675
|
}
|
|
57676
57676
|
}
|
|
57677
57677
|
}), [currentOperator]);
|
|
57678
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$
|
|
57678
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$c({
|
|
57679
57679
|
className: classes2.root,
|
|
57680
57680
|
"data-id": item.id,
|
|
57681
57681
|
ownerState: rootProps
|
|
57682
57682
|
}, other, {
|
|
57683
57683
|
ref: ref2,
|
|
57684
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$
|
|
57684
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$c({}, deleteIconProps, {
|
|
57685
57685
|
className: clsx$1(classes2.deleteIcon, deleteIconProps.className),
|
|
57686
57686
|
ownerState: rootProps,
|
|
57687
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
57687
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
57688
57688
|
"aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
57689
57689
|
title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
57690
57690
|
onClick: handleDeleteFilter,
|
|
@@ -57695,7 +57695,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57695
57695
|
fontSize: "small"
|
|
57696
57696
|
})
|
|
57697
57697
|
}))
|
|
57698
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$
|
|
57698
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$c({
|
|
57699
57699
|
as: rootProps.slots.baseSelect,
|
|
57700
57700
|
sx: [hasLogicOperatorColumn ? {
|
|
57701
57701
|
display: "flex"
|
|
@@ -57720,12 +57720,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57720
57720
|
disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
|
|
57721
57721
|
native: isBaseSelectNative
|
|
57722
57722
|
}, rootProps.slotProps?.baseSelect, {
|
|
57723
|
-
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
57723
|
+
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
57724
57724
|
native: isBaseSelectNative,
|
|
57725
57725
|
key: logicOperator.toString(),
|
|
57726
57726
|
value: logicOperator.toString()
|
|
57727
57727
|
}), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
|
|
57728
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$
|
|
57728
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$c({
|
|
57729
57729
|
as: rootProps.slots.baseSelect
|
|
57730
57730
|
}, columnInputProps, {
|
|
57731
57731
|
className: clsx$1(classes2.columnInput, columnInputProps.className),
|
|
@@ -57739,12 +57739,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57739
57739
|
native: isBaseSelectNative,
|
|
57740
57740
|
disabled: readOnly
|
|
57741
57741
|
}, rootProps.slotProps?.baseSelect, {
|
|
57742
|
-
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
57742
|
+
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
57743
57743
|
native: isBaseSelectNative,
|
|
57744
57744
|
key: col.field,
|
|
57745
57745
|
value: col.field
|
|
57746
57746
|
}), getColumnLabel(col)))
|
|
57747
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$
|
|
57747
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$c({
|
|
57748
57748
|
as: rootProps.slots.baseSelect,
|
|
57749
57749
|
size: "small"
|
|
57750
57750
|
}, operatorInputProps, {
|
|
@@ -57759,15 +57759,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
57759
57759
|
inputRef: filterSelectorRef,
|
|
57760
57760
|
disabled: readOnly
|
|
57761
57761
|
}, rootProps.slotProps?.baseSelect, {
|
|
57762
|
-
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
57762
|
+
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
57763
57763
|
native: isBaseSelectNative,
|
|
57764
57764
|
key: operator2.value,
|
|
57765
57765
|
value: operator2.value
|
|
57766
57766
|
}), operator2.label || apiRef.current.getLocaleText(`filterOperator${capitalize$1(operator2.value)}`)))
|
|
57767
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$
|
|
57767
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$c({}, valueInputPropsOther, {
|
|
57768
57768
|
className: clsx$1(classes2.valueInput, valueInputPropsOther.className),
|
|
57769
57769
|
ownerState: rootProps,
|
|
57770
|
-
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$
|
|
57770
|
+
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$c({
|
|
57771
57771
|
apiRef,
|
|
57772
57772
|
item,
|
|
57773
57773
|
applyValue: applyFilterChanges,
|
|
@@ -57991,7 +57991,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
57991
57991
|
apiRef.current.deleteFilterItem(validFilters[0]);
|
|
57992
57992
|
return apiRef.current.hideFilterPanel();
|
|
57993
57993
|
}
|
|
57994
|
-
return apiRef.current.setFilterModel(_extends$
|
|
57994
|
+
return apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
57995
57995
|
items: readOnlyFilters
|
|
57996
57996
|
}), "removeAllFilterItems");
|
|
57997
57997
|
}, [apiRef, readOnlyFilters, filterModel, validFilters]);
|
|
@@ -58005,10 +58005,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
58005
58005
|
lastFilterRef.current.focus();
|
|
58006
58006
|
}
|
|
58007
58007
|
}, [validFilters.length]);
|
|
58008
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$
|
|
58008
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$c({}, other, {
|
|
58009
58009
|
ref: ref2,
|
|
58010
58010
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
|
|
58011
|
-
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
58011
|
+
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
58012
58012
|
item,
|
|
58013
58013
|
applyFilterChanges: applyFilter,
|
|
58014
58014
|
deleteFilter,
|
|
@@ -58020,7 +58020,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
58020
58020
|
readOnly: true,
|
|
58021
58021
|
logicOperators,
|
|
58022
58022
|
columnsSort
|
|
58023
|
-
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
58023
|
+
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
58024
58024
|
item,
|
|
58025
58025
|
applyFilterChanges: applyFilter,
|
|
58026
58026
|
deleteFilter,
|
|
@@ -58033,12 +58033,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
58033
58033
|
columnsSort
|
|
58034
58034
|
}, filterFormProps), item.id == null ? index2 + readOnlyFilters.length : item.id))]
|
|
58035
58035
|
}), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
|
|
58036
|
-
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
58036
|
+
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
58037
58037
|
onClick: addNewFilter,
|
|
58038
58038
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
|
|
58039
58039
|
}, rootProps.slotProps?.baseButton, {
|
|
58040
58040
|
children: apiRef.current.getLocaleText("filterPanelAddFilter")
|
|
58041
|
-
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
58041
|
+
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
58042
58042
|
onClick: handleRemoveAll,
|
|
58043
58043
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
|
|
58044
58044
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -58179,7 +58179,7 @@ function GridShadowScrollArea(props) {
|
|
|
58179
58179
|
const {
|
|
58180
58180
|
children: children3
|
|
58181
58181
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded$p);
|
|
58182
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$
|
|
58182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$c({}, rest, {
|
|
58183
58183
|
children: children3
|
|
58184
58184
|
}));
|
|
58185
58185
|
}
|
|
@@ -58245,7 +58245,7 @@ function GridColumnsManagement(props) {
|
|
|
58245
58245
|
}, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
|
|
58246
58246
|
const toggleAllColumns = React.useCallback((isVisible2) => {
|
|
58247
58247
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
58248
|
-
const newModel = _extends$
|
|
58248
|
+
const newModel = _extends$c({}, currentModel);
|
|
58249
58249
|
const togglableColumns = getTogglableColumns ? getTogglableColumns(columns2) : null;
|
|
58250
58250
|
(toggleAllMode === "filteredOnly" ? currentColumns : columns2).forEach((col) => {
|
|
58251
58251
|
if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
|
|
@@ -58288,7 +58288,7 @@ function GridColumnsManagement(props) {
|
|
|
58288
58288
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
|
|
58289
58289
|
className: classes2.header,
|
|
58290
58290
|
ownerState: rootProps,
|
|
58291
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$
|
|
58291
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$c({
|
|
58292
58292
|
as: rootProps.slots.baseTextField,
|
|
58293
58293
|
ownerState: rootProps,
|
|
58294
58294
|
placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
|
|
@@ -58303,7 +58303,7 @@ function GridColumnsManagement(props) {
|
|
|
58303
58303
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
58304
58304
|
fontSize: "small"
|
|
58305
58305
|
}),
|
|
58306
|
-
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
58306
|
+
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
58307
58307
|
size: "small",
|
|
58308
58308
|
"aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
|
|
58309
58309
|
style: searchValue ? {
|
|
@@ -58332,7 +58332,7 @@ function GridColumnsManagement(props) {
|
|
|
58332
58332
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementBody, {
|
|
58333
58333
|
className: classes2.root,
|
|
58334
58334
|
ownerState: rootProps,
|
|
58335
|
-
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
58335
|
+
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
58336
58336
|
className: classes2.row,
|
|
58337
58337
|
disabled: column2.hideable === false,
|
|
58338
58338
|
checked: columnVisibilityModel[column2.field] !== false,
|
|
@@ -58350,7 +58350,7 @@ function GridColumnsManagement(props) {
|
|
|
58350
58350
|
}), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
|
|
58351
58351
|
ownerState: rootProps,
|
|
58352
58352
|
className: classes2.footer,
|
|
58353
|
-
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
58353
|
+
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
58354
58354
|
disabled: hideableColumns.length === 0,
|
|
58355
58355
|
checked: allHideableColumnsVisible,
|
|
58356
58356
|
indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
|
|
@@ -58358,7 +58358,7 @@ function GridColumnsManagement(props) {
|
|
|
58358
58358
|
name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
58359
58359
|
label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
58360
58360
|
density: "compact"
|
|
58361
|
-
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
58361
|
+
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
58362
58362
|
onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
|
|
58363
58363
|
disabled: isResetDisabled
|
|
58364
58364
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -58489,11 +58489,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
|
|
|
58489
58489
|
return null;
|
|
58490
58490
|
}
|
|
58491
58491
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
58492
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
58492
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
58493
58493
|
title: apiRef.current.getLocaleText("toolbarExportLabel"),
|
|
58494
58494
|
enterDelay: 1e3
|
|
58495
58495
|
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
58496
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
58496
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
58497
58497
|
size: "small",
|
|
58498
58498
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
|
|
58499
58499
|
"aria-expanded": open2,
|
|
@@ -58548,7 +58548,7 @@ function GridCsvExportMenuItem(props) {
|
|
|
58548
58548
|
hideMenu,
|
|
58549
58549
|
options
|
|
58550
58550
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$o);
|
|
58551
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
58551
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
58552
58552
|
onClick: () => {
|
|
58553
58553
|
apiRef.current.exportDataAsCsv(options);
|
|
58554
58554
|
hideMenu?.();
|
|
@@ -58584,7 +58584,7 @@ function GridPrintExportMenuItem(props) {
|
|
|
58584
58584
|
hideMenu,
|
|
58585
58585
|
options
|
|
58586
58586
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded2$6);
|
|
58587
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
58587
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
58588
58588
|
onClick: () => {
|
|
58589
58589
|
apiRef.current.exportDataAsPrint(options);
|
|
58590
58590
|
hideMenu?.();
|
|
@@ -58628,7 +58628,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref2) {
|
|
|
58628
58628
|
if (preProcessedButtons.length === 0) {
|
|
58629
58629
|
return null;
|
|
58630
58630
|
}
|
|
58631
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$
|
|
58631
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$c({}, other, {
|
|
58632
58632
|
ref: ref2,
|
|
58633
58633
|
children: preProcessedButtons.map((button, index2) => /* @__PURE__ */ React.cloneElement(button.component, {
|
|
58634
58634
|
key: index2
|
|
@@ -58843,7 +58843,7 @@ function QuickFilter(props) {
|
|
|
58843
58843
|
ref2.current.style.setProperty("--trigger-width", `${triggerRef.current?.offsetWidth}px`);
|
|
58844
58844
|
}
|
|
58845
58845
|
}, []);
|
|
58846
|
-
const element2 = useGridComponentRenderer("div", render2, _extends$
|
|
58846
|
+
const element2 = useGridComponentRenderer("div", render2, _extends$c({
|
|
58847
58847
|
className: resolvedClassName
|
|
58848
58848
|
}, other, {
|
|
58849
58849
|
ref: ref2
|
|
@@ -58943,9 +58943,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref2)
|
|
|
58943
58943
|
onValueChange(event2);
|
|
58944
58944
|
onChange?.(event2);
|
|
58945
58945
|
};
|
|
58946
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$
|
|
58947
|
-
slotProps: _extends$
|
|
58948
|
-
htmlInput: _extends$
|
|
58946
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$c({}, rootProps.slotProps?.baseTextField, {
|
|
58947
|
+
slotProps: _extends$c({
|
|
58948
|
+
htmlInput: _extends$c({
|
|
58949
58949
|
role: "searchbox",
|
|
58950
58950
|
id: controlId,
|
|
58951
58951
|
tabIndex: state.expanded ? void 0 : -1
|
|
@@ -59014,7 +59014,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref2) {
|
|
|
59014
59014
|
clearValue();
|
|
59015
59015
|
onClick?.(event2);
|
|
59016
59016
|
};
|
|
59017
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
59017
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
59018
59018
|
className: resolvedClassName,
|
|
59019
59019
|
tabIndex: -1
|
|
59020
59020
|
}, other, {
|
|
@@ -59070,7 +59070,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref2)
|
|
|
59070
59070
|
onExpandedChange(!state.expanded);
|
|
59071
59071
|
onClick?.(event2);
|
|
59072
59072
|
};
|
|
59073
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
59073
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
59074
59074
|
className: resolvedClassName,
|
|
59075
59075
|
"aria-controls": controlId,
|
|
59076
59076
|
"aria-expanded": state.expanded
|
|
@@ -59172,16 +59172,16 @@ function GridToolbarQuickFilter(props) {
|
|
|
59172
59172
|
formatter: quickFilterFormatter,
|
|
59173
59173
|
debounceMs,
|
|
59174
59174
|
render: (quickFilterProps, state) => {
|
|
59175
|
-
const currentOwnerState = _extends$
|
|
59175
|
+
const currentOwnerState = _extends$c({}, ownerState, {
|
|
59176
59176
|
expanded: state.expanded
|
|
59177
59177
|
});
|
|
59178
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$
|
|
59178
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$c({}, quickFilterProps, {
|
|
59179
59179
|
className: clsx$1(classes2.root, className),
|
|
59180
59180
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
|
|
59181
59181
|
render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
59182
59182
|
title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
59183
59183
|
enterDelay: 0,
|
|
59184
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$
|
|
59184
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$c({
|
|
59185
59185
|
className: classes2.trigger
|
|
59186
59186
|
}, triggerProps, {
|
|
59187
59187
|
ownerState: currentOwnerState,
|
|
@@ -59198,7 +59198,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
59198
59198
|
ref: ref2,
|
|
59199
59199
|
slotProps: controlSlotProps
|
|
59200
59200
|
} = _ref, controlProps = _objectWithoutPropertiesLoose$1(_ref, _excluded2$5);
|
|
59201
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$
|
|
59201
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$c({
|
|
59202
59202
|
as: rootProps.slots.baseTextField,
|
|
59203
59203
|
className: classes2.control,
|
|
59204
59204
|
ownerState: currentOwnerState,
|
|
@@ -59206,8 +59206,8 @@ function GridToolbarQuickFilter(props) {
|
|
|
59206
59206
|
"aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
59207
59207
|
placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
|
|
59208
59208
|
size: "small",
|
|
59209
|
-
slotProps: _extends$
|
|
59210
|
-
input: _extends$
|
|
59209
|
+
slotProps: _extends$c({
|
|
59210
|
+
input: _extends$c({
|
|
59211
59211
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
59212
59212
|
fontSize: "small"
|
|
59213
59213
|
}),
|
|
@@ -59298,7 +59298,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref2)
|
|
|
59298
59298
|
}
|
|
59299
59299
|
onPointerUp?.(event2);
|
|
59300
59300
|
};
|
|
59301
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
59301
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
59302
59302
|
id: buttonId,
|
|
59303
59303
|
"aria-haspopup": "true",
|
|
59304
59304
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -59372,7 +59372,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref2
|
|
|
59372
59372
|
}
|
|
59373
59373
|
onPointerUp?.(event2);
|
|
59374
59374
|
};
|
|
59375
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
59375
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
59376
59376
|
id: buttonId,
|
|
59377
59377
|
"aria-haspopup": "true",
|
|
59378
59378
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -59423,7 +59423,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref2) {
|
|
|
59423
59423
|
apiRef.current.exportDataAsCsv(options);
|
|
59424
59424
|
onClick?.(event2);
|
|
59425
59425
|
};
|
|
59426
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
59426
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
59427
59427
|
onClick: handleClick
|
|
59428
59428
|
}, other, {
|
|
59429
59429
|
ref: ref2
|
|
@@ -59482,7 +59482,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref2) {
|
|
|
59482
59482
|
apiRef.current.exportDataAsPrint(options);
|
|
59483
59483
|
onClick?.(event2);
|
|
59484
59484
|
};
|
|
59485
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
59485
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
59486
59486
|
onClick: handleClick
|
|
59487
59487
|
}, other, {
|
|
59488
59488
|
ref: ref2
|
|
@@ -59562,7 +59562,7 @@ function GridToolbarDivider(props) {
|
|
|
59562
59562
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded$e);
|
|
59563
59563
|
const rootProps = useGridRootProps();
|
|
59564
59564
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
59565
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$
|
|
59565
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$c({
|
|
59566
59566
|
as: rootProps.slots.baseDivider,
|
|
59567
59567
|
orientation: "vertical",
|
|
59568
59568
|
className: classes2.divider
|
|
@@ -59580,7 +59580,7 @@ function GridToolbarLabel(props) {
|
|
|
59580
59580
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded2$4);
|
|
59581
59581
|
const rootProps = useGridRootProps();
|
|
59582
59582
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
59583
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$
|
|
59583
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$c({
|
|
59584
59584
|
className: classes2.label
|
|
59585
59585
|
}, other));
|
|
59586
59586
|
}
|
|
@@ -59614,7 +59614,7 @@ function GridToolbar(props) {
|
|
|
59614
59614
|
}), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
59615
59615
|
title: apiRef.current.getLocaleText("toolbarFilters"),
|
|
59616
59616
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
|
|
59617
|
-
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$
|
|
59617
|
+
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$c({}, triggerProps, {
|
|
59618
59618
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
|
|
59619
59619
|
badgeContent: state.filterCount,
|
|
59620
59620
|
color: "primary",
|
|
@@ -59644,18 +59644,18 @@ function GridToolbar(props) {
|
|
|
59644
59644
|
open: exportMenuOpen,
|
|
59645
59645
|
onClose: closeExportMenu,
|
|
59646
59646
|
position: "bottom-end",
|
|
59647
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$
|
|
59647
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$c({
|
|
59648
59648
|
id: exportMenuId,
|
|
59649
59649
|
"aria-labelledby": exportMenuTriggerId,
|
|
59650
59650
|
autoFocusItem: true
|
|
59651
59651
|
}, rootProps.slotProps?.baseMenuList, {
|
|
59652
59652
|
children: [!printOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
|
|
59653
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
59653
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
59654
59654
|
options: printOptions,
|
|
59655
59655
|
onClick: closeExportMenu,
|
|
59656
59656
|
children: apiRef.current.getLocaleText("toolbarExportPrint")
|
|
59657
59657
|
}), !csvOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
|
|
59658
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
59658
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
59659
59659
|
options: csvOptions,
|
|
59660
59660
|
onClick: closeExportMenu,
|
|
59661
59661
|
children: apiRef.current.getLocaleText("toolbarExportCSV")
|
|
@@ -59663,7 +59663,7 @@ function GridToolbar(props) {
|
|
|
59663
59663
|
}))
|
|
59664
59664
|
})]
|
|
59665
59665
|
}), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
59666
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$
|
|
59666
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$c({}, quickFilterProps))]
|
|
59667
59667
|
})]
|
|
59668
59668
|
});
|
|
59669
59669
|
}
|
|
@@ -59733,7 +59733,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
|
|
|
59733
59733
|
const ownerState = useGridRootProps();
|
|
59734
59734
|
const classes2 = useUtilityClasses$a(ownerState);
|
|
59735
59735
|
const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
|
|
59736
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$
|
|
59736
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$c({
|
|
59737
59737
|
className: clsx$1(classes2.root, className),
|
|
59738
59738
|
ownerState
|
|
59739
59739
|
}, other, {
|
|
@@ -59758,12 +59758,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref2) {
|
|
|
59758
59758
|
const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
|
|
59759
59759
|
selectedRowCount
|
|
59760
59760
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
|
|
59761
|
-
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$
|
|
59761
|
+
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$c({}, rootProps.slotProps?.footerRowCount, {
|
|
59762
59762
|
rowCount: totalTopLevelRowCount,
|
|
59763
59763
|
visibleRowCount: visibleTopLevelRowCount
|
|
59764
59764
|
})) : null;
|
|
59765
59765
|
const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
|
|
59766
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$
|
|
59766
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$c({}, props, {
|
|
59767
59767
|
ref: ref2,
|
|
59768
59768
|
children: [selectedRowCountElement, rowCountElement, paginationElement]
|
|
59769
59769
|
}));
|
|
@@ -59923,7 +59923,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
59923
59923
|
"data-colindex": colIndex,
|
|
59924
59924
|
empty: visibleColumns && !visibleColumns.has(column2.field),
|
|
59925
59925
|
className: clsx$1(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
|
|
59926
|
-
style: _extends$
|
|
59926
|
+
style: _extends$c({
|
|
59927
59927
|
"--width": `${column2.computedWidth}px`
|
|
59928
59928
|
}, pinnedStyle)
|
|
59929
59929
|
}, `skeleton-column-${i2}-${column2.field}`));
|
|
@@ -59983,7 +59983,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
59983
59983
|
}
|
|
59984
59984
|
};
|
|
59985
59985
|
useGridEvent(apiRef, "columnResize", handleColumnResize);
|
|
59986
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$
|
|
59986
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$c({
|
|
59987
59987
|
className: classes2.root
|
|
59988
59988
|
}, rest, {
|
|
59989
59989
|
ref: handleRef,
|
|
@@ -59995,7 +59995,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
|
|
|
59995
59995
|
const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
|
|
59996
59996
|
const viewportHeight = dimensions?.viewportInnerSize.height ?? 0;
|
|
59997
59997
|
const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
|
|
59998
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$
|
|
59998
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$c({}, props, {
|
|
59999
59999
|
skeletonRowsCount,
|
|
60000
60000
|
ref: forwardedRef
|
|
60001
60001
|
}));
|
|
@@ -60030,8 +60030,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref2)
|
|
|
60030
60030
|
const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
60031
60031
|
const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
|
|
60032
60032
|
const Component2 = activeVariant.component(rootProps);
|
|
60033
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
60034
|
-
style: _extends$
|
|
60033
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({
|
|
60034
|
+
style: _extends$c({}, activeVariant.style, style2)
|
|
60035
60035
|
}, other, {
|
|
60036
60036
|
ref: ref2,
|
|
60037
60037
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, {})
|
|
@@ -60057,7 +60057,7 @@ GridLoadingOverlay.propTypes = {
|
|
|
60057
60057
|
const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref2) {
|
|
60058
60058
|
const apiRef = useGridApiContext();
|
|
60059
60059
|
const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
|
|
60060
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
60060
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
60061
60061
|
ref: ref2,
|
|
60062
60062
|
children: noRowsLabel
|
|
60063
60063
|
}));
|
|
@@ -60077,9 +60077,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
|
|
|
60077
60077
|
apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
|
|
60078
60078
|
};
|
|
60079
60079
|
const showManageColumnsButton = !rootProps.disableColumnSelector && columns2.length > 0;
|
|
60080
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$
|
|
60080
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$c({}, props, {
|
|
60081
60081
|
ref: ref2,
|
|
60082
|
-
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
60082
|
+
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
60083
60083
|
size: "small"
|
|
60084
60084
|
}, rootProps.slotProps?.baseButton, {
|
|
60085
60085
|
onClick: handleOpenManageColumns,
|
|
@@ -60195,7 +60195,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref2) {
|
|
|
60195
60195
|
return null;
|
|
60196
60196
|
}
|
|
60197
60197
|
const text2 = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
|
|
60198
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$
|
|
60198
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$c({
|
|
60199
60199
|
className: clsx$1(classes2.root, className),
|
|
60200
60200
|
ownerState
|
|
60201
60201
|
}, other, {
|
|
@@ -60328,7 +60328,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
60328
60328
|
slotProps,
|
|
60329
60329
|
disableColumnReorder
|
|
60330
60330
|
} = rootProps;
|
|
60331
|
-
const heightEntry = useGridSelector(apiRef, () => _extends$
|
|
60331
|
+
const heightEntry = useGridSelector(apiRef, () => _extends$c({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
|
|
60332
60332
|
const style2 = React.useMemo(() => {
|
|
60333
60333
|
if (isNotVisible) {
|
|
60334
60334
|
return {
|
|
@@ -60337,7 +60337,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
60337
60337
|
height: 0
|
|
60338
60338
|
};
|
|
60339
60339
|
}
|
|
60340
|
-
const rowStyle = _extends$
|
|
60340
|
+
const rowStyle = _extends$c({}, styleProp, {
|
|
60341
60341
|
maxHeight: rowHeight === "auto" ? "none" : rowHeight,
|
|
60342
60342
|
// max-height doesn't support "auto"
|
|
60343
60343
|
minHeight: rowHeight,
|
|
@@ -60362,7 +60362,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
60362
60362
|
const ariaAttributes = getRowAriaAttributes(rowNode, index2);
|
|
60363
60363
|
if (typeof rootProps.getRowClassName === "function") {
|
|
60364
60364
|
const indexRelativeToCurrentPage = index2 - (currentPage.range?.firstRowIndex || 0);
|
|
60365
|
-
const rowParams = _extends$
|
|
60365
|
+
const rowParams = _extends$c({}, apiRef.current.getRowParams(rowId), {
|
|
60366
60366
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
60367
60367
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
60368
60368
|
indexRelativeToCurrentPage
|
|
@@ -60393,7 +60393,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
60393
60393
|
const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
|
|
60394
60394
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
60395
60395
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
|
|
60396
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$
|
|
60396
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$c({
|
|
60397
60397
|
column: column2,
|
|
60398
60398
|
width: width2,
|
|
60399
60399
|
rowId,
|
|
@@ -60442,7 +60442,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
60442
60442
|
onMouseOut: publish("rowMouseOut", onMouseOut),
|
|
60443
60443
|
onMouseOver: publish("rowMouseOver", onMouseOver)
|
|
60444
60444
|
} : null;
|
|
60445
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
60445
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
60446
60446
|
"data-id": rowId,
|
|
60447
60447
|
"data-rowindex": index2,
|
|
60448
60448
|
role: "row",
|
|
@@ -60587,7 +60587,7 @@ const useGridIsRtl = (apiRef) => {
|
|
|
60587
60587
|
if (isFirstEffect.current) {
|
|
60588
60588
|
isFirstEffect.current = false;
|
|
60589
60589
|
} else {
|
|
60590
|
-
apiRef.current.setState((state) => _extends$
|
|
60590
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
60591
60591
|
isRtl
|
|
60592
60592
|
}));
|
|
60593
60593
|
}
|
|
@@ -61140,7 +61140,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
61140
61140
|
}, [apiRef]);
|
|
61141
61141
|
const updateControlState = React.useCallback((key2, state, reason) => {
|
|
61142
61142
|
return apiRef.current.setState((previousState) => {
|
|
61143
|
-
return _extends$
|
|
61143
|
+
return _extends$c({}, previousState, {
|
|
61144
61144
|
[key2]: state(previousState[key2])
|
|
61145
61145
|
});
|
|
61146
61146
|
}, reason);
|
|
@@ -61156,7 +61156,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
61156
61156
|
useGridApiMethod(apiRef, privateStateApi, "private");
|
|
61157
61157
|
};
|
|
61158
61158
|
const propsStateInitializer = (state, props) => {
|
|
61159
|
-
return _extends$
|
|
61159
|
+
return _extends$c({}, state, {
|
|
61160
61160
|
props: {
|
|
61161
61161
|
getRowId: props.getRowId
|
|
61162
61162
|
}
|
|
@@ -61164,7 +61164,7 @@ const propsStateInitializer = (state, props) => {
|
|
|
61164
61164
|
};
|
|
61165
61165
|
const useGridProps = (apiRef, props) => {
|
|
61166
61166
|
React.useEffect(() => {
|
|
61167
|
-
apiRef.current.setState((state) => _extends$
|
|
61167
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61168
61168
|
props: {
|
|
61169
61169
|
getRowId: props.getRowId
|
|
61170
61170
|
}
|
|
@@ -61414,7 +61414,7 @@ const useGridClipboard = (apiRef, props) => {
|
|
|
61414
61414
|
useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
|
|
61415
61415
|
useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
|
|
61416
61416
|
};
|
|
61417
|
-
const columnMenuStateInitializer = (state) => _extends$
|
|
61417
|
+
const columnMenuStateInitializer = (state) => _extends$c({}, state, {
|
|
61418
61418
|
columnMenu: {
|
|
61419
61419
|
open: false
|
|
61420
61420
|
}
|
|
@@ -61434,7 +61434,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
61434
61434
|
return state;
|
|
61435
61435
|
}
|
|
61436
61436
|
logger2.debug("Opening Column Menu");
|
|
61437
|
-
return _extends$
|
|
61437
|
+
return _extends$c({}, state, {
|
|
61438
61438
|
columnMenu: {
|
|
61439
61439
|
open: true,
|
|
61440
61440
|
field: field2
|
|
@@ -61474,7 +61474,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
61474
61474
|
if (shouldUpdate) {
|
|
61475
61475
|
apiRef.current.setState((state) => {
|
|
61476
61476
|
logger2.debug("Hiding Column Menu");
|
|
61477
|
-
return _extends$
|
|
61477
|
+
return _extends$c({}, state, {
|
|
61478
61478
|
columnMenu: newState
|
|
61479
61479
|
});
|
|
61480
61480
|
});
|
|
@@ -61507,7 +61507,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
|
|
|
61507
61507
|
columnVisibilityModel: props.columnVisibilityModel ?? props.initialState?.columns?.columnVisibilityModel ?? {},
|
|
61508
61508
|
keepOnlyColumnsToUpsert: true
|
|
61509
61509
|
});
|
|
61510
|
-
return _extends$
|
|
61510
|
+
return _extends$c({}, state, {
|
|
61511
61511
|
columns: columnsState,
|
|
61512
61512
|
// In pro/premium, this part of the state is defined. We give it an empty but defined value
|
|
61513
61513
|
// for the community version.
|
|
@@ -61543,7 +61543,7 @@ function useGridColumns(apiRef, props) {
|
|
|
61543
61543
|
const setColumnVisibilityModel = React.useCallback((model) => {
|
|
61544
61544
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
61545
61545
|
if (currentModel !== model) {
|
|
61546
|
-
apiRef.current.setState((state) => _extends$
|
|
61546
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61547
61547
|
columns: createColumnsState({
|
|
61548
61548
|
apiRef,
|
|
61549
61549
|
columnsToUpsert: [],
|
|
@@ -61569,7 +61569,7 @@ function useGridColumns(apiRef, props) {
|
|
|
61569
61569
|
const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
|
|
61570
61570
|
const isCurrentlyVisible = columnVisibilityModel[field2] ?? true;
|
|
61571
61571
|
if (isVisible2 !== isCurrentlyVisible) {
|
|
61572
|
-
const newModel = _extends$
|
|
61572
|
+
const newModel = _extends$c({}, columnVisibilityModel, {
|
|
61573
61573
|
[field2]: isVisible2
|
|
61574
61574
|
});
|
|
61575
61575
|
apiRef.current.setColumnVisibilityModel(newModel);
|
|
@@ -61589,7 +61589,7 @@ function useGridColumns(apiRef, props) {
|
|
|
61589
61589
|
const updatedColumns = [...allColumns];
|
|
61590
61590
|
const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
|
|
61591
61591
|
updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
|
|
61592
|
-
setGridColumnsState(_extends$
|
|
61592
|
+
setGridColumnsState(_extends$c({}, gridColumnsStateSelector(apiRef), {
|
|
61593
61593
|
orderedFields: updatedColumns
|
|
61594
61594
|
}));
|
|
61595
61595
|
const params2 = {
|
|
@@ -61603,12 +61603,12 @@ function useGridColumns(apiRef, props) {
|
|
|
61603
61603
|
logger2.debug(`Updating column ${field2} width to ${width2}`);
|
|
61604
61604
|
const columnsState = gridColumnsStateSelector(apiRef);
|
|
61605
61605
|
const column2 = columnsState.lookup[field2];
|
|
61606
|
-
const newColumn = _extends$
|
|
61606
|
+
const newColumn = _extends$c({}, column2, {
|
|
61607
61607
|
width: width2,
|
|
61608
61608
|
hasBeenResized: true
|
|
61609
61609
|
});
|
|
61610
|
-
setGridColumnsState(hydrateColumnsWidth(_extends$
|
|
61611
|
-
lookup: _extends$
|
|
61610
|
+
setGridColumnsState(hydrateColumnsWidth(_extends$c({}, columnsState, {
|
|
61611
|
+
lookup: _extends$c({}, columnsState.lookup, {
|
|
61612
61612
|
[field2]: newColumn
|
|
61613
61613
|
})
|
|
61614
61614
|
}), apiRef.current.getRootDimensions()));
|
|
@@ -61668,7 +61668,7 @@ function useGridColumns(apiRef, props) {
|
|
|
61668
61668
|
if (Object.keys(dimensions).length > 0) {
|
|
61669
61669
|
columnsStateToExport.dimensions = dimensions;
|
|
61670
61670
|
}
|
|
61671
|
-
return _extends$
|
|
61671
|
+
return _extends$c({}, prevState, {
|
|
61672
61672
|
columns: columnsStateToExport
|
|
61673
61673
|
});
|
|
61674
61674
|
}, [apiRef, props.columnVisibilityModel, props.initialState?.columns]);
|
|
@@ -61694,7 +61694,7 @@ function useGridColumns(apiRef, props) {
|
|
|
61694
61694
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
61695
61695
|
if (value2 === GridPreferencePanelsValue.columns) {
|
|
61696
61696
|
const ColumnsPanel = props.slots.columnsPanel;
|
|
61697
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$
|
|
61697
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$c({}, props.slotProps?.columnsPanel));
|
|
61698
61698
|
}
|
|
61699
61699
|
return initialValue;
|
|
61700
61700
|
}, [props.slots.columnsPanel, props.slotProps?.columnsPanel]);
|
|
@@ -61759,11 +61759,11 @@ function useGridColumns(apiRef, props) {
|
|
|
61759
61759
|
}, [apiRef, logger2, props.columnVisibilityModel]);
|
|
61760
61760
|
}
|
|
61761
61761
|
function mergeColumnsState(columnsState) {
|
|
61762
|
-
return (state) => _extends$
|
|
61762
|
+
return (state) => _extends$c({}, state, {
|
|
61763
61763
|
columns: columnsState
|
|
61764
61764
|
});
|
|
61765
61765
|
}
|
|
61766
|
-
const densityStateInitializer = (state, props) => _extends$
|
|
61766
|
+
const densityStateInitializer = (state, props) => _extends$c({}, state, {
|
|
61767
61767
|
density: props.initialState?.density ?? props.density ?? "standard"
|
|
61768
61768
|
});
|
|
61769
61769
|
const useGridDensity = (apiRef, props) => {
|
|
@@ -61781,7 +61781,7 @@ const useGridDensity = (apiRef, props) => {
|
|
|
61781
61781
|
return;
|
|
61782
61782
|
}
|
|
61783
61783
|
logger2.debug(`Set grid density to ${newDensity}`);
|
|
61784
|
-
apiRef.current.setState((state) => _extends$
|
|
61784
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61785
61785
|
density: newDensity
|
|
61786
61786
|
}));
|
|
61787
61787
|
});
|
|
@@ -61800,13 +61800,13 @@ const useGridDensity = (apiRef, props) => {
|
|
|
61800
61800
|
if (!shouldExportRowCount) {
|
|
61801
61801
|
return prevState;
|
|
61802
61802
|
}
|
|
61803
|
-
return _extends$
|
|
61803
|
+
return _extends$c({}, prevState, {
|
|
61804
61804
|
density: exportedDensity
|
|
61805
61805
|
});
|
|
61806
61806
|
}, [apiRef, props.density, props.initialState?.density]);
|
|
61807
61807
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
61808
61808
|
const restoredDensity = context2.stateToRestore?.density ? context2.stateToRestore.density : gridDensitySelector(apiRef);
|
|
61809
|
-
apiRef.current.setState((state) => _extends$
|
|
61809
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61810
61810
|
density: restoredDensity
|
|
61811
61811
|
}));
|
|
61812
61812
|
return params2;
|
|
@@ -61934,7 +61934,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
|
|
|
61934
61934
|
}
|
|
61935
61935
|
const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
|
|
61936
61936
|
if (validPage !== paginationModel.page) {
|
|
61937
|
-
paginationModel = _extends$
|
|
61937
|
+
paginationModel = _extends$c({}, paginationModel, {
|
|
61938
61938
|
page: validPage
|
|
61939
61939
|
});
|
|
61940
61940
|
}
|
|
@@ -61981,8 +61981,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
61981
61981
|
return;
|
|
61982
61982
|
}
|
|
61983
61983
|
logger2.debug("Setting 'paginationModel' to", paginationModel);
|
|
61984
|
-
apiRef.current.setState((state) => _extends$
|
|
61985
|
-
pagination: _extends$
|
|
61984
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
61985
|
+
pagination: _extends$c({}, state.pagination, {
|
|
61986
61986
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
61987
61987
|
})
|
|
61988
61988
|
}), "setPaginationModel");
|
|
@@ -62005,16 +62005,16 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
62005
62005
|
if (!shouldExportPaginationModel) {
|
|
62006
62006
|
return prevState;
|
|
62007
62007
|
}
|
|
62008
|
-
return _extends$
|
|
62009
|
-
pagination: _extends$
|
|
62008
|
+
return _extends$c({}, prevState, {
|
|
62009
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
62010
62010
|
paginationModel
|
|
62011
62011
|
})
|
|
62012
62012
|
});
|
|
62013
62013
|
}, [apiRef, props.paginationModel, props.initialState?.pagination?.paginationModel, props.autoPageSize]);
|
|
62014
62014
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
62015
|
-
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$
|
|
62016
|
-
apiRef.current.setState((state) => _extends$
|
|
62017
|
-
pagination: _extends$
|
|
62015
|
+
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), context2.stateToRestore.pagination?.paginationModel) : gridPaginationModelSelector(apiRef);
|
|
62016
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62017
|
+
pagination: _extends$c({}, state.pagination, {
|
|
62018
62018
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
62019
62019
|
})
|
|
62020
62020
|
}), "stateRestorePreProcessing");
|
|
@@ -62064,7 +62064,7 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
62064
62064
|
}
|
|
62065
62065
|
}, [apiRef]);
|
|
62066
62066
|
const handleFilterModelChange = React.useCallback((filterModel) => {
|
|
62067
|
-
const currentActiveFilters = _extends$
|
|
62067
|
+
const currentActiveFilters = _extends$c({}, filterModel, {
|
|
62068
62068
|
// replace items with the active items
|
|
62069
62069
|
items: gridFilterActiveItemsSelector(apiRef)
|
|
62070
62070
|
});
|
|
@@ -62088,8 +62088,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
62088
62088
|
if (!props.pagination) {
|
|
62089
62089
|
return;
|
|
62090
62090
|
}
|
|
62091
|
-
apiRef.current.setState((state) => _extends$
|
|
62092
|
-
pagination: _extends$
|
|
62091
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62092
|
+
pagination: _extends$c({}, state.pagination, {
|
|
62093
62093
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
|
|
62094
62094
|
})
|
|
62095
62095
|
}));
|
|
@@ -62100,8 +62100,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
62100
62100
|
if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled2) {
|
|
62101
62101
|
return state;
|
|
62102
62102
|
}
|
|
62103
|
-
return _extends$
|
|
62104
|
-
pagination: _extends$
|
|
62103
|
+
return _extends$c({}, state, {
|
|
62104
|
+
pagination: _extends$c({}, state.pagination, {
|
|
62105
62105
|
paginationMode: props.paginationMode,
|
|
62106
62106
|
enabled: props.pagination === true
|
|
62107
62107
|
})
|
|
@@ -62169,7 +62169,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
62169
62169
|
apiRef.current.setRows(newRows);
|
|
62170
62170
|
}, [apiRef]);
|
|
62171
62171
|
const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
|
|
62172
|
-
const normalizeOptions2 = _extends$
|
|
62172
|
+
const normalizeOptions2 = _extends$c({
|
|
62173
62173
|
copyStyles: true,
|
|
62174
62174
|
hideToolbar: false,
|
|
62175
62175
|
hideFooter: false,
|
|
@@ -62265,7 +62265,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
62265
62265
|
if (!previousGridState.current?.columns?.columnVisibilityModel) {
|
|
62266
62266
|
apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
|
|
62267
62267
|
}
|
|
62268
|
-
apiRef.current.setState((state) => _extends$
|
|
62268
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62269
62269
|
virtualization: previousVirtualizationState.current
|
|
62270
62270
|
}));
|
|
62271
62271
|
apiRef.current.setRows(previousRows.current);
|
|
@@ -62287,8 +62287,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
62287
62287
|
page: 0,
|
|
62288
62288
|
pageSize: visibleRowCount
|
|
62289
62289
|
};
|
|
62290
|
-
apiRef.current.setState((state) => _extends$
|
|
62291
|
-
pagination: _extends$
|
|
62290
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62291
|
+
pagination: _extends$c({}, state.pagination, {
|
|
62292
62292
|
paginationModel: getDerivedPaginationModel(
|
|
62293
62293
|
state.pagination,
|
|
62294
62294
|
// Using signature `DataGridPro` to allow more than 100 rows in the print export
|
|
@@ -62299,8 +62299,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
62299
62299
|
}));
|
|
62300
62300
|
}
|
|
62301
62301
|
previousVirtualizationState.current = apiRef.current.state.virtualization;
|
|
62302
|
-
apiRef.current.setState((state) => _extends$
|
|
62303
|
-
virtualization: _extends$
|
|
62302
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62303
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
62304
62304
|
enabled: false,
|
|
62305
62305
|
enabledForColumns: false
|
|
62306
62306
|
})
|
|
@@ -62342,8 +62342,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
62342
62342
|
};
|
|
62343
62343
|
const filterStateInitializer = (state, props, apiRef) => {
|
|
62344
62344
|
const filterModel = props.filterModel ?? props.initialState?.filter?.filterModel ?? getDefaultGridFilterModel();
|
|
62345
|
-
return _extends$
|
|
62346
|
-
filter: _extends$
|
|
62345
|
+
return _extends$c({}, state, {
|
|
62346
|
+
filter: _extends$c({
|
|
62347
62347
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
|
|
62348
62348
|
}, defaultGridFilterLookup),
|
|
62349
62349
|
visibleRowsLookup: {}
|
|
@@ -62374,11 +62374,11 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62374
62374
|
apiRef.current.setState((state) => {
|
|
62375
62375
|
const filterModel = gridFilterModelSelector(apiRef);
|
|
62376
62376
|
const filterState = apiRef.current.getFilterState(filterModel);
|
|
62377
|
-
const newState = _extends$
|
|
62378
|
-
filter: _extends$
|
|
62377
|
+
const newState = _extends$c({}, state, {
|
|
62378
|
+
filter: _extends$c({}, state.filter, filterState)
|
|
62379
62379
|
});
|
|
62380
62380
|
const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
62381
|
-
return _extends$
|
|
62381
|
+
return _extends$c({}, newState, {
|
|
62382
62382
|
visibleRowsLookup: visibleRowsLookupState
|
|
62383
62383
|
});
|
|
62384
62384
|
});
|
|
@@ -62399,7 +62399,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62399
62399
|
} else {
|
|
62400
62400
|
items[itemIndex] = item;
|
|
62401
62401
|
}
|
|
62402
|
-
apiRef.current.setFilterModel(_extends$
|
|
62402
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62403
62403
|
items
|
|
62404
62404
|
}), "upsertFilterItem");
|
|
62405
62405
|
}, [apiRef]);
|
|
@@ -62414,7 +62414,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62414
62414
|
existingItems[itemIndex] = item;
|
|
62415
62415
|
}
|
|
62416
62416
|
});
|
|
62417
|
-
apiRef.current.setFilterModel(_extends$
|
|
62417
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62418
62418
|
items: existingItems
|
|
62419
62419
|
}), "upsertFilterItems");
|
|
62420
62420
|
}, [apiRef]);
|
|
@@ -62424,7 +62424,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62424
62424
|
if (items.length === filterModel.items.length) {
|
|
62425
62425
|
return;
|
|
62426
62426
|
}
|
|
62427
|
-
apiRef.current.setFilterModel(_extends$
|
|
62427
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62428
62428
|
items
|
|
62429
62429
|
}), "deleteFilterItem");
|
|
62430
62430
|
}, [apiRef]);
|
|
@@ -62463,7 +62463,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62463
62463
|
operator: targetColumn.filterOperators[0].value
|
|
62464
62464
|
}, apiRef)];
|
|
62465
62465
|
}
|
|
62466
|
-
apiRef.current.setFilterModel(_extends$
|
|
62466
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62467
62467
|
items: newFilterItems
|
|
62468
62468
|
}));
|
|
62469
62469
|
}
|
|
@@ -62478,7 +62478,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62478
62478
|
if (filterModel.logicOperator === logicOperator) {
|
|
62479
62479
|
return;
|
|
62480
62480
|
}
|
|
62481
|
-
apiRef.current.setFilterModel(_extends$
|
|
62481
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62482
62482
|
logicOperator
|
|
62483
62483
|
}), "changeLogicOperator");
|
|
62484
62484
|
}, [apiRef]);
|
|
@@ -62487,7 +62487,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62487
62487
|
if (isDeepEqual(filterModel.quickFilterValues, values3)) {
|
|
62488
62488
|
return;
|
|
62489
62489
|
}
|
|
62490
|
-
apiRef.current.setFilterModel(_extends$
|
|
62490
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62491
62491
|
quickFilterValues: [...values3]
|
|
62492
62492
|
}));
|
|
62493
62493
|
}, [apiRef]);
|
|
@@ -62506,7 +62506,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62506
62506
|
isRowMatchingFilters,
|
|
62507
62507
|
filterModel: filterModel ?? getDefaultGridFilterModel()
|
|
62508
62508
|
});
|
|
62509
|
-
return _extends$
|
|
62509
|
+
return _extends$c({}, filterResult, {
|
|
62510
62510
|
filterModel
|
|
62511
62511
|
});
|
|
62512
62512
|
}, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
|
|
@@ -62539,7 +62539,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62539
62539
|
if (!shouldExportFilterModel) {
|
|
62540
62540
|
return prevState;
|
|
62541
62541
|
}
|
|
62542
|
-
return _extends$
|
|
62542
|
+
return _extends$c({}, prevState, {
|
|
62543
62543
|
filter: {
|
|
62544
62544
|
filterModel: filterModelToExport
|
|
62545
62545
|
}
|
|
@@ -62551,14 +62551,14 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62551
62551
|
return params2;
|
|
62552
62552
|
}
|
|
62553
62553
|
apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
|
|
62554
|
-
return _extends$
|
|
62554
|
+
return _extends$c({}, params2, {
|
|
62555
62555
|
callbacks: [...params2.callbacks, apiRef.current.unstable_applyFilters]
|
|
62556
62556
|
});
|
|
62557
62557
|
}, [apiRef, props.disableMultipleColumnsFiltering]);
|
|
62558
62558
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
62559
62559
|
if (value2 === GridPreferencePanelsValue.filters) {
|
|
62560
62560
|
const FilterPanel = props.slots.filterPanel;
|
|
62561
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$
|
|
62561
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$c({}, props.slotProps?.filterPanel));
|
|
62562
62562
|
}
|
|
62563
62563
|
return initialValue;
|
|
62564
62564
|
}, [props.slots.filterPanel, props.slotProps?.filterPanel]);
|
|
@@ -62613,7 +62613,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62613
62613
|
const columnsLookup = gridColumnLookupSelector(apiRef);
|
|
62614
62614
|
const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
|
|
62615
62615
|
if (newFilterItems.length < filterModel.items.length) {
|
|
62616
|
-
apiRef.current.setFilterModel(_extends$
|
|
62616
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
62617
62617
|
items: newFilterItems
|
|
62618
62618
|
}));
|
|
62619
62619
|
}
|
|
@@ -62625,7 +62625,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62625
62625
|
}, [apiRef]);
|
|
62626
62626
|
const updateVisibleRowsLookupState = React.useCallback(() => {
|
|
62627
62627
|
apiRef.current.setState((state) => {
|
|
62628
|
-
return _extends$
|
|
62628
|
+
return _extends$c({}, state, {
|
|
62629
62629
|
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
62630
62630
|
});
|
|
62631
62631
|
});
|
|
@@ -62649,7 +62649,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
62649
62649
|
}
|
|
62650
62650
|
}, [apiRef, logger2, props.filterModel]);
|
|
62651
62651
|
};
|
|
62652
|
-
const focusStateInitializer = (state) => _extends$
|
|
62652
|
+
const focusStateInitializer = (state) => _extends$c({}, state, {
|
|
62653
62653
|
focus: {
|
|
62654
62654
|
cell: null,
|
|
62655
62655
|
columnHeader: null,
|
|
@@ -62681,7 +62681,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62681
62681
|
}
|
|
62682
62682
|
apiRef.current.setState((state) => {
|
|
62683
62683
|
logger2.debug(`Focusing on cell with id=${id2} and field=${field2}`);
|
|
62684
|
-
return _extends$
|
|
62684
|
+
return _extends$c({}, state, {
|
|
62685
62685
|
tabIndex: {
|
|
62686
62686
|
cell: {
|
|
62687
62687
|
id: id2,
|
|
@@ -62715,7 +62715,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62715
62715
|
publishCellFocusOut(cell2, event2);
|
|
62716
62716
|
apiRef.current.setState((state) => {
|
|
62717
62717
|
logger2.debug(`Focusing on column header with colIndex=${field2}`);
|
|
62718
|
-
return _extends$
|
|
62718
|
+
return _extends$c({}, state, {
|
|
62719
62719
|
tabIndex: {
|
|
62720
62720
|
columnHeader: {
|
|
62721
62721
|
field: field2
|
|
@@ -62740,7 +62740,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62740
62740
|
publishCellFocusOut(cell2, event2);
|
|
62741
62741
|
apiRef.current.setState((state) => {
|
|
62742
62742
|
logger2.debug(`Focusing on column header filter with colIndex=${field2}`);
|
|
62743
|
-
return _extends$
|
|
62743
|
+
return _extends$c({}, state, {
|
|
62744
62744
|
tabIndex: {
|
|
62745
62745
|
columnHeader: null,
|
|
62746
62746
|
columnHeaderFilter: {
|
|
@@ -62766,7 +62766,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62766
62766
|
apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell2.id, cell2.field), event2);
|
|
62767
62767
|
}
|
|
62768
62768
|
apiRef.current.setState((state) => {
|
|
62769
|
-
return _extends$
|
|
62769
|
+
return _extends$c({}, state, {
|
|
62770
62770
|
tabIndex: {
|
|
62771
62771
|
columnGroupHeader: {
|
|
62772
62772
|
field: field2,
|
|
@@ -62872,7 +62872,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62872
62872
|
return;
|
|
62873
62873
|
}
|
|
62874
62874
|
logger2.debug(`Clearing focus`);
|
|
62875
|
-
apiRef.current.setState((state) => _extends$
|
|
62875
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62876
62876
|
focus: {
|
|
62877
62877
|
cell: null,
|
|
62878
62878
|
columnHeader: null,
|
|
@@ -62911,7 +62911,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62911
62911
|
if (cellParams) {
|
|
62912
62912
|
apiRef.current.setCellFocus(cellParams.id, cellParams.field);
|
|
62913
62913
|
} else {
|
|
62914
|
-
apiRef.current.setState((state) => _extends$
|
|
62914
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62915
62915
|
focus: {
|
|
62916
62916
|
cell: null,
|
|
62917
62917
|
columnHeader: null,
|
|
@@ -62946,7 +62946,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62946
62946
|
const nextRow = currentPage.rows[clamp$6(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
|
|
62947
62947
|
nextRowId = nextRow?.id ?? null;
|
|
62948
62948
|
}
|
|
62949
|
-
apiRef.current.setState((state) => _extends$
|
|
62949
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62950
62950
|
focus: {
|
|
62951
62951
|
cell: nextRowId === null ? null : {
|
|
62952
62952
|
id: nextRowId,
|
|
@@ -62974,7 +62974,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
62974
62974
|
}
|
|
62975
62975
|
const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
62976
62976
|
apiRef.current.setState((state) => {
|
|
62977
|
-
return _extends$
|
|
62977
|
+
return _extends$c({}, state, {
|
|
62978
62978
|
tabIndex: {
|
|
62979
62979
|
cell: {
|
|
62980
62980
|
id: currentPage.rows[0].id,
|
|
@@ -63529,8 +63529,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
63529
63529
|
return;
|
|
63530
63530
|
}
|
|
63531
63531
|
logger2.debug("Setting 'rowCount' to", newRowCount);
|
|
63532
|
-
apiRef.current.setState((state) => _extends$
|
|
63533
|
-
pagination: _extends$
|
|
63532
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63533
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63534
63534
|
rowCount: newRowCount
|
|
63535
63535
|
})
|
|
63536
63536
|
}));
|
|
@@ -63550,16 +63550,16 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
63550
63550
|
if (!shouldExportRowCount) {
|
|
63551
63551
|
return prevState;
|
|
63552
63552
|
}
|
|
63553
|
-
return _extends$
|
|
63554
|
-
pagination: _extends$
|
|
63553
|
+
return _extends$c({}, prevState, {
|
|
63554
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
63555
63555
|
rowCount: exportedRowCount
|
|
63556
63556
|
})
|
|
63557
63557
|
});
|
|
63558
63558
|
}, [apiRef, props.rowCount, props.initialState?.pagination?.rowCount]);
|
|
63559
63559
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63560
63560
|
const restoredRowCount = context2.stateToRestore.pagination?.rowCount ? context2.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
|
|
63561
|
-
apiRef.current.setState((state) => _extends$
|
|
63562
|
-
pagination: _extends$
|
|
63561
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63562
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63563
63563
|
rowCount: restoredRowCount
|
|
63564
63564
|
})
|
|
63565
63565
|
}));
|
|
@@ -63608,8 +63608,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
63608
63608
|
return;
|
|
63609
63609
|
}
|
|
63610
63610
|
logger2.debug("Setting 'paginationMeta' to", newPaginationMeta);
|
|
63611
|
-
apiRef.current.setState((state) => _extends$
|
|
63612
|
-
pagination: _extends$
|
|
63611
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63612
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63613
63613
|
meta: newPaginationMeta
|
|
63614
63614
|
})
|
|
63615
63615
|
}));
|
|
@@ -63629,16 +63629,16 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
63629
63629
|
if (!shouldExportRowCount) {
|
|
63630
63630
|
return prevState;
|
|
63631
63631
|
}
|
|
63632
|
-
return _extends$
|
|
63633
|
-
pagination: _extends$
|
|
63632
|
+
return _extends$c({}, prevState, {
|
|
63633
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
63634
63634
|
meta: exportedPaginationMeta
|
|
63635
63635
|
})
|
|
63636
63636
|
});
|
|
63637
63637
|
}, [apiRef, props.paginationMeta, props.initialState?.pagination?.meta]);
|
|
63638
63638
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63639
63639
|
const restoredPaginationMeta = context2.stateToRestore.pagination?.meta ? context2.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
|
|
63640
|
-
apiRef.current.setState((state) => _extends$
|
|
63641
|
-
pagination: _extends$
|
|
63640
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63641
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63642
63642
|
meta: restoredPaginationMeta
|
|
63643
63643
|
})
|
|
63644
63644
|
}));
|
|
@@ -63653,12 +63653,12 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
63653
63653
|
}, [apiRef, props.paginationMeta]);
|
|
63654
63654
|
};
|
|
63655
63655
|
const paginationStateInitializer = (state, props) => {
|
|
63656
|
-
const paginationModel = _extends$
|
|
63656
|
+
const paginationModel = _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? props.initialState?.pagination?.paginationModel);
|
|
63657
63657
|
throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
|
|
63658
63658
|
const rowCount = props.rowCount ?? props.initialState?.pagination?.rowCount ?? (props.paginationMode === "client" ? state.rows?.totalRowCount : void 0);
|
|
63659
63659
|
const meta = props.paginationMeta ?? props.initialState?.pagination?.meta ?? {};
|
|
63660
|
-
return _extends$
|
|
63661
|
-
pagination: _extends$
|
|
63660
|
+
return _extends$c({}, state, {
|
|
63661
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63662
63662
|
paginationModel,
|
|
63663
63663
|
rowCount,
|
|
63664
63664
|
meta,
|
|
@@ -63672,7 +63672,7 @@ const useGridPagination = (apiRef, props) => {
|
|
|
63672
63672
|
useGridPaginationModel(apiRef, props);
|
|
63673
63673
|
useGridRowCount(apiRef, props);
|
|
63674
63674
|
};
|
|
63675
|
-
const preferencePanelStateInitializer = (state, props) => _extends$
|
|
63675
|
+
const preferencePanelStateInitializer = (state, props) => _extends$c({}, state, {
|
|
63676
63676
|
preferencePanel: props.initialState?.preferencePanel ?? {
|
|
63677
63677
|
open: false
|
|
63678
63678
|
}
|
|
@@ -63689,7 +63689,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
63689
63689
|
apiRef.current.publishEvent("preferencePanelClose", {
|
|
63690
63690
|
openedPanelValue: preferencePanelState.openedPanelValue
|
|
63691
63691
|
});
|
|
63692
|
-
return _extends$
|
|
63692
|
+
return _extends$c({}, state, {
|
|
63693
63693
|
preferencePanel: {
|
|
63694
63694
|
open: false
|
|
63695
63695
|
}
|
|
@@ -63698,8 +63698,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
63698
63698
|
}, [apiRef, logger2]);
|
|
63699
63699
|
const showPreferences = React.useCallback((newValue, panelId, labelId) => {
|
|
63700
63700
|
logger2.debug("Opening Preferences Panel");
|
|
63701
|
-
apiRef.current.setState((state) => _extends$
|
|
63702
|
-
preferencePanel: _extends$
|
|
63701
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63702
|
+
preferencePanel: _extends$c({}, state.preferencePanel, {
|
|
63703
63703
|
open: true,
|
|
63704
63704
|
openedPanelValue: newValue,
|
|
63705
63705
|
panelId,
|
|
@@ -63725,14 +63725,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
63725
63725
|
if (!shouldExportPreferencePanel) {
|
|
63726
63726
|
return prevState;
|
|
63727
63727
|
}
|
|
63728
|
-
return _extends$
|
|
63728
|
+
return _extends$c({}, prevState, {
|
|
63729
63729
|
preferencePanel: preferencePanelToExport
|
|
63730
63730
|
});
|
|
63731
63731
|
}, [apiRef, props.initialState?.preferencePanel]);
|
|
63732
63732
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63733
63733
|
const preferencePanel = context2.stateToRestore.preferencePanel;
|
|
63734
63734
|
if (preferencePanel != null) {
|
|
63735
|
-
apiRef.current.setState((state) => _extends$
|
|
63735
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63736
63736
|
preferencePanel
|
|
63737
63737
|
}));
|
|
63738
63738
|
}
|
|
@@ -63790,7 +63790,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63790
63790
|
if (params2.cellMode === GridCellModes.Edit) {
|
|
63791
63791
|
return;
|
|
63792
63792
|
}
|
|
63793
|
-
const newParams = _extends$
|
|
63793
|
+
const newParams = _extends$c({}, params2, {
|
|
63794
63794
|
reason: GridCellEditStartReasons.cellDoubleClick
|
|
63795
63795
|
});
|
|
63796
63796
|
apiRef.current.publishEvent("cellEditStart", newParams, event2);
|
|
@@ -63802,7 +63802,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63802
63802
|
if (apiRef.current.getCellMode(params2.id, params2.field) === GridCellModes.View) {
|
|
63803
63803
|
return;
|
|
63804
63804
|
}
|
|
63805
|
-
const newParams = _extends$
|
|
63805
|
+
const newParams = _extends$c({}, params2, {
|
|
63806
63806
|
reason: GridCellEditStopReasons.cellFocusOut
|
|
63807
63807
|
});
|
|
63808
63808
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -63822,7 +63822,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63822
63822
|
event2.preventDefault();
|
|
63823
63823
|
}
|
|
63824
63824
|
if (reason) {
|
|
63825
|
-
const newParams = _extends$
|
|
63825
|
+
const newParams = _extends$c({}, params2, {
|
|
63826
63826
|
reason
|
|
63827
63827
|
});
|
|
63828
63828
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -63847,7 +63847,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63847
63847
|
reason = GridCellEditStartReasons.deleteKeyDown;
|
|
63848
63848
|
}
|
|
63849
63849
|
if (reason) {
|
|
63850
|
-
const newParams = _extends$
|
|
63850
|
+
const newParams = _extends$c({}, params2, {
|
|
63851
63851
|
reason,
|
|
63852
63852
|
key: event2.key
|
|
63853
63853
|
});
|
|
@@ -63933,10 +63933,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63933
63933
|
apiRef.current.publishEvent("cellModesModelChange", newModel);
|
|
63934
63934
|
});
|
|
63935
63935
|
const updateFieldInCellModesModel = React.useCallback((id2, field2, newProps) => {
|
|
63936
|
-
const newModel = _extends$
|
|
63936
|
+
const newModel = _extends$c({}, cellModesModelRef.current);
|
|
63937
63937
|
if (newProps !== null) {
|
|
63938
|
-
newModel[id2] = _extends$
|
|
63939
|
-
[field2]: _extends$
|
|
63938
|
+
newModel[id2] = _extends$c({}, newModel[id2], {
|
|
63939
|
+
[field2]: _extends$c({}, newProps)
|
|
63940
63940
|
});
|
|
63941
63941
|
} else {
|
|
63942
63942
|
const _newModel$id = newModel[id2], otherFields = _objectWithoutPropertiesLoose$1(_newModel$id, [field2].map(toPropertyKey$1));
|
|
@@ -63949,10 +63949,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63949
63949
|
}, [updateCellModesModel]);
|
|
63950
63950
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
63951
63951
|
apiRef.current.setState((state) => {
|
|
63952
|
-
const newEditingState = _extends$
|
|
63952
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
63953
63953
|
if (newProps !== null) {
|
|
63954
|
-
newEditingState[id2] = _extends$
|
|
63955
|
-
[field2]: _extends$
|
|
63954
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
63955
|
+
[field2]: _extends$c({}, newProps)
|
|
63956
63956
|
});
|
|
63957
63957
|
} else {
|
|
63958
63958
|
delete newEditingState[id2][field2];
|
|
@@ -63960,7 +63960,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63960
63960
|
delete newEditingState[id2];
|
|
63961
63961
|
}
|
|
63962
63962
|
}
|
|
63963
|
-
return _extends$
|
|
63963
|
+
return _extends$c({}, state, {
|
|
63964
63964
|
editRows: newEditingState
|
|
63965
63965
|
});
|
|
63966
63966
|
});
|
|
@@ -63972,7 +63972,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
63972
63972
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$8);
|
|
63973
63973
|
throwIfNotEditable(id2, field2);
|
|
63974
63974
|
throwIfNotInMode(id2, field2, GridCellModes.View);
|
|
63975
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
63975
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
63976
63976
|
mode: GridCellModes.Edit
|
|
63977
63977
|
}, other));
|
|
63978
63978
|
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -64008,7 +64008,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64008
64008
|
}));
|
|
64009
64009
|
if (apiRef.current.getCellMode(id2, field2) === GridCellModes.Edit) {
|
|
64010
64010
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
64011
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
64011
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, newProps, {
|
|
64012
64012
|
value: editingState[id2][field2].value,
|
|
64013
64013
|
isProcessingProps: false
|
|
64014
64014
|
}));
|
|
@@ -64021,7 +64021,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64021
64021
|
field: field2
|
|
64022
64022
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$3);
|
|
64023
64023
|
throwIfNotInMode(id2, field2, GridCellModes.Edit);
|
|
64024
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
64024
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
64025
64025
|
mode: GridCellModes.View
|
|
64026
64026
|
}, other));
|
|
64027
64027
|
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -64103,13 +64103,13 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64103
64103
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
64104
64104
|
}
|
|
64105
64105
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
64106
|
-
let newProps = _extends$
|
|
64106
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
64107
64107
|
value: parsedValue,
|
|
64108
64108
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
64109
64109
|
});
|
|
64110
64110
|
if (column2.preProcessEditCellProps) {
|
|
64111
64111
|
const hasChanged = value2 !== editingState[id2][field2].value;
|
|
64112
|
-
newProps = _extends$
|
|
64112
|
+
newProps = _extends$c({}, newProps, {
|
|
64113
64113
|
isProcessingProps: true
|
|
64114
64114
|
});
|
|
64115
64115
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -64124,7 +64124,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64124
64124
|
return false;
|
|
64125
64125
|
}
|
|
64126
64126
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
64127
|
-
newProps = _extends$
|
|
64127
|
+
newProps = _extends$c({}, newProps, {
|
|
64128
64128
|
isProcessingProps: false
|
|
64129
64129
|
});
|
|
64130
64130
|
newProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -64142,7 +64142,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64142
64142
|
const {
|
|
64143
64143
|
value: value2
|
|
64144
64144
|
} = editingState[id2][field2];
|
|
64145
|
-
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$
|
|
64145
|
+
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$c({}, row, {
|
|
64146
64146
|
[field2]: value2
|
|
64147
64147
|
});
|
|
64148
64148
|
}, [apiRef]);
|
|
@@ -64171,12 +64171,12 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
64171
64171
|
const prevMode = copyOfPrevCellModes[id2]?.[field2]?.mode || GridCellModes.View;
|
|
64172
64172
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
64173
64173
|
if (params2.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
|
|
64174
|
-
updateStateToStartCellEditMode(_extends$
|
|
64174
|
+
updateStateToStartCellEditMode(_extends$c({
|
|
64175
64175
|
id: originalId,
|
|
64176
64176
|
field: field2
|
|
64177
64177
|
}, params2));
|
|
64178
64178
|
} else if (params2.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
|
|
64179
|
-
updateStateToStopCellEditMode(_extends$
|
|
64179
|
+
updateStateToStopCellEditMode(_extends$c({
|
|
64180
64180
|
id: originalId,
|
|
64181
64181
|
field: field2
|
|
64182
64182
|
}, params2));
|
|
@@ -64227,7 +64227,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64227
64227
|
return;
|
|
64228
64228
|
}
|
|
64229
64229
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
64230
|
-
const newParams = _extends$
|
|
64230
|
+
const newParams = _extends$c({}, rowParams, {
|
|
64231
64231
|
field: params2.field,
|
|
64232
64232
|
reason: GridRowEditStartReasons.cellDoubleClick
|
|
64233
64233
|
});
|
|
@@ -64256,7 +64256,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64256
64256
|
return;
|
|
64257
64257
|
}
|
|
64258
64258
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
64259
|
-
const newParams = _extends$
|
|
64259
|
+
const newParams = _extends$c({}, rowParams, {
|
|
64260
64260
|
field: params2.field,
|
|
64261
64261
|
reason: GridRowEditStopReasons.rowFocusOut
|
|
64262
64262
|
});
|
|
@@ -64305,7 +64305,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64305
64305
|
if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params2.id)) {
|
|
64306
64306
|
return;
|
|
64307
64307
|
}
|
|
64308
|
-
const newParams = _extends$
|
|
64308
|
+
const newParams = _extends$c({}, apiRef.current.getRowParams(params2.id), {
|
|
64309
64309
|
reason,
|
|
64310
64310
|
field: params2.field
|
|
64311
64311
|
});
|
|
@@ -64332,7 +64332,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64332
64332
|
}
|
|
64333
64333
|
if (reason) {
|
|
64334
64334
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
64335
|
-
const newParams = _extends$
|
|
64335
|
+
const newParams = _extends$c({}, rowParams, {
|
|
64336
64336
|
field: params2.field,
|
|
64337
64337
|
reason
|
|
64338
64338
|
});
|
|
@@ -64408,9 +64408,9 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64408
64408
|
apiRef.current.publishEvent("rowModesModelChange", newModel);
|
|
64409
64409
|
});
|
|
64410
64410
|
const updateRowInRowModesModel = React.useCallback((id2, newProps) => {
|
|
64411
|
-
const newModel = _extends$
|
|
64411
|
+
const newModel = _extends$c({}, rowModesModelRef.current);
|
|
64412
64412
|
if (newProps !== null) {
|
|
64413
|
-
newModel[id2] = _extends$
|
|
64413
|
+
newModel[id2] = _extends$c({}, newProps);
|
|
64414
64414
|
} else {
|
|
64415
64415
|
delete newModel[id2];
|
|
64416
64416
|
}
|
|
@@ -64418,23 +64418,23 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64418
64418
|
}, [updateRowModesModel]);
|
|
64419
64419
|
const updateOrDeleteRowState = React.useCallback((id2, newProps) => {
|
|
64420
64420
|
apiRef.current.setState((state) => {
|
|
64421
|
-
const newEditingState = _extends$
|
|
64421
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
64422
64422
|
if (newProps !== null) {
|
|
64423
64423
|
newEditingState[id2] = newProps;
|
|
64424
64424
|
} else {
|
|
64425
64425
|
delete newEditingState[id2];
|
|
64426
64426
|
}
|
|
64427
|
-
return _extends$
|
|
64427
|
+
return _extends$c({}, state, {
|
|
64428
64428
|
editRows: newEditingState
|
|
64429
64429
|
});
|
|
64430
64430
|
});
|
|
64431
64431
|
}, [apiRef]);
|
|
64432
64432
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
64433
64433
|
apiRef.current.setState((state) => {
|
|
64434
|
-
const newEditingState = _extends$
|
|
64434
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
64435
64435
|
if (newProps !== null) {
|
|
64436
|
-
newEditingState[id2] = _extends$
|
|
64437
|
-
[field2]: _extends$
|
|
64436
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
64437
|
+
[field2]: _extends$c({}, newProps)
|
|
64438
64438
|
});
|
|
64439
64439
|
} else {
|
|
64440
64440
|
delete newEditingState[id2][field2];
|
|
@@ -64442,7 +64442,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64442
64442
|
delete newEditingState[id2];
|
|
64443
64443
|
}
|
|
64444
64444
|
}
|
|
64445
|
-
return _extends$
|
|
64445
|
+
return _extends$c({}, state, {
|
|
64446
64446
|
editRows: newEditingState
|
|
64447
64447
|
});
|
|
64448
64448
|
});
|
|
@@ -64452,7 +64452,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64452
64452
|
id: id2
|
|
64453
64453
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$7);
|
|
64454
64454
|
throwIfNotInMode(id2, GridRowModes.View);
|
|
64455
|
-
updateRowInRowModesModel(id2, _extends$
|
|
64455
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
64456
64456
|
mode: GridRowModes.Edit
|
|
64457
64457
|
}, other));
|
|
64458
64458
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -64503,7 +64503,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64503
64503
|
})).then((processedProps) => {
|
|
64504
64504
|
if (apiRef.current.getRowMode(id2) === GridRowModes.Edit) {
|
|
64505
64505
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
64506
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
64506
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, processedProps, {
|
|
64507
64507
|
value: editingState[id2][field2].value,
|
|
64508
64508
|
isProcessingProps: false
|
|
64509
64509
|
}));
|
|
@@ -64516,7 +64516,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64516
64516
|
id: id2
|
|
64517
64517
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$2);
|
|
64518
64518
|
throwIfNotInMode(id2, GridRowModes.Edit);
|
|
64519
|
-
updateRowInRowModesModel(id2, _extends$
|
|
64519
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
64520
64520
|
mode: GridRowModes.View
|
|
64521
64521
|
}, other));
|
|
64522
64522
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -64600,7 +64600,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64600
64600
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
64601
64601
|
}
|
|
64602
64602
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
64603
|
-
let newProps = _extends$
|
|
64603
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
64604
64604
|
value: parsedValue,
|
|
64605
64605
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
64606
64606
|
});
|
|
@@ -64611,7 +64611,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64611
64611
|
const promises = [];
|
|
64612
64612
|
if (column2.preProcessEditCellProps) {
|
|
64613
64613
|
const hasChanged = newProps.value !== editingState[id2][field2].value;
|
|
64614
|
-
newProps = _extends$
|
|
64614
|
+
newProps = _extends$c({}, newProps, {
|
|
64615
64615
|
isProcessingProps: true
|
|
64616
64616
|
});
|
|
64617
64617
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -64628,7 +64628,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64628
64628
|
return;
|
|
64629
64629
|
}
|
|
64630
64630
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
64631
|
-
processedProps = _extends$
|
|
64631
|
+
processedProps = _extends$c({}, processedProps, {
|
|
64632
64632
|
isProcessingProps: false
|
|
64633
64633
|
});
|
|
64634
64634
|
processedProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -64644,7 +64644,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64644
64644
|
if (!fieldColumn.preProcessEditCellProps) {
|
|
64645
64645
|
return;
|
|
64646
64646
|
}
|
|
64647
|
-
fieldProps = _extends$
|
|
64647
|
+
fieldProps = _extends$c({}, fieldProps, {
|
|
64648
64648
|
isProcessingProps: true
|
|
64649
64649
|
});
|
|
64650
64650
|
updateOrDeleteFieldState(id2, thisField, fieldProps);
|
|
@@ -64661,7 +64661,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64661
64661
|
resolve2(false);
|
|
64662
64662
|
return;
|
|
64663
64663
|
}
|
|
64664
|
-
processedProps = _extends$
|
|
64664
|
+
processedProps = _extends$c({}, processedProps, {
|
|
64665
64665
|
isProcessingProps: false
|
|
64666
64666
|
});
|
|
64667
64667
|
updateOrDeleteFieldState(id2, thisField, processedProps);
|
|
@@ -64684,7 +64684,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64684
64684
|
if (!editingState[id2]) {
|
|
64685
64685
|
return apiRef.current.getRow(id2);
|
|
64686
64686
|
}
|
|
64687
|
-
let rowUpdate = _extends$
|
|
64687
|
+
let rowUpdate = _extends$c({}, prevRowValuesLookup.current[id2], row);
|
|
64688
64688
|
Object.entries(editingState[id2]).forEach(([field2, fieldProps]) => {
|
|
64689
64689
|
const column2 = apiRef.current.getColumn(field2);
|
|
64690
64690
|
if (column2?.valueSetter) {
|
|
@@ -64723,18 +64723,18 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
64723
64723
|
const prevMode = copyOfPrevRowModesModel[id2]?.mode || GridRowModes.View;
|
|
64724
64724
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
64725
64725
|
if (params2.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
|
|
64726
|
-
updateStateToStartRowEditMode(_extends$
|
|
64726
|
+
updateStateToStartRowEditMode(_extends$c({
|
|
64727
64727
|
id: originalId
|
|
64728
64728
|
}, params2));
|
|
64729
64729
|
} else if (params2.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
|
|
64730
|
-
updateStateToStopRowEditMode(_extends$
|
|
64730
|
+
updateStateToStopRowEditMode(_extends$c({
|
|
64731
64731
|
id: originalId
|
|
64732
64732
|
}, params2));
|
|
64733
64733
|
}
|
|
64734
64734
|
});
|
|
64735
64735
|
}, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
|
|
64736
64736
|
};
|
|
64737
|
-
const editingStateInitializer = (state) => _extends$
|
|
64737
|
+
const editingStateInitializer = (state) => _extends$c({}, state, {
|
|
64738
64738
|
editRows: {}
|
|
64739
64739
|
});
|
|
64740
64740
|
const useGridEditing = (apiRef, props) => {
|
|
@@ -64852,7 +64852,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
|
|
|
64852
64852
|
loading: props.loading,
|
|
64853
64853
|
rowCount: props.rowCount
|
|
64854
64854
|
});
|
|
64855
|
-
return _extends$
|
|
64855
|
+
return _extends$c({}, state, {
|
|
64856
64856
|
rows: getRowsStateFromCache({
|
|
64857
64857
|
apiRef,
|
|
64858
64858
|
rowCountProp: props.rowCount,
|
|
@@ -64893,7 +64893,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
64893
64893
|
}) => {
|
|
64894
64894
|
const run2 = () => {
|
|
64895
64895
|
lastUpdateMs.current = Date.now();
|
|
64896
|
-
apiRef.current.setState((state) => _extends$
|
|
64896
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64897
64897
|
rows: getRowsStateFromCache({
|
|
64898
64898
|
apiRef,
|
|
64899
64899
|
rowCountProp: props.rowCount,
|
|
@@ -64966,8 +64966,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
64966
64966
|
return;
|
|
64967
64967
|
}
|
|
64968
64968
|
logger2.debug(`Setting loading to ${loading2}`);
|
|
64969
|
-
apiRef.current.setState((state) => _extends$
|
|
64970
|
-
rows: _extends$
|
|
64969
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64970
|
+
rows: _extends$c({}, state.rows, {
|
|
64971
64971
|
loading: loading2
|
|
64972
64972
|
})
|
|
64973
64973
|
}));
|
|
@@ -64994,13 +64994,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
64994
64994
|
if (currentNode.type !== "group") {
|
|
64995
64995
|
throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
|
|
64996
64996
|
}
|
|
64997
|
-
const newNode = _extends$
|
|
64997
|
+
const newNode = _extends$c({}, currentNode, {
|
|
64998
64998
|
childrenExpanded: isExpanded
|
|
64999
64999
|
});
|
|
65000
65000
|
apiRef.current.setState((state) => {
|
|
65001
|
-
return _extends$
|
|
65002
|
-
rows: _extends$
|
|
65003
|
-
tree: _extends$
|
|
65001
|
+
return _extends$c({}, state, {
|
|
65002
|
+
rows: _extends$c({}, state.rows, {
|
|
65003
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
65004
65004
|
[id2]: newNode
|
|
65005
65005
|
})
|
|
65006
65006
|
})
|
|
@@ -65061,10 +65061,10 @@ const useGridRows = (apiRef, props) => {
|
|
|
65061
65061
|
logger2.debug(`Moving row ${rowId} to index ${targetIndex}`);
|
|
65062
65062
|
const updatedRows = [...allRows];
|
|
65063
65063
|
updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
|
|
65064
|
-
return _extends$
|
|
65065
|
-
rows: _extends$
|
|
65066
|
-
tree: _extends$
|
|
65067
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
65064
|
+
return _extends$c({}, state, {
|
|
65065
|
+
rows: _extends$c({}, state.rows, {
|
|
65066
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
65067
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, group2, {
|
|
65068
65068
|
children: updatedRows
|
|
65069
65069
|
})
|
|
65070
65070
|
})
|
|
@@ -65084,8 +65084,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
65084
65084
|
if (treeDepth > 1) {
|
|
65085
65085
|
throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
|
|
65086
65086
|
}
|
|
65087
|
-
const tree2 = _extends$
|
|
65088
|
-
const dataRowIdToModelLookup = _extends$
|
|
65087
|
+
const tree2 = _extends$c({}, gridRowTreeSelector(apiRef));
|
|
65088
|
+
const dataRowIdToModelLookup = _extends$c({}, gridRowsLookupSelector(apiRef));
|
|
65089
65089
|
const rootGroup = tree2[GRID_ROOT_GROUP_ID];
|
|
65090
65090
|
const rootGroupChildren = [...rootGroup.children];
|
|
65091
65091
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -65108,13 +65108,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
65108
65108
|
tree2[rowId] = rowTreeNodeConfig;
|
|
65109
65109
|
seenIds.add(rowId);
|
|
65110
65110
|
}
|
|
65111
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
65111
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
65112
65112
|
children: rootGroupChildren
|
|
65113
65113
|
});
|
|
65114
65114
|
const dataRowIds = rootGroupChildren.filter((childId) => tree2[childId]?.type === "leaf");
|
|
65115
65115
|
apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
|
|
65116
|
-
apiRef.current.setState((state) => _extends$
|
|
65117
|
-
rows: _extends$
|
|
65116
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65117
|
+
rows: _extends$c({}, state.rows, {
|
|
65118
65118
|
loading: props.loading,
|
|
65119
65119
|
totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
|
|
65120
65120
|
dataRowIdToModelLookup,
|
|
@@ -65149,7 +65149,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
65149
65149
|
logger2.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
65150
65150
|
let cache2;
|
|
65151
65151
|
if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
|
|
65152
|
-
cache2 = _extends$
|
|
65152
|
+
cache2 = _extends$c({}, apiRef.current.caches.rows, {
|
|
65153
65153
|
updates: {
|
|
65154
65154
|
type: "full",
|
|
65155
65155
|
rows: gridDataRowIdsSelector(apiRef)
|
|
@@ -65193,8 +65193,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
65193
65193
|
dataRowIds: gridDataRowIdsSelector(apiRef),
|
|
65194
65194
|
dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
|
|
65195
65195
|
});
|
|
65196
|
-
return _extends$
|
|
65197
|
-
rows: _extends$
|
|
65196
|
+
return _extends$c({}, state, {
|
|
65197
|
+
rows: _extends$c({}, state.rows, response, {
|
|
65198
65198
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
65199
65199
|
tree: response.tree,
|
|
65200
65200
|
rowCountProp: props.rowCount
|
|
@@ -65225,16 +65225,16 @@ const useGridRows = (apiRef, props) => {
|
|
|
65225
65225
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
65226
65226
|
if (areNewRowsAlreadyInState) {
|
|
65227
65227
|
if (!isNewLoadingAlreadyInState) {
|
|
65228
|
-
apiRef.current.setState((state) => _extends$
|
|
65229
|
-
rows: _extends$
|
|
65228
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65229
|
+
rows: _extends$c({}, state.rows, {
|
|
65230
65230
|
loading: props.loading
|
|
65231
65231
|
})
|
|
65232
65232
|
}));
|
|
65233
65233
|
apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
|
|
65234
65234
|
}
|
|
65235
65235
|
if (!isNewRowCountAlreadyInState) {
|
|
65236
|
-
apiRef.current.setState((state) => _extends$
|
|
65237
|
-
rows: _extends$
|
|
65236
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65237
|
+
rows: _extends$c({}, state.rows, {
|
|
65238
65238
|
totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
|
|
65239
65239
|
totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
|
|
65240
65240
|
})
|
|
@@ -65259,7 +65259,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
65259
65259
|
};
|
|
65260
65260
|
const createFlatRowTree = (rows) => {
|
|
65261
65261
|
const tree2 = {
|
|
65262
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
65262
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, buildRootGroup(), {
|
|
65263
65263
|
children: rows
|
|
65264
65264
|
})
|
|
65265
65265
|
};
|
|
@@ -65286,7 +65286,7 @@ const updateFlatRowTree = ({
|
|
|
65286
65286
|
previousTree,
|
|
65287
65287
|
actions
|
|
65288
65288
|
}) => {
|
|
65289
|
-
const tree2 = _extends$
|
|
65289
|
+
const tree2 = _extends$c({}, previousTree);
|
|
65290
65290
|
const idsToRemoveFromRootGroup = {};
|
|
65291
65291
|
for (let i2 = 0; i2 < actions.remove.length; i2 += 1) {
|
|
65292
65292
|
const idToDelete = actions.remove[i2];
|
|
@@ -65308,7 +65308,7 @@ const updateFlatRowTree = ({
|
|
|
65308
65308
|
if (Object.values(idsToRemoveFromRootGroup).length) {
|
|
65309
65309
|
rootGroupChildren = rootGroupChildren.filter((id2) => !idsToRemoveFromRootGroup[id2]);
|
|
65310
65310
|
}
|
|
65311
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
65311
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
65312
65312
|
children: rootGroupChildren
|
|
65313
65313
|
});
|
|
65314
65314
|
return {
|
|
@@ -65458,7 +65458,7 @@ const emptyModel = {
|
|
|
65458
65458
|
type: "include",
|
|
65459
65459
|
ids: /* @__PURE__ */ new Set()
|
|
65460
65460
|
};
|
|
65461
|
-
const rowSelectionStateInitializer = (state, props) => _extends$
|
|
65461
|
+
const rowSelectionStateInitializer = (state, props) => _extends$c({}, state, {
|
|
65462
65462
|
rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
|
|
65463
65463
|
});
|
|
65464
65464
|
const useGridRowSelection = (apiRef, props) => {
|
|
@@ -65522,7 +65522,7 @@ const useGridRowSelection = (apiRef, props) => {
|
|
|
65522
65522
|
const currentModel = gridRowSelectionStateSelector(apiRef);
|
|
65523
65523
|
if (currentModel !== model) {
|
|
65524
65524
|
logger2.debug(`Setting selection model`);
|
|
65525
|
-
apiRef.current.setState((state) => _extends$
|
|
65525
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65526
65526
|
rowSelection: props.rowSelection ? model : emptyModel
|
|
65527
65527
|
}));
|
|
65528
65528
|
}
|
|
@@ -65985,7 +65985,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
65985
65985
|
};
|
|
65986
65986
|
const classes2 = useUtilityClasses$7(ownerState);
|
|
65987
65987
|
const updateSelectionColumn = React.useCallback((columnsState) => {
|
|
65988
|
-
const selectionColumn = _extends$
|
|
65988
|
+
const selectionColumn = _extends$c({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
|
|
65989
65989
|
cellClassName: classes2.cellCheckbox,
|
|
65990
65990
|
headerClassName: classes2.columnHeaderCheckbox,
|
|
65991
65991
|
headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
|
|
@@ -65999,7 +65999,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
65999
65999
|
delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
|
|
66000
66000
|
columnsState.orderedFields = columnsState.orderedFields.filter((field2) => field2 !== GRID_CHECKBOX_SELECTION_FIELD);
|
|
66001
66001
|
} else if (shouldHaveSelectionColumn && haveSelectionColumn) {
|
|
66002
|
-
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$
|
|
66002
|
+
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$c({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
|
|
66003
66003
|
}
|
|
66004
66004
|
return columnsState;
|
|
66005
66005
|
}, [apiRef, classes2, props.checkboxSelection]);
|
|
@@ -66007,7 +66007,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
66007
66007
|
};
|
|
66008
66008
|
const sortingStateInitializer = (state, props) => {
|
|
66009
66009
|
const sortModel = props.sortModel ?? props.initialState?.sorting?.sortModel ?? [];
|
|
66010
|
-
return _extends$
|
|
66010
|
+
return _extends$c({}, state, {
|
|
66011
66011
|
sorting: {
|
|
66012
66012
|
sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
|
|
66013
66013
|
sortedRows: []
|
|
@@ -66043,7 +66043,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
66043
66043
|
const existing = sortModel.find((c2) => c2.field === col.field);
|
|
66044
66044
|
if (existing) {
|
|
66045
66045
|
const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
|
|
66046
|
-
return nextSort === void 0 ? void 0 : _extends$
|
|
66046
|
+
return nextSort === void 0 ? void 0 : _extends$c({}, existing, {
|
|
66047
66047
|
sort: nextSort
|
|
66048
66048
|
});
|
|
66049
66049
|
}
|
|
@@ -66066,8 +66066,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
66066
66066
|
apiRef.current.setState((state) => {
|
|
66067
66067
|
if (props.sortingMode === "server") {
|
|
66068
66068
|
logger2.debug("Skipping sorting rows as sortingMode = server");
|
|
66069
|
-
return _extends$
|
|
66070
|
-
sorting: _extends$
|
|
66069
|
+
return _extends$c({}, state, {
|
|
66070
|
+
sorting: _extends$c({}, state.sorting, {
|
|
66071
66071
|
sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
|
|
66072
66072
|
})
|
|
66073
66073
|
});
|
|
@@ -66077,8 +66077,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
66077
66077
|
const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
|
|
66078
66078
|
sortRowList
|
|
66079
66079
|
});
|
|
66080
|
-
return _extends$
|
|
66081
|
-
sorting: _extends$
|
|
66080
|
+
return _extends$c({}, state, {
|
|
66081
|
+
sorting: _extends$c({}, state.sorting, {
|
|
66082
66082
|
sortedRows
|
|
66083
66083
|
})
|
|
66084
66084
|
});
|
|
@@ -66133,7 +66133,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
66133
66133
|
if (!shouldExportSortModel) {
|
|
66134
66134
|
return prevState;
|
|
66135
66135
|
}
|
|
66136
|
-
return _extends$
|
|
66136
|
+
return _extends$c({}, prevState, {
|
|
66137
66137
|
sorting: {
|
|
66138
66138
|
sortModel: sortModelToExport
|
|
66139
66139
|
}
|
|
@@ -66145,7 +66145,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
66145
66145
|
return params2;
|
|
66146
66146
|
}
|
|
66147
66147
|
apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
|
|
66148
|
-
return _extends$
|
|
66148
|
+
return _extends$c({}, params2, {
|
|
66149
66149
|
callbacks: [...params2.callbacks, apiRef.current.applySorting]
|
|
66150
66150
|
});
|
|
66151
66151
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
@@ -66441,8 +66441,8 @@ const EMPTY_DIMENSIONS = {
|
|
|
66441
66441
|
const dimensionsStateInitializer = (state, props, apiRef) => {
|
|
66442
66442
|
const dimensions = EMPTY_DIMENSIONS;
|
|
66443
66443
|
const density2 = gridDensityFactorSelector(apiRef);
|
|
66444
|
-
return _extends$
|
|
66445
|
-
dimensions: _extends$
|
|
66444
|
+
return _extends$c({}, state, {
|
|
66445
|
+
dimensions: _extends$c({}, dimensions, getStaticDimensions(props, apiRef, density2, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
|
|
66446
66446
|
});
|
|
66447
66447
|
};
|
|
66448
66448
|
const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
|
|
@@ -66471,7 +66471,7 @@ function useGridDimensions(apiRef, props) {
|
|
|
66471
66471
|
} = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
|
|
66472
66472
|
const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
|
|
66473
66473
|
const setDimensions = React.useCallback((dimensions) => {
|
|
66474
|
-
apiRef.current.setState((state) => _extends$
|
|
66474
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66475
66475
|
dimensions
|
|
66476
66476
|
}));
|
|
66477
66477
|
if (apiRef.current.rootElementRef.current) {
|
|
@@ -66695,7 +66695,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
|
|
|
66695
66695
|
const dataRowCount = gridRowCountSelector(apiRef);
|
|
66696
66696
|
const pagination = gridPaginationSelector(apiRef);
|
|
66697
66697
|
const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
|
|
66698
|
-
return _extends$
|
|
66698
|
+
return _extends$c({}, state, {
|
|
66699
66699
|
rowsMeta: {
|
|
66700
66700
|
currentPageTotalHeight: rowCount * baseRowHeight,
|
|
66701
66701
|
positions: Array.from({
|
|
@@ -66742,12 +66742,12 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
66742
66742
|
entry2.content = baseRowHeight;
|
|
66743
66743
|
entry2.needsFirstMeasurement = false;
|
|
66744
66744
|
} else {
|
|
66745
|
-
const rowHeightFromUser = getRowHeightProp(_extends$
|
|
66745
|
+
const rowHeightFromUser = getRowHeightProp(_extends$c({}, row, {
|
|
66746
66746
|
densityFactor
|
|
66747
66747
|
}));
|
|
66748
66748
|
if (rowHeightFromUser === "auto") {
|
|
66749
66749
|
if (entry2.needsFirstMeasurement) {
|
|
66750
|
-
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$
|
|
66750
|
+
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$c({}, row, {
|
|
66751
66751
|
densityFactor
|
|
66752
66752
|
})) : baseRowHeight;
|
|
66753
66753
|
entry2.content = estimatedRowHeight ?? baseRowHeight;
|
|
@@ -66762,7 +66762,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
66762
66762
|
}
|
|
66763
66763
|
if (getRowSpacing) {
|
|
66764
66764
|
const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
66765
|
-
const spacing2 = getRowSpacing(_extends$
|
|
66765
|
+
const spacing2 = getRowSpacing(_extends$c({}, row, {
|
|
66766
66766
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
66767
66767
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
66768
66768
|
indexRelativeToCurrentPage
|
|
@@ -66804,7 +66804,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
66804
66804
|
pinnedBottomRowsTotalHeight
|
|
66805
66805
|
};
|
|
66806
66806
|
apiRef.current.setState((state) => {
|
|
66807
|
-
return _extends$
|
|
66807
|
+
return _extends$c({}, state, {
|
|
66808
66808
|
rowsMeta
|
|
66809
66809
|
});
|
|
66810
66810
|
});
|
|
@@ -67083,18 +67083,18 @@ const createGroupLookup = (columnGroupingModel) => {
|
|
|
67083
67083
|
console.warn(`MUI X: group groupId=${groupId} has no children.`);
|
|
67084
67084
|
}
|
|
67085
67085
|
}
|
|
67086
|
-
const groupParam = _extends$
|
|
67086
|
+
const groupParam = _extends$c({}, other, {
|
|
67087
67087
|
groupId
|
|
67088
67088
|
});
|
|
67089
67089
|
const subTreeLookup = createGroupLookup(children3);
|
|
67090
67090
|
if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
|
|
67091
67091
|
throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
|
|
67092
67092
|
}
|
|
67093
|
-
groupLookup = _extends$
|
|
67093
|
+
groupLookup = _extends$c({}, groupLookup, subTreeLookup, {
|
|
67094
67094
|
[groupId]: groupParam
|
|
67095
67095
|
});
|
|
67096
67096
|
});
|
|
67097
|
-
return _extends$
|
|
67097
|
+
return _extends$c({}, groupLookup);
|
|
67098
67098
|
};
|
|
67099
67099
|
const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
67100
67100
|
if (!props.columnGroupingModel) {
|
|
@@ -67106,7 +67106,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
|
67106
67106
|
const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel ?? []);
|
|
67107
67107
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, apiRef.current.state.pinnedColumns ?? {});
|
|
67108
67108
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
67109
|
-
return _extends$
|
|
67109
|
+
return _extends$c({}, state, {
|
|
67110
67110
|
columnGrouping: {
|
|
67111
67111
|
lookup: groupLookup,
|
|
67112
67112
|
unwrappedGroupingModel,
|
|
@@ -67135,8 +67135,8 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
67135
67135
|
const orderedFields = state.columns?.orderedFields ?? [];
|
|
67136
67136
|
const pinnedColumns = state.pinnedColumns ?? {};
|
|
67137
67137
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
|
|
67138
|
-
return _extends$
|
|
67139
|
-
columnGrouping: _extends$
|
|
67138
|
+
return _extends$c({}, state, {
|
|
67139
|
+
columnGrouping: _extends$c({}, state.columnGrouping, {
|
|
67140
67140
|
headerStructure: columnGroupsHeaderStructure
|
|
67141
67141
|
})
|
|
67142
67142
|
});
|
|
@@ -67151,7 +67151,7 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
67151
67151
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, pinnedColumns);
|
|
67152
67152
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
67153
67153
|
apiRef.current.setState((state) => {
|
|
67154
|
-
return _extends$
|
|
67154
|
+
return _extends$c({}, state, {
|
|
67155
67155
|
columnGrouping: {
|
|
67156
67156
|
lookup: groupLookup,
|
|
67157
67157
|
unwrappedGroupingModel,
|
|
@@ -67301,7 +67301,7 @@ function extractColumnWidths(apiRef, options, columns2) {
|
|
|
67301
67301
|
root2.classList.remove(gridClasses.autosizing);
|
|
67302
67302
|
return widthByField;
|
|
67303
67303
|
}
|
|
67304
|
-
const columnResizeStateInitializer = (state) => _extends$
|
|
67304
|
+
const columnResizeStateInitializer = (state) => _extends$c({}, state, {
|
|
67305
67305
|
columnResize: {
|
|
67306
67306
|
resizingColumnField: ""
|
|
67307
67307
|
}
|
|
@@ -67525,15 +67525,15 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
67525
67525
|
const handleResizeStart = React.useCallback(({
|
|
67526
67526
|
field: field2
|
|
67527
67527
|
}) => {
|
|
67528
|
-
apiRef.current.setState((state) => _extends$
|
|
67529
|
-
columnResize: _extends$
|
|
67528
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
67529
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
67530
67530
|
resizingColumnField: field2
|
|
67531
67531
|
})
|
|
67532
67532
|
}));
|
|
67533
67533
|
}, [apiRef]);
|
|
67534
67534
|
const handleResizeStop = React.useCallback(() => {
|
|
67535
|
-
apiRef.current.setState((state) => _extends$
|
|
67536
|
-
columnResize: _extends$
|
|
67535
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
67536
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
67537
67537
|
resizingColumnField: ""
|
|
67538
67538
|
})
|
|
67539
67539
|
}));
|
|
@@ -67571,7 +67571,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
67571
67571
|
if (column2.resizable === false) {
|
|
67572
67572
|
return;
|
|
67573
67573
|
}
|
|
67574
|
-
apiRef.current.autosizeColumns(_extends$
|
|
67574
|
+
apiRef.current.autosizeColumns(_extends$c({}, props.autosizeOptions, {
|
|
67575
67575
|
disableColumnVirtualization: false,
|
|
67576
67576
|
columns: [column2.field]
|
|
67577
67577
|
}));
|
|
@@ -67588,7 +67588,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
67588
67588
|
}
|
|
67589
67589
|
isAutosizingRef.current = true;
|
|
67590
67590
|
const state = gridColumnsStateSelector(apiRef);
|
|
67591
|
-
const options = _extends$
|
|
67591
|
+
const options = _extends$c({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
|
|
67592
67592
|
columns: userOptions?.columns ?? state.orderedFields
|
|
67593
67593
|
});
|
|
67594
67594
|
options.columns = options.columns.filter((c2) => state.columnVisibilityModel[c2] !== false);
|
|
@@ -67599,7 +67599,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
67599
67599
|
await columnVirtualizationDisabled();
|
|
67600
67600
|
}
|
|
67601
67601
|
const widthByField = extractColumnWidths(apiRef, options, columns2);
|
|
67602
|
-
const newColumns = columns2.map((column2) => _extends$
|
|
67602
|
+
const newColumns = columns2.map((column2) => _extends$c({}, column2, {
|
|
67603
67603
|
width: widthByField[column2.field],
|
|
67604
67604
|
computedWidth: widthByField[column2.field],
|
|
67605
67605
|
flex: 0
|
|
@@ -67707,9 +67707,9 @@ const EMPTY_RANGE = {
|
|
|
67707
67707
|
const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
|
|
67708
67708
|
const DEFAULT_ROWS_TO_PROCESS = 20;
|
|
67709
67709
|
const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
|
|
67710
|
-
const spannedCells = resetState ? {} : _extends$
|
|
67711
|
-
const hiddenCells = resetState ? {} : _extends$
|
|
67712
|
-
const hiddenCellOriginMap = resetState ? {} : _extends$
|
|
67710
|
+
const spannedCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.spannedCells);
|
|
67711
|
+
const hiddenCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCells);
|
|
67712
|
+
const hiddenCellOriginMap = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
|
|
67713
67713
|
if (resetState) {
|
|
67714
67714
|
processedRange = EMPTY_RANGE;
|
|
67715
67715
|
}
|
|
@@ -67821,7 +67821,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
|
|
|
67821
67821
|
};
|
|
67822
67822
|
const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
67823
67823
|
if (!props.rowSpanning) {
|
|
67824
|
-
return _extends$
|
|
67824
|
+
return _extends$c({}, state, {
|
|
67825
67825
|
rowSpanning: EMPTY_STATE
|
|
67826
67826
|
});
|
|
67827
67827
|
}
|
|
@@ -67831,7 +67831,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
67831
67831
|
const columnsLookup = state.columns.lookup;
|
|
67832
67832
|
const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean(state.filter.filterModel.quickFilterValues?.length);
|
|
67833
67833
|
if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
|
|
67834
|
-
return _extends$
|
|
67834
|
+
return _extends$c({}, state, {
|
|
67835
67835
|
rowSpanning: EMPTY_STATE
|
|
67836
67836
|
});
|
|
67837
67837
|
}
|
|
@@ -67846,7 +67846,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
67846
67846
|
hiddenCells,
|
|
67847
67847
|
hiddenCellOriginMap
|
|
67848
67848
|
} = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
|
|
67849
|
-
return _extends$
|
|
67849
|
+
return _extends$c({}, state, {
|
|
67850
67850
|
rowSpanning: {
|
|
67851
67851
|
spannedCells,
|
|
67852
67852
|
hiddenCells,
|
|
@@ -67897,7 +67897,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
67897
67897
|
return;
|
|
67898
67898
|
}
|
|
67899
67899
|
apiRef.current.setState((state) => {
|
|
67900
|
-
return _extends$
|
|
67900
|
+
return _extends$c({}, state, {
|
|
67901
67901
|
rowSpanning: {
|
|
67902
67902
|
spannedCells,
|
|
67903
67903
|
hiddenCells,
|
|
@@ -67921,7 +67921,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
67921
67921
|
React.useEffect(() => {
|
|
67922
67922
|
if (!props.rowSpanning) {
|
|
67923
67923
|
if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
|
|
67924
|
-
apiRef.current.setState((state) => _extends$
|
|
67924
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
67925
67925
|
rowSpanning: EMPTY_STATE
|
|
67926
67926
|
}));
|
|
67927
67927
|
}
|
|
@@ -67930,8 +67930,8 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
67930
67930
|
}
|
|
67931
67931
|
}, [apiRef, resetRowSpanningState, props.rowSpanning]);
|
|
67932
67932
|
};
|
|
67933
|
-
const listViewStateInitializer = (state, props, apiRef) => _extends$
|
|
67934
|
-
listViewColumn: props.listViewColumn ? _extends$
|
|
67933
|
+
const listViewStateInitializer = (state, props, apiRef) => _extends$c({}, state, {
|
|
67934
|
+
listViewColumn: props.listViewColumn ? _extends$c({}, props.listViewColumn, {
|
|
67935
67935
|
computedWidth: getListColumnWidth(apiRef)
|
|
67936
67936
|
}) : void 0
|
|
67937
67937
|
});
|
|
@@ -67941,8 +67941,8 @@ function useGridListView(apiRef, props) {
|
|
|
67941
67941
|
if (!state.listViewColumn) {
|
|
67942
67942
|
return state;
|
|
67943
67943
|
}
|
|
67944
|
-
return _extends$
|
|
67945
|
-
listViewColumn: _extends$
|
|
67944
|
+
return _extends$c({}, state, {
|
|
67945
|
+
listViewColumn: _extends$c({}, state.listViewColumn, {
|
|
67946
67946
|
computedWidth: getListColumnWidth(apiRef)
|
|
67947
67947
|
})
|
|
67948
67948
|
});
|
|
@@ -67961,8 +67961,8 @@ function useGridListView(apiRef, props) {
|
|
|
67961
67961
|
const listColumn = props.listViewColumn;
|
|
67962
67962
|
if (listColumn) {
|
|
67963
67963
|
apiRef.current.setState((state) => {
|
|
67964
|
-
return _extends$
|
|
67965
|
-
listViewColumn: _extends$
|
|
67964
|
+
return _extends$c({}, state, {
|
|
67965
|
+
listViewColumn: _extends$c({}, listColumn, {
|
|
67966
67966
|
computedWidth: getListColumnWidth(apiRef)
|
|
67967
67967
|
})
|
|
67968
67968
|
});
|
|
@@ -68007,7 +68007,7 @@ class CacheChunkManager {
|
|
|
68007
68007
|
const chunkedKeys = [];
|
|
68008
68008
|
for (let i2 = key2.start; i2 < key2.end; i2 += this.chunkSize) {
|
|
68009
68009
|
const end2 = Math.min(i2 + this.chunkSize - 1, key2.end);
|
|
68010
|
-
chunkedKeys.push(_extends$
|
|
68010
|
+
chunkedKeys.push(_extends$c({}, key2, {
|
|
68011
68011
|
start: i2,
|
|
68012
68012
|
end: end2
|
|
68013
68013
|
}));
|
|
@@ -68019,8 +68019,8 @@ class CacheChunkManager {
|
|
|
68019
68019
|
const responses = /* @__PURE__ */ new Map();
|
|
68020
68020
|
cacheKeys.forEach((chunkKey) => {
|
|
68021
68021
|
const isLastChunk = chunkKey.end === key2.end;
|
|
68022
|
-
const responseSlice = _extends$
|
|
68023
|
-
pageInfo: _extends$
|
|
68022
|
+
const responseSlice = _extends$c({}, response, {
|
|
68023
|
+
pageInfo: _extends$c({}, response.pageInfo, {
|
|
68024
68024
|
// If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
|
|
68025
68025
|
hasNextPage: response.pageInfo?.hasNextPage !== void 0 && !isLastChunk ? true : response.pageInfo?.hasNextPage,
|
|
68026
68026
|
nextCursor: response.pageInfo?.nextCursor !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : response.pageInfo?.nextCursor
|
|
@@ -68085,7 +68085,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
|
|
|
68085
68085
|
return;
|
|
68086
68086
|
}
|
|
68087
68087
|
options.clearDataSourceState?.();
|
|
68088
|
-
const fetchParams = _extends$
|
|
68088
|
+
const fetchParams = _extends$c({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params2);
|
|
68089
68089
|
const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
|
|
68090
68090
|
const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
|
|
68091
68091
|
if (responses.every((response) => response !== void 0)) {
|
|
@@ -68328,7 +68328,7 @@ function GridColumnGroupHeader(props) {
|
|
|
68328
68328
|
if (groupId && render2) {
|
|
68329
68329
|
headerComponent = render2(renderParams);
|
|
68330
68330
|
}
|
|
68331
|
-
const ownerState = _extends$
|
|
68331
|
+
const ownerState = _extends$c({}, props, {
|
|
68332
68332
|
classes: rootProps.classes,
|
|
68333
68333
|
headerAlign,
|
|
68334
68334
|
depth,
|
|
@@ -68362,8 +68362,8 @@ function GridColumnGroupHeader(props) {
|
|
|
68362
68362
|
onBlur: publish("columnGroupHeaderBlur")
|
|
68363
68363
|
}), [publish]);
|
|
68364
68364
|
const headerClassName = typeof group2.headerClassName === "function" ? group2.headerClassName(renderParams) : group2.headerClassName;
|
|
68365
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
68366
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
68365
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
68366
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
68367
68367
|
ref: headerCellRef,
|
|
68368
68368
|
classes: classes2,
|
|
68369
68369
|
columnMenuOpen: false,
|
|
@@ -68502,7 +68502,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
68502
68502
|
const sectionLength = renderedColumns.length;
|
|
68503
68503
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
68504
68504
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
|
|
68505
|
-
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$
|
|
68505
|
+
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$c({}, sortColumnLookup[colDef.field], {
|
|
68506
68506
|
columnMenuOpen: open2,
|
|
68507
68507
|
filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
|
|
68508
68508
|
headerHeight,
|
|
@@ -68574,7 +68574,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
68574
68574
|
columnFields
|
|
68575
68575
|
}) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
|
|
68576
68576
|
const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
|
|
68577
|
-
return _extends$
|
|
68577
|
+
return _extends$c({}, groupStructure, {
|
|
68578
68578
|
columnFields: groupStructure.columnFields.filter((field2) => columnVisibility[field2] !== false)
|
|
68579
68579
|
});
|
|
68580
68580
|
}).filter((groupStructure) => groupStructure.columnFields.length > 0);
|
|
@@ -68703,7 +68703,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref2)
|
|
|
68703
68703
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
|
|
68704
68704
|
const rootProps = useGridRootProps();
|
|
68705
68705
|
const classes2 = useUtilityClasses$5(rootProps);
|
|
68706
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$
|
|
68706
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$c({
|
|
68707
68707
|
className: clsx$1(classes2.root, className),
|
|
68708
68708
|
ownerState: rootProps
|
|
68709
68709
|
}, other, {
|
|
@@ -68745,7 +68745,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref2)
|
|
|
68745
68745
|
columnGroupsHeaderStructure,
|
|
68746
68746
|
hasOtherElementInTabSequence
|
|
68747
68747
|
});
|
|
68748
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$
|
|
68748
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$c({}, other, getInnerProps(), {
|
|
68749
68749
|
ref: ref2,
|
|
68750
68750
|
children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
|
|
68751
68751
|
}));
|
|
@@ -68794,7 +68794,7 @@ function GridPinnedRows(_) {
|
|
|
68794
68794
|
const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref2) {
|
|
68795
68795
|
const apiRef = useGridApiContext();
|
|
68796
68796
|
const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
|
|
68797
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
68797
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
68798
68798
|
ref: ref2,
|
|
68799
68799
|
children: noResultsOverlayLabel
|
|
68800
68800
|
}));
|
|
@@ -70319,7 +70319,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
|
|
|
70319
70319
|
const rootProps = useGridRootProps();
|
|
70320
70320
|
const [nextSortDirection] = sortingOrder;
|
|
70321
70321
|
const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
|
|
70322
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
70322
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({}, other)) : null;
|
|
70323
70323
|
});
|
|
70324
70324
|
const encoder$2 = new TextEncoder();
|
|
70325
70325
|
let bufferLength = 2 * 1024;
|
|
@@ -70535,7 +70535,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref2) {
|
|
|
70535
70535
|
shrink: true,
|
|
70536
70536
|
variant: "outlined",
|
|
70537
70537
|
children: label2
|
|
70538
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$
|
|
70538
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$c({
|
|
70539
70539
|
id: id2,
|
|
70540
70540
|
labelId,
|
|
70541
70541
|
label: label2,
|
|
@@ -70591,13 +70591,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref2) {
|
|
|
70591
70591
|
const {
|
|
70592
70592
|
estimatedRowCount
|
|
70593
70593
|
} = rootProps;
|
|
70594
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$
|
|
70594
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$c({
|
|
70595
70595
|
component: "div",
|
|
70596
70596
|
onRowsPerPageChange: useEventCallback((event2) => {
|
|
70597
70597
|
onRowsPerPageChange?.(Number(event2.target.value));
|
|
70598
70598
|
}),
|
|
70599
70599
|
labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
|
|
70600
|
-
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$
|
|
70600
|
+
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$c({}, params2, {
|
|
70601
70601
|
estimated: estimatedRowCount
|
|
70602
70602
|
})),
|
|
70603
70603
|
getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
|
|
@@ -70609,7 +70609,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref2) {
|
|
|
70609
70609
|
const {
|
|
70610
70610
|
material
|
|
70611
70611
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded3$1);
|
|
70612
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$
|
|
70612
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$c({}, rest, material, {
|
|
70613
70613
|
ref: ref2
|
|
70614
70614
|
}));
|
|
70615
70615
|
});
|
|
@@ -70636,7 +70636,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
70636
70636
|
}
|
|
70637
70637
|
}, [autoFocus]);
|
|
70638
70638
|
if (!label2) {
|
|
70639
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
70639
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
70640
70640
|
className: clsx$1(className, material?.className),
|
|
70641
70641
|
inputProps: slotProps?.htmlInput,
|
|
70642
70642
|
ref: handleRef,
|
|
@@ -70645,7 +70645,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
70645
70645
|
}
|
|
70646
70646
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
|
|
70647
70647
|
className,
|
|
70648
|
-
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
70648
|
+
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
70649
70649
|
inputProps: slotProps?.htmlInput,
|
|
70650
70650
|
ref: handleRef,
|
|
70651
70651
|
touchRippleRef: rippleRef
|
|
@@ -70658,7 +70658,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
|
|
|
70658
70658
|
const {
|
|
70659
70659
|
material
|
|
70660
70660
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded5);
|
|
70661
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$
|
|
70661
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$c({}, rest, material, {
|
|
70662
70662
|
ref: ref2
|
|
70663
70663
|
}));
|
|
70664
70664
|
});
|
|
@@ -70666,7 +70666,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref2) {
|
|
|
70666
70666
|
const {
|
|
70667
70667
|
material
|
|
70668
70668
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded6);
|
|
70669
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$
|
|
70669
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$c({}, rest, material, {
|
|
70670
70670
|
ref: ref2
|
|
70671
70671
|
}));
|
|
70672
70672
|
});
|
|
@@ -70674,7 +70674,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref2)
|
|
|
70674
70674
|
const {
|
|
70675
70675
|
material
|
|
70676
70676
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded7);
|
|
70677
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$
|
|
70677
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$c({}, rest, material, {
|
|
70678
70678
|
ref: ref2
|
|
70679
70679
|
}));
|
|
70680
70680
|
});
|
|
@@ -70682,7 +70682,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref2) {
|
|
|
70682
70682
|
const {
|
|
70683
70683
|
material
|
|
70684
70684
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded8);
|
|
70685
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$
|
|
70685
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$c({}, rest, material, {
|
|
70686
70686
|
ref: ref2
|
|
70687
70687
|
}));
|
|
70688
70688
|
});
|
|
@@ -70690,7 +70690,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref2) {
|
|
|
70690
70690
|
const {
|
|
70691
70691
|
material
|
|
70692
70692
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded9);
|
|
70693
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$
|
|
70693
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$c({}, rest, material, {
|
|
70694
70694
|
ref: ref2
|
|
70695
70695
|
}));
|
|
70696
70696
|
});
|
|
@@ -70698,7 +70698,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref2) {
|
|
|
70698
70698
|
const {
|
|
70699
70699
|
material
|
|
70700
70700
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded10);
|
|
70701
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$
|
|
70701
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$c({}, rest, material, {
|
|
70702
70702
|
ref: ref2
|
|
70703
70703
|
}));
|
|
70704
70704
|
});
|
|
@@ -70706,7 +70706,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref2) {
|
|
|
70706
70706
|
const {
|
|
70707
70707
|
material
|
|
70708
70708
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded11);
|
|
70709
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$
|
|
70709
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$c({}, rest, material, {
|
|
70710
70710
|
ref: ref2
|
|
70711
70711
|
}));
|
|
70712
70712
|
});
|
|
@@ -70714,7 +70714,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref2) {
|
|
|
70714
70714
|
const {
|
|
70715
70715
|
material
|
|
70716
70716
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded12);
|
|
70717
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$
|
|
70717
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$c({}, rest, material, {
|
|
70718
70718
|
ref: ref2
|
|
70719
70719
|
}));
|
|
70720
70720
|
});
|
|
@@ -70722,7 +70722,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref2) {
|
|
|
70722
70722
|
const {
|
|
70723
70723
|
material
|
|
70724
70724
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded13);
|
|
70725
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$
|
|
70725
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$c({}, rest, material, {
|
|
70726
70726
|
ref: ref2
|
|
70727
70727
|
}));
|
|
70728
70728
|
});
|
|
@@ -70749,12 +70749,12 @@ function BaseTextField(props) {
|
|
|
70749
70749
|
slotProps,
|
|
70750
70750
|
material
|
|
70751
70751
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded15);
|
|
70752
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
70752
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({
|
|
70753
70753
|
variant: "outlined"
|
|
70754
70754
|
}, rest, material, {
|
|
70755
70755
|
inputProps: slotProps?.htmlInput,
|
|
70756
70756
|
InputProps: transformInputProps(slotProps?.input),
|
|
70757
|
-
InputLabelProps: _extends$
|
|
70757
|
+
InputLabelProps: _extends$c({
|
|
70758
70758
|
shrink: true
|
|
70759
70759
|
}, slotProps?.inputLabel)
|
|
70760
70760
|
}));
|
|
@@ -70775,7 +70775,7 @@ function BaseAutocomplete(props) {
|
|
|
70775
70775
|
slotProps,
|
|
70776
70776
|
material
|
|
70777
70777
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded16);
|
|
70778
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$
|
|
70778
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$c({
|
|
70779
70779
|
id: id2,
|
|
70780
70780
|
multiple,
|
|
70781
70781
|
freeSolo,
|
|
@@ -70790,7 +70790,7 @@ function BaseAutocomplete(props) {
|
|
|
70790
70790
|
}), {
|
|
70791
70791
|
key: key2
|
|
70792
70792
|
} = _getTagProps, tagProps = _objectWithoutPropertiesLoose$1(_getTagProps, _excluded17);
|
|
70793
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$
|
|
70793
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$c({
|
|
70794
70794
|
variant: "outlined",
|
|
70795
70795
|
size: "small",
|
|
70796
70796
|
label: typeof option === "string" ? option : getOptionLabel?.(option)
|
|
@@ -70802,12 +70802,12 @@ function BaseAutocomplete(props) {
|
|
|
70802
70802
|
InputProps,
|
|
70803
70803
|
InputLabelProps
|
|
70804
70804
|
} = params2, inputRest = _objectWithoutPropertiesLoose$1(params2, _excluded18);
|
|
70805
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
70805
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({}, inputRest, {
|
|
70806
70806
|
label: label2,
|
|
70807
70807
|
placeholder,
|
|
70808
70808
|
inputProps,
|
|
70809
70809
|
InputProps: transformInputProps(InputProps, false),
|
|
70810
|
-
InputLabelProps: _extends$
|
|
70810
|
+
InputLabelProps: _extends$c({
|
|
70811
70811
|
shrink: true
|
|
70812
70812
|
}, InputLabelProps)
|
|
70813
70813
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
@@ -70815,7 +70815,7 @@ function BaseAutocomplete(props) {
|
|
|
70815
70815
|
}, rest, material));
|
|
70816
70816
|
}
|
|
70817
70817
|
function BaseInput(props) {
|
|
70818
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$
|
|
70818
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$c({}, transformInputProps(props)));
|
|
70819
70819
|
}
|
|
70820
70820
|
function transformInputProps(props, wrapAdornments = true) {
|
|
70821
70821
|
if (!props) {
|
|
@@ -70847,7 +70847,7 @@ function transformInputProps(props, wrapAdornments = true) {
|
|
|
70847
70847
|
}
|
|
70848
70848
|
if (slotProps?.htmlInput) {
|
|
70849
70849
|
if (result.inputProps) {
|
|
70850
|
-
result.inputProps = _extends$
|
|
70850
|
+
result.inputProps = _extends$c({}, result.inputProps, slotProps?.htmlInput);
|
|
70851
70851
|
} else {
|
|
70852
70852
|
result.inputProps = slotProps?.htmlInput;
|
|
70853
70853
|
}
|
|
@@ -70911,7 +70911,7 @@ function BasePopper(props) {
|
|
|
70911
70911
|
onExited(node2);
|
|
70912
70912
|
}
|
|
70913
70913
|
};
|
|
70914
|
-
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$
|
|
70914
|
+
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$c({}, p.TransitionProps, {
|
|
70915
70915
|
style: {
|
|
70916
70916
|
transformOrigin: transformOrigin[p.placement]
|
|
70917
70917
|
},
|
|
@@ -70921,7 +70921,7 @@ function BasePopper(props) {
|
|
|
70921
70921
|
})
|
|
70922
70922
|
})));
|
|
70923
70923
|
}
|
|
70924
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$
|
|
70924
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$c({
|
|
70925
70925
|
id: id2,
|
|
70926
70926
|
className,
|
|
70927
70927
|
open: open2,
|
|
@@ -70966,9 +70966,9 @@ function BaseSelectOption(_ref) {
|
|
|
70966
70966
|
native: native2
|
|
70967
70967
|
} = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded21);
|
|
70968
70968
|
if (native2) {
|
|
70969
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$
|
|
70969
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$c({}, props));
|
|
70970
70970
|
}
|
|
70971
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$
|
|
70971
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$c({}, props));
|
|
70972
70972
|
}
|
|
70973
70973
|
const iconSlots = {
|
|
70974
70974
|
booleanCellTrueIcon: GridCheckIcon,
|
|
@@ -71030,7 +71030,7 @@ const baseSlots = {
|
|
|
71030
71030
|
baseSkeleton: BaseSkeleton,
|
|
71031
71031
|
baseSwitch: BaseSwitch
|
|
71032
71032
|
};
|
|
71033
|
-
const materialSlots = _extends$
|
|
71033
|
+
const materialSlots = _extends$c({}, baseSlots, iconSlots);
|
|
71034
71034
|
const useUtilityClasses = () => {
|
|
71035
71035
|
const slots = {
|
|
71036
71036
|
root: ["bottomContainer"]
|
|
@@ -71044,12 +71044,12 @@ const Element$1 = styled$1("div")({
|
|
|
71044
71044
|
});
|
|
71045
71045
|
function GridBottomContainer(props) {
|
|
71046
71046
|
const classes2 = useUtilityClasses();
|
|
71047
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$
|
|
71047
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$c({}, props, {
|
|
71048
71048
|
className: clsx$1(classes2.root, gridClasses["container--bottom"]),
|
|
71049
71049
|
role: "presentation"
|
|
71050
71050
|
}));
|
|
71051
71051
|
}
|
|
71052
|
-
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$
|
|
71052
|
+
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$c({}, materialSlots, {
|
|
71053
71053
|
cell: MemoizedGridCell,
|
|
71054
71054
|
skeletonCell: Memoized$1,
|
|
71055
71055
|
columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
|
|
@@ -71085,7 +71085,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
71085
71085
|
signature: "DataGrid",
|
|
71086
71086
|
listView: false
|
|
71087
71087
|
};
|
|
71088
|
-
const getDataGridForcedProps = (themedProps) => _extends$
|
|
71088
|
+
const getDataGridForcedProps = (themedProps) => _extends$c({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
71089
71089
|
filterMode: "server",
|
|
71090
71090
|
sortingMode: "server",
|
|
71091
71091
|
paginationMode: "server"
|
|
@@ -71099,7 +71099,7 @@ const useDataGridProps = (inProps) => {
|
|
|
71099
71099
|
name: "MuiDataGrid"
|
|
71100
71100
|
})
|
|
71101
71101
|
);
|
|
71102
|
-
const localeText = React.useMemo(() => _extends$
|
|
71102
|
+
const localeText = React.useMemo(() => _extends$c({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
71103
71103
|
const slots = React.useMemo(() => computeSlots({
|
|
71104
71104
|
defaultSlots,
|
|
71105
71105
|
slots: themedProps.slots
|
|
@@ -71110,7 +71110,7 @@ const useDataGridProps = (inProps) => {
|
|
|
71110
71110
|
return acc;
|
|
71111
71111
|
}, {});
|
|
71112
71112
|
}, [themedProps]);
|
|
71113
|
-
return React.useMemo(() => _extends$
|
|
71113
|
+
return React.useMemo(() => _extends$c({}, themedProps, injectDefaultProps, {
|
|
71114
71114
|
localeText,
|
|
71115
71115
|
slots
|
|
71116
71116
|
}, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
|
|
@@ -71132,7 +71132,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref2) {
|
|
|
71132
71132
|
privateApiRef,
|
|
71133
71133
|
configuration,
|
|
71134
71134
|
props,
|
|
71135
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$
|
|
71135
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$c({
|
|
71136
71136
|
className: props.className,
|
|
71137
71137
|
style: props.style,
|
|
71138
71138
|
sx: props.sx
|
|
@@ -72123,7 +72123,7 @@ var defineProperty$6 = function(obj, key2, value2) {
|
|
|
72123
72123
|
}
|
|
72124
72124
|
return obj;
|
|
72125
72125
|
};
|
|
72126
|
-
var _extends$
|
|
72126
|
+
var _extends$b = Object.assign || function(target2) {
|
|
72127
72127
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
72128
72128
|
var source2 = arguments[i2];
|
|
72129
72129
|
for (var key2 in source2) {
|
|
@@ -72135,7 +72135,7 @@ var _extends$c = Object.assign || function(target2) {
|
|
|
72135
72135
|
return target2;
|
|
72136
72136
|
};
|
|
72137
72137
|
function getClientRect(offsets2) {
|
|
72138
|
-
return _extends$
|
|
72138
|
+
return _extends$b({}, offsets2, {
|
|
72139
72139
|
right: offsets2.left + offsets2.width,
|
|
72140
72140
|
bottom: offsets2.top + offsets2.height
|
|
72141
72141
|
});
|
|
@@ -72319,7 +72319,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
|
|
|
72319
72319
|
}
|
|
72320
72320
|
};
|
|
72321
72321
|
var sortedAreas = Object.keys(rects).map(function(key2) {
|
|
72322
|
-
return _extends$
|
|
72322
|
+
return _extends$b({
|
|
72323
72323
|
key: key2
|
|
72324
72324
|
}, rects[key2], {
|
|
72325
72325
|
area: getArea(rects[key2])
|
|
@@ -72627,9 +72627,9 @@ function computeStyle(data2, options) {
|
|
|
72627
72627
|
var attributes = {
|
|
72628
72628
|
"x-placement": data2.placement
|
|
72629
72629
|
};
|
|
72630
|
-
data2.attributes = _extends$
|
|
72631
|
-
data2.styles = _extends$
|
|
72632
|
-
data2.arrowStyles = _extends$
|
|
72630
|
+
data2.attributes = _extends$b({}, attributes, data2.attributes);
|
|
72631
|
+
data2.styles = _extends$b({}, styles2, data2.styles);
|
|
72632
|
+
data2.arrowStyles = _extends$b({}, data2.offsets.arrow, data2.arrowStyles);
|
|
72633
72633
|
return data2;
|
|
72634
72634
|
}
|
|
72635
72635
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -72764,7 +72764,7 @@ function flip$1(data2, options) {
|
|
|
72764
72764
|
variation = getOppositeVariation(variation);
|
|
72765
72765
|
}
|
|
72766
72766
|
data2.placement = placement + (variation ? "-" + variation : "");
|
|
72767
|
-
data2.offsets.popper = _extends$
|
|
72767
|
+
data2.offsets.popper = _extends$b({}, data2.offsets.popper, getPopperOffsets(data2.instance.popper, data2.offsets.reference, data2.placement));
|
|
72768
72768
|
data2 = runModifiers(data2.instance.modifiers, data2, "flip");
|
|
72769
72769
|
}
|
|
72770
72770
|
});
|
|
@@ -72923,7 +72923,7 @@ function preventOverflow(data2, options) {
|
|
|
72923
72923
|
};
|
|
72924
72924
|
order2.forEach(function(placement) {
|
|
72925
72925
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
72926
|
-
popper2 = _extends$
|
|
72926
|
+
popper2 = _extends$b({}, popper2, check[side](placement));
|
|
72927
72927
|
});
|
|
72928
72928
|
data2.offsets.popper = popper2;
|
|
72929
72929
|
return data2;
|
|
@@ -72941,7 +72941,7 @@ function shift(data2) {
|
|
|
72941
72941
|
start: defineProperty$6({}, side, reference2[side]),
|
|
72942
72942
|
end: defineProperty$6({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
72943
72943
|
};
|
|
72944
|
-
data2.offsets.popper = _extends$
|
|
72944
|
+
data2.offsets.popper = _extends$b({}, popper2, shiftOffsets[shiftvariation]);
|
|
72945
72945
|
}
|
|
72946
72946
|
return data2;
|
|
72947
72947
|
}
|
|
@@ -73344,7 +73344,7 @@ var Popper$1 = function() {
|
|
|
73344
73344
|
return requestAnimationFrame(_this.update);
|
|
73345
73345
|
};
|
|
73346
73346
|
this.update = debounce$2(this.update.bind(this));
|
|
73347
|
-
this.options = _extends$
|
|
73347
|
+
this.options = _extends$b({}, Popper3.Defaults, options);
|
|
73348
73348
|
this.state = {
|
|
73349
73349
|
isDestroyed: false,
|
|
73350
73350
|
isCreated: false,
|
|
@@ -73353,11 +73353,11 @@ var Popper$1 = function() {
|
|
|
73353
73353
|
this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
|
|
73354
73354
|
this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
|
|
73355
73355
|
this.options.modifiers = {};
|
|
73356
|
-
Object.keys(_extends$
|
|
73357
|
-
_this.options.modifiers[name2] = _extends$
|
|
73356
|
+
Object.keys(_extends$b({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
73357
|
+
_this.options.modifiers[name2] = _extends$b({}, Popper3.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
73358
73358
|
});
|
|
73359
73359
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
|
|
73360
|
-
return _extends$
|
|
73360
|
+
return _extends$b({
|
|
73361
73361
|
name: name2
|
|
73362
73362
|
}, _this.options.modifiers[name2]);
|
|
73363
73363
|
}).sort(function(a2, b2) {
|
|
@@ -73601,38 +73601,6 @@ function ScopedGlobalStyles(props) {
|
|
|
73601
73601
|
}, [parentClassName, styles2]);
|
|
73602
73602
|
return component;
|
|
73603
73603
|
}
|
|
73604
|
-
function _extends$b() {
|
|
73605
|
-
_extends$b = Object.assign ? Object.assign.bind() : function(target2) {
|
|
73606
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
73607
|
-
var source2 = arguments[i2];
|
|
73608
|
-
for (var key2 in source2) {
|
|
73609
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
|
73610
|
-
target2[key2] = source2[key2];
|
|
73611
|
-
}
|
|
73612
|
-
}
|
|
73613
|
-
}
|
|
73614
|
-
return target2;
|
|
73615
|
-
};
|
|
73616
|
-
return _extends$b.apply(this, arguments);
|
|
73617
|
-
}
|
|
73618
|
-
function _assertThisInitialized$1(self2) {
|
|
73619
|
-
if (self2 === void 0) {
|
|
73620
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
73621
|
-
}
|
|
73622
|
-
return self2;
|
|
73623
|
-
}
|
|
73624
|
-
function _setPrototypeOf$1(o2, p) {
|
|
73625
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
73626
|
-
o3.__proto__ = p2;
|
|
73627
|
-
return o3;
|
|
73628
|
-
};
|
|
73629
|
-
return _setPrototypeOf$1(o2, p);
|
|
73630
|
-
}
|
|
73631
|
-
function _inheritsLoose(subClass, superClass) {
|
|
73632
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
73633
|
-
subClass.prototype.constructor = subClass;
|
|
73634
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
73635
|
-
}
|
|
73636
73604
|
var safeIsNaN = Number.isNaN || function ponyfill(value2) {
|
|
73637
73605
|
return typeof value2 === "number" && value2 !== value2;
|
|
73638
73606
|
};
|
|
@@ -74000,7 +73968,7 @@ function createListComponent(_ref) {
|
|
|
74000
73968
|
className,
|
|
74001
73969
|
onScroll: onScroll6,
|
|
74002
73970
|
ref: this._outerRefSetter,
|
|
74003
|
-
style: _extends$
|
|
73971
|
+
style: _extends$c({
|
|
74004
73972
|
position: "relative",
|
|
74005
73973
|
height: height2,
|
|
74006
73974
|
width: width2,
|
|
@@ -210351,22 +210319,22 @@ async function getDecoder(fileDirectory) {
|
|
|
210351
210319
|
const Decoder = await importFn();
|
|
210352
210320
|
return new Decoder(fileDirectory);
|
|
210353
210321
|
}
|
|
210354
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
210355
|
-
addDecoder(5, () => import("./lzw-
|
|
210322
|
+
addDecoder([void 0, 1], () => import("./raw-DITpx3I3.js").then((m2) => m2.default));
|
|
210323
|
+
addDecoder(5, () => import("./lzw-D6__ol7A.js").then((m2) => m2.default));
|
|
210356
210324
|
addDecoder(6, () => {
|
|
210357
210325
|
throw new Error("old style JPEG compression is not supported.");
|
|
210358
210326
|
});
|
|
210359
|
-
addDecoder(7, () => import("./jpeg-
|
|
210360
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
210361
|
-
addDecoder(32773, () => import("./packbits-
|
|
210327
|
+
addDecoder(7, () => import("./jpeg-GtoIw4IT.js").then((m2) => m2.default));
|
|
210328
|
+
addDecoder([8, 32946], () => import("./deflate-ClPM2AX_.js").then((m2) => m2.default));
|
|
210329
|
+
addDecoder(32773, () => import("./packbits-qyK2t5DY.js").then((m2) => m2.default));
|
|
210362
210330
|
addDecoder(
|
|
210363
210331
|
34887,
|
|
210364
|
-
() => import("./lerc-
|
|
210332
|
+
() => import("./lerc-DcSwwDzY.js").then(async (m2) => {
|
|
210365
210333
|
await m2.zstd.init();
|
|
210366
210334
|
return m2;
|
|
210367
210335
|
}).then((m2) => m2.default)
|
|
210368
210336
|
);
|
|
210369
|
-
addDecoder(50001, () => import("./webimage-
|
|
210337
|
+
addDecoder(50001, () => import("./webimage-DggQ0O5v.js").then((m2) => m2.default));
|
|
210370
210338
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
210371
210339
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
210372
210340
|
}
|
|
@@ -233978,7 +233946,7 @@ var config$2 = function config(options) {
|
|
|
233978
233946
|
}
|
|
233979
233947
|
return Object.freeze(DEFAULT_CONFIG);
|
|
233980
233948
|
};
|
|
233981
|
-
_extends$
|
|
233949
|
+
_extends$c(config$2, DEFAULT_CONFIG, {
|
|
233982
233950
|
MATRIX_OPTIONS,
|
|
233983
233951
|
NUMBER_OPTIONS
|
|
233984
233952
|
});
|
|
@@ -245803,9 +245771,9 @@ var createUnitClass = /* @__PURE__ */ factory(name$6, dependencies$6, (_ref) =>
|
|
|
245803
245771
|
}
|
|
245804
245772
|
}
|
|
245805
245773
|
};
|
|
245806
|
-
PREFIXES.SHORTLONG = _extends$
|
|
245807
|
-
PREFIXES.BINARY_SHORT = _extends$
|
|
245808
|
-
PREFIXES.BINARY_LONG = _extends$
|
|
245774
|
+
PREFIXES.SHORTLONG = _extends$c({}, PREFIXES.SHORT, PREFIXES.LONG);
|
|
245775
|
+
PREFIXES.BINARY_SHORT = _extends$c({}, PREFIXES.BINARY_SHORT_SI, PREFIXES.BINARY_SHORT_IEC);
|
|
245776
|
+
PREFIXES.BINARY_LONG = _extends$c({}, PREFIXES.BINARY_LONG_SI, PREFIXES.BINARY_LONG_IEC);
|
|
245809
245777
|
var BASE_DIMENSIONS = ["MASS", "LENGTH", "TIME", "CURRENT", "TEMPERATURE", "LUMINOUS_INTENSITY", "AMOUNT_OF_SUBSTANCE", "ANGLE", "BIT"];
|
|
245810
245778
|
var BASE_UNITS = {
|
|
245811
245779
|
NONE: {
|
|
@@ -254855,12 +254823,12 @@ class ErrorBoundary extends React__default.Component {
|
|
|
254855
254823
|
}
|
|
254856
254824
|
}
|
|
254857
254825
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
254858
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
254826
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-5-K_2Uhu.js");
|
|
254859
254827
|
return { default: SpatialWrapper2 };
|
|
254860
254828
|
});
|
|
254861
254829
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
254862
254830
|
const LazySpatialAccelerated = React__default.lazy(async () => {
|
|
254863
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
254831
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-C-dFydbG.js");
|
|
254864
254832
|
return { default: SpatialWrapper2 };
|
|
254865
254833
|
});
|
|
254866
254834
|
const SpatialAcceleratedAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialAccelerated, { ...props }) }) }) }));
|
|
@@ -257850,8 +257818,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
257850
257818
|
}, {
|
|
257851
257819
|
key: "render",
|
|
257852
257820
|
value: function render2() {
|
|
257853
|
-
var props = _extends$
|
|
257854
|
-
return /* @__PURE__ */ React.createElement(CollectionView, _extends$
|
|
257821
|
+
var props = _extends$d({}, (_objectDestructuringEmpty(this.props), this.props));
|
|
257822
|
+
return /* @__PURE__ */ React.createElement(CollectionView, _extends$d({
|
|
257855
257823
|
cellLayoutManager: this,
|
|
257856
257824
|
isScrollingChange: this._isScrollingChange,
|
|
257857
257825
|
ref: this._setCollectionViewRef
|
|
@@ -259144,7 +259112,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
259144
259112
|
gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
|
|
259145
259113
|
var childrenToDisplay = this._childrenToDisplay;
|
|
259146
259114
|
var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
|
|
259147
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
259115
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({
|
|
259148
259116
|
ref: this._setScrollingContainerRef
|
|
259149
259117
|
}, containerProps, {
|
|
259150
259118
|
"aria-label": this.props["aria-label"],
|
|
@@ -260062,7 +260030,7 @@ var List$2 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
260062
260030
|
value: function render2() {
|
|
260063
260031
|
var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
|
|
260064
260032
|
var classNames2 = clsx("ReactVirtualized__List", className);
|
|
260065
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
260033
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
260066
260034
|
autoContainerWidth: true,
|
|
260067
260035
|
cellRenderer: this._cellRenderer,
|
|
260068
260036
|
className: classNames2,
|
|
@@ -261557,7 +261525,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
261557
261525
|
return null;
|
|
261558
261526
|
}
|
|
261559
261527
|
var additionalRowCount = showVerticalScrollbar ? 1 : 0, height2 = this._getBottomGridHeight(props), width2 = this._getLeftGridWidth(props), scrollbarSize2 = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, gridWidth = hideBottomLeftGridScrollbar ? width2 + scrollbarSize2 : width2;
|
|
261560
|
-
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
261528
|
+
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
261561
261529
|
cellRenderer: this._cellRendererBottomLeftGrid,
|
|
261562
261530
|
className: this.props.classNameBottomLeftGrid,
|
|
261563
261531
|
columnCount: fixedColumnCount,
|
|
@@ -261587,7 +261555,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
261587
261555
|
key: "_renderBottomRightGrid",
|
|
261588
261556
|
value: function _renderBottomRightGrid(props) {
|
|
261589
261557
|
var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
|
|
261590
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
261558
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
261591
261559
|
cellRenderer: this._cellRendererBottomRightGrid,
|
|
261592
261560
|
className: this.props.classNameBottomRightGrid,
|
|
261593
261561
|
columnCount: Math.max(0, columnCount - fixedColumnCount),
|
|
@@ -261612,7 +261580,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
261612
261580
|
if (!fixedColumnCount || !fixedRowCount) {
|
|
261613
261581
|
return null;
|
|
261614
261582
|
}
|
|
261615
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
261583
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
261616
261584
|
className: this.props.classNameTopLeftGrid,
|
|
261617
261585
|
columnCount: fixedColumnCount,
|
|
261618
261586
|
height: this._getTopGridHeight(props),
|
|
@@ -261639,7 +261607,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
261639
261607
|
left: 0
|
|
261640
261608
|
});
|
|
261641
261609
|
}
|
|
261642
|
-
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
261610
|
+
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
261643
261611
|
cellRenderer: this._cellRendererTopRightGrid,
|
|
261644
261612
|
className: this.props.classNameTopRightGrid,
|
|
261645
261613
|
columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
|
|
@@ -261914,7 +261882,7 @@ function defaultRowRenderer(_ref) {
|
|
|
261914
261882
|
};
|
|
261915
261883
|
}
|
|
261916
261884
|
}
|
|
261917
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
261885
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({}, a11yProps, {
|
|
261918
261886
|
className,
|
|
261919
261887
|
key: key2,
|
|
261920
261888
|
role: "row",
|
|
@@ -262197,7 +262165,7 @@ var Table$1 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
262197
262165
|
paddingRight: scrollbarWidth,
|
|
262198
262166
|
width: width2
|
|
262199
262167
|
}, rowStyleObject)
|
|
262200
|
-
}), /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
262168
|
+
}), /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
262201
262169
|
elementRef: this._setGridElementRef,
|
|
262202
262170
|
"aria-readonly": null,
|
|
262203
262171
|
autoContainerWidth: true,
|
|
@@ -268421,7 +268389,7 @@ function HiglassGlobalStyles(props) {
|
|
|
268421
268389
|
}
|
|
268422
268390
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
268423
268391
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
268424
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
268392
|
+
const { HiGlassComponent } = await import("./higlass-DUYpEXhD.js");
|
|
268425
268393
|
return { default: HiGlassComponent };
|
|
268426
268394
|
});
|
|
268427
268395
|
const HG_SIZE = 800;
|
|
@@ -271368,7 +271336,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
271368
271336
|
const { classes: classes2 } = props;
|
|
271369
271337
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
271370
271338
|
}
|
|
271371
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
271339
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BsmE8PyU.js"));
|
|
271372
271340
|
function createWorker() {
|
|
271373
271341
|
return new WorkerFactory();
|
|
271374
271342
|
}
|
|
@@ -382332,7 +382300,7 @@ export {
|
|
|
382332
382300
|
Vector42 as ag,
|
|
382333
382301
|
Line3 as ah,
|
|
382334
382302
|
SphereGeometry2 as ai,
|
|
382335
|
-
_extends$
|
|
382303
|
+
_extends$c as aj,
|
|
382336
382304
|
Plane2 as ak,
|
|
382337
382305
|
Triangle as al,
|
|
382338
382306
|
BackSide as am,
|