@vitessce/launcher 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-DRvAqnw1.js → OrbitControls-E54CGuvP.js} +1 -1
- package/dist/{ReactNeuroglancer-DRGGPjkQ.js → ReactNeuroglancer-BvdUAGCt.js} +1 -1
- package/dist/{deflate-DvP47SJn.js → deflate-CrWHFwMs.js} +1 -1
- package/dist/{higlass-CtBsu_zR.js → higlass-DXSQ9sk_.js} +1 -1
- package/dist/{index-CBT__RXo.js → index-Chf9TR4u.js} +3 -3
- package/dist/{index-DJ6kNJmd.js → index-DT1vlRPc.js} +549 -581
- package/dist/{index-yIjadtZj.js → index-fYLGd5-F.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{jpeg-B2hMPvo3.js → jpeg-CDMJPRrU.js} +1 -1
- package/dist/{lerc-CM8vi7F6.js → lerc-BfnnHmSr.js} +1 -1
- package/dist/{lzw-DiE_nrFa.js → lzw-CcpH5iJt.js} +1 -1
- package/dist/{packbits-Dfn4SIGN.js → packbits-BeOEJDb9.js} +1 -1
- package/dist/{raw-BJAINSWs.js → raw-DIDBeWlq.js} +1 -1
- package/dist/{troika-three-text.esm-wnA0fu-8.js → troika-three-text.esm-D7jEmuVl.js} +1 -1
- package/dist/{webimage-DiN3kTlS.js → webimage-BPux70Xk.js} +1 -1
- package/package.json +9 -9
|
@@ -13753,14 +13753,14 @@ var createCache = function createCache2(options) {
|
|
|
13753
13753
|
cache2.sheet.hydrate(nodesToHydrate);
|
|
13754
13754
|
return cache2;
|
|
13755
13755
|
};
|
|
13756
|
-
function _extends$
|
|
13757
|
-
return _extends$
|
|
13756
|
+
function _extends$d() {
|
|
13757
|
+
return _extends$d = Object.assign ? Object.assign.bind() : function(n3) {
|
|
13758
13758
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
13759
13759
|
var t4 = arguments[e3];
|
|
13760
13760
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
13761
13761
|
}
|
|
13762
13762
|
return n3;
|
|
13763
|
-
}, _extends$
|
|
13763
|
+
}, _extends$d.apply(null, arguments);
|
|
13764
13764
|
}
|
|
13765
13765
|
var reactIs$3 = { exports: {} };
|
|
13766
13766
|
var reactIs_development$3 = {};
|
|
@@ -15304,7 +15304,7 @@ var createStyled$1 = function createStyled(tag2, options) {
|
|
|
15304
15304
|
}
|
|
15305
15305
|
});
|
|
15306
15306
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
15307
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
15307
|
+
var newStyled2 = createStyled(nextTag, _extends$d({}, options, nextOptions, {
|
|
15308
15308
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
15309
15309
|
}));
|
|
15310
15310
|
return newStyled2.apply(void 0, styles2);
|
|
@@ -20690,14 +20690,14 @@ function chainPropTypes(propType1, propType2) {
|
|
|
20690
20690
|
return propType1(...args) || propType2(...args);
|
|
20691
20691
|
};
|
|
20692
20692
|
}
|
|
20693
|
-
function _extends$
|
|
20694
|
-
return _extends$
|
|
20693
|
+
function _extends$c() {
|
|
20694
|
+
return _extends$c = Object.assign ? Object.assign.bind() : function(n3) {
|
|
20695
20695
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
20696
20696
|
var t4 = arguments[e3];
|
|
20697
20697
|
for (var r3 in t4) ({}).hasOwnProperty.call(t4, r3) && (n3[r3] = t4[r3]);
|
|
20698
20698
|
}
|
|
20699
20699
|
return n3;
|
|
20700
|
-
}, _extends$
|
|
20700
|
+
}, _extends$c.apply(null, arguments);
|
|
20701
20701
|
}
|
|
20702
20702
|
function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
20703
20703
|
if (null == r3) return {};
|
|
@@ -20708,13 +20708,13 @@ function _objectWithoutPropertiesLoose$1(r3, e3) {
|
|
|
20708
20708
|
}
|
|
20709
20709
|
return t4;
|
|
20710
20710
|
}
|
|
20711
|
-
function _setPrototypeOf$
|
|
20712
|
-
return _setPrototypeOf$
|
|
20711
|
+
function _setPrototypeOf$1(t4, e3) {
|
|
20712
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t5, e4) {
|
|
20713
20713
|
return t5.__proto__ = e4, t5;
|
|
20714
|
-
}, _setPrototypeOf$
|
|
20714
|
+
}, _setPrototypeOf$1(t4, e3);
|
|
20715
20715
|
}
|
|
20716
|
-
function _inheritsLoose
|
|
20717
|
-
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$
|
|
20716
|
+
function _inheritsLoose(t4, o2) {
|
|
20717
|
+
t4.prototype = Object.create(o2.prototype), t4.prototype.constructor = t4, _setPrototypeOf$1(t4, o2);
|
|
20718
20718
|
}
|
|
20719
20719
|
const config$4 = {
|
|
20720
20720
|
disabled: false
|
|
@@ -20746,7 +20746,7 @@ var ENTERING = "entering";
|
|
|
20746
20746
|
var ENTERED = "entered";
|
|
20747
20747
|
var EXITING = "exiting";
|
|
20748
20748
|
var Transition$1 = /* @__PURE__ */ function(_React$Component) {
|
|
20749
|
-
_inheritsLoose
|
|
20749
|
+
_inheritsLoose(Transition2, _React$Component);
|
|
20750
20750
|
function Transition2(props, context2) {
|
|
20751
20751
|
var _this;
|
|
20752
20752
|
_this = _React$Component.call(this, props, context2) || this;
|
|
@@ -21162,7 +21162,7 @@ Transition$1.EXITED = EXITED;
|
|
|
21162
21162
|
Transition$1.ENTERING = ENTERING;
|
|
21163
21163
|
Transition$1.ENTERED = ENTERED;
|
|
21164
21164
|
Transition$1.EXITING = EXITING;
|
|
21165
|
-
function _assertThisInitialized$
|
|
21165
|
+
function _assertThisInitialized$1(e3) {
|
|
21166
21166
|
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21167
21167
|
return e3;
|
|
21168
21168
|
}
|
|
@@ -21270,11 +21270,11 @@ var defaultProps$Q = {
|
|
|
21270
21270
|
}
|
|
21271
21271
|
};
|
|
21272
21272
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
21273
|
-
_inheritsLoose
|
|
21273
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
21274
21274
|
function TransitionGroup2(props, context2) {
|
|
21275
21275
|
var _this;
|
|
21276
21276
|
_this = _React$Component.call(this, props, context2) || this;
|
|
21277
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized$
|
|
21277
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
|
|
21278
21278
|
_this.state = {
|
|
21279
21279
|
contextValue: {
|
|
21280
21280
|
isMounting: true
|
|
@@ -21311,7 +21311,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
21311
21311
|
}
|
|
21312
21312
|
if (this.mounted) {
|
|
21313
21313
|
this.setState(function(state) {
|
|
21314
|
-
var children3 = _extends$
|
|
21314
|
+
var children3 = _extends$c({}, state.children);
|
|
21315
21315
|
delete children3[child.key];
|
|
21316
21316
|
return {
|
|
21317
21317
|
children: children3
|
|
@@ -49389,7 +49389,7 @@ const keys$8 = {
|
|
|
49389
49389
|
}
|
|
49390
49390
|
};
|
|
49391
49391
|
const values$4 = wrap$4(keys$8);
|
|
49392
|
-
const vars = _extends$
|
|
49392
|
+
const vars = _extends$c({
|
|
49393
49393
|
breakpoints,
|
|
49394
49394
|
spacing,
|
|
49395
49395
|
transition,
|
|
@@ -49504,7 +49504,7 @@ const GridEditInputCell = forwardRef((props, ref2) => {
|
|
|
49504
49504
|
inputRef.current.focus();
|
|
49505
49505
|
}
|
|
49506
49506
|
}, [hasFocus]);
|
|
49507
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$
|
|
49507
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCellRoot, _extends$c({
|
|
49508
49508
|
as: rootProps.slots.baseInput,
|
|
49509
49509
|
inputRef,
|
|
49510
49510
|
className: classes2.root,
|
|
@@ -49588,7 +49588,7 @@ GridEditInputCell.propTypes = {
|
|
|
49588
49588
|
*/
|
|
49589
49589
|
value: PropTypes.any
|
|
49590
49590
|
};
|
|
49591
|
-
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$
|
|
49591
|
+
const renderEditInputCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditInputCell, _extends$c({}, params2));
|
|
49592
49592
|
const gridRowsStateSelector = createRootSelector((state) => state.rows);
|
|
49593
49593
|
const gridRowCountSelector = createSelector(gridRowsStateSelector, (rows) => rows.totalRowCount);
|
|
49594
49594
|
const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, (rows) => rows.loading);
|
|
@@ -49641,8 +49641,8 @@ const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {
|
|
|
49641
49641
|
}
|
|
49642
49642
|
return model;
|
|
49643
49643
|
};
|
|
49644
|
-
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$
|
|
49645
|
-
sorting: _extends$
|
|
49644
|
+
const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => (state) => _extends$c({}, state, {
|
|
49645
|
+
sorting: _extends$c({}, state.sorting, {
|
|
49646
49646
|
sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)
|
|
49647
49647
|
})
|
|
49648
49648
|
});
|
|
@@ -49769,7 +49769,7 @@ function GridFilterInputValue(props) {
|
|
|
49769
49769
|
setFilterValueState(value2);
|
|
49770
49770
|
setIsApplying(true);
|
|
49771
49771
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
49772
|
-
const newItem = _extends$
|
|
49772
|
+
const newItem = _extends$c({}, item, {
|
|
49773
49773
|
value: type2 === "number" && !Number.isNaN(Number(value2)) ? Number(value2) : value2,
|
|
49774
49774
|
fromInput: id2
|
|
49775
49775
|
});
|
|
@@ -49784,7 +49784,7 @@ function GridFilterInputValue(props) {
|
|
|
49784
49784
|
}
|
|
49785
49785
|
}, [id2, item]);
|
|
49786
49786
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
49787
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
49787
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
49788
49788
|
id: id2,
|
|
49789
49789
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
49790
49790
|
placeholder: apiRef.current.getLocaleText("filterPanelInputPlaceholder"),
|
|
@@ -49792,14 +49792,14 @@ function GridFilterInputValue(props) {
|
|
|
49792
49792
|
onChange: onFilterChange,
|
|
49793
49793
|
type: type2 || "text",
|
|
49794
49794
|
disabled,
|
|
49795
|
-
slotProps: _extends$
|
|
49796
|
-
input: _extends$
|
|
49795
|
+
slotProps: _extends$c({}, textFieldProps?.slotProps, {
|
|
49796
|
+
input: _extends$c({
|
|
49797
49797
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
49798
49798
|
fontSize: "small",
|
|
49799
49799
|
color: "action"
|
|
49800
49800
|
}) : null
|
|
49801
49801
|
}, textFieldProps?.slotProps?.input),
|
|
49802
|
-
htmlInput: _extends$
|
|
49802
|
+
htmlInput: _extends$c({
|
|
49803
49803
|
tabIndex
|
|
49804
49804
|
}, textFieldProps?.slotProps?.htmlInput)
|
|
49805
49805
|
}),
|
|
@@ -49925,7 +49925,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
49925
49925
|
}, [item.value]);
|
|
49926
49926
|
const handleChange = React.useCallback((event2, value2) => {
|
|
49927
49927
|
setFilterValueState(value2.map(String));
|
|
49928
|
-
applyValue(_extends$
|
|
49928
|
+
applyValue(_extends$c({}, item, {
|
|
49929
49929
|
value: [...value2.map((filterItemValue) => type2 === "number" ? Number(filterItemValue) : filterItemValue)]
|
|
49930
49930
|
}));
|
|
49931
49931
|
}, [applyValue, item, type2]);
|
|
@@ -49937,7 +49937,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
49937
49937
|
}
|
|
49938
49938
|
}, [setOptions]);
|
|
49939
49939
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
49940
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
49940
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
49941
49941
|
multiple: true,
|
|
49942
49942
|
freeSolo: true,
|
|
49943
49943
|
options,
|
|
@@ -50190,7 +50190,7 @@ function getHasEval() {
|
|
|
50190
50190
|
return hasEval;
|
|
50191
50191
|
}
|
|
50192
50192
|
const cleanFilterItem = (item, apiRef) => {
|
|
50193
|
-
const cleanItem = _extends$
|
|
50193
|
+
const cleanItem = _extends$c({}, item);
|
|
50194
50194
|
if (cleanItem.id == null) {
|
|
50195
50195
|
cleanItem.id = Math.round(Math.random() * 1e5);
|
|
50196
50196
|
}
|
|
@@ -50224,18 +50224,18 @@ const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) =>
|
|
|
50224
50224
|
}
|
|
50225
50225
|
}
|
|
50226
50226
|
if (hasItemWithoutOperator || hasItemsWithoutIds) {
|
|
50227
|
-
return _extends$
|
|
50227
|
+
return _extends$c({}, model, {
|
|
50228
50228
|
items: items.map((item) => cleanFilterItem(item, apiRef))
|
|
50229
50229
|
});
|
|
50230
50230
|
}
|
|
50231
50231
|
if (model.items !== items) {
|
|
50232
|
-
return _extends$
|
|
50232
|
+
return _extends$c({}, model, {
|
|
50233
50233
|
items
|
|
50234
50234
|
});
|
|
50235
50235
|
}
|
|
50236
50236
|
return model;
|
|
50237
50237
|
};
|
|
50238
|
-
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$
|
|
50238
|
+
const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => (filteringState) => _extends$c({}, filteringState, {
|
|
50239
50239
|
filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)
|
|
50240
50240
|
});
|
|
50241
50241
|
const removeDiacritics = (value2) => {
|
|
@@ -50265,7 +50265,7 @@ const getFilterCallbackFromItem = (filterItem, apiRef) => {
|
|
|
50265
50265
|
if (ignoreDiacritics) {
|
|
50266
50266
|
parsedValue = removeDiacritics(parsedValue);
|
|
50267
50267
|
}
|
|
50268
|
-
const newFilterItem = _extends$
|
|
50268
|
+
const newFilterItem = _extends$c({}, filterItem, {
|
|
50269
50269
|
value: parsedValue
|
|
50270
50270
|
});
|
|
50271
50271
|
const filterOperators = column2.filterOperators;
|
|
@@ -50687,7 +50687,7 @@ function GridMenu(props) {
|
|
|
50687
50687
|
}
|
|
50688
50688
|
onClose(event2);
|
|
50689
50689
|
};
|
|
50690
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$
|
|
50690
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridMenuRoot, _extends$c({
|
|
50691
50691
|
as: rootProps.slots.basePopper,
|
|
50692
50692
|
className: clsx$1(classes2.root, className, variablesClass),
|
|
50693
50693
|
ownerState: rootProps,
|
|
@@ -50846,7 +50846,7 @@ function GridActionsCell(props) {
|
|
|
50846
50846
|
hideMenu();
|
|
50847
50847
|
}
|
|
50848
50848
|
};
|
|
50849
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
50849
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
50850
50850
|
role: "menu",
|
|
50851
50851
|
ref: rootRef,
|
|
50852
50852
|
tabIndex: -1,
|
|
@@ -50858,7 +50858,7 @@ function GridActionsCell(props) {
|
|
|
50858
50858
|
touchRippleRef: handleTouchRippleRef(index2),
|
|
50859
50859
|
onClick: handleButtonClick(index2, button.props.onClick),
|
|
50860
50860
|
tabIndex: focusedButtonIndex === index2 ? tabIndex : -1
|
|
50861
|
-
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
50861
|
+
})), menuButtons.length > 0 && buttonId && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
50862
50862
|
ref: buttonRef,
|
|
50863
50863
|
id: buttonId,
|
|
50864
50864
|
"aria-label": apiRef.current.getLocaleText("actionsCellMore"),
|
|
@@ -50956,9 +50956,9 @@ GridActionsCell.propTypes = {
|
|
|
50956
50956
|
*/
|
|
50957
50957
|
value: PropTypes.any
|
|
50958
50958
|
};
|
|
50959
|
-
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$
|
|
50959
|
+
const renderActionsCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCell, _extends$c({}, params2));
|
|
50960
50960
|
const GRID_ACTIONS_COLUMN_TYPE = "actions";
|
|
50961
|
-
const GRID_ACTIONS_COL_DEF = _extends$
|
|
50961
|
+
const GRID_ACTIONS_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
50962
50962
|
sortable: false,
|
|
50963
50963
|
filterable: false,
|
|
50964
50964
|
// @ts-ignore
|
|
@@ -51074,7 +51074,7 @@ const getRowsStateFromCache = ({
|
|
|
51074
51074
|
},
|
|
51075
51075
|
idToActionLookup: {}
|
|
51076
51076
|
};
|
|
51077
|
-
return _extends$
|
|
51077
|
+
return _extends$c({}, groupingParamsWithHydrateRows, {
|
|
51078
51078
|
totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),
|
|
51079
51079
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
51080
51080
|
tree: groupingParamsWithHydrateRows.tree,
|
|
@@ -51120,7 +51120,7 @@ const updateCacheWithNewRows = ({
|
|
|
51120
51120
|
updates.forEach((update2) => {
|
|
51121
51121
|
const id2 = getRowIdFromRowModel(update2, getRowId, "A row was provided without id when calling updateRows():");
|
|
51122
51122
|
if (uniqueUpdates.has(id2)) {
|
|
51123
|
-
uniqueUpdates.set(id2, _extends$
|
|
51123
|
+
uniqueUpdates.set(id2, _extends$c({}, uniqueUpdates.get(id2), update2));
|
|
51124
51124
|
} else {
|
|
51125
51125
|
uniqueUpdates.set(id2, update2);
|
|
51126
51126
|
}
|
|
@@ -51132,10 +51132,10 @@ const updateCacheWithNewRows = ({
|
|
|
51132
51132
|
modify: [...previousCache.updates.actions.modify ?? []],
|
|
51133
51133
|
remove: [...previousCache.updates.actions.remove ?? []]
|
|
51134
51134
|
},
|
|
51135
|
-
idToActionLookup: _extends$
|
|
51135
|
+
idToActionLookup: _extends$c({}, previousCache.updates.idToActionLookup),
|
|
51136
51136
|
groupKeys
|
|
51137
51137
|
};
|
|
51138
|
-
const dataRowIdToModelLookup = _extends$
|
|
51138
|
+
const dataRowIdToModelLookup = _extends$c({}, previousCache.dataRowIdToModelLookup);
|
|
51139
51139
|
const alreadyAppliedActionsToRemove = {
|
|
51140
51140
|
insert: {},
|
|
51141
51141
|
modify: {},
|
|
@@ -51162,7 +51162,7 @@ const updateCacheWithNewRows = ({
|
|
|
51162
51162
|
} else if (actionAlreadyAppliedToRow == null) {
|
|
51163
51163
|
partialUpdates.actions.modify.push(id2);
|
|
51164
51164
|
}
|
|
51165
|
-
dataRowIdToModelLookup[id2] = _extends$
|
|
51165
|
+
dataRowIdToModelLookup[id2] = _extends$c({}, oldRow, partialRow);
|
|
51166
51166
|
return;
|
|
51167
51167
|
}
|
|
51168
51168
|
if (actionAlreadyAppliedToRow === "remove") {
|
|
@@ -51199,7 +51199,7 @@ function computeRowsUpdates(apiRef, updates, getRowId) {
|
|
|
51199
51199
|
const pinnedRowsCache = apiRef.current.caches.pinnedRows;
|
|
51200
51200
|
const prevModel = pinnedRowsCache.idLookup[id2];
|
|
51201
51201
|
if (prevModel) {
|
|
51202
|
-
pinnedRowsCache.idLookup[id2] = _extends$
|
|
51202
|
+
pinnedRowsCache.idLookup[id2] = _extends$c({}, prevModel, update2);
|
|
51203
51203
|
}
|
|
51204
51204
|
} else {
|
|
51205
51205
|
nonPinnedRowsUpdates.push(update2);
|
|
@@ -51260,7 +51260,7 @@ function GridBooleanCellRaw(props) {
|
|
|
51260
51260
|
if (isServerSideRowGroupingRow && value2 === void 0) {
|
|
51261
51261
|
return null;
|
|
51262
51262
|
}
|
|
51263
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
51263
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
51264
51264
|
fontSize: "small",
|
|
51265
51265
|
className: classes2.root,
|
|
51266
51266
|
titleAccess: apiRef.current.getLocaleText(value2 ? "booleanCellTrueLabel" : "booleanCellFalseLabel"),
|
|
@@ -51338,7 +51338,7 @@ const renderBooleanCell = (params2) => {
|
|
|
51338
51338
|
if (params2.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params2.rowNode)) {
|
|
51339
51339
|
return "";
|
|
51340
51340
|
}
|
|
51341
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$
|
|
51341
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridBooleanCell, _extends$c({}, params2));
|
|
51342
51342
|
};
|
|
51343
51343
|
const _excluded$U = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
|
|
51344
51344
|
const useUtilityClasses$F = (ownerState) => {
|
|
@@ -51388,11 +51388,11 @@ function GridEditBooleanCell(props) {
|
|
|
51388
51388
|
inputRef.current.focus();
|
|
51389
51389
|
}
|
|
51390
51390
|
}, [hasFocus]);
|
|
51391
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$
|
|
51391
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("label", _extends$c({
|
|
51392
51392
|
htmlFor: id2,
|
|
51393
51393
|
className: clsx$1(classes2.root, className)
|
|
51394
51394
|
}, other, {
|
|
51395
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
51395
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
51396
51396
|
id: id2,
|
|
51397
51397
|
inputRef,
|
|
51398
51398
|
checked: Boolean(valueState),
|
|
@@ -51466,7 +51466,7 @@ GridEditBooleanCell.propTypes = {
|
|
|
51466
51466
|
*/
|
|
51467
51467
|
value: PropTypes.any
|
|
51468
51468
|
};
|
|
51469
|
-
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$
|
|
51469
|
+
const renderEditBooleanCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditBooleanCell, _extends$c({}, params2));
|
|
51470
51470
|
const _excluded$T = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps"];
|
|
51471
51471
|
function GridFilterInputBoolean(props) {
|
|
51472
51472
|
const {
|
|
@@ -51489,7 +51489,7 @@ function GridFilterInputBoolean(props) {
|
|
|
51489
51489
|
const onFilterChange = React.useCallback((event2) => {
|
|
51490
51490
|
const value2 = sanitizeFilterItemValue(event2.target.value);
|
|
51491
51491
|
setFilterValueState(value2);
|
|
51492
|
-
applyValue(_extends$
|
|
51492
|
+
applyValue(_extends$c({}, item, {
|
|
51493
51493
|
value: value2
|
|
51494
51494
|
}));
|
|
51495
51495
|
}, [applyValue, item]);
|
|
@@ -51499,7 +51499,7 @@ function GridFilterInputBoolean(props) {
|
|
|
51499
51499
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
51500
51500
|
const rootSlotProps = slotProps?.root.slotProps;
|
|
51501
51501
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
51502
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$
|
|
51502
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseSelect, _extends$c({
|
|
51503
51503
|
fullWidth: true,
|
|
51504
51504
|
labelId,
|
|
51505
51505
|
id: selectId,
|
|
@@ -51508,21 +51508,21 @@ function GridFilterInputBoolean(props) {
|
|
|
51508
51508
|
onChange: onFilterChange,
|
|
51509
51509
|
native: isSelectNative,
|
|
51510
51510
|
slotProps: {
|
|
51511
|
-
htmlInput: _extends$
|
|
51511
|
+
htmlInput: _extends$c({
|
|
51512
51512
|
ref: focusElementRef,
|
|
51513
51513
|
tabIndex
|
|
51514
51514
|
}, rootSlotProps?.htmlInput)
|
|
51515
51515
|
}
|
|
51516
51516
|
}, baseSelectProps, others, slotProps?.root, {
|
|
51517
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51517
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
51518
51518
|
native: isSelectNative,
|
|
51519
51519
|
value: "",
|
|
51520
51520
|
children: apiRef.current.getLocaleText("filterValueAny")
|
|
51521
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51521
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
51522
51522
|
native: isSelectNative,
|
|
51523
51523
|
value: "true",
|
|
51524
51524
|
children: apiRef.current.getLocaleText("filterValueTrue")
|
|
51525
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$
|
|
51525
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
51526
51526
|
native: isSelectNative,
|
|
51527
51527
|
value: "false",
|
|
51528
51528
|
children: apiRef.current.getLocaleText("filterValueFalse")
|
|
@@ -51610,7 +51610,7 @@ const stringToBoolean = (value2) => {
|
|
|
51610
51610
|
return void 0;
|
|
51611
51611
|
}
|
|
51612
51612
|
};
|
|
51613
|
-
const GRID_BOOLEAN_COL_DEF = _extends$
|
|
51613
|
+
const GRID_BOOLEAN_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
51614
51614
|
type: "boolean",
|
|
51615
51615
|
display: "flex",
|
|
51616
51616
|
align: "center",
|
|
@@ -51967,7 +51967,7 @@ const GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer2
|
|
|
51967
51967
|
return null;
|
|
51968
51968
|
}
|
|
51969
51969
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectRow" : "checkboxSelectionSelectRow");
|
|
51970
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
51970
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
51971
51971
|
tabIndex,
|
|
51972
51972
|
checked: isChecked && !isIndeterminate,
|
|
51973
51973
|
onChange: handleChange,
|
|
@@ -52280,7 +52280,7 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox2(props, ref2)
|
|
|
52280
52280
|
return apiRef.current.subscribeEvent("rowSelectionChange", handleSelectionChange);
|
|
52281
52281
|
}, [apiRef, handleSelectionChange]);
|
|
52282
52282
|
const label2 = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? "checkboxSelectionUnselectAllRows" : "checkboxSelectionSelectAllRows");
|
|
52283
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
52283
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
52284
52284
|
indeterminate: isIndeterminate,
|
|
52285
52285
|
checked: isChecked && !isIndeterminate,
|
|
52286
52286
|
onChange: handleChange,
|
|
@@ -52319,7 +52319,7 @@ const gridRowIdSelector = createRootSelector((state, row) => {
|
|
|
52319
52319
|
return state.props.getRowId ? state.props.getRowId(row) : row.id;
|
|
52320
52320
|
});
|
|
52321
52321
|
const GRID_CHECKBOX_SELECTION_FIELD = "__check__";
|
|
52322
|
-
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$
|
|
52322
|
+
const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$c({}, GRID_BOOLEAN_COL_DEF, {
|
|
52323
52323
|
type: "custom",
|
|
52324
52324
|
field: GRID_CHECKBOX_SELECTION_FIELD,
|
|
52325
52325
|
width: 50,
|
|
@@ -52337,8 +52337,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = _extends$d({}, GRID_BOOLEAN_COL_DEF, {
|
|
|
52337
52337
|
const rowId = gridRowIdSelector(apiRef, row);
|
|
52338
52338
|
return apiRef.current.isRowSelected(rowId);
|
|
52339
52339
|
},
|
|
52340
|
-
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$
|
|
52341
|
-
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$
|
|
52340
|
+
renderHeader: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridHeaderCheckbox, _extends$c({}, params2)),
|
|
52341
|
+
renderCell: (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridCellCheckboxRenderer, _extends$c({}, params2))
|
|
52342
52342
|
});
|
|
52343
52343
|
const _excluded$Q = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
|
|
52344
52344
|
function convertFilterItemValueToInputValue(itemValue, inputType) {
|
|
@@ -52384,7 +52384,7 @@ function GridFilterInputDate(props) {
|
|
|
52384
52384
|
setIsApplying(true);
|
|
52385
52385
|
filterTimeout.start(rootProps.filterDebounceMs, () => {
|
|
52386
52386
|
const date2 = new Date(value2);
|
|
52387
|
-
applyValue(_extends$
|
|
52387
|
+
applyValue(_extends$c({}, item, {
|
|
52388
52388
|
value: Number.isNaN(date2.getTime()) ? void 0 : date2
|
|
52389
52389
|
}));
|
|
52390
52390
|
setIsApplying(false);
|
|
@@ -52395,7 +52395,7 @@ function GridFilterInputDate(props) {
|
|
|
52395
52395
|
setFilterValueState(value2);
|
|
52396
52396
|
}, [item.value, type2]);
|
|
52397
52397
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
52398
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$
|
|
52398
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTextField, _extends$c({
|
|
52399
52399
|
fullWidth: true,
|
|
52400
52400
|
id: id2,
|
|
52401
52401
|
label: apiRef.current.getLocaleText("filterPanelInputLabel"),
|
|
@@ -52405,14 +52405,14 @@ function GridFilterInputDate(props) {
|
|
|
52405
52405
|
type: type2 || "text",
|
|
52406
52406
|
disabled,
|
|
52407
52407
|
inputRef: focusElementRef,
|
|
52408
|
-
slotProps: _extends$
|
|
52409
|
-
input: _extends$
|
|
52408
|
+
slotProps: _extends$c({}, rootSlotProps, {
|
|
52409
|
+
input: _extends$c({
|
|
52410
52410
|
endAdornment: applying ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.loadIcon, {
|
|
52411
52411
|
fontSize: "small",
|
|
52412
52412
|
color: "action"
|
|
52413
52413
|
}) : null
|
|
52414
52414
|
}, rootSlotProps?.input),
|
|
52415
|
-
htmlInput: _extends$
|
|
52415
|
+
htmlInput: _extends$c({
|
|
52416
52416
|
max: type2 === "datetime-local" ? "9999-12-31T23:59" : "9999-12-31",
|
|
52417
52417
|
tabIndex
|
|
52418
52418
|
}, rootSlotProps?.htmlInput)
|
|
@@ -52658,7 +52658,7 @@ function GridEditDateCell(props) {
|
|
|
52658
52658
|
inputRef.current.focus();
|
|
52659
52659
|
}
|
|
52660
52660
|
}, [hasFocus]);
|
|
52661
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$
|
|
52661
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledInputBase, _extends$c({
|
|
52662
52662
|
as: rootProps.slots.baseInput,
|
|
52663
52663
|
inputRef,
|
|
52664
52664
|
fullWidth: true,
|
|
@@ -52668,7 +52668,7 @@ function GridEditDateCell(props) {
|
|
|
52668
52668
|
onChange: handleChange
|
|
52669
52669
|
}, other, slotProps?.root, {
|
|
52670
52670
|
slotProps: {
|
|
52671
|
-
htmlInput: _extends$
|
|
52671
|
+
htmlInput: _extends$c({
|
|
52672
52672
|
max: isDateTime2 ? "9999-12-31T23:59" : "9999-12-31"
|
|
52673
52673
|
}, slotProps?.root?.slotProps?.htmlInput)
|
|
52674
52674
|
}
|
|
@@ -52740,7 +52740,7 @@ GridEditDateCell.propTypes = {
|
|
|
52740
52740
|
*/
|
|
52741
52741
|
value: PropTypes.any
|
|
52742
52742
|
};
|
|
52743
|
-
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$
|
|
52743
|
+
const renderEditDateCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditDateCell, _extends$c({}, params2));
|
|
52744
52744
|
function throwIfNotDateObject({
|
|
52745
52745
|
value: value2,
|
|
52746
52746
|
columnType,
|
|
@@ -52777,7 +52777,7 @@ const gridDateTimeFormatter = (value2, row, column2, apiRef) => {
|
|
|
52777
52777
|
});
|
|
52778
52778
|
return value2.toLocaleString();
|
|
52779
52779
|
};
|
|
52780
|
-
const GRID_DATE_COL_DEF = _extends$
|
|
52780
|
+
const GRID_DATE_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
52781
52781
|
type: "date",
|
|
52782
52782
|
sortComparator: gridDateComparator,
|
|
52783
52783
|
valueFormatter: gridDateFormatter,
|
|
@@ -52786,7 +52786,7 @@ const GRID_DATE_COL_DEF = _extends$d({}, GRID_STRING_COL_DEF, {
|
|
|
52786
52786
|
// @ts-ignore
|
|
52787
52787
|
pastedValueParser: (value2) => new Date(value2)
|
|
52788
52788
|
});
|
|
52789
|
-
const GRID_DATETIME_COL_DEF = _extends$
|
|
52789
|
+
const GRID_DATETIME_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
52790
52790
|
type: "dateTime",
|
|
52791
52791
|
sortComparator: gridDateComparator,
|
|
52792
52792
|
valueFormatter: gridDateTimeFormatter,
|
|
@@ -52936,7 +52936,7 @@ const getGridNumericOperators = () => [{
|
|
|
52936
52936
|
type: "number"
|
|
52937
52937
|
}
|
|
52938
52938
|
}];
|
|
52939
|
-
const GRID_NUMERIC_COL_DEF = _extends$
|
|
52939
|
+
const GRID_NUMERIC_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
52940
52940
|
type: "number",
|
|
52941
52941
|
align: "right",
|
|
52942
52942
|
headerAlign: "right",
|
|
@@ -52953,7 +52953,7 @@ function getValueOptions(column2, additionalParams) {
|
|
|
52953
52953
|
if (!column2) {
|
|
52954
52954
|
return void 0;
|
|
52955
52955
|
}
|
|
52956
|
-
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$
|
|
52956
|
+
return typeof column2.valueOptions === "function" ? column2.valueOptions(_extends$c({
|
|
52957
52957
|
field: column2.field
|
|
52958
52958
|
}, additionalParams)) : column2.valueOptions;
|
|
52959
52959
|
}
|
|
@@ -53031,7 +53031,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53031
53031
|
}
|
|
53032
53032
|
if (reason === "backdropClick" || event2.key === "Escape") {
|
|
53033
53033
|
const params2 = apiRef.current.getCellParams(id2, field2);
|
|
53034
|
-
apiRef.current.publishEvent("cellEditStop", _extends$
|
|
53034
|
+
apiRef.current.publishEvent("cellEditStop", _extends$c({}, params2, {
|
|
53035
53035
|
reason: event2.key === "Escape" ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut
|
|
53036
53036
|
}));
|
|
53037
53037
|
}
|
|
@@ -53045,7 +53045,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53045
53045
|
if (!valueOptions || !colDef) {
|
|
53046
53046
|
return null;
|
|
53047
53047
|
}
|
|
53048
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
53048
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
53049
53049
|
ref: ref2,
|
|
53050
53050
|
value: valueProp,
|
|
53051
53051
|
onChange: handleChange,
|
|
@@ -53063,7 +53063,7 @@ function GridEditSingleSelectCell(props) {
|
|
|
53063
53063
|
}, other, slotProps?.root, rootProps.slotProps?.baseSelect, {
|
|
53064
53064
|
children: valueOptions.map((valueOption) => {
|
|
53065
53065
|
const value2 = getOptionValue(valueOption);
|
|
53066
|
-
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
53066
|
+
return /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, rootProps.slotProps?.baseSelectOption || {}, {
|
|
53067
53067
|
native: isSelectNative,
|
|
53068
53068
|
key: value2,
|
|
53069
53069
|
value: value2
|
|
@@ -53140,7 +53140,7 @@ GridEditSingleSelectCell.propTypes = {
|
|
|
53140
53140
|
*/
|
|
53141
53141
|
value: PropTypes.any
|
|
53142
53142
|
};
|
|
53143
|
-
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$
|
|
53143
|
+
const renderEditSingleSelectCell = (params2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridEditSingleSelectCell, _extends$c({}, params2));
|
|
53144
53144
|
const _excluded$N = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
|
|
53145
53145
|
const renderSingleSelectOptions = ({
|
|
53146
53146
|
column: column2,
|
|
@@ -53157,7 +53157,7 @@ const renderSingleSelectOptions = ({
|
|
|
53157
53157
|
if (label2 === "") {
|
|
53158
53158
|
label2 = " ";
|
|
53159
53159
|
}
|
|
53160
|
-
return /* @__PURE__ */ createElement(OptionComponent, _extends$
|
|
53160
|
+
return /* @__PURE__ */ createElement(OptionComponent, _extends$c({}, baseSelectOptionProps, {
|
|
53161
53161
|
native: isSelectNative,
|
|
53162
53162
|
key: value2,
|
|
53163
53163
|
value: value2
|
|
@@ -53196,7 +53196,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53196
53196
|
const onFilterChange = React.useCallback((event2) => {
|
|
53197
53197
|
let value2 = event2.target.value;
|
|
53198
53198
|
value2 = getValueFromValueOptions(value2, currentValueOptions, getOptionValue);
|
|
53199
|
-
applyValue(_extends$
|
|
53199
|
+
applyValue(_extends$c({}, item, {
|
|
53200
53200
|
value: value2
|
|
53201
53201
|
}));
|
|
53202
53202
|
}, [currentValueOptions, getOptionValue, applyValue, item]);
|
|
@@ -53205,7 +53205,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53205
53205
|
}
|
|
53206
53206
|
const label2 = slotProps?.root.label ?? apiRef.current.getLocaleText("filterPanelInputLabel");
|
|
53207
53207
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
53208
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$
|
|
53208
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSelect, _extends$c({
|
|
53209
53209
|
fullWidth: true,
|
|
53210
53210
|
id: id2,
|
|
53211
53211
|
label: label2,
|
|
@@ -53213,7 +53213,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
53213
53213
|
value: filterValue,
|
|
53214
53214
|
onChange: onFilterChange,
|
|
53215
53215
|
slotProps: {
|
|
53216
|
-
htmlInput: _extends$
|
|
53216
|
+
htmlInput: _extends$c({
|
|
53217
53217
|
tabIndex,
|
|
53218
53218
|
ref: focusElementRef,
|
|
53219
53219
|
type: type2 || "text",
|
|
@@ -53313,12 +53313,12 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
53313
53313
|
}, []);
|
|
53314
53314
|
}, [getOptionValue, item.value, resolvedValueOptions]);
|
|
53315
53315
|
const handleChange = React.useCallback((event2, value2) => {
|
|
53316
|
-
applyValue(_extends$
|
|
53316
|
+
applyValue(_extends$c({}, item, {
|
|
53317
53317
|
value: value2.map(getOptionValue)
|
|
53318
53318
|
}));
|
|
53319
53319
|
}, [applyValue, item, getOptionValue]);
|
|
53320
53320
|
const BaseAutocomplete2 = rootProps.slots.baseAutocomplete;
|
|
53321
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$
|
|
53321
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(BaseAutocomplete2, _extends$c({
|
|
53322
53322
|
multiple: true,
|
|
53323
53323
|
options: resolvedValueOptions,
|
|
53324
53324
|
isOptionEqualToValue,
|
|
@@ -53422,7 +53422,7 @@ const defaultGetOptionValue = (value2) => {
|
|
|
53422
53422
|
const defaultGetOptionLabel = (value2) => {
|
|
53423
53423
|
return isObject$e(value2) ? value2.label : String(value2);
|
|
53424
53424
|
};
|
|
53425
|
-
const GRID_SINGLE_SELECT_COL_DEF = _extends$
|
|
53425
|
+
const GRID_SINGLE_SELECT_COL_DEF = _extends$c({}, GRID_STRING_COL_DEF, {
|
|
53426
53426
|
type: "singleSelect",
|
|
53427
53427
|
getOptionLabel: defaultGetOptionLabel,
|
|
53428
53428
|
getOptionValue: defaultGetOptionValue,
|
|
@@ -53588,7 +53588,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
53588
53588
|
widthAllocatedBeforeFlex += computedWidth;
|
|
53589
53589
|
}
|
|
53590
53590
|
if (column2.computedWidth !== computedWidth) {
|
|
53591
|
-
column2 = _extends$
|
|
53591
|
+
column2 = _extends$c({}, column2, {
|
|
53592
53592
|
computedWidth
|
|
53593
53593
|
});
|
|
53594
53594
|
}
|
|
@@ -53609,7 +53609,7 @@ const hydrateColumnsWidth = (rawState, dimensions) => {
|
|
|
53609
53609
|
columnsLookup[field2].computedWidth = computedColumnWidths[field2].computedWidth;
|
|
53610
53610
|
});
|
|
53611
53611
|
}
|
|
53612
|
-
return _extends$
|
|
53612
|
+
return _extends$c({}, rawState, {
|
|
53613
53613
|
lookup: columnsLookup
|
|
53614
53614
|
});
|
|
53615
53615
|
};
|
|
@@ -53635,10 +53635,10 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
53635
53635
|
}
|
|
53636
53636
|
}
|
|
53637
53637
|
const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter((field2) => !orderedFieldsLookup[field2])];
|
|
53638
|
-
const newColumnLookup = _extends$
|
|
53638
|
+
const newColumnLookup = _extends$c({}, columnsState.lookup);
|
|
53639
53639
|
for (let i2 = 0; i2 < columnsWithUpdatedDimensions.length; i2 += 1) {
|
|
53640
53640
|
const field2 = columnsWithUpdatedDimensions[i2];
|
|
53641
|
-
const newColDef = _extends$
|
|
53641
|
+
const newColDef = _extends$c({}, newColumnLookup[field2], {
|
|
53642
53642
|
hasBeenResized: true
|
|
53643
53643
|
});
|
|
53644
53644
|
Object.entries(dimensions[field2]).forEach(([key2, value2]) => {
|
|
@@ -53646,7 +53646,7 @@ const applyInitialState = (columnsState, initialState2) => {
|
|
|
53646
53646
|
});
|
|
53647
53647
|
newColumnLookup[field2] = newColDef;
|
|
53648
53648
|
}
|
|
53649
|
-
const newColumnsState = _extends$
|
|
53649
|
+
const newColumnsState = _extends$c({}, columnsState, {
|
|
53650
53650
|
orderedFields: newOrderedFields,
|
|
53651
53651
|
lookup: newColumnLookup
|
|
53652
53652
|
});
|
|
@@ -53680,7 +53680,7 @@ const createColumnsState = ({
|
|
|
53680
53680
|
const currentState = gridColumnsStateSelector(apiRef);
|
|
53681
53681
|
columnsState = {
|
|
53682
53682
|
orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],
|
|
53683
|
-
lookup: _extends$
|
|
53683
|
+
lookup: _extends$c({}, currentState.lookup),
|
|
53684
53684
|
// Will be cleaned later if keepOnlyColumnsToUpsert=true
|
|
53685
53685
|
columnVisibilityModel,
|
|
53686
53686
|
initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel
|
|
@@ -53688,7 +53688,7 @@ const createColumnsState = ({
|
|
|
53688
53688
|
}
|
|
53689
53689
|
let columnsToKeep = {};
|
|
53690
53690
|
if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {
|
|
53691
|
-
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$
|
|
53691
|
+
columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key2) => _extends$c({}, acc, {
|
|
53692
53692
|
[key2]: false
|
|
53693
53693
|
}), {});
|
|
53694
53694
|
}
|
|
@@ -53699,7 +53699,7 @@ const createColumnsState = ({
|
|
|
53699
53699
|
columnsToKeep[field2] = true;
|
|
53700
53700
|
let existingState = columnsState.lookup[field2];
|
|
53701
53701
|
if (existingState == null) {
|
|
53702
|
-
existingState = _extends$
|
|
53702
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
53703
53703
|
field: field2,
|
|
53704
53704
|
hasBeenResized: false
|
|
53705
53705
|
});
|
|
@@ -53708,7 +53708,7 @@ const createColumnsState = ({
|
|
|
53708
53708
|
columnsState.orderedFields.push(field2);
|
|
53709
53709
|
}
|
|
53710
53710
|
if (existingState && existingState.type !== newColumn.type) {
|
|
53711
|
-
existingState = _extends$
|
|
53711
|
+
existingState = _extends$c({}, getDefaultColTypeDef(newColumn.type), {
|
|
53712
53712
|
field: field2
|
|
53713
53713
|
});
|
|
53714
53714
|
}
|
|
@@ -53721,7 +53721,7 @@ const createColumnsState = ({
|
|
|
53721
53721
|
}
|
|
53722
53722
|
}
|
|
53723
53723
|
});
|
|
53724
|
-
columnsState.lookup[field2] = resolveProps(existingState, _extends$
|
|
53724
|
+
columnsState.lookup[field2] = resolveProps(existingState, _extends$c({}, getDefaultColTypeDef(newColumn.type), newColumn, {
|
|
53725
53725
|
hasBeenResized
|
|
53726
53726
|
}));
|
|
53727
53727
|
});
|
|
@@ -53818,7 +53818,7 @@ function GridScrollAreaWrapper(props) {
|
|
|
53818
53818
|
if (!dragging) {
|
|
53819
53819
|
return null;
|
|
53820
53820
|
}
|
|
53821
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$
|
|
53821
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollAreaContent, _extends$c({}, props));
|
|
53822
53822
|
}
|
|
53823
53823
|
function GridScrollAreaContent(props) {
|
|
53824
53824
|
const {
|
|
@@ -53844,7 +53844,7 @@ function GridScrollAreaContent(props) {
|
|
|
53844
53844
|
};
|
|
53845
53845
|
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
53846
53846
|
const rootProps = useGridRootProps();
|
|
53847
|
-
const ownerState = _extends$
|
|
53847
|
+
const ownerState = _extends$c({}, rootProps, {
|
|
53848
53848
|
scrollDirection
|
|
53849
53849
|
});
|
|
53850
53850
|
const classes2 = useUtilityClasses$B(ownerState);
|
|
@@ -53992,14 +53992,14 @@ const virtualizationStateInitializer = (state, props) => {
|
|
|
53992
53992
|
enabledForRows: !disableVirtualization && !autoHeight,
|
|
53993
53993
|
renderContext: EMPTY_RENDER_CONTEXT
|
|
53994
53994
|
};
|
|
53995
|
-
return _extends$
|
|
53995
|
+
return _extends$c({}, state, {
|
|
53996
53996
|
virtualization
|
|
53997
53997
|
});
|
|
53998
53998
|
};
|
|
53999
53999
|
function useGridVirtualization(apiRef, props) {
|
|
54000
54000
|
const setVirtualization = (enabled) => {
|
|
54001
|
-
apiRef.current.setState((state) => _extends$
|
|
54002
|
-
virtualization: _extends$
|
|
54001
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
54002
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
54003
54003
|
enabled,
|
|
54004
54004
|
enabledForColumns: enabled,
|
|
54005
54005
|
enabledForRows: enabled && !props.autoHeight
|
|
@@ -54007,8 +54007,8 @@ function useGridVirtualization(apiRef, props) {
|
|
|
54007
54007
|
}));
|
|
54008
54008
|
};
|
|
54009
54009
|
const setColumnVirtualization = (enabled) => {
|
|
54010
|
-
apiRef.current.setState((state) => _extends$
|
|
54011
|
-
virtualization: _extends$
|
|
54010
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
54011
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
54012
54012
|
enabledForColumns: enabled
|
|
54013
54013
|
})
|
|
54014
54014
|
}));
|
|
@@ -54048,7 +54048,7 @@ const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellO
|
|
|
54048
54048
|
if (columnIndex === -1) {
|
|
54049
54049
|
return null;
|
|
54050
54050
|
}
|
|
54051
|
-
return _extends$
|
|
54051
|
+
return _extends$c({}, focusedCell, {
|
|
54052
54052
|
rowIndex,
|
|
54053
54053
|
columnIndex
|
|
54054
54054
|
});
|
|
@@ -54161,8 +54161,8 @@ const useGridVirtualScroller = () => {
|
|
|
54161
54161
|
}
|
|
54162
54162
|
const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;
|
|
54163
54163
|
apiRef.current.setState((state) => {
|
|
54164
|
-
return _extends$
|
|
54165
|
-
virtualization: _extends$
|
|
54164
|
+
return _extends$c({}, state, {
|
|
54165
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
54166
54166
|
renderContext: nextRenderContext
|
|
54167
54167
|
})
|
|
54168
54168
|
});
|
|
@@ -54355,7 +54355,7 @@ const useGridVirtualScroller = () => {
|
|
|
54355
54355
|
const showBottomBorder = isLastVisibleInSection && params2.position === "top";
|
|
54356
54356
|
const firstColumnIndex = currentRenderContext.firstColumnIndex;
|
|
54357
54357
|
const lastColumnIndex = currentRenderContext.lastColumnIndex;
|
|
54358
|
-
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$
|
|
54358
|
+
rows.push(/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.row, _extends$c({
|
|
54359
54359
|
row: model,
|
|
54360
54360
|
rowId: id2,
|
|
54361
54361
|
index: rowIndex,
|
|
@@ -54560,7 +54560,7 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
54560
54560
|
lastColumnIndex: inputs.visibleColumns.length
|
|
54561
54561
|
};
|
|
54562
54562
|
if (inputs.listView) {
|
|
54563
|
-
return _extends$
|
|
54563
|
+
return _extends$c({}, renderContext, {
|
|
54564
54564
|
lastColumnIndex: 1
|
|
54565
54565
|
});
|
|
54566
54566
|
}
|
|
@@ -54837,14 +54837,14 @@ function GridOverlayWrapper(props) {
|
|
|
54837
54837
|
if (height2 === 0) {
|
|
54838
54838
|
height2 = minimalContentHeight;
|
|
54839
54839
|
}
|
|
54840
|
-
const classes2 = useUtilityClasses$A(_extends$
|
|
54840
|
+
const classes2 = useUtilityClasses$A(_extends$c({}, props, {
|
|
54841
54841
|
classes: rootProps.classes
|
|
54842
54842
|
}));
|
|
54843
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$
|
|
54843
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperRoot, _extends$c({
|
|
54844
54844
|
className: clsx$1(classes2.root)
|
|
54845
54845
|
}, props, {
|
|
54846
54846
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
54847
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$
|
|
54847
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapperInner, _extends$c({
|
|
54848
54848
|
className: clsx$1(classes2.inner),
|
|
54849
54849
|
style: {
|
|
54850
54850
|
height: height2,
|
|
@@ -54898,8 +54898,8 @@ const useGridOverlays = () => {
|
|
|
54898
54898
|
}
|
|
54899
54899
|
const Overlay = rootProps.slots?.[overlayType];
|
|
54900
54900
|
const overlayProps = rootProps.slotProps?.[overlayType];
|
|
54901
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$
|
|
54902
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$
|
|
54901
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayWrapper, _extends$c({}, overlaysProps, {
|
|
54902
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, _extends$c({}, overlayProps))
|
|
54903
54903
|
}));
|
|
54904
54904
|
};
|
|
54905
54905
|
return {
|
|
@@ -54925,7 +54925,7 @@ function GridHeaders() {
|
|
|
54925
54925
|
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
54926
54926
|
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
54927
54927
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
54928
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$
|
|
54928
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaders, _extends$c({
|
|
54929
54929
|
ref: columnsContainerRef,
|
|
54930
54930
|
visibleColumns,
|
|
54931
54931
|
filterColumnLookup,
|
|
@@ -54974,7 +54974,7 @@ const GridMainContainer = forwardRef((props, ref2) => {
|
|
|
54974
54974
|
const rootProps = useGridRootProps();
|
|
54975
54975
|
const configuration2 = useGridConfiguration();
|
|
54976
54976
|
const ariaAttributes = configuration2.hooks.useGridAriaAttributes();
|
|
54977
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$
|
|
54977
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Element$3, _extends$c({
|
|
54978
54978
|
ownerState,
|
|
54979
54979
|
className: props.className,
|
|
54980
54980
|
tabIndex: -1
|
|
@@ -54999,7 +54999,7 @@ const Element$2 = styled$1("div")({
|
|
|
54999
54999
|
});
|
|
55000
55000
|
function GridTopContainer(props) {
|
|
55001
55001
|
const classes2 = useUtilityClasses$z();
|
|
55002
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$
|
|
55002
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$2, _extends$c({}, props, {
|
|
55003
55003
|
className: clsx$1(classes2.root, gridClasses["container--top"]),
|
|
55004
55004
|
role: "presentation"
|
|
55005
55005
|
}));
|
|
@@ -55031,7 +55031,7 @@ const GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerConten
|
|
|
55031
55031
|
classes: rootProps.classes,
|
|
55032
55032
|
overflowedContent
|
|
55033
55033
|
};
|
|
55034
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$
|
|
55034
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerContentRoot, _extends$c({}, props, {
|
|
55035
55035
|
ownerState,
|
|
55036
55036
|
className: clsx$1(classes2.root, props.className),
|
|
55037
55037
|
ref: ref2
|
|
@@ -55133,7 +55133,7 @@ const GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRen
|
|
|
55133
55133
|
const rowsMeta = gridRowsMetaSelector(apiRef);
|
|
55134
55134
|
return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
|
|
55135
55135
|
});
|
|
55136
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$
|
|
55136
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualScrollerRenderZoneRoot, _extends$c({
|
|
55137
55137
|
className: clsx$1(classes2.root, className),
|
|
55138
55138
|
ownerState: rootProps,
|
|
55139
55139
|
style: {
|
|
@@ -55406,7 +55406,7 @@ function GridVirtualScroller(props) {
|
|
|
55406
55406
|
getOverlay,
|
|
55407
55407
|
overlaysProps
|
|
55408
55408
|
} = useGridOverlays();
|
|
55409
|
-
const ownerState = _extends$
|
|
55409
|
+
const ownerState = _extends$c({
|
|
55410
55410
|
classes: rootProps.classes,
|
|
55411
55411
|
hasScrollX,
|
|
55412
55412
|
hasPinnedRight
|
|
@@ -55424,15 +55424,15 @@ function GridVirtualScroller(props) {
|
|
|
55424
55424
|
getScrollAreaProps
|
|
55425
55425
|
} = virtualScroller;
|
|
55426
55426
|
const rows = getRows();
|
|
55427
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$
|
|
55427
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridMainContainer, _extends$c({
|
|
55428
55428
|
className: classes2.root
|
|
55429
55429
|
}, getContainerProps(), {
|
|
55430
55430
|
ownerState,
|
|
55431
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
55431
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
55432
55432
|
scrollDirection: "left"
|
|
55433
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$
|
|
55433
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsx(GridScrollArea, _extends$c({
|
|
55434
55434
|
scrollDirection: "right"
|
|
55435
|
-
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$
|
|
55435
|
+
}, getScrollAreaProps())), /* @__PURE__ */ jsxRuntimeExports.jsxs(Scroller, _extends$c({
|
|
55436
55436
|
className: classes2.scroller
|
|
55437
55437
|
}, getScrollerProps(), {
|
|
55438
55438
|
ownerState,
|
|
@@ -55441,8 +55441,8 @@ function GridVirtualScroller(props) {
|
|
|
55441
55441
|
position: "top",
|
|
55442
55442
|
virtualScroller
|
|
55443
55443
|
})]
|
|
55444
|
-
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$
|
|
55445
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$
|
|
55444
|
+
}), getOverlay(), /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollerContent, _extends$c({}, getContentProps(), {
|
|
55445
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridVirtualScrollerRenderZone, _extends$c({}, getRenderZoneProps(), {
|
|
55446
55446
|
children: [rows, /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.detailPanels, {
|
|
55447
55447
|
virtualScroller
|
|
55448
55448
|
})]
|
|
@@ -55455,9 +55455,9 @@ function GridVirtualScroller(props) {
|
|
|
55455
55455
|
virtualScroller
|
|
55456
55456
|
})
|
|
55457
55457
|
})]
|
|
55458
|
-
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
55458
|
+
})), hasScrollX && !rootProps.listView && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
55459
55459
|
position: "horizontal"
|
|
55460
|
-
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$
|
|
55460
|
+
}, getScrollbarHorizontalProps())), hasScrollY && /* @__PURE__ */ jsxRuntimeExports.jsx(GridVirtualScrollbar, _extends$c({
|
|
55461
55461
|
position: "vertical"
|
|
55462
55462
|
}, getScrollbarVerticalProps())), props.children]
|
|
55463
55463
|
}));
|
|
@@ -55467,7 +55467,7 @@ function GridFooterPlaceholder() {
|
|
|
55467
55467
|
if (rootProps.hideFooter) {
|
|
55468
55468
|
return null;
|
|
55469
55469
|
}
|
|
55470
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$
|
|
55470
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footer, _extends$c(
|
|
55471
55471
|
{},
|
|
55472
55472
|
rootProps.slotProps?.footer
|
|
55473
55473
|
/* FIXME: typing error */
|
|
@@ -55493,7 +55493,7 @@ function computeSlots({
|
|
|
55493
55493
|
if (!overrides || Object.keys(overrides).length === 0) {
|
|
55494
55494
|
return defaultSlots2;
|
|
55495
55495
|
}
|
|
55496
|
-
const result = _extends$
|
|
55496
|
+
const result = _extends$c({}, defaultSlots2);
|
|
55497
55497
|
Object.keys(overrides).forEach((key2) => {
|
|
55498
55498
|
const k = key2;
|
|
55499
55499
|
if (overrides[k] !== void 0) {
|
|
@@ -55705,7 +55705,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
55705
55705
|
border: 0
|
|
55706
55706
|
};
|
|
55707
55707
|
}
|
|
55708
|
-
const cellStyle = attachPinnedStyle(_extends$
|
|
55708
|
+
const cellStyle = attachPinnedStyle(_extends$c({
|
|
55709
55709
|
"--width": `${width2}px`
|
|
55710
55710
|
}, styleProp), isRtl, pinnedPosition, pinnedOffset);
|
|
55711
55711
|
const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;
|
|
@@ -55742,7 +55742,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
55742
55742
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
55743
55743
|
"data-colindex": colIndex,
|
|
55744
55744
|
role: "presentation",
|
|
55745
|
-
style: _extends$
|
|
55745
|
+
style: _extends$c({
|
|
55746
55746
|
width: "var(--width)"
|
|
55747
55747
|
}, style2)
|
|
55748
55748
|
});
|
|
@@ -55757,7 +55757,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
55757
55757
|
const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column2.field);
|
|
55758
55758
|
const editCellStateRest = _objectWithoutPropertiesLoose$1(editCellState, _excluded2$8);
|
|
55759
55759
|
const formattedValue = column2.valueFormatter ? column2.valueFormatter(editCellState.value, updatedRow, column2, apiRef) : cellParams.formattedValue;
|
|
55760
|
-
const params2 = _extends$
|
|
55760
|
+
const params2 = _extends$c({}, cellParams, {
|
|
55761
55761
|
row: updatedRow,
|
|
55762
55762
|
formattedValue
|
|
55763
55763
|
}, editCellStateRest);
|
|
@@ -55779,7 +55779,7 @@ const GridCell = forwardRef(function GridCell2(props, ref2) {
|
|
|
55779
55779
|
onDragEnter: publish("cellDragEnter", onDragEnter),
|
|
55780
55780
|
onDragOver: publish("cellDragOver", onDragOver)
|
|
55781
55781
|
};
|
|
55782
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
55782
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
55783
55783
|
className: clsx$1(classes2.root, classNames2, className),
|
|
55784
55784
|
role: "gridcell",
|
|
55785
55785
|
"data-field": field2,
|
|
@@ -55881,16 +55881,16 @@ function GridSkeletonCell(props) {
|
|
|
55881
55881
|
height: CONTENT_HEIGHT
|
|
55882
55882
|
};
|
|
55883
55883
|
}, [type2]);
|
|
55884
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
55884
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
55885
55885
|
"data-field": field2,
|
|
55886
55886
|
className: clsx$1(classes2.root, className),
|
|
55887
|
-
style: _extends$
|
|
55887
|
+
style: _extends$c({
|
|
55888
55888
|
height: height2,
|
|
55889
55889
|
maxWidth: width2,
|
|
55890
55890
|
minWidth: width2
|
|
55891
55891
|
}, style2)
|
|
55892
55892
|
}, other, {
|
|
55893
|
-
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$
|
|
55893
|
+
children: !empty2 && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseSkeleton, _extends$c({}, skeletonProps))
|
|
55894
55894
|
}));
|
|
55895
55895
|
}
|
|
55896
55896
|
GridSkeletonCell.propTypes = {
|
|
@@ -56894,7 +56894,7 @@ function GridPreferencesPanel() {
|
|
|
56894
56894
|
filterPanelTriggerRef
|
|
56895
56895
|
} = useGridPreferencePanelContext();
|
|
56896
56896
|
const panelContent = apiRef.current.unstable_applyPipeProcessors("preferencePanel", null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
|
|
56897
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$
|
|
56897
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.panel, _extends$c({
|
|
56898
56898
|
id: preferencePanelState.panelId,
|
|
56899
56899
|
open: columns2.length > 0 && preferencePanelState.open,
|
|
56900
56900
|
"aria-labelledby": preferencePanelState.labelId,
|
|
@@ -56906,7 +56906,7 @@ function GridPreferencesPanel() {
|
|
|
56906
56906
|
function GridHeader() {
|
|
56907
56907
|
const rootProps = useGridRootProps();
|
|
56908
56908
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
56909
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$
|
|
56909
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.toolbar, _extends$c({}, rootProps.slotProps?.toolbar))]
|
|
56910
56910
|
});
|
|
56911
56911
|
}
|
|
56912
56912
|
const _excluded$I = ["className", "children"];
|
|
@@ -56944,7 +56944,7 @@ const GridRoot = forwardRef(function GridRoot2(props, ref2) {
|
|
|
56944
56944
|
if (isSSR2) {
|
|
56945
56945
|
return null;
|
|
56946
56946
|
}
|
|
56947
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$
|
|
56947
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRootStyles, _extends$c({
|
|
56948
56948
|
className: clsx$1(classes2.root, className, cssVariables.className),
|
|
56949
56949
|
ownerState
|
|
56950
56950
|
}, other, {
|
|
@@ -56992,7 +56992,7 @@ const GridFooterContainer = forwardRef(function GridFooterContainer2(props, ref2
|
|
|
56992
56992
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$H);
|
|
56993
56993
|
const rootProps = useGridRootProps();
|
|
56994
56994
|
const classes2 = useUtilityClasses$r(rootProps);
|
|
56995
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$
|
|
56995
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridFooterContainerRoot, _extends$c({
|
|
56996
56996
|
className: clsx$1(classes2.root, className),
|
|
56997
56997
|
ownerState: rootProps
|
|
56998
56998
|
}, other, {
|
|
@@ -57036,7 +57036,7 @@ const GridOverlay = forwardRef(function GridOverlay2(props, ref2) {
|
|
|
57036
57036
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$G);
|
|
57037
57037
|
const rootProps = useGridRootProps();
|
|
57038
57038
|
const classes2 = useUtilityClasses$q(rootProps);
|
|
57039
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$
|
|
57039
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlayRoot, _extends$c({
|
|
57040
57040
|
className: clsx$1(classes2.root, className),
|
|
57041
57041
|
ownerState: rootProps
|
|
57042
57042
|
}, other, {
|
|
@@ -57059,7 +57059,7 @@ function useGridComponentRenderer(defaultElement, render2, props, state = {}) {
|
|
|
57059
57059
|
props.className = clsx$1(render2.props.className, props.className);
|
|
57060
57060
|
}
|
|
57061
57061
|
if (render2.props.style || props.style) {
|
|
57062
|
-
props.style = _extends$
|
|
57062
|
+
props.style = _extends$c({}, props.style, render2.props.style);
|
|
57063
57063
|
}
|
|
57064
57064
|
if (render2.props.sx || props.sx) {
|
|
57065
57065
|
props.sx = mergeSx(props.sx, render2.props.sx);
|
|
@@ -57196,7 +57196,7 @@ const Toolbar$1 = forwardRef(function Toolbar2(props, ref2) {
|
|
|
57196
57196
|
onItemFocus,
|
|
57197
57197
|
onItemDisabled
|
|
57198
57198
|
}), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);
|
|
57199
|
-
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$
|
|
57199
|
+
const element2 = useGridComponentRenderer(ToolbarRoot$1, render2, _extends$c({
|
|
57200
57200
|
role: "toolbar",
|
|
57201
57201
|
"aria-orientation": "horizontal",
|
|
57202
57202
|
"aria-label": rootProps.label || void 0,
|
|
@@ -57272,7 +57272,7 @@ const ToolbarButton = forwardRef(function ToolbarButton2(props, ref2) {
|
|
|
57272
57272
|
}
|
|
57273
57273
|
previousAriaDisabled.current = ariaDisabled;
|
|
57274
57274
|
}, [ariaDisabled, id2, onItemDisabled]);
|
|
57275
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
57275
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
57276
57276
|
tabIndex: focusableItemId === id2 ? 0 : -1
|
|
57277
57277
|
}, other, {
|
|
57278
57278
|
disabled,
|
|
@@ -57328,7 +57328,7 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
57328
57328
|
} = props;
|
|
57329
57329
|
const apiRef = useGridApiContext();
|
|
57330
57330
|
const rootProps = useGridRootProps();
|
|
57331
|
-
const ownerState = _extends$
|
|
57331
|
+
const ownerState = _extends$c({}, props, {
|
|
57332
57332
|
classes: rootProps.classes
|
|
57333
57333
|
});
|
|
57334
57334
|
const classes2 = useUtilityClasses$o(ownerState);
|
|
@@ -57340,11 +57340,11 @@ const ColumnHeaderMenuIcon = /* @__PURE__ */ React.memo((props) => {
|
|
|
57340
57340
|
const columnName = colDef.headerName ?? colDef.field;
|
|
57341
57341
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
57342
57342
|
className: classes2.root,
|
|
57343
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
57343
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
57344
57344
|
title: apiRef.current.getLocaleText("columnMenuLabel"),
|
|
57345
57345
|
enterDelay: 1e3
|
|
57346
57346
|
}, rootProps.slotProps?.baseTooltip, {
|
|
57347
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
57347
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
57348
57348
|
ref: iconButtonRef,
|
|
57349
57349
|
tabIndex: -1,
|
|
57350
57350
|
className: classes2.button,
|
|
@@ -57393,7 +57393,7 @@ function GridColumnHeaderMenu({
|
|
|
57393
57393
|
target: target2,
|
|
57394
57394
|
onClose: hideMenu,
|
|
57395
57395
|
onExited,
|
|
57396
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$
|
|
57396
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentComponent, _extends$c({
|
|
57397
57397
|
colDef,
|
|
57398
57398
|
hideMenu,
|
|
57399
57399
|
open: open2,
|
|
@@ -57633,7 +57633,7 @@ const ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle2(props
|
|
|
57633
57633
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$D);
|
|
57634
57634
|
const rootProps = useGridRootProps();
|
|
57635
57635
|
const classes2 = useUtilityClasses$n(rootProps);
|
|
57636
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$
|
|
57636
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderTitleRoot, _extends$c({
|
|
57637
57637
|
className: clsx$1(classes2.root, className),
|
|
57638
57638
|
ownerState: rootProps
|
|
57639
57639
|
}, other, {
|
|
@@ -57658,7 +57658,7 @@ function GridColumnHeaderTitle(props) {
|
|
|
57658
57658
|
}
|
|
57659
57659
|
}
|
|
57660
57660
|
}, [description2, label2]);
|
|
57661
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
57661
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
57662
57662
|
title: description2 || tooltip2
|
|
57663
57663
|
}, rootProps.slotProps?.baseTooltip, {
|
|
57664
57664
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeaderInnerTitle, {
|
|
@@ -57702,7 +57702,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
57702
57702
|
side = GridColumnHeaderSeparatorSides.Right
|
|
57703
57703
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$C);
|
|
57704
57704
|
const rootProps = useGridRootProps();
|
|
57705
|
-
const ownerState = _extends$
|
|
57705
|
+
const ownerState = _extends$c({}, props, {
|
|
57706
57706
|
side,
|
|
57707
57707
|
classes: rootProps.classes
|
|
57708
57708
|
});
|
|
@@ -57713,7 +57713,7 @@ function GridColumnHeaderSeparatorRaw(props) {
|
|
|
57713
57713
|
}, []);
|
|
57714
57714
|
return (
|
|
57715
57715
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
57716
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$
|
|
57716
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", _extends$c({
|
|
57717
57717
|
className: classes2.root,
|
|
57718
57718
|
style: {
|
|
57719
57719
|
minHeight: height2
|
|
@@ -57781,9 +57781,9 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
57781
57781
|
}
|
|
57782
57782
|
}
|
|
57783
57783
|
}, [apiRef, hasFocus]);
|
|
57784
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
57784
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
57785
57785
|
className: clsx$1(classes2.root, headerClassName),
|
|
57786
|
-
style: _extends$
|
|
57786
|
+
style: _extends$c({}, style2, {
|
|
57787
57787
|
width: width2
|
|
57788
57788
|
}),
|
|
57789
57789
|
role: "columnheader",
|
|
@@ -57792,7 +57792,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
57792
57792
|
"aria-sort": ariaSort
|
|
57793
57793
|
}, other, {
|
|
57794
57794
|
ref: handleRef,
|
|
57795
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
57795
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
57796
57796
|
className: classes2.draggableContainer,
|
|
57797
57797
|
draggable: isDraggable,
|
|
57798
57798
|
role: "presentation"
|
|
@@ -57809,7 +57809,7 @@ const GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderI
|
|
|
57809
57809
|
})
|
|
57810
57810
|
}), columnTitleIconButtons]
|
|
57811
57811
|
}), columnMenuIconButton]
|
|
57812
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$
|
|
57812
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderSeparator, _extends$c({
|
|
57813
57813
|
resizable: !rootProps.disableColumnResize && !!resizable,
|
|
57814
57814
|
resizing: isResizing,
|
|
57815
57815
|
height: height2,
|
|
@@ -57893,7 +57893,7 @@ function GridColumnHeaderItem(props) {
|
|
|
57893
57893
|
if (colDef.renderHeader) {
|
|
57894
57894
|
headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));
|
|
57895
57895
|
}
|
|
57896
|
-
const ownerState = _extends$
|
|
57896
|
+
const ownerState = _extends$c({}, props, {
|
|
57897
57897
|
classes: rootProps.classes,
|
|
57898
57898
|
showRightBorder,
|
|
57899
57899
|
showLeftBorder
|
|
@@ -57959,10 +57959,10 @@ function GridColumnHeaderItem(props) {
|
|
|
57959
57959
|
const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;
|
|
57960
57960
|
const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;
|
|
57961
57961
|
const columnTitleIconButtons = /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
57962
|
-
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$
|
|
57962
|
+
children: [!rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderFilterIconButton, _extends$c({
|
|
57963
57963
|
field: colDef.field,
|
|
57964
57964
|
counter: filterItemsCounter
|
|
57965
|
-
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$
|
|
57965
|
+
}, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnHeaderSortIcon, _extends$c({
|
|
57966
57966
|
field: colDef.field,
|
|
57967
57967
|
direction: sortDirection,
|
|
57968
57968
|
index: sortIndex,
|
|
@@ -57986,8 +57986,8 @@ function GridColumnHeaderItem(props) {
|
|
|
57986
57986
|
colDef
|
|
57987
57987
|
}) : colDef.headerClassName;
|
|
57988
57988
|
const label2 = colDef.headerName ?? colDef.field;
|
|
57989
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
57990
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
57989
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
57990
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
57991
57991
|
ref: headerCellRef,
|
|
57992
57992
|
classes: classes2,
|
|
57993
57993
|
columnMenuOpen,
|
|
@@ -58068,7 +58068,7 @@ const GridIconButtonContainer = forwardRef(function GridIconButtonContainer2(pro
|
|
|
58068
58068
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$A);
|
|
58069
58069
|
const rootProps = useGridRootProps();
|
|
58070
58070
|
const classes2 = useUtilityClasses$k(rootProps);
|
|
58071
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$
|
|
58071
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridIconButtonContainerRoot, _extends$c({
|
|
58072
58072
|
className: clsx$1(classes2.root, className),
|
|
58073
58073
|
ownerState: rootProps
|
|
58074
58074
|
}, other, {
|
|
@@ -58096,7 +58096,7 @@ function getIcon(icons, direction, className, sortingOrder) {
|
|
|
58096
58096
|
Icon = icons.columnUnsortedIcon;
|
|
58097
58097
|
iconProps.sortingOrder = sortingOrder;
|
|
58098
58098
|
}
|
|
58099
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
58099
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({
|
|
58100
58100
|
fontSize: "small",
|
|
58101
58101
|
className
|
|
58102
58102
|
}, iconProps)) : null;
|
|
@@ -58110,7 +58110,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
58110
58110
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$z);
|
|
58111
58111
|
const apiRef = useGridApiContext();
|
|
58112
58112
|
const rootProps = useGridRootProps();
|
|
58113
|
-
const ownerState = _extends$
|
|
58113
|
+
const ownerState = _extends$c({}, props, {
|
|
58114
58114
|
classes: rootProps.classes
|
|
58115
58115
|
});
|
|
58116
58116
|
const classes2 = useUtilityClasses$j(ownerState);
|
|
@@ -58118,7 +58118,7 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
58118
58118
|
if (!iconElement) {
|
|
58119
58119
|
return null;
|
|
58120
58120
|
}
|
|
58121
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
58121
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
58122
58122
|
tabIndex: -1,
|
|
58123
58123
|
"aria-label": apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
58124
58124
|
title: apiRef.current.getLocaleText("columnHeaderSortIconLabel"),
|
|
@@ -58161,7 +58161,7 @@ function GridColumnHeaderFilterIconButtonWrapped(props) {
|
|
|
58161
58161
|
if (!props.counter) {
|
|
58162
58162
|
return null;
|
|
58163
58163
|
}
|
|
58164
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$
|
|
58164
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeaderFilterIconButton, _extends$c({}, props));
|
|
58165
58165
|
}
|
|
58166
58166
|
GridColumnHeaderFilterIconButtonWrapped.propTypes = {
|
|
58167
58167
|
// ----------------------------- Warning --------------------------------
|
|
@@ -58180,7 +58180,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58180
58180
|
} = props;
|
|
58181
58181
|
const apiRef = useGridApiContext();
|
|
58182
58182
|
const rootProps = useGridRootProps();
|
|
58183
|
-
const ownerState = _extends$
|
|
58183
|
+
const ownerState = _extends$c({}, props, {
|
|
58184
58184
|
classes: rootProps.classes
|
|
58185
58185
|
});
|
|
58186
58186
|
const classes2 = useUtilityClasses$i(ownerState);
|
|
@@ -58206,7 +58206,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58206
58206
|
if (!counter2) {
|
|
58207
58207
|
return null;
|
|
58208
58208
|
}
|
|
58209
|
-
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
58209
|
+
const iconButton = /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
58210
58210
|
id: labelId,
|
|
58211
58211
|
onClick: toggleFilter,
|
|
58212
58212
|
"aria-label": apiRef.current.getLocaleText("columnHeaderFiltersLabel"),
|
|
@@ -58221,7 +58221,7 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
58221
58221
|
fontSize: "small"
|
|
58222
58222
|
})
|
|
58223
58223
|
}));
|
|
58224
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
58224
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
58225
58225
|
title: apiRef.current.getLocaleText("columnHeaderFiltersTooltipActive")(counter2),
|
|
58226
58226
|
enterDelay: 1e3
|
|
58227
58227
|
}, rootProps.slotProps?.baseTooltip, {
|
|
@@ -58371,7 +58371,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer2(pro
|
|
|
58371
58371
|
hideMenu(event2);
|
|
58372
58372
|
}
|
|
58373
58373
|
}, [hideMenu]);
|
|
58374
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$
|
|
58374
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledMenuList, _extends$c({
|
|
58375
58375
|
as: rootProps.slots.baseMenuList,
|
|
58376
58376
|
id: id2,
|
|
58377
58377
|
className: clsx$1(gridClasses.menuList, className),
|
|
@@ -58407,14 +58407,14 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
58407
58407
|
colDef,
|
|
58408
58408
|
addDividers = true
|
|
58409
58409
|
} = props;
|
|
58410
|
-
const processedComponents = React.useMemo(() => _extends$
|
|
58410
|
+
const processedComponents = React.useMemo(() => _extends$c({}, defaultSlots2, slots), [defaultSlots2, slots]);
|
|
58411
58411
|
const processedSlotProps = React.useMemo(() => {
|
|
58412
58412
|
if (!slotProps || Object.keys(slotProps).length === 0) {
|
|
58413
58413
|
return defaultSlotProps;
|
|
58414
58414
|
}
|
|
58415
|
-
const mergedProps = _extends$
|
|
58415
|
+
const mergedProps = _extends$c({}, slotProps);
|
|
58416
58416
|
Object.entries(defaultSlotProps).forEach(([key2, currentSlotProps]) => {
|
|
58417
|
-
mergedProps[key2] = _extends$
|
|
58417
|
+
mergedProps[key2] = _extends$c({}, currentSlotProps, slotProps[key2] || {});
|
|
58418
58418
|
});
|
|
58419
58419
|
return mergedProps;
|
|
58420
58420
|
}, [defaultSlotProps, slotProps]);
|
|
@@ -58441,7 +58441,7 @@ const useGridColumnMenuSlots = (props) => {
|
|
|
58441
58441
|
const processedComponentProps = processedSlotProps[key2];
|
|
58442
58442
|
if (processedComponentProps) {
|
|
58443
58443
|
const customProps = _objectWithoutPropertiesLoose$1(processedComponentProps, _excluded$x);
|
|
58444
|
-
itemProps = _extends$
|
|
58444
|
+
itemProps = _extends$c({}, itemProps, customProps);
|
|
58445
58445
|
}
|
|
58446
58446
|
return addDividers && index2 !== sorted.length - 1 ? [...acc, [processedComponents[key2], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key2], itemProps]];
|
|
58447
58447
|
}, []);
|
|
@@ -58518,7 +58518,7 @@ GridColumnMenuManageItem.propTypes = {
|
|
|
58518
58518
|
};
|
|
58519
58519
|
function GridColumnMenuColumnsItem(props) {
|
|
58520
58520
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
58521
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$
|
|
58521
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuHideItem, _extends$c({}, props)), /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuManageItem, _extends$c({}, props))]
|
|
58522
58522
|
});
|
|
58523
58523
|
}
|
|
58524
58524
|
GridColumnMenuColumnsItem.propTypes = {
|
|
@@ -58643,15 +58643,15 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu2(props,
|
|
|
58643
58643
|
slots,
|
|
58644
58644
|
slotProps
|
|
58645
58645
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$w);
|
|
58646
|
-
const orderedSlots = useGridColumnMenuSlots(_extends$
|
|
58646
|
+
const orderedSlots = useGridColumnMenuSlots(_extends$c({}, other, {
|
|
58647
58647
|
defaultSlots: defaultSlots2,
|
|
58648
58648
|
defaultSlotProps,
|
|
58649
58649
|
slots,
|
|
58650
58650
|
slotProps
|
|
58651
58651
|
}));
|
|
58652
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$
|
|
58652
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnMenuContainer, _extends$c({}, other, {
|
|
58653
58653
|
ref: ref2,
|
|
58654
|
-
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$
|
|
58654
|
+
children: orderedSlots.map(([Component2, otherProps], index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, _extends$c({}, otherProps), index2))
|
|
58655
58655
|
}));
|
|
58656
58656
|
});
|
|
58657
58657
|
GridGenericColumnMenu.propTypes = {
|
|
@@ -58687,7 +58687,7 @@ GridGenericColumnMenu.propTypes = {
|
|
|
58687
58687
|
slots: PropTypes.object
|
|
58688
58688
|
};
|
|
58689
58689
|
const GridColumnMenu = forwardRef(function GridColumnMenu2(props, ref2) {
|
|
58690
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$
|
|
58690
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnMenu, _extends$c({}, props, {
|
|
58691
58691
|
ref: ref2,
|
|
58692
58692
|
defaultSlots: GRID_COLUMN_MENU_SLOTS,
|
|
58693
58693
|
defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS
|
|
@@ -58742,7 +58742,7 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
58742
58742
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$v);
|
|
58743
58743
|
const rootProps = useGridRootProps();
|
|
58744
58744
|
const classes2 = useUtilityClasses$h(rootProps);
|
|
58745
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$
|
|
58745
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapperRoot, _extends$c({
|
|
58746
58746
|
tabIndex: -1,
|
|
58747
58747
|
className: clsx$1(classes2.root, className),
|
|
58748
58748
|
ownerState: rootProps
|
|
@@ -58752,8 +58752,8 @@ const GridPanelWrapper = forwardRef(function GridPanelWrapper2(props, ref2) {
|
|
|
58752
58752
|
});
|
|
58753
58753
|
function GridColumnsPanel(props) {
|
|
58754
58754
|
const rootProps = useGridRootProps();
|
|
58755
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$
|
|
58756
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$
|
|
58755
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelWrapper, _extends$c({}, props, {
|
|
58756
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.columnsManagement, _extends$c({}, rootProps.slotProps?.columnsManagement))
|
|
58757
58757
|
}));
|
|
58758
58758
|
}
|
|
58759
58759
|
const _excluded$u = ["children", "className", "classes"];
|
|
@@ -58807,7 +58807,7 @@ const GridPanel = forwardRef((props, ref2) => {
|
|
|
58807
58807
|
if (!fallbackTarget) {
|
|
58808
58808
|
return null;
|
|
58809
58809
|
}
|
|
58810
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$
|
|
58810
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelRoot, _extends$c({
|
|
58811
58811
|
as: rootProps.slots.basePopper,
|
|
58812
58812
|
ownerState: rootProps,
|
|
58813
58813
|
placement: "bottom-end",
|
|
@@ -58874,7 +58874,7 @@ function GridPanelContent(props) {
|
|
|
58874
58874
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$t);
|
|
58875
58875
|
const rootProps = useGridRootProps();
|
|
58876
58876
|
const classes2 = useUtilityClasses$g(rootProps);
|
|
58877
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$
|
|
58877
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelContentRoot, _extends$c({
|
|
58878
58878
|
className: clsx$1(classes2.root, className),
|
|
58879
58879
|
ownerState: rootProps
|
|
58880
58880
|
}, other));
|
|
@@ -58912,7 +58912,7 @@ function GridPanelFooter(props) {
|
|
|
58912
58912
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$s);
|
|
58913
58913
|
const rootProps = useGridRootProps();
|
|
58914
58914
|
const classes2 = useUtilityClasses$f(rootProps);
|
|
58915
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$
|
|
58915
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridPanelFooterRoot, _extends$c({
|
|
58916
58916
|
className: clsx$1(classes2.root, className),
|
|
58917
58917
|
ownerState: rootProps
|
|
58918
58918
|
}, other));
|
|
@@ -59112,7 +59112,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59112
59112
|
filterValue = void 0;
|
|
59113
59113
|
}
|
|
59114
59114
|
}
|
|
59115
|
-
applyFilterChanges(_extends$
|
|
59115
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
59116
59116
|
field: field2,
|
|
59117
59117
|
operator: newOperator.value,
|
|
59118
59118
|
value: filterValue
|
|
@@ -59122,7 +59122,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59122
59122
|
const operator2 = event2.target.value;
|
|
59123
59123
|
const newOperator = currentColumn?.filterOperators.find((op) => op.value === operator2);
|
|
59124
59124
|
const eraseItemValue = !newOperator?.InputComponent || newOperator?.InputComponent !== currentOperator?.InputComponent;
|
|
59125
|
-
applyFilterChanges(_extends$
|
|
59125
|
+
applyFilterChanges(_extends$c({}, item, {
|
|
59126
59126
|
operator: operator2,
|
|
59127
59127
|
value: eraseItemValue ? void 0 : item.value
|
|
59128
59128
|
}));
|
|
@@ -59143,16 +59143,16 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59143
59143
|
}
|
|
59144
59144
|
}
|
|
59145
59145
|
}), [currentOperator]);
|
|
59146
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$
|
|
59146
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFilterFormRoot, _extends$c({
|
|
59147
59147
|
className: classes2.root,
|
|
59148
59148
|
"data-id": item.id,
|
|
59149
59149
|
ownerState: rootProps
|
|
59150
59150
|
}, other, {
|
|
59151
59151
|
ref: ref2,
|
|
59152
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$
|
|
59152
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormDeleteIcon, _extends$c({}, deleteIconProps, {
|
|
59153
59153
|
className: clsx$1(classes2.deleteIcon, deleteIconProps.className),
|
|
59154
59154
|
ownerState: rootProps,
|
|
59155
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
59155
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
59156
59156
|
"aria-label": apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
59157
59157
|
title: apiRef.current.getLocaleText("filterPanelDeleteIconLabel"),
|
|
59158
59158
|
onClick: handleDeleteFilter,
|
|
@@ -59163,7 +59163,7 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59163
59163
|
fontSize: "small"
|
|
59164
59164
|
})
|
|
59165
59165
|
}))
|
|
59166
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$
|
|
59166
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormLogicOperatorInput, _extends$c({
|
|
59167
59167
|
as: rootProps.slots.baseSelect,
|
|
59168
59168
|
sx: [hasLogicOperatorColumn ? {
|
|
59169
59169
|
display: "flex"
|
|
@@ -59188,12 +59188,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59188
59188
|
disabled: !!disableMultiFilterOperator || logicOperators.length === 1,
|
|
59189
59189
|
native: isBaseSelectNative
|
|
59190
59190
|
}, rootProps.slotProps?.baseSelect, {
|
|
59191
|
-
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59191
|
+
children: logicOperators.map((logicOperator) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
59192
59192
|
native: isBaseSelectNative,
|
|
59193
59193
|
key: logicOperator.toString(),
|
|
59194
59194
|
value: logicOperator.toString()
|
|
59195
59195
|
}), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))
|
|
59196
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$
|
|
59196
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormColumnInput, _extends$c({
|
|
59197
59197
|
as: rootProps.slots.baseSelect
|
|
59198
59198
|
}, columnInputProps, {
|
|
59199
59199
|
className: clsx$1(classes2.columnInput, columnInputProps.className),
|
|
@@ -59207,12 +59207,12 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59207
59207
|
native: isBaseSelectNative,
|
|
59208
59208
|
disabled: readOnly
|
|
59209
59209
|
}, rootProps.slotProps?.baseSelect, {
|
|
59210
|
-
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59210
|
+
children: sortedFilteredColumns.map((col) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
59211
59211
|
native: isBaseSelectNative,
|
|
59212
59212
|
key: col.field,
|
|
59213
59213
|
value: col.field
|
|
59214
59214
|
}), getColumnLabel(col)))
|
|
59215
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$
|
|
59215
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormOperatorInput, _extends$c({
|
|
59216
59216
|
as: rootProps.slots.baseSelect,
|
|
59217
59217
|
size: "small"
|
|
59218
59218
|
}, operatorInputProps, {
|
|
@@ -59227,15 +59227,15 @@ const GridFilterForm = forwardRef(function GridFilterForm2(props, ref2) {
|
|
|
59227
59227
|
inputRef: filterSelectorRef,
|
|
59228
59228
|
disabled: readOnly
|
|
59229
59229
|
}, rootProps.slotProps?.baseSelect, {
|
|
59230
|
-
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$
|
|
59230
|
+
children: currentColumn?.filterOperators?.map((operator2) => /* @__PURE__ */ createElement(rootProps.slots.baseSelectOption, _extends$c({}, baseSelectOptionProps, {
|
|
59231
59231
|
native: isBaseSelectNative,
|
|
59232
59232
|
key: operator2.value,
|
|
59233
59233
|
value: operator2.value
|
|
59234
59234
|
}), operator2.label || apiRef.current.getLocaleText(`filterOperator${capitalize$1(operator2.value)}`)))
|
|
59235
|
-
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$
|
|
59235
|
+
})), /* @__PURE__ */ jsxRuntimeExports.jsx(FilterFormValueInput, _extends$c({}, valueInputPropsOther, {
|
|
59236
59236
|
className: clsx$1(classes2.valueInput, valueInputPropsOther.className),
|
|
59237
59237
|
ownerState: rootProps,
|
|
59238
|
-
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$
|
|
59238
|
+
children: currentOperator?.InputComponent ? /* @__PURE__ */ jsxRuntimeExports.jsx(currentOperator.InputComponent, _extends$c({
|
|
59239
59239
|
apiRef,
|
|
59240
59240
|
item,
|
|
59241
59241
|
applyValue: applyFilterChanges,
|
|
@@ -59459,7 +59459,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59459
59459
|
apiRef.current.deleteFilterItem(validFilters[0]);
|
|
59460
59460
|
return apiRef.current.hideFilterPanel();
|
|
59461
59461
|
}
|
|
59462
|
-
return apiRef.current.setFilterModel(_extends$
|
|
59462
|
+
return apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
59463
59463
|
items: readOnlyFilters
|
|
59464
59464
|
}), "removeAllFilterItems");
|
|
59465
59465
|
}, [apiRef, readOnlyFilters, filterModel, validFilters]);
|
|
@@ -59473,10 +59473,10 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59473
59473
|
lastFilterRef.current.focus();
|
|
59474
59474
|
}
|
|
59475
59475
|
}, [validFilters.length]);
|
|
59476
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$
|
|
59476
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelWrapper, _extends$c({}, other, {
|
|
59477
59477
|
ref: ref2,
|
|
59478
59478
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelContent, {
|
|
59479
|
-
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
59479
|
+
children: [readOnlyFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
59480
59480
|
item,
|
|
59481
59481
|
applyFilterChanges: applyFilter,
|
|
59482
59482
|
deleteFilter,
|
|
@@ -59488,7 +59488,7 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59488
59488
|
readOnly: true,
|
|
59489
59489
|
logicOperators,
|
|
59490
59490
|
columnsSort
|
|
59491
|
-
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$
|
|
59491
|
+
}, filterFormProps), item.id == null ? index2 : item.id)), validFilters.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(GridFilterForm, _extends$c({
|
|
59492
59492
|
item,
|
|
59493
59493
|
applyFilterChanges: applyFilter,
|
|
59494
59494
|
deleteFilter,
|
|
@@ -59501,12 +59501,12 @@ const GridFilterPanel = forwardRef(function GridFilterPanel2(props, ref2) {
|
|
|
59501
59501
|
columnsSort
|
|
59502
59502
|
}, filterFormProps), item.id == null ? index2 + readOnlyFilters.length : item.id))]
|
|
59503
59503
|
}), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridPanelFooter, {
|
|
59504
|
-
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59504
|
+
children: [!disableAddFilterButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
59505
59505
|
onClick: addNewFilter,
|
|
59506
59506
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelAddIcon, {})
|
|
59507
59507
|
}, rootProps.slotProps?.baseButton, {
|
|
59508
59508
|
children: apiRef.current.getLocaleText("filterPanelAddFilter")
|
|
59509
|
-
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59509
|
+
})) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableRemoveAllButton && validFilters.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
59510
59510
|
onClick: handleRemoveAll,
|
|
59511
59511
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.filterPanelRemoveAllIcon, {})
|
|
59512
59512
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -59647,7 +59647,7 @@ function GridShadowScrollArea(props) {
|
|
|
59647
59647
|
const {
|
|
59648
59648
|
children: children3
|
|
59649
59649
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded$p);
|
|
59650
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$
|
|
59650
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShadowScrollArea, _extends$c({}, rest, {
|
|
59651
59651
|
children: children3
|
|
59652
59652
|
}));
|
|
59653
59653
|
}
|
|
@@ -59713,7 +59713,7 @@ function GridColumnsManagement(props) {
|
|
|
59713
59713
|
}, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);
|
|
59714
59714
|
const toggleAllColumns = React.useCallback((isVisible2) => {
|
|
59715
59715
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
59716
|
-
const newModel = _extends$
|
|
59716
|
+
const newModel = _extends$c({}, currentModel);
|
|
59717
59717
|
const togglableColumns = getTogglableColumns ? getTogglableColumns(columns2) : null;
|
|
59718
59718
|
(toggleAllMode === "filteredOnly" ? currentColumns : columns2).forEach((col) => {
|
|
59719
59719
|
if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {
|
|
@@ -59756,7 +59756,7 @@ function GridColumnsManagement(props) {
|
|
|
59756
59756
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnsManagementHeader, {
|
|
59757
59757
|
className: classes2.header,
|
|
59758
59758
|
ownerState: rootProps,
|
|
59759
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$
|
|
59759
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, _extends$c({
|
|
59760
59760
|
as: rootProps.slots.baseTextField,
|
|
59761
59761
|
ownerState: rootProps,
|
|
59762
59762
|
placeholder: apiRef.current.getLocaleText("columnsManagementSearchTitle"),
|
|
@@ -59771,7 +59771,7 @@ function GridColumnsManagement(props) {
|
|
|
59771
59771
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
59772
59772
|
fontSize: "small"
|
|
59773
59773
|
}),
|
|
59774
|
-
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$
|
|
59774
|
+
endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseIconButton, _extends$c({
|
|
59775
59775
|
size: "small",
|
|
59776
59776
|
"aria-label": apiRef.current.getLocaleText("columnsManagementDeleteIconLabel"),
|
|
59777
59777
|
style: searchValue ? {
|
|
@@ -59800,7 +59800,7 @@ function GridColumnsManagement(props) {
|
|
|
59800
59800
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementBody, {
|
|
59801
59801
|
className: classes2.root,
|
|
59802
59802
|
ownerState: rootProps,
|
|
59803
|
-
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
59803
|
+
children: [currentColumns.map((column2) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
59804
59804
|
className: classes2.row,
|
|
59805
59805
|
disabled: column2.hideable === false,
|
|
59806
59806
|
checked: columnVisibilityModel[column2.field] !== false,
|
|
@@ -59818,7 +59818,7 @@ function GridColumnsManagement(props) {
|
|
|
59818
59818
|
}), !disableShowHideToggle || !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsxs(GridColumnsManagementFooter, {
|
|
59819
59819
|
ownerState: rootProps,
|
|
59820
59820
|
className: classes2.footer,
|
|
59821
|
-
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$
|
|
59821
|
+
children: [!disableShowHideToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseCheckbox, _extends$c({
|
|
59822
59822
|
disabled: hideableColumns.length === 0,
|
|
59823
59823
|
checked: allHideableColumnsVisible,
|
|
59824
59824
|
indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,
|
|
@@ -59826,7 +59826,7 @@ function GridColumnsManagement(props) {
|
|
|
59826
59826
|
name: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
59827
59827
|
label: apiRef.current.getLocaleText("columnsManagementShowHideAllText"),
|
|
59828
59828
|
density: "compact"
|
|
59829
|
-
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59829
|
+
}, rootProps.slotProps?.baseCheckbox)) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}), !disableResetButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
59830
59830
|
onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),
|
|
59831
59831
|
disabled: isResetDisabled
|
|
59832
59832
|
}, rootProps.slotProps?.baseButton, {
|
|
@@ -59957,11 +59957,11 @@ const GridToolbarExportContainer = forwardRef(function GridToolbarExportContaine
|
|
|
59957
59957
|
return null;
|
|
59958
59958
|
}
|
|
59959
59959
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
59960
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$
|
|
59960
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, _extends$c({
|
|
59961
59961
|
title: apiRef.current.getLocaleText("toolbarExportLabel"),
|
|
59962
59962
|
enterDelay: 1e3
|
|
59963
59963
|
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
59964
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
59964
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
59965
59965
|
size: "small",
|
|
59966
59966
|
startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.exportIcon, {}),
|
|
59967
59967
|
"aria-expanded": open2,
|
|
@@ -60016,7 +60016,7 @@ function GridCsvExportMenuItem(props) {
|
|
|
60016
60016
|
hideMenu,
|
|
60017
60017
|
options
|
|
60018
60018
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$o);
|
|
60019
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
60019
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
60020
60020
|
onClick: () => {
|
|
60021
60021
|
apiRef.current.exportDataAsCsv(options);
|
|
60022
60022
|
hideMenu?.();
|
|
@@ -60052,7 +60052,7 @@ function GridPrintExportMenuItem(props) {
|
|
|
60052
60052
|
hideMenu,
|
|
60053
60053
|
options
|
|
60054
60054
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded2$6);
|
|
60055
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
60055
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({
|
|
60056
60056
|
onClick: () => {
|
|
60057
60057
|
apiRef.current.exportDataAsPrint(options);
|
|
60058
60058
|
hideMenu?.();
|
|
@@ -60096,7 +60096,7 @@ const GridToolbarExport = forwardRef(function GridToolbarExport2(props, ref2) {
|
|
|
60096
60096
|
if (preProcessedButtons.length === 0) {
|
|
60097
60097
|
return null;
|
|
60098
60098
|
}
|
|
60099
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$
|
|
60099
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarExportContainer, _extends$c({}, other, {
|
|
60100
60100
|
ref: ref2,
|
|
60101
60101
|
children: preProcessedButtons.map((button, index2) => /* @__PURE__ */ React.cloneElement(button.component, {
|
|
60102
60102
|
key: index2
|
|
@@ -60311,7 +60311,7 @@ function QuickFilter(props) {
|
|
|
60311
60311
|
ref2.current.style.setProperty("--trigger-width", `${triggerRef.current?.offsetWidth}px`);
|
|
60312
60312
|
}
|
|
60313
60313
|
}, []);
|
|
60314
|
-
const element2 = useGridComponentRenderer("div", render2, _extends$
|
|
60314
|
+
const element2 = useGridComponentRenderer("div", render2, _extends$c({
|
|
60315
60315
|
className: resolvedClassName
|
|
60316
60316
|
}, other, {
|
|
60317
60317
|
ref: ref2
|
|
@@ -60411,9 +60411,9 @@ const QuickFilterControl = forwardRef(function QuickFilterControl2(props, ref2)
|
|
|
60411
60411
|
onValueChange(event2);
|
|
60412
60412
|
onChange?.(event2);
|
|
60413
60413
|
};
|
|
60414
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$
|
|
60415
|
-
slotProps: _extends$
|
|
60416
|
-
htmlInput: _extends$
|
|
60414
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseTextField, render2, _extends$c({}, rootProps.slotProps?.baseTextField, {
|
|
60415
|
+
slotProps: _extends$c({
|
|
60416
|
+
htmlInput: _extends$c({
|
|
60417
60417
|
role: "searchbox",
|
|
60418
60418
|
id: controlId,
|
|
60419
60419
|
tabIndex: state.expanded ? void 0 : -1
|
|
@@ -60482,7 +60482,7 @@ const QuickFilterClear = forwardRef(function QuickFilterClear2(props, ref2) {
|
|
|
60482
60482
|
clearValue();
|
|
60483
60483
|
onClick?.(event2);
|
|
60484
60484
|
};
|
|
60485
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$
|
|
60485
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseIconButton, render2, _extends$c({}, rootProps.slotProps?.baseIconButton, {
|
|
60486
60486
|
className: resolvedClassName,
|
|
60487
60487
|
tabIndex: -1
|
|
60488
60488
|
}, other, {
|
|
@@ -60538,7 +60538,7 @@ const QuickFilterTrigger = forwardRef(function QuickFilterTrigger2(props, ref2)
|
|
|
60538
60538
|
onExpandedChange(!state.expanded);
|
|
60539
60539
|
onClick?.(event2);
|
|
60540
60540
|
};
|
|
60541
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
60541
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
60542
60542
|
className: resolvedClassName,
|
|
60543
60543
|
"aria-controls": controlId,
|
|
60544
60544
|
"aria-expanded": state.expanded
|
|
@@ -60640,16 +60640,16 @@ function GridToolbarQuickFilter(props) {
|
|
|
60640
60640
|
formatter: quickFilterFormatter,
|
|
60641
60641
|
debounceMs,
|
|
60642
60642
|
render: (quickFilterProps, state) => {
|
|
60643
|
-
const currentOwnerState = _extends$
|
|
60643
|
+
const currentOwnerState = _extends$c({}, ownerState, {
|
|
60644
60644
|
expanded: state.expanded
|
|
60645
60645
|
});
|
|
60646
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$
|
|
60646
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridQuickFilterRoot, _extends$c({}, quickFilterProps, {
|
|
60647
60647
|
className: clsx$1(classes2.root, className),
|
|
60648
60648
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(QuickFilterTrigger, {
|
|
60649
60649
|
render: (triggerProps) => /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
60650
60650
|
title: apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
60651
60651
|
enterDelay: 0,
|
|
60652
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$
|
|
60652
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTrigger, _extends$c({
|
|
60653
60653
|
className: classes2.trigger
|
|
60654
60654
|
}, triggerProps, {
|
|
60655
60655
|
ownerState: currentOwnerState,
|
|
@@ -60666,7 +60666,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
60666
60666
|
ref: ref2,
|
|
60667
60667
|
slotProps: controlSlotProps
|
|
60668
60668
|
} = _ref, controlProps = _objectWithoutPropertiesLoose$1(_ref, _excluded2$5);
|
|
60669
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$
|
|
60669
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridQuickFilterTextField, _extends$c({
|
|
60670
60670
|
as: rootProps.slots.baseTextField,
|
|
60671
60671
|
className: classes2.control,
|
|
60672
60672
|
ownerState: currentOwnerState,
|
|
@@ -60674,8 +60674,8 @@ function GridToolbarQuickFilter(props) {
|
|
|
60674
60674
|
"aria-label": apiRef.current.getLocaleText("toolbarQuickFilterLabel"),
|
|
60675
60675
|
placeholder: apiRef.current.getLocaleText("toolbarQuickFilterPlaceholder"),
|
|
60676
60676
|
size: "small",
|
|
60677
|
-
slotProps: _extends$
|
|
60678
|
-
input: _extends$
|
|
60677
|
+
slotProps: _extends$c({
|
|
60678
|
+
input: _extends$c({
|
|
60679
60679
|
startAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.quickFilterIcon, {
|
|
60680
60680
|
fontSize: "small"
|
|
60681
60681
|
}),
|
|
@@ -60766,7 +60766,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger2(props, ref2)
|
|
|
60766
60766
|
}
|
|
60767
60767
|
onPointerUp?.(event2);
|
|
60768
60768
|
};
|
|
60769
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
60769
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
60770
60770
|
id: buttonId,
|
|
60771
60771
|
"aria-haspopup": "true",
|
|
60772
60772
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -60840,7 +60840,7 @@ const ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger2(props, ref2
|
|
|
60840
60840
|
}
|
|
60841
60841
|
onPointerUp?.(event2);
|
|
60842
60842
|
};
|
|
60843
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
60843
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
60844
60844
|
id: buttonId,
|
|
60845
60845
|
"aria-haspopup": "true",
|
|
60846
60846
|
"aria-expanded": open2 ? "true" : void 0,
|
|
@@ -60891,7 +60891,7 @@ const ExportCsv = forwardRef(function ExportCsv2(props, ref2) {
|
|
|
60891
60891
|
apiRef.current.exportDataAsCsv(options);
|
|
60892
60892
|
onClick?.(event2);
|
|
60893
60893
|
};
|
|
60894
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
60894
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
60895
60895
|
onClick: handleClick
|
|
60896
60896
|
}, other, {
|
|
60897
60897
|
ref: ref2
|
|
@@ -60950,7 +60950,7 @@ const ExportPrint = forwardRef(function ExportPrint2(props, ref2) {
|
|
|
60950
60950
|
apiRef.current.exportDataAsPrint(options);
|
|
60951
60951
|
onClick?.(event2);
|
|
60952
60952
|
};
|
|
60953
|
-
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$
|
|
60953
|
+
const element2 = useGridComponentRenderer(rootProps.slots.baseButton, render2, _extends$c({}, rootProps.slotProps?.baseButton, {
|
|
60954
60954
|
onClick: handleClick
|
|
60955
60955
|
}, other, {
|
|
60956
60956
|
ref: ref2
|
|
@@ -61030,7 +61030,7 @@ function GridToolbarDivider(props) {
|
|
|
61030
61030
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded$e);
|
|
61031
61031
|
const rootProps = useGridRootProps();
|
|
61032
61032
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
61033
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$
|
|
61033
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, _extends$c({
|
|
61034
61034
|
as: rootProps.slots.baseDivider,
|
|
61035
61035
|
orientation: "vertical",
|
|
61036
61036
|
className: classes2.divider
|
|
@@ -61048,7 +61048,7 @@ function GridToolbarLabel(props) {
|
|
|
61048
61048
|
const other = _objectWithoutPropertiesLoose$1(props, _excluded2$4);
|
|
61049
61049
|
const rootProps = useGridRootProps();
|
|
61050
61050
|
const classes2 = useUtilityClasses$b(rootProps);
|
|
61051
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$
|
|
61051
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Label$2, _extends$c({
|
|
61052
61052
|
className: classes2.label
|
|
61053
61053
|
}, other));
|
|
61054
61054
|
}
|
|
@@ -61082,7 +61082,7 @@ function GridToolbar(props) {
|
|
|
61082
61082
|
}), !rootProps.disableColumnFilter && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseTooltip, {
|
|
61083
61083
|
title: apiRef.current.getLocaleText("toolbarFilters"),
|
|
61084
61084
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanelTrigger, {
|
|
61085
|
-
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$
|
|
61085
|
+
render: (triggerProps, state) => /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarButton, _extends$c({}, triggerProps, {
|
|
61086
61086
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseBadge, {
|
|
61087
61087
|
badgeContent: state.filterCount,
|
|
61088
61088
|
color: "primary",
|
|
@@ -61112,18 +61112,18 @@ function GridToolbar(props) {
|
|
|
61112
61112
|
open: exportMenuOpen,
|
|
61113
61113
|
onClose: closeExportMenu,
|
|
61114
61114
|
position: "bottom-end",
|
|
61115
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$
|
|
61115
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(rootProps.slots.baseMenuList, _extends$c({
|
|
61116
61116
|
id: exportMenuId,
|
|
61117
61117
|
"aria-labelledby": exportMenuTriggerId,
|
|
61118
61118
|
autoFocusItem: true
|
|
61119
61119
|
}, rootProps.slotProps?.baseMenuList, {
|
|
61120
61120
|
children: [!printOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportPrint, {
|
|
61121
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
61121
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
61122
61122
|
options: printOptions,
|
|
61123
61123
|
onClick: closeExportMenu,
|
|
61124
61124
|
children: apiRef.current.getLocaleText("toolbarExportPrint")
|
|
61125
61125
|
}), !csvOptions?.disableToolbarButton && /* @__PURE__ */ jsxRuntimeExports.jsx(ExportCsv, {
|
|
61126
|
-
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$
|
|
61126
|
+
render: /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseMenuItem, _extends$c({}, rootProps.slotProps?.baseMenuItem)),
|
|
61127
61127
|
options: csvOptions,
|
|
61128
61128
|
onClick: closeExportMenu,
|
|
61129
61129
|
children: apiRef.current.getLocaleText("toolbarExportCSV")
|
|
@@ -61131,7 +61131,7 @@ function GridToolbar(props) {
|
|
|
61131
61131
|
}))
|
|
61132
61132
|
})]
|
|
61133
61133
|
}), showQuickFilter && /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, {
|
|
61134
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$
|
|
61134
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarDivider, {}), /* @__PURE__ */ jsxRuntimeExports.jsx(GridToolbarQuickFilter, _extends$c({}, quickFilterProps))]
|
|
61135
61135
|
})]
|
|
61136
61136
|
});
|
|
61137
61137
|
}
|
|
@@ -61201,7 +61201,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount2(props, re
|
|
|
61201
61201
|
const ownerState = useGridRootProps();
|
|
61202
61202
|
const classes2 = useUtilityClasses$a(ownerState);
|
|
61203
61203
|
const rowSelectedText = apiRef.current.getLocaleText("footerRowSelected")(selectedRowCount);
|
|
61204
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$
|
|
61204
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCountRoot, _extends$c({
|
|
61205
61205
|
className: clsx$1(classes2.root, className),
|
|
61206
61206
|
ownerState
|
|
61207
61207
|
}, other, {
|
|
@@ -61226,12 +61226,12 @@ const GridFooter = forwardRef(function GridFooter2(props, ref2) {
|
|
|
61226
61226
|
const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(GridSelectedRowCount, {
|
|
61227
61227
|
selectedRowCount
|
|
61228
61228
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
|
|
61229
|
-
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$
|
|
61229
|
+
const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.footerRowCount, _extends$c({}, rootProps.slotProps?.footerRowCount, {
|
|
61230
61230
|
rowCount: totalTopLevelRowCount,
|
|
61231
61231
|
visibleRowCount: visibleTopLevelRowCount
|
|
61232
61232
|
})) : null;
|
|
61233
61233
|
const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.pagination, {});
|
|
61234
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$
|
|
61234
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridFooterContainer, _extends$c({}, props, {
|
|
61235
61235
|
ref: ref2,
|
|
61236
61236
|
children: [selectedRowCountElement, rowCountElement, paginationElement]
|
|
61237
61237
|
}));
|
|
@@ -61391,7 +61391,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
61391
61391
|
"data-colindex": colIndex,
|
|
61392
61392
|
empty: visibleColumns && !visibleColumns.has(column2.field),
|
|
61393
61393
|
className: clsx$1(isPinnedLeft && gridClasses["cell--pinnedLeft"], isPinnedRight && gridClasses["cell--pinnedRight"], showRightBorder && gridClasses["cell--withRightBorder"], showLeftBorder && gridClasses["cell--withLeftBorder"]),
|
|
61394
|
-
style: _extends$
|
|
61394
|
+
style: _extends$c({
|
|
61395
61395
|
"--width": `${column2.computedWidth}px`
|
|
61396
61396
|
}, pinnedStyle)
|
|
61397
61397
|
}, `skeleton-column-${i2}-${column2.field}`));
|
|
@@ -61451,7 +61451,7 @@ const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingO
|
|
|
61451
61451
|
}
|
|
61452
61452
|
};
|
|
61453
61453
|
useGridEvent(apiRef, "columnResize", handleColumnResize);
|
|
61454
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$
|
|
61454
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonOverlay, _extends$c({
|
|
61455
61455
|
className: classes2.root
|
|
61456
61456
|
}, rest, {
|
|
61457
61457
|
ref: handleRef,
|
|
@@ -61463,7 +61463,7 @@ const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverla
|
|
|
61463
61463
|
const dimensions = useGridSelector(apiRef, gridDimensionsSelector);
|
|
61464
61464
|
const viewportHeight = dimensions?.viewportInnerSize.height ?? 0;
|
|
61465
61465
|
const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);
|
|
61466
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$
|
|
61466
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridSkeletonLoadingOverlayInner, _extends$c({}, props, {
|
|
61467
61467
|
skeletonRowsCount,
|
|
61468
61468
|
ref: forwardedRef
|
|
61469
61469
|
}));
|
|
@@ -61498,8 +61498,8 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay2(props, ref2)
|
|
|
61498
61498
|
const rowsCount = useGridSelector(apiRef, gridRowCountSelector);
|
|
61499
61499
|
const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];
|
|
61500
61500
|
const Component2 = activeVariant.component(rootProps);
|
|
61501
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
61502
|
-
style: _extends$
|
|
61501
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({
|
|
61502
|
+
style: _extends$c({}, activeVariant.style, style2)
|
|
61503
61503
|
}, other, {
|
|
61504
61504
|
ref: ref2,
|
|
61505
61505
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, {})
|
|
@@ -61525,7 +61525,7 @@ GridLoadingOverlay.propTypes = {
|
|
|
61525
61525
|
const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay2(props, ref2) {
|
|
61526
61526
|
const apiRef = useGridApiContext();
|
|
61527
61527
|
const noRowsLabel = apiRef.current.getLocaleText("noRowsLabel");
|
|
61528
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
61528
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
61529
61529
|
ref: ref2,
|
|
61530
61530
|
children: noRowsLabel
|
|
61531
61531
|
}));
|
|
@@ -61545,9 +61545,9 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay2(props, re
|
|
|
61545
61545
|
apiRef.current.showPreferences(GridPreferencePanelsValue.columns);
|
|
61546
61546
|
};
|
|
61547
61547
|
const showManageColumnsButton = !rootProps.disableColumnSelector && columns2.length > 0;
|
|
61548
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$
|
|
61548
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridOverlay, _extends$c({}, props, {
|
|
61549
61549
|
ref: ref2,
|
|
61550
|
-
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$
|
|
61550
|
+
children: [apiRef.current.getLocaleText("noColumnsOverlayLabel"), showManageColumnsButton && /* @__PURE__ */ jsxRuntimeExports.jsx(rootProps.slots.baseButton, _extends$c({
|
|
61551
61551
|
size: "small"
|
|
61552
61552
|
}, rootProps.slotProps?.baseButton, {
|
|
61553
61553
|
onClick: handleOpenManageColumns,
|
|
@@ -61663,7 +61663,7 @@ const GridRowCount = forwardRef(function GridRowCount2(props, ref2) {
|
|
|
61663
61663
|
return null;
|
|
61664
61664
|
}
|
|
61665
61665
|
const text2 = visibleRowCount < rowCount ? apiRef.current.getLocaleText("footerTotalVisibleRows")(visibleRowCount, rowCount) : rowCount.toLocaleString();
|
|
61666
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$
|
|
61666
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridRowCountRoot, _extends$c({
|
|
61667
61667
|
className: clsx$1(classes2.root, className),
|
|
61668
61668
|
ownerState
|
|
61669
61669
|
}, other, {
|
|
@@ -61796,7 +61796,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
61796
61796
|
slotProps,
|
|
61797
61797
|
disableColumnReorder
|
|
61798
61798
|
} = rootProps;
|
|
61799
|
-
const heightEntry = useGridSelector(apiRef, () => _extends$
|
|
61799
|
+
const heightEntry = useGridSelector(apiRef, () => _extends$c({}, apiRef.current.getRowHeightEntry(rowId)), void 0, objectShallowCompare);
|
|
61800
61800
|
const style2 = React.useMemo(() => {
|
|
61801
61801
|
if (isNotVisible) {
|
|
61802
61802
|
return {
|
|
@@ -61805,7 +61805,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
61805
61805
|
height: 0
|
|
61806
61806
|
};
|
|
61807
61807
|
}
|
|
61808
|
-
const rowStyle = _extends$
|
|
61808
|
+
const rowStyle = _extends$c({}, styleProp, {
|
|
61809
61809
|
maxHeight: rowHeight === "auto" ? "none" : rowHeight,
|
|
61810
61810
|
// max-height doesn't support "auto"
|
|
61811
61811
|
minHeight: rowHeight,
|
|
@@ -61830,7 +61830,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
61830
61830
|
const ariaAttributes = getRowAriaAttributes(rowNode, index2);
|
|
61831
61831
|
if (typeof rootProps.getRowClassName === "function") {
|
|
61832
61832
|
const indexRelativeToCurrentPage = index2 - (currentPage.range?.firstRowIndex || 0);
|
|
61833
|
-
const rowParams = _extends$
|
|
61833
|
+
const rowParams = _extends$c({}, apiRef.current.getRowParams(rowId), {
|
|
61834
61834
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
61835
61835
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
61836
61836
|
indexRelativeToCurrentPage
|
|
@@ -61861,7 +61861,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
61861
61861
|
const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;
|
|
61862
61862
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
61863
61863
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);
|
|
61864
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$
|
|
61864
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(slots.cell, _extends$c({
|
|
61865
61865
|
column: column2,
|
|
61866
61866
|
width: width2,
|
|
61867
61867
|
rowId,
|
|
@@ -61910,7 +61910,7 @@ const GridRow = forwardRef(function GridRow2(props, refProp) {
|
|
|
61910
61910
|
onMouseOut: publish("rowMouseOut", onMouseOut),
|
|
61911
61911
|
onMouseOver: publish("rowMouseOver", onMouseOver)
|
|
61912
61912
|
} : null;
|
|
61913
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$
|
|
61913
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", _extends$c({
|
|
61914
61914
|
"data-id": rowId,
|
|
61915
61915
|
"data-rowindex": index2,
|
|
61916
61916
|
role: "row",
|
|
@@ -62055,7 +62055,7 @@ const useGridIsRtl = (apiRef) => {
|
|
|
62055
62055
|
if (isFirstEffect.current) {
|
|
62056
62056
|
isFirstEffect.current = false;
|
|
62057
62057
|
} else {
|
|
62058
|
-
apiRef.current.setState((state) => _extends$
|
|
62058
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62059
62059
|
isRtl
|
|
62060
62060
|
}));
|
|
62061
62061
|
}
|
|
@@ -62608,7 +62608,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
62608
62608
|
}, [apiRef]);
|
|
62609
62609
|
const updateControlState = React.useCallback((key2, state, reason) => {
|
|
62610
62610
|
return apiRef.current.setState((previousState) => {
|
|
62611
|
-
return _extends$
|
|
62611
|
+
return _extends$c({}, previousState, {
|
|
62612
62612
|
[key2]: state(previousState[key2])
|
|
62613
62613
|
});
|
|
62614
62614
|
}, reason);
|
|
@@ -62624,7 +62624,7 @@ const useGridStateInitialization = (apiRef) => {
|
|
|
62624
62624
|
useGridApiMethod(apiRef, privateStateApi, "private");
|
|
62625
62625
|
};
|
|
62626
62626
|
const propsStateInitializer = (state, props) => {
|
|
62627
|
-
return _extends$
|
|
62627
|
+
return _extends$c({}, state, {
|
|
62628
62628
|
props: {
|
|
62629
62629
|
getRowId: props.getRowId
|
|
62630
62630
|
}
|
|
@@ -62632,7 +62632,7 @@ const propsStateInitializer = (state, props) => {
|
|
|
62632
62632
|
};
|
|
62633
62633
|
const useGridProps = (apiRef, props) => {
|
|
62634
62634
|
React.useEffect(() => {
|
|
62635
|
-
apiRef.current.setState((state) => _extends$
|
|
62635
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
62636
62636
|
props: {
|
|
62637
62637
|
getRowId: props.getRowId
|
|
62638
62638
|
}
|
|
@@ -62882,7 +62882,7 @@ const useGridClipboard = (apiRef, props) => {
|
|
|
62882
62882
|
useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, "keydown", handleCopy);
|
|
62883
62883
|
useGridEventPriority(apiRef, "clipboardCopy", props.onClipboardCopy);
|
|
62884
62884
|
};
|
|
62885
|
-
const columnMenuStateInitializer = (state) => _extends$
|
|
62885
|
+
const columnMenuStateInitializer = (state) => _extends$c({}, state, {
|
|
62886
62886
|
columnMenu: {
|
|
62887
62887
|
open: false
|
|
62888
62888
|
}
|
|
@@ -62902,7 +62902,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
62902
62902
|
return state;
|
|
62903
62903
|
}
|
|
62904
62904
|
logger2.debug("Opening Column Menu");
|
|
62905
|
-
return _extends$
|
|
62905
|
+
return _extends$c({}, state, {
|
|
62906
62906
|
columnMenu: {
|
|
62907
62907
|
open: true,
|
|
62908
62908
|
field: field2
|
|
@@ -62942,7 +62942,7 @@ const useGridColumnMenu = (apiRef) => {
|
|
|
62942
62942
|
if (shouldUpdate) {
|
|
62943
62943
|
apiRef.current.setState((state) => {
|
|
62944
62944
|
logger2.debug("Hiding Column Menu");
|
|
62945
|
-
return _extends$
|
|
62945
|
+
return _extends$c({}, state, {
|
|
62946
62946
|
columnMenu: newState
|
|
62947
62947
|
});
|
|
62948
62948
|
});
|
|
@@ -62975,7 +62975,7 @@ const columnsStateInitializer = (state, props, apiRef) => {
|
|
|
62975
62975
|
columnVisibilityModel: props.columnVisibilityModel ?? props.initialState?.columns?.columnVisibilityModel ?? {},
|
|
62976
62976
|
keepOnlyColumnsToUpsert: true
|
|
62977
62977
|
});
|
|
62978
|
-
return _extends$
|
|
62978
|
+
return _extends$c({}, state, {
|
|
62979
62979
|
columns: columnsState,
|
|
62980
62980
|
// In pro/premium, this part of the state is defined. We give it an empty but defined value
|
|
62981
62981
|
// for the community version.
|
|
@@ -63011,7 +63011,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63011
63011
|
const setColumnVisibilityModel = React.useCallback((model) => {
|
|
63012
63012
|
const currentModel = gridColumnVisibilityModelSelector(apiRef);
|
|
63013
63013
|
if (currentModel !== model) {
|
|
63014
|
-
apiRef.current.setState((state) => _extends$
|
|
63014
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63015
63015
|
columns: createColumnsState({
|
|
63016
63016
|
apiRef,
|
|
63017
63017
|
columnsToUpsert: [],
|
|
@@ -63037,7 +63037,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63037
63037
|
const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
|
|
63038
63038
|
const isCurrentlyVisible = columnVisibilityModel[field2] ?? true;
|
|
63039
63039
|
if (isVisible2 !== isCurrentlyVisible) {
|
|
63040
|
-
const newModel = _extends$
|
|
63040
|
+
const newModel = _extends$c({}, columnVisibilityModel, {
|
|
63041
63041
|
[field2]: isVisible2
|
|
63042
63042
|
});
|
|
63043
63043
|
apiRef.current.setColumnVisibilityModel(newModel);
|
|
@@ -63057,7 +63057,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63057
63057
|
const updatedColumns = [...allColumns];
|
|
63058
63058
|
const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];
|
|
63059
63059
|
updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);
|
|
63060
|
-
setGridColumnsState(_extends$
|
|
63060
|
+
setGridColumnsState(_extends$c({}, gridColumnsStateSelector(apiRef), {
|
|
63061
63061
|
orderedFields: updatedColumns
|
|
63062
63062
|
}));
|
|
63063
63063
|
const params2 = {
|
|
@@ -63071,12 +63071,12 @@ function useGridColumns(apiRef, props) {
|
|
|
63071
63071
|
logger2.debug(`Updating column ${field2} width to ${width2}`);
|
|
63072
63072
|
const columnsState = gridColumnsStateSelector(apiRef);
|
|
63073
63073
|
const column2 = columnsState.lookup[field2];
|
|
63074
|
-
const newColumn = _extends$
|
|
63074
|
+
const newColumn = _extends$c({}, column2, {
|
|
63075
63075
|
width: width2,
|
|
63076
63076
|
hasBeenResized: true
|
|
63077
63077
|
});
|
|
63078
|
-
setGridColumnsState(hydrateColumnsWidth(_extends$
|
|
63079
|
-
lookup: _extends$
|
|
63078
|
+
setGridColumnsState(hydrateColumnsWidth(_extends$c({}, columnsState, {
|
|
63079
|
+
lookup: _extends$c({}, columnsState.lookup, {
|
|
63080
63080
|
[field2]: newColumn
|
|
63081
63081
|
})
|
|
63082
63082
|
}), apiRef.current.getRootDimensions()));
|
|
@@ -63136,7 +63136,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63136
63136
|
if (Object.keys(dimensions).length > 0) {
|
|
63137
63137
|
columnsStateToExport.dimensions = dimensions;
|
|
63138
63138
|
}
|
|
63139
|
-
return _extends$
|
|
63139
|
+
return _extends$c({}, prevState, {
|
|
63140
63140
|
columns: columnsStateToExport
|
|
63141
63141
|
});
|
|
63142
63142
|
}, [apiRef, props.columnVisibilityModel, props.initialState?.columns]);
|
|
@@ -63162,7 +63162,7 @@ function useGridColumns(apiRef, props) {
|
|
|
63162
63162
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
63163
63163
|
if (value2 === GridPreferencePanelsValue.columns) {
|
|
63164
63164
|
const ColumnsPanel = props.slots.columnsPanel;
|
|
63165
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$
|
|
63165
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnsPanel, _extends$c({}, props.slotProps?.columnsPanel));
|
|
63166
63166
|
}
|
|
63167
63167
|
return initialValue;
|
|
63168
63168
|
}, [props.slots.columnsPanel, props.slotProps?.columnsPanel]);
|
|
@@ -63227,11 +63227,11 @@ function useGridColumns(apiRef, props) {
|
|
|
63227
63227
|
}, [apiRef, logger2, props.columnVisibilityModel]);
|
|
63228
63228
|
}
|
|
63229
63229
|
function mergeColumnsState(columnsState) {
|
|
63230
|
-
return (state) => _extends$
|
|
63230
|
+
return (state) => _extends$c({}, state, {
|
|
63231
63231
|
columns: columnsState
|
|
63232
63232
|
});
|
|
63233
63233
|
}
|
|
63234
|
-
const densityStateInitializer = (state, props) => _extends$
|
|
63234
|
+
const densityStateInitializer = (state, props) => _extends$c({}, state, {
|
|
63235
63235
|
density: props.initialState?.density ?? props.density ?? "standard"
|
|
63236
63236
|
});
|
|
63237
63237
|
const useGridDensity = (apiRef, props) => {
|
|
@@ -63249,7 +63249,7 @@ const useGridDensity = (apiRef, props) => {
|
|
|
63249
63249
|
return;
|
|
63250
63250
|
}
|
|
63251
63251
|
logger2.debug(`Set grid density to ${newDensity}`);
|
|
63252
|
-
apiRef.current.setState((state) => _extends$
|
|
63252
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63253
63253
|
density: newDensity
|
|
63254
63254
|
}));
|
|
63255
63255
|
});
|
|
@@ -63268,13 +63268,13 @@ const useGridDensity = (apiRef, props) => {
|
|
|
63268
63268
|
if (!shouldExportRowCount) {
|
|
63269
63269
|
return prevState;
|
|
63270
63270
|
}
|
|
63271
|
-
return _extends$
|
|
63271
|
+
return _extends$c({}, prevState, {
|
|
63272
63272
|
density: exportedDensity
|
|
63273
63273
|
});
|
|
63274
63274
|
}, [apiRef, props.density, props.initialState?.density]);
|
|
63275
63275
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63276
63276
|
const restoredDensity = context2.stateToRestore?.density ? context2.stateToRestore.density : gridDensitySelector(apiRef);
|
|
63277
|
-
apiRef.current.setState((state) => _extends$
|
|
63277
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63278
63278
|
density: restoredDensity
|
|
63279
63279
|
}));
|
|
63280
63280
|
return params2;
|
|
@@ -63402,7 +63402,7 @@ const getDerivedPaginationModel = (paginationState, signature, paginationModelPr
|
|
|
63402
63402
|
}
|
|
63403
63403
|
const validPage = pageSize2 === -1 ? 0 : getValidPage(paginationModel.page, pageCount);
|
|
63404
63404
|
if (validPage !== paginationModel.page) {
|
|
63405
|
-
paginationModel = _extends$
|
|
63405
|
+
paginationModel = _extends$c({}, paginationModel, {
|
|
63406
63406
|
page: validPage
|
|
63407
63407
|
});
|
|
63408
63408
|
}
|
|
@@ -63449,8 +63449,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63449
63449
|
return;
|
|
63450
63450
|
}
|
|
63451
63451
|
logger2.debug("Setting 'paginationModel' to", paginationModel);
|
|
63452
|
-
apiRef.current.setState((state) => _extends$
|
|
63453
|
-
pagination: _extends$
|
|
63452
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63453
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63454
63454
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
63455
63455
|
})
|
|
63456
63456
|
}), "setPaginationModel");
|
|
@@ -63473,16 +63473,16 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63473
63473
|
if (!shouldExportPaginationModel) {
|
|
63474
63474
|
return prevState;
|
|
63475
63475
|
}
|
|
63476
|
-
return _extends$
|
|
63477
|
-
pagination: _extends$
|
|
63476
|
+
return _extends$c({}, prevState, {
|
|
63477
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
63478
63478
|
paginationModel
|
|
63479
63479
|
})
|
|
63480
63480
|
});
|
|
63481
63481
|
}, [apiRef, props.paginationModel, props.initialState?.pagination?.paginationModel, props.autoPageSize]);
|
|
63482
63482
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
63483
|
-
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$
|
|
63484
|
-
apiRef.current.setState((state) => _extends$
|
|
63485
|
-
pagination: _extends$
|
|
63483
|
+
const paginationModel = context2.stateToRestore.pagination?.paginationModel ? _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), context2.stateToRestore.pagination?.paginationModel) : gridPaginationModelSelector(apiRef);
|
|
63484
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63485
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63486
63486
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)
|
|
63487
63487
|
})
|
|
63488
63488
|
}), "stateRestorePreProcessing");
|
|
@@ -63532,7 +63532,7 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63532
63532
|
}
|
|
63533
63533
|
}, [apiRef]);
|
|
63534
63534
|
const handleFilterModelChange = React.useCallback((filterModel) => {
|
|
63535
|
-
const currentActiveFilters = _extends$
|
|
63535
|
+
const currentActiveFilters = _extends$c({}, filterModel, {
|
|
63536
63536
|
// replace items with the active items
|
|
63537
63537
|
items: gridFilterActiveItemsSelector(apiRef)
|
|
63538
63538
|
});
|
|
@@ -63556,8 +63556,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63556
63556
|
if (!props.pagination) {
|
|
63557
63557
|
return;
|
|
63558
63558
|
}
|
|
63559
|
-
apiRef.current.setState((state) => _extends$
|
|
63560
|
-
pagination: _extends$
|
|
63559
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63560
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63561
63561
|
paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)
|
|
63562
63562
|
})
|
|
63563
63563
|
}));
|
|
@@ -63568,8 +63568,8 @@ const useGridPaginationModel = (apiRef, props) => {
|
|
|
63568
63568
|
if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled2) {
|
|
63569
63569
|
return state;
|
|
63570
63570
|
}
|
|
63571
|
-
return _extends$
|
|
63572
|
-
pagination: _extends$
|
|
63571
|
+
return _extends$c({}, state, {
|
|
63572
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63573
63573
|
paginationMode: props.paginationMode,
|
|
63574
63574
|
enabled: props.pagination === true
|
|
63575
63575
|
})
|
|
@@ -63637,7 +63637,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
63637
63637
|
apiRef.current.setRows(newRows);
|
|
63638
63638
|
}, [apiRef]);
|
|
63639
63639
|
const handlePrintWindowLoad = React.useCallback((printWindow, options) => {
|
|
63640
|
-
const normalizeOptions2 = _extends$
|
|
63640
|
+
const normalizeOptions2 = _extends$c({
|
|
63641
63641
|
copyStyles: true,
|
|
63642
63642
|
hideToolbar: false,
|
|
63643
63643
|
hideFooter: false,
|
|
@@ -63733,7 +63733,7 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
63733
63733
|
if (!previousGridState.current?.columns?.columnVisibilityModel) {
|
|
63734
63734
|
apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);
|
|
63735
63735
|
}
|
|
63736
|
-
apiRef.current.setState((state) => _extends$
|
|
63736
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63737
63737
|
virtualization: previousVirtualizationState.current
|
|
63738
63738
|
}));
|
|
63739
63739
|
apiRef.current.setRows(previousRows.current);
|
|
@@ -63755,8 +63755,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
63755
63755
|
page: 0,
|
|
63756
63756
|
pageSize: visibleRowCount
|
|
63757
63757
|
};
|
|
63758
|
-
apiRef.current.setState((state) => _extends$
|
|
63759
|
-
pagination: _extends$
|
|
63758
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63759
|
+
pagination: _extends$c({}, state.pagination, {
|
|
63760
63760
|
paginationModel: getDerivedPaginationModel(
|
|
63761
63761
|
state.pagination,
|
|
63762
63762
|
// Using signature `DataGridPro` to allow more than 100 rows in the print export
|
|
@@ -63767,8 +63767,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
63767
63767
|
}));
|
|
63768
63768
|
}
|
|
63769
63769
|
previousVirtualizationState.current = apiRef.current.state.virtualization;
|
|
63770
|
-
apiRef.current.setState((state) => _extends$
|
|
63771
|
-
virtualization: _extends$
|
|
63770
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
63771
|
+
virtualization: _extends$c({}, state.virtualization, {
|
|
63772
63772
|
enabled: false,
|
|
63773
63773
|
enabledForColumns: false
|
|
63774
63774
|
})
|
|
@@ -63810,8 +63810,8 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
63810
63810
|
};
|
|
63811
63811
|
const filterStateInitializer = (state, props, apiRef) => {
|
|
63812
63812
|
const filterModel = props.filterModel ?? props.initialState?.filter?.filterModel ?? getDefaultGridFilterModel();
|
|
63813
|
-
return _extends$
|
|
63814
|
-
filter: _extends$
|
|
63813
|
+
return _extends$c({}, state, {
|
|
63814
|
+
filter: _extends$c({
|
|
63815
63815
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)
|
|
63816
63816
|
}, defaultGridFilterLookup),
|
|
63817
63817
|
visibleRowsLookup: {}
|
|
@@ -63842,11 +63842,11 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63842
63842
|
apiRef.current.setState((state) => {
|
|
63843
63843
|
const filterModel = gridFilterModelSelector(apiRef);
|
|
63844
63844
|
const filterState = apiRef.current.getFilterState(filterModel);
|
|
63845
|
-
const newState = _extends$
|
|
63846
|
-
filter: _extends$
|
|
63845
|
+
const newState = _extends$c({}, state, {
|
|
63846
|
+
filter: _extends$c({}, state.filter, filterState)
|
|
63847
63847
|
});
|
|
63848
63848
|
const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
63849
|
-
return _extends$
|
|
63849
|
+
return _extends$c({}, newState, {
|
|
63850
63850
|
visibleRowsLookup: visibleRowsLookupState
|
|
63851
63851
|
});
|
|
63852
63852
|
});
|
|
@@ -63867,7 +63867,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63867
63867
|
} else {
|
|
63868
63868
|
items[itemIndex] = item;
|
|
63869
63869
|
}
|
|
63870
|
-
apiRef.current.setFilterModel(_extends$
|
|
63870
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63871
63871
|
items
|
|
63872
63872
|
}), "upsertFilterItem");
|
|
63873
63873
|
}, [apiRef]);
|
|
@@ -63882,7 +63882,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63882
63882
|
existingItems[itemIndex] = item;
|
|
63883
63883
|
}
|
|
63884
63884
|
});
|
|
63885
|
-
apiRef.current.setFilterModel(_extends$
|
|
63885
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63886
63886
|
items: existingItems
|
|
63887
63887
|
}), "upsertFilterItems");
|
|
63888
63888
|
}, [apiRef]);
|
|
@@ -63892,7 +63892,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63892
63892
|
if (items.length === filterModel.items.length) {
|
|
63893
63893
|
return;
|
|
63894
63894
|
}
|
|
63895
|
-
apiRef.current.setFilterModel(_extends$
|
|
63895
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63896
63896
|
items
|
|
63897
63897
|
}), "deleteFilterItem");
|
|
63898
63898
|
}, [apiRef]);
|
|
@@ -63931,7 +63931,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63931
63931
|
operator: targetColumn.filterOperators[0].value
|
|
63932
63932
|
}, apiRef)];
|
|
63933
63933
|
}
|
|
63934
|
-
apiRef.current.setFilterModel(_extends$
|
|
63934
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63935
63935
|
items: newFilterItems
|
|
63936
63936
|
}));
|
|
63937
63937
|
}
|
|
@@ -63946,7 +63946,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63946
63946
|
if (filterModel.logicOperator === logicOperator) {
|
|
63947
63947
|
return;
|
|
63948
63948
|
}
|
|
63949
|
-
apiRef.current.setFilterModel(_extends$
|
|
63949
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63950
63950
|
logicOperator
|
|
63951
63951
|
}), "changeLogicOperator");
|
|
63952
63952
|
}, [apiRef]);
|
|
@@ -63955,7 +63955,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63955
63955
|
if (isDeepEqual(filterModel.quickFilterValues, values3)) {
|
|
63956
63956
|
return;
|
|
63957
63957
|
}
|
|
63958
|
-
apiRef.current.setFilterModel(_extends$
|
|
63958
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
63959
63959
|
quickFilterValues: [...values3]
|
|
63960
63960
|
}));
|
|
63961
63961
|
}, [apiRef]);
|
|
@@ -63974,7 +63974,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
63974
63974
|
isRowMatchingFilters,
|
|
63975
63975
|
filterModel: filterModel ?? getDefaultGridFilterModel()
|
|
63976
63976
|
});
|
|
63977
|
-
return _extends$
|
|
63977
|
+
return _extends$c({}, filterResult, {
|
|
63978
63978
|
filterModel
|
|
63979
63979
|
});
|
|
63980
63980
|
}, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);
|
|
@@ -64007,7 +64007,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64007
64007
|
if (!shouldExportFilterModel) {
|
|
64008
64008
|
return prevState;
|
|
64009
64009
|
}
|
|
64010
|
-
return _extends$
|
|
64010
|
+
return _extends$c({}, prevState, {
|
|
64011
64011
|
filter: {
|
|
64012
64012
|
filterModel: filterModelToExport
|
|
64013
64013
|
}
|
|
@@ -64019,14 +64019,14 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64019
64019
|
return params2;
|
|
64020
64020
|
}
|
|
64021
64021
|
apiRef.current.updateControlState("filter", mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), "restoreState");
|
|
64022
|
-
return _extends$
|
|
64022
|
+
return _extends$c({}, params2, {
|
|
64023
64023
|
callbacks: [...params2.callbacks, apiRef.current.unstable_applyFilters]
|
|
64024
64024
|
});
|
|
64025
64025
|
}, [apiRef, props.disableMultipleColumnsFiltering]);
|
|
64026
64026
|
const preferencePanelPreProcessing = React.useCallback((initialValue, value2) => {
|
|
64027
64027
|
if (value2 === GridPreferencePanelsValue.filters) {
|
|
64028
64028
|
const FilterPanel = props.slots.filterPanel;
|
|
64029
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$
|
|
64029
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FilterPanel, _extends$c({}, props.slotProps?.filterPanel));
|
|
64030
64030
|
}
|
|
64031
64031
|
return initialValue;
|
|
64032
64032
|
}, [props.slots.filterPanel, props.slotProps?.filterPanel]);
|
|
@@ -64081,7 +64081,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64081
64081
|
const columnsLookup = gridColumnLookupSelector(apiRef);
|
|
64082
64082
|
const newFilterItems = filterModel.items.filter((item) => item.field && columnsLookup[item.field]);
|
|
64083
64083
|
if (newFilterItems.length < filterModel.items.length) {
|
|
64084
|
-
apiRef.current.setFilterModel(_extends$
|
|
64084
|
+
apiRef.current.setFilterModel(_extends$c({}, filterModel, {
|
|
64085
64085
|
items: newFilterItems
|
|
64086
64086
|
}));
|
|
64087
64087
|
}
|
|
@@ -64093,7 +64093,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64093
64093
|
}, [apiRef]);
|
|
64094
64094
|
const updateVisibleRowsLookupState = React.useCallback(() => {
|
|
64095
64095
|
apiRef.current.setState((state) => {
|
|
64096
|
-
return _extends$
|
|
64096
|
+
return _extends$c({}, state, {
|
|
64097
64097
|
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
64098
64098
|
});
|
|
64099
64099
|
});
|
|
@@ -64117,7 +64117,7 @@ const useGridFilter = (apiRef, props) => {
|
|
|
64117
64117
|
}
|
|
64118
64118
|
}, [apiRef, logger2, props.filterModel]);
|
|
64119
64119
|
};
|
|
64120
|
-
const focusStateInitializer = (state) => _extends$
|
|
64120
|
+
const focusStateInitializer = (state) => _extends$c({}, state, {
|
|
64121
64121
|
focus: {
|
|
64122
64122
|
cell: null,
|
|
64123
64123
|
columnHeader: null,
|
|
@@ -64149,7 +64149,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64149
64149
|
}
|
|
64150
64150
|
apiRef.current.setState((state) => {
|
|
64151
64151
|
logger2.debug(`Focusing on cell with id=${id2} and field=${field2}`);
|
|
64152
|
-
return _extends$
|
|
64152
|
+
return _extends$c({}, state, {
|
|
64153
64153
|
tabIndex: {
|
|
64154
64154
|
cell: {
|
|
64155
64155
|
id: id2,
|
|
@@ -64183,7 +64183,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64183
64183
|
publishCellFocusOut(cell2, event2);
|
|
64184
64184
|
apiRef.current.setState((state) => {
|
|
64185
64185
|
logger2.debug(`Focusing on column header with colIndex=${field2}`);
|
|
64186
|
-
return _extends$
|
|
64186
|
+
return _extends$c({}, state, {
|
|
64187
64187
|
tabIndex: {
|
|
64188
64188
|
columnHeader: {
|
|
64189
64189
|
field: field2
|
|
@@ -64208,7 +64208,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64208
64208
|
publishCellFocusOut(cell2, event2);
|
|
64209
64209
|
apiRef.current.setState((state) => {
|
|
64210
64210
|
logger2.debug(`Focusing on column header filter with colIndex=${field2}`);
|
|
64211
|
-
return _extends$
|
|
64211
|
+
return _extends$c({}, state, {
|
|
64212
64212
|
tabIndex: {
|
|
64213
64213
|
columnHeader: null,
|
|
64214
64214
|
columnHeaderFilter: {
|
|
@@ -64234,7 +64234,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64234
64234
|
apiRef.current.publishEvent("cellFocusOut", apiRef.current.getCellParams(cell2.id, cell2.field), event2);
|
|
64235
64235
|
}
|
|
64236
64236
|
apiRef.current.setState((state) => {
|
|
64237
|
-
return _extends$
|
|
64237
|
+
return _extends$c({}, state, {
|
|
64238
64238
|
tabIndex: {
|
|
64239
64239
|
columnGroupHeader: {
|
|
64240
64240
|
field: field2,
|
|
@@ -64340,7 +64340,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64340
64340
|
return;
|
|
64341
64341
|
}
|
|
64342
64342
|
logger2.debug(`Clearing focus`);
|
|
64343
|
-
apiRef.current.setState((state) => _extends$
|
|
64343
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64344
64344
|
focus: {
|
|
64345
64345
|
cell: null,
|
|
64346
64346
|
columnHeader: null,
|
|
@@ -64379,7 +64379,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64379
64379
|
if (cellParams) {
|
|
64380
64380
|
apiRef.current.setCellFocus(cellParams.id, cellParams.field);
|
|
64381
64381
|
} else {
|
|
64382
|
-
apiRef.current.setState((state) => _extends$
|
|
64382
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64383
64383
|
focus: {
|
|
64384
64384
|
cell: null,
|
|
64385
64385
|
columnHeader: null,
|
|
@@ -64414,7 +64414,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64414
64414
|
const nextRow = currentPage.rows[clamp$6(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];
|
|
64415
64415
|
nextRowId = nextRow?.id ?? null;
|
|
64416
64416
|
}
|
|
64417
|
-
apiRef.current.setState((state) => _extends$
|
|
64417
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
64418
64418
|
focus: {
|
|
64419
64419
|
cell: nextRowId === null ? null : {
|
|
64420
64420
|
id: nextRowId,
|
|
@@ -64442,7 +64442,7 @@ const useGridFocus = (apiRef, props) => {
|
|
|
64442
64442
|
}
|
|
64443
64443
|
const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
64444
64444
|
apiRef.current.setState((state) => {
|
|
64445
|
-
return _extends$
|
|
64445
|
+
return _extends$c({}, state, {
|
|
64446
64446
|
tabIndex: {
|
|
64447
64447
|
cell: {
|
|
64448
64448
|
id: currentPage.rows[0].id,
|
|
@@ -64997,8 +64997,8 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
64997
64997
|
return;
|
|
64998
64998
|
}
|
|
64999
64999
|
logger2.debug("Setting 'rowCount' to", newRowCount);
|
|
65000
|
-
apiRef.current.setState((state) => _extends$
|
|
65001
|
-
pagination: _extends$
|
|
65000
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65001
|
+
pagination: _extends$c({}, state.pagination, {
|
|
65002
65002
|
rowCount: newRowCount
|
|
65003
65003
|
})
|
|
65004
65004
|
}));
|
|
@@ -65018,16 +65018,16 @@ const useGridRowCount = (apiRef, props) => {
|
|
|
65018
65018
|
if (!shouldExportRowCount) {
|
|
65019
65019
|
return prevState;
|
|
65020
65020
|
}
|
|
65021
|
-
return _extends$
|
|
65022
|
-
pagination: _extends$
|
|
65021
|
+
return _extends$c({}, prevState, {
|
|
65022
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
65023
65023
|
rowCount: exportedRowCount
|
|
65024
65024
|
})
|
|
65025
65025
|
});
|
|
65026
65026
|
}, [apiRef, props.rowCount, props.initialState?.pagination?.rowCount]);
|
|
65027
65027
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65028
65028
|
const restoredRowCount = context2.stateToRestore.pagination?.rowCount ? context2.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);
|
|
65029
|
-
apiRef.current.setState((state) => _extends$
|
|
65030
|
-
pagination: _extends$
|
|
65029
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65030
|
+
pagination: _extends$c({}, state.pagination, {
|
|
65031
65031
|
rowCount: restoredRowCount
|
|
65032
65032
|
})
|
|
65033
65033
|
}));
|
|
@@ -65076,8 +65076,8 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65076
65076
|
return;
|
|
65077
65077
|
}
|
|
65078
65078
|
logger2.debug("Setting 'paginationMeta' to", newPaginationMeta);
|
|
65079
|
-
apiRef.current.setState((state) => _extends$
|
|
65080
|
-
pagination: _extends$
|
|
65079
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65080
|
+
pagination: _extends$c({}, state.pagination, {
|
|
65081
65081
|
meta: newPaginationMeta
|
|
65082
65082
|
})
|
|
65083
65083
|
}));
|
|
@@ -65097,16 +65097,16 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65097
65097
|
if (!shouldExportRowCount) {
|
|
65098
65098
|
return prevState;
|
|
65099
65099
|
}
|
|
65100
|
-
return _extends$
|
|
65101
|
-
pagination: _extends$
|
|
65100
|
+
return _extends$c({}, prevState, {
|
|
65101
|
+
pagination: _extends$c({}, prevState.pagination, {
|
|
65102
65102
|
meta: exportedPaginationMeta
|
|
65103
65103
|
})
|
|
65104
65104
|
});
|
|
65105
65105
|
}, [apiRef, props.paginationMeta, props.initialState?.pagination?.meta]);
|
|
65106
65106
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65107
65107
|
const restoredPaginationMeta = context2.stateToRestore.pagination?.meta ? context2.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);
|
|
65108
|
-
apiRef.current.setState((state) => _extends$
|
|
65109
|
-
pagination: _extends$
|
|
65108
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65109
|
+
pagination: _extends$c({}, state.pagination, {
|
|
65110
65110
|
meta: restoredPaginationMeta
|
|
65111
65111
|
})
|
|
65112
65112
|
}));
|
|
@@ -65121,12 +65121,12 @@ const useGridPaginationMeta = (apiRef, props) => {
|
|
|
65121
65121
|
}, [apiRef, props.paginationMeta]);
|
|
65122
65122
|
};
|
|
65123
65123
|
const paginationStateInitializer = (state, props) => {
|
|
65124
|
-
const paginationModel = _extends$
|
|
65124
|
+
const paginationModel = _extends$c({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? props.initialState?.pagination?.paginationModel);
|
|
65125
65125
|
throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);
|
|
65126
65126
|
const rowCount = props.rowCount ?? props.initialState?.pagination?.rowCount ?? (props.paginationMode === "client" ? state.rows?.totalRowCount : void 0);
|
|
65127
65127
|
const meta = props.paginationMeta ?? props.initialState?.pagination?.meta ?? {};
|
|
65128
|
-
return _extends$
|
|
65129
|
-
pagination: _extends$
|
|
65128
|
+
return _extends$c({}, state, {
|
|
65129
|
+
pagination: _extends$c({}, state.pagination, {
|
|
65130
65130
|
paginationModel,
|
|
65131
65131
|
rowCount,
|
|
65132
65132
|
meta,
|
|
@@ -65140,7 +65140,7 @@ const useGridPagination = (apiRef, props) => {
|
|
|
65140
65140
|
useGridPaginationModel(apiRef, props);
|
|
65141
65141
|
useGridRowCount(apiRef, props);
|
|
65142
65142
|
};
|
|
65143
|
-
const preferencePanelStateInitializer = (state, props) => _extends$
|
|
65143
|
+
const preferencePanelStateInitializer = (state, props) => _extends$c({}, state, {
|
|
65144
65144
|
preferencePanel: props.initialState?.preferencePanel ?? {
|
|
65145
65145
|
open: false
|
|
65146
65146
|
}
|
|
@@ -65157,7 +65157,7 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65157
65157
|
apiRef.current.publishEvent("preferencePanelClose", {
|
|
65158
65158
|
openedPanelValue: preferencePanelState.openedPanelValue
|
|
65159
65159
|
});
|
|
65160
|
-
return _extends$
|
|
65160
|
+
return _extends$c({}, state, {
|
|
65161
65161
|
preferencePanel: {
|
|
65162
65162
|
open: false
|
|
65163
65163
|
}
|
|
@@ -65166,8 +65166,8 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65166
65166
|
}, [apiRef, logger2]);
|
|
65167
65167
|
const showPreferences = React.useCallback((newValue, panelId, labelId) => {
|
|
65168
65168
|
logger2.debug("Opening Preferences Panel");
|
|
65169
|
-
apiRef.current.setState((state) => _extends$
|
|
65170
|
-
preferencePanel: _extends$
|
|
65169
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65170
|
+
preferencePanel: _extends$c({}, state.preferencePanel, {
|
|
65171
65171
|
open: true,
|
|
65172
65172
|
openedPanelValue: newValue,
|
|
65173
65173
|
panelId,
|
|
@@ -65193,14 +65193,14 @@ const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
65193
65193
|
if (!shouldExportPreferencePanel) {
|
|
65194
65194
|
return prevState;
|
|
65195
65195
|
}
|
|
65196
|
-
return _extends$
|
|
65196
|
+
return _extends$c({}, prevState, {
|
|
65197
65197
|
preferencePanel: preferencePanelToExport
|
|
65198
65198
|
});
|
|
65199
65199
|
}, [apiRef, props.initialState?.preferencePanel]);
|
|
65200
65200
|
const stateRestorePreProcessing = React.useCallback((params2, context2) => {
|
|
65201
65201
|
const preferencePanel = context2.stateToRestore.preferencePanel;
|
|
65202
65202
|
if (preferencePanel != null) {
|
|
65203
|
-
apiRef.current.setState((state) => _extends$
|
|
65203
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
65204
65204
|
preferencePanel
|
|
65205
65205
|
}));
|
|
65206
65206
|
}
|
|
@@ -65258,7 +65258,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65258
65258
|
if (params2.cellMode === GridCellModes.Edit) {
|
|
65259
65259
|
return;
|
|
65260
65260
|
}
|
|
65261
|
-
const newParams = _extends$
|
|
65261
|
+
const newParams = _extends$c({}, params2, {
|
|
65262
65262
|
reason: GridCellEditStartReasons.cellDoubleClick
|
|
65263
65263
|
});
|
|
65264
65264
|
apiRef.current.publishEvent("cellEditStart", newParams, event2);
|
|
@@ -65270,7 +65270,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65270
65270
|
if (apiRef.current.getCellMode(params2.id, params2.field) === GridCellModes.View) {
|
|
65271
65271
|
return;
|
|
65272
65272
|
}
|
|
65273
|
-
const newParams = _extends$
|
|
65273
|
+
const newParams = _extends$c({}, params2, {
|
|
65274
65274
|
reason: GridCellEditStopReasons.cellFocusOut
|
|
65275
65275
|
});
|
|
65276
65276
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -65290,7 +65290,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65290
65290
|
event2.preventDefault();
|
|
65291
65291
|
}
|
|
65292
65292
|
if (reason) {
|
|
65293
|
-
const newParams = _extends$
|
|
65293
|
+
const newParams = _extends$c({}, params2, {
|
|
65294
65294
|
reason
|
|
65295
65295
|
});
|
|
65296
65296
|
apiRef.current.publishEvent("cellEditStop", newParams, event2);
|
|
@@ -65315,7 +65315,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65315
65315
|
reason = GridCellEditStartReasons.deleteKeyDown;
|
|
65316
65316
|
}
|
|
65317
65317
|
if (reason) {
|
|
65318
|
-
const newParams = _extends$
|
|
65318
|
+
const newParams = _extends$c({}, params2, {
|
|
65319
65319
|
reason,
|
|
65320
65320
|
key: event2.key
|
|
65321
65321
|
});
|
|
@@ -65401,10 +65401,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65401
65401
|
apiRef.current.publishEvent("cellModesModelChange", newModel);
|
|
65402
65402
|
});
|
|
65403
65403
|
const updateFieldInCellModesModel = React.useCallback((id2, field2, newProps) => {
|
|
65404
|
-
const newModel = _extends$
|
|
65404
|
+
const newModel = _extends$c({}, cellModesModelRef.current);
|
|
65405
65405
|
if (newProps !== null) {
|
|
65406
|
-
newModel[id2] = _extends$
|
|
65407
|
-
[field2]: _extends$
|
|
65406
|
+
newModel[id2] = _extends$c({}, newModel[id2], {
|
|
65407
|
+
[field2]: _extends$c({}, newProps)
|
|
65408
65408
|
});
|
|
65409
65409
|
} else {
|
|
65410
65410
|
const _newModel$id = newModel[id2], otherFields = _objectWithoutPropertiesLoose$1(_newModel$id, [field2].map(toPropertyKey$1));
|
|
@@ -65417,10 +65417,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65417
65417
|
}, [updateCellModesModel]);
|
|
65418
65418
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
65419
65419
|
apiRef.current.setState((state) => {
|
|
65420
|
-
const newEditingState = _extends$
|
|
65420
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
65421
65421
|
if (newProps !== null) {
|
|
65422
|
-
newEditingState[id2] = _extends$
|
|
65423
|
-
[field2]: _extends$
|
|
65422
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
65423
|
+
[field2]: _extends$c({}, newProps)
|
|
65424
65424
|
});
|
|
65425
65425
|
} else {
|
|
65426
65426
|
delete newEditingState[id2][field2];
|
|
@@ -65428,7 +65428,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65428
65428
|
delete newEditingState[id2];
|
|
65429
65429
|
}
|
|
65430
65430
|
}
|
|
65431
|
-
return _extends$
|
|
65431
|
+
return _extends$c({}, state, {
|
|
65432
65432
|
editRows: newEditingState
|
|
65433
65433
|
});
|
|
65434
65434
|
});
|
|
@@ -65440,7 +65440,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65440
65440
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$8);
|
|
65441
65441
|
throwIfNotEditable(id2, field2);
|
|
65442
65442
|
throwIfNotInMode(id2, field2, GridCellModes.View);
|
|
65443
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
65443
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
65444
65444
|
mode: GridCellModes.Edit
|
|
65445
65445
|
}, other));
|
|
65446
65446
|
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -65476,7 +65476,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65476
65476
|
}));
|
|
65477
65477
|
if (apiRef.current.getCellMode(id2, field2) === GridCellModes.Edit) {
|
|
65478
65478
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
65479
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
65479
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, newProps, {
|
|
65480
65480
|
value: editingState[id2][field2].value,
|
|
65481
65481
|
isProcessingProps: false
|
|
65482
65482
|
}));
|
|
@@ -65489,7 +65489,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65489
65489
|
field: field2
|
|
65490
65490
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$3);
|
|
65491
65491
|
throwIfNotInMode(id2, field2, GridCellModes.Edit);
|
|
65492
|
-
updateFieldInCellModesModel(id2, field2, _extends$
|
|
65492
|
+
updateFieldInCellModesModel(id2, field2, _extends$c({
|
|
65493
65493
|
mode: GridCellModes.View
|
|
65494
65494
|
}, other));
|
|
65495
65495
|
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
@@ -65571,13 +65571,13 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65571
65571
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
65572
65572
|
}
|
|
65573
65573
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
65574
|
-
let newProps = _extends$
|
|
65574
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
65575
65575
|
value: parsedValue,
|
|
65576
65576
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
65577
65577
|
});
|
|
65578
65578
|
if (column2.preProcessEditCellProps) {
|
|
65579
65579
|
const hasChanged = value2 !== editingState[id2][field2].value;
|
|
65580
|
-
newProps = _extends$
|
|
65580
|
+
newProps = _extends$c({}, newProps, {
|
|
65581
65581
|
isProcessingProps: true
|
|
65582
65582
|
});
|
|
65583
65583
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -65592,7 +65592,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65592
65592
|
return false;
|
|
65593
65593
|
}
|
|
65594
65594
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
65595
|
-
newProps = _extends$
|
|
65595
|
+
newProps = _extends$c({}, newProps, {
|
|
65596
65596
|
isProcessingProps: false
|
|
65597
65597
|
});
|
|
65598
65598
|
newProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -65610,7 +65610,7 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65610
65610
|
const {
|
|
65611
65611
|
value: value2
|
|
65612
65612
|
} = editingState[id2][field2];
|
|
65613
|
-
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$
|
|
65613
|
+
return column2.valueSetter ? column2.valueSetter(value2, row, column2, apiRef) : _extends$c({}, row, {
|
|
65614
65614
|
[field2]: value2
|
|
65615
65615
|
});
|
|
65616
65616
|
}, [apiRef]);
|
|
@@ -65639,12 +65639,12 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
65639
65639
|
const prevMode = copyOfPrevCellModes[id2]?.[field2]?.mode || GridCellModes.View;
|
|
65640
65640
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
65641
65641
|
if (params2.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {
|
|
65642
|
-
updateStateToStartCellEditMode(_extends$
|
|
65642
|
+
updateStateToStartCellEditMode(_extends$c({
|
|
65643
65643
|
id: originalId,
|
|
65644
65644
|
field: field2
|
|
65645
65645
|
}, params2));
|
|
65646
65646
|
} else if (params2.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {
|
|
65647
|
-
updateStateToStopCellEditMode(_extends$
|
|
65647
|
+
updateStateToStopCellEditMode(_extends$c({
|
|
65648
65648
|
id: originalId,
|
|
65649
65649
|
field: field2
|
|
65650
65650
|
}, params2));
|
|
@@ -65695,7 +65695,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65695
65695
|
return;
|
|
65696
65696
|
}
|
|
65697
65697
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
65698
|
-
const newParams = _extends$
|
|
65698
|
+
const newParams = _extends$c({}, rowParams, {
|
|
65699
65699
|
field: params2.field,
|
|
65700
65700
|
reason: GridRowEditStartReasons.cellDoubleClick
|
|
65701
65701
|
});
|
|
@@ -65724,7 +65724,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65724
65724
|
return;
|
|
65725
65725
|
}
|
|
65726
65726
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
65727
|
-
const newParams = _extends$
|
|
65727
|
+
const newParams = _extends$c({}, rowParams, {
|
|
65728
65728
|
field: params2.field,
|
|
65729
65729
|
reason: GridRowEditStopReasons.rowFocusOut
|
|
65730
65730
|
});
|
|
@@ -65773,7 +65773,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65773
65773
|
if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params2.id)) {
|
|
65774
65774
|
return;
|
|
65775
65775
|
}
|
|
65776
|
-
const newParams = _extends$
|
|
65776
|
+
const newParams = _extends$c({}, apiRef.current.getRowParams(params2.id), {
|
|
65777
65777
|
reason,
|
|
65778
65778
|
field: params2.field
|
|
65779
65779
|
});
|
|
@@ -65800,7 +65800,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65800
65800
|
}
|
|
65801
65801
|
if (reason) {
|
|
65802
65802
|
const rowParams = apiRef.current.getRowParams(params2.id);
|
|
65803
|
-
const newParams = _extends$
|
|
65803
|
+
const newParams = _extends$c({}, rowParams, {
|
|
65804
65804
|
field: params2.field,
|
|
65805
65805
|
reason
|
|
65806
65806
|
});
|
|
@@ -65876,9 +65876,9 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65876
65876
|
apiRef.current.publishEvent("rowModesModelChange", newModel);
|
|
65877
65877
|
});
|
|
65878
65878
|
const updateRowInRowModesModel = React.useCallback((id2, newProps) => {
|
|
65879
|
-
const newModel = _extends$
|
|
65879
|
+
const newModel = _extends$c({}, rowModesModelRef.current);
|
|
65880
65880
|
if (newProps !== null) {
|
|
65881
|
-
newModel[id2] = _extends$
|
|
65881
|
+
newModel[id2] = _extends$c({}, newProps);
|
|
65882
65882
|
} else {
|
|
65883
65883
|
delete newModel[id2];
|
|
65884
65884
|
}
|
|
@@ -65886,23 +65886,23 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65886
65886
|
}, [updateRowModesModel]);
|
|
65887
65887
|
const updateOrDeleteRowState = React.useCallback((id2, newProps) => {
|
|
65888
65888
|
apiRef.current.setState((state) => {
|
|
65889
|
-
const newEditingState = _extends$
|
|
65889
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
65890
65890
|
if (newProps !== null) {
|
|
65891
65891
|
newEditingState[id2] = newProps;
|
|
65892
65892
|
} else {
|
|
65893
65893
|
delete newEditingState[id2];
|
|
65894
65894
|
}
|
|
65895
|
-
return _extends$
|
|
65895
|
+
return _extends$c({}, state, {
|
|
65896
65896
|
editRows: newEditingState
|
|
65897
65897
|
});
|
|
65898
65898
|
});
|
|
65899
65899
|
}, [apiRef]);
|
|
65900
65900
|
const updateOrDeleteFieldState = React.useCallback((id2, field2, newProps) => {
|
|
65901
65901
|
apiRef.current.setState((state) => {
|
|
65902
|
-
const newEditingState = _extends$
|
|
65902
|
+
const newEditingState = _extends$c({}, state.editRows);
|
|
65903
65903
|
if (newProps !== null) {
|
|
65904
|
-
newEditingState[id2] = _extends$
|
|
65905
|
-
[field2]: _extends$
|
|
65904
|
+
newEditingState[id2] = _extends$c({}, newEditingState[id2], {
|
|
65905
|
+
[field2]: _extends$c({}, newProps)
|
|
65906
65906
|
});
|
|
65907
65907
|
} else {
|
|
65908
65908
|
delete newEditingState[id2][field2];
|
|
@@ -65910,7 +65910,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65910
65910
|
delete newEditingState[id2];
|
|
65911
65911
|
}
|
|
65912
65912
|
}
|
|
65913
|
-
return _extends$
|
|
65913
|
+
return _extends$c({}, state, {
|
|
65914
65914
|
editRows: newEditingState
|
|
65915
65915
|
});
|
|
65916
65916
|
});
|
|
@@ -65920,7 +65920,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65920
65920
|
id: id2
|
|
65921
65921
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded$7);
|
|
65922
65922
|
throwIfNotInMode(id2, GridRowModes.View);
|
|
65923
|
-
updateRowInRowModesModel(id2, _extends$
|
|
65923
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
65924
65924
|
mode: GridRowModes.Edit
|
|
65925
65925
|
}, other));
|
|
65926
65926
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -65971,7 +65971,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65971
65971
|
})).then((processedProps) => {
|
|
65972
65972
|
if (apiRef.current.getRowMode(id2) === GridRowModes.Edit) {
|
|
65973
65973
|
const editingState = gridEditRowsStateSelector(apiRef);
|
|
65974
|
-
updateOrDeleteFieldState(id2, field2, _extends$
|
|
65974
|
+
updateOrDeleteFieldState(id2, field2, _extends$c({}, processedProps, {
|
|
65975
65975
|
value: editingState[id2][field2].value,
|
|
65976
65976
|
isProcessingProps: false
|
|
65977
65977
|
}));
|
|
@@ -65984,7 +65984,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
65984
65984
|
id: id2
|
|
65985
65985
|
} = params2, other = _objectWithoutPropertiesLoose$1(params2, _excluded2$2);
|
|
65986
65986
|
throwIfNotInMode(id2, GridRowModes.Edit);
|
|
65987
|
-
updateRowInRowModesModel(id2, _extends$
|
|
65987
|
+
updateRowInRowModesModel(id2, _extends$c({
|
|
65988
65988
|
mode: GridRowModes.View
|
|
65989
65989
|
}, other));
|
|
65990
65990
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
@@ -66068,7 +66068,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66068
66068
|
parsedValue = column2.valueParser(value2, row, column2, apiRef);
|
|
66069
66069
|
}
|
|
66070
66070
|
let editingState = gridEditRowsStateSelector(apiRef);
|
|
66071
|
-
let newProps = _extends$
|
|
66071
|
+
let newProps = _extends$c({}, editingState[id2][field2], {
|
|
66072
66072
|
value: parsedValue,
|
|
66073
66073
|
changeReason: debounceMs ? "debouncedSetEditCellValue" : "setEditCellValue"
|
|
66074
66074
|
});
|
|
@@ -66079,7 +66079,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66079
66079
|
const promises = [];
|
|
66080
66080
|
if (column2.preProcessEditCellProps) {
|
|
66081
66081
|
const hasChanged = newProps.value !== editingState[id2][field2].value;
|
|
66082
|
-
newProps = _extends$
|
|
66082
|
+
newProps = _extends$c({}, newProps, {
|
|
66083
66083
|
isProcessingProps: true
|
|
66084
66084
|
});
|
|
66085
66085
|
updateOrDeleteFieldState(id2, field2, newProps);
|
|
@@ -66096,7 +66096,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66096
66096
|
return;
|
|
66097
66097
|
}
|
|
66098
66098
|
editingState = gridEditRowsStateSelector(apiRef);
|
|
66099
|
-
processedProps = _extends$
|
|
66099
|
+
processedProps = _extends$c({}, processedProps, {
|
|
66100
66100
|
isProcessingProps: false
|
|
66101
66101
|
});
|
|
66102
66102
|
processedProps.value = column2.preProcessEditCellProps ? editingState[id2][field2].value : parsedValue;
|
|
@@ -66112,7 +66112,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66112
66112
|
if (!fieldColumn.preProcessEditCellProps) {
|
|
66113
66113
|
return;
|
|
66114
66114
|
}
|
|
66115
|
-
fieldProps = _extends$
|
|
66115
|
+
fieldProps = _extends$c({}, fieldProps, {
|
|
66116
66116
|
isProcessingProps: true
|
|
66117
66117
|
});
|
|
66118
66118
|
updateOrDeleteFieldState(id2, thisField, fieldProps);
|
|
@@ -66129,7 +66129,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66129
66129
|
resolve2(false);
|
|
66130
66130
|
return;
|
|
66131
66131
|
}
|
|
66132
|
-
processedProps = _extends$
|
|
66132
|
+
processedProps = _extends$c({}, processedProps, {
|
|
66133
66133
|
isProcessingProps: false
|
|
66134
66134
|
});
|
|
66135
66135
|
updateOrDeleteFieldState(id2, thisField, processedProps);
|
|
@@ -66152,7 +66152,7 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66152
66152
|
if (!editingState[id2]) {
|
|
66153
66153
|
return apiRef.current.getRow(id2);
|
|
66154
66154
|
}
|
|
66155
|
-
let rowUpdate = _extends$
|
|
66155
|
+
let rowUpdate = _extends$c({}, prevRowValuesLookup.current[id2], row);
|
|
66156
66156
|
Object.entries(editingState[id2]).forEach(([field2, fieldProps]) => {
|
|
66157
66157
|
const column2 = apiRef.current.getColumn(field2);
|
|
66158
66158
|
if (column2?.valueSetter) {
|
|
@@ -66191,18 +66191,18 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
66191
66191
|
const prevMode = copyOfPrevRowModesModel[id2]?.mode || GridRowModes.View;
|
|
66192
66192
|
const originalId = rowsLookup[id2] ? apiRef.current.getRowId(rowsLookup[id2]) : id2;
|
|
66193
66193
|
if (params2.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {
|
|
66194
|
-
updateStateToStartRowEditMode(_extends$
|
|
66194
|
+
updateStateToStartRowEditMode(_extends$c({
|
|
66195
66195
|
id: originalId
|
|
66196
66196
|
}, params2));
|
|
66197
66197
|
} else if (params2.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {
|
|
66198
|
-
updateStateToStopRowEditMode(_extends$
|
|
66198
|
+
updateStateToStopRowEditMode(_extends$c({
|
|
66199
66199
|
id: originalId
|
|
66200
66200
|
}, params2));
|
|
66201
66201
|
}
|
|
66202
66202
|
});
|
|
66203
66203
|
}, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);
|
|
66204
66204
|
};
|
|
66205
|
-
const editingStateInitializer = (state) => _extends$
|
|
66205
|
+
const editingStateInitializer = (state) => _extends$c({}, state, {
|
|
66206
66206
|
editRows: {}
|
|
66207
66207
|
});
|
|
66208
66208
|
const useGridEditing = (apiRef, props) => {
|
|
@@ -66320,7 +66320,7 @@ const rowsStateInitializer = (state, props, apiRef) => {
|
|
|
66320
66320
|
loading: props.loading,
|
|
66321
66321
|
rowCount: props.rowCount
|
|
66322
66322
|
});
|
|
66323
|
-
return _extends$
|
|
66323
|
+
return _extends$c({}, state, {
|
|
66324
66324
|
rows: getRowsStateFromCache({
|
|
66325
66325
|
apiRef,
|
|
66326
66326
|
rowCountProp: props.rowCount,
|
|
@@ -66361,7 +66361,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
66361
66361
|
}) => {
|
|
66362
66362
|
const run2 = () => {
|
|
66363
66363
|
lastUpdateMs.current = Date.now();
|
|
66364
|
-
apiRef.current.setState((state) => _extends$
|
|
66364
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66365
66365
|
rows: getRowsStateFromCache({
|
|
66366
66366
|
apiRef,
|
|
66367
66367
|
rowCountProp: props.rowCount,
|
|
@@ -66434,8 +66434,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
66434
66434
|
return;
|
|
66435
66435
|
}
|
|
66436
66436
|
logger2.debug(`Setting loading to ${loading2}`);
|
|
66437
|
-
apiRef.current.setState((state) => _extends$
|
|
66438
|
-
rows: _extends$
|
|
66437
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66438
|
+
rows: _extends$c({}, state.rows, {
|
|
66439
66439
|
loading: loading2
|
|
66440
66440
|
})
|
|
66441
66441
|
}));
|
|
@@ -66462,13 +66462,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
66462
66462
|
if (currentNode.type !== "group") {
|
|
66463
66463
|
throw new Error("MUI X: Only group nodes can be expanded or collapsed.");
|
|
66464
66464
|
}
|
|
66465
|
-
const newNode = _extends$
|
|
66465
|
+
const newNode = _extends$c({}, currentNode, {
|
|
66466
66466
|
childrenExpanded: isExpanded
|
|
66467
66467
|
});
|
|
66468
66468
|
apiRef.current.setState((state) => {
|
|
66469
|
-
return _extends$
|
|
66470
|
-
rows: _extends$
|
|
66471
|
-
tree: _extends$
|
|
66469
|
+
return _extends$c({}, state, {
|
|
66470
|
+
rows: _extends$c({}, state.rows, {
|
|
66471
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
66472
66472
|
[id2]: newNode
|
|
66473
66473
|
})
|
|
66474
66474
|
})
|
|
@@ -66529,10 +66529,10 @@ const useGridRows = (apiRef, props) => {
|
|
|
66529
66529
|
logger2.debug(`Moving row ${rowId} to index ${targetIndex}`);
|
|
66530
66530
|
const updatedRows = [...allRows];
|
|
66531
66531
|
updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
|
|
66532
|
-
return _extends$
|
|
66533
|
-
rows: _extends$
|
|
66534
|
-
tree: _extends$
|
|
66535
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
66532
|
+
return _extends$c({}, state, {
|
|
66533
|
+
rows: _extends$c({}, state.rows, {
|
|
66534
|
+
tree: _extends$c({}, state.rows.tree, {
|
|
66535
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, group2, {
|
|
66536
66536
|
children: updatedRows
|
|
66537
66537
|
})
|
|
66538
66538
|
})
|
|
@@ -66552,8 +66552,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
66552
66552
|
if (treeDepth > 1) {
|
|
66553
66553
|
throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");
|
|
66554
66554
|
}
|
|
66555
|
-
const tree2 = _extends$
|
|
66556
|
-
const dataRowIdToModelLookup = _extends$
|
|
66555
|
+
const tree2 = _extends$c({}, gridRowTreeSelector(apiRef));
|
|
66556
|
+
const dataRowIdToModelLookup = _extends$c({}, gridRowsLookupSelector(apiRef));
|
|
66557
66557
|
const rootGroup = tree2[GRID_ROOT_GROUP_ID];
|
|
66558
66558
|
const rootGroupChildren = [...rootGroup.children];
|
|
66559
66559
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -66576,13 +66576,13 @@ const useGridRows = (apiRef, props) => {
|
|
|
66576
66576
|
tree2[rowId] = rowTreeNodeConfig;
|
|
66577
66577
|
seenIds.add(rowId);
|
|
66578
66578
|
}
|
|
66579
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
66579
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
66580
66580
|
children: rootGroupChildren
|
|
66581
66581
|
});
|
|
66582
66582
|
const dataRowIds = rootGroupChildren.filter((childId) => tree2[childId]?.type === "leaf");
|
|
66583
66583
|
apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
|
|
66584
|
-
apiRef.current.setState((state) => _extends$
|
|
66585
|
-
rows: _extends$
|
|
66584
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66585
|
+
rows: _extends$c({}, state.rows, {
|
|
66586
66586
|
loading: props.loading,
|
|
66587
66587
|
totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
|
|
66588
66588
|
dataRowIdToModelLookup,
|
|
@@ -66617,7 +66617,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
66617
66617
|
logger2.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
66618
66618
|
let cache2;
|
|
66619
66619
|
if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {
|
|
66620
|
-
cache2 = _extends$
|
|
66620
|
+
cache2 = _extends$c({}, apiRef.current.caches.rows, {
|
|
66621
66621
|
updates: {
|
|
66622
66622
|
type: "full",
|
|
66623
66623
|
rows: gridDataRowIdsSelector(apiRef)
|
|
@@ -66661,8 +66661,8 @@ const useGridRows = (apiRef, props) => {
|
|
|
66661
66661
|
dataRowIds: gridDataRowIdsSelector(apiRef),
|
|
66662
66662
|
dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)
|
|
66663
66663
|
});
|
|
66664
|
-
return _extends$
|
|
66665
|
-
rows: _extends$
|
|
66664
|
+
return _extends$c({}, state, {
|
|
66665
|
+
rows: _extends$c({}, state.rows, response, {
|
|
66666
66666
|
totalTopLevelRowCount: getTopLevelRowCount({
|
|
66667
66667
|
tree: response.tree,
|
|
66668
66668
|
rowCountProp: props.rowCount
|
|
@@ -66693,16 +66693,16 @@ const useGridRows = (apiRef, props) => {
|
|
|
66693
66693
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
66694
66694
|
if (areNewRowsAlreadyInState) {
|
|
66695
66695
|
if (!isNewLoadingAlreadyInState) {
|
|
66696
|
-
apiRef.current.setState((state) => _extends$
|
|
66697
|
-
rows: _extends$
|
|
66696
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66697
|
+
rows: _extends$c({}, state.rows, {
|
|
66698
66698
|
loading: props.loading
|
|
66699
66699
|
})
|
|
66700
66700
|
}));
|
|
66701
66701
|
apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;
|
|
66702
66702
|
}
|
|
66703
66703
|
if (!isNewRowCountAlreadyInState) {
|
|
66704
|
-
apiRef.current.setState((state) => _extends$
|
|
66705
|
-
rows: _extends$
|
|
66704
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66705
|
+
rows: _extends$c({}, state.rows, {
|
|
66706
66706
|
totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),
|
|
66707
66707
|
totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)
|
|
66708
66708
|
})
|
|
@@ -66727,7 +66727,7 @@ const useGridRows = (apiRef, props) => {
|
|
|
66727
66727
|
};
|
|
66728
66728
|
const createFlatRowTree = (rows) => {
|
|
66729
66729
|
const tree2 = {
|
|
66730
|
-
[GRID_ROOT_GROUP_ID]: _extends$
|
|
66730
|
+
[GRID_ROOT_GROUP_ID]: _extends$c({}, buildRootGroup(), {
|
|
66731
66731
|
children: rows
|
|
66732
66732
|
})
|
|
66733
66733
|
};
|
|
@@ -66754,7 +66754,7 @@ const updateFlatRowTree = ({
|
|
|
66754
66754
|
previousTree,
|
|
66755
66755
|
actions
|
|
66756
66756
|
}) => {
|
|
66757
|
-
const tree2 = _extends$
|
|
66757
|
+
const tree2 = _extends$c({}, previousTree);
|
|
66758
66758
|
const idsToRemoveFromRootGroup = {};
|
|
66759
66759
|
for (let i2 = 0; i2 < actions.remove.length; i2 += 1) {
|
|
66760
66760
|
const idToDelete = actions.remove[i2];
|
|
@@ -66776,7 +66776,7 @@ const updateFlatRowTree = ({
|
|
|
66776
66776
|
if (Object.values(idsToRemoveFromRootGroup).length) {
|
|
66777
66777
|
rootGroupChildren = rootGroupChildren.filter((id2) => !idsToRemoveFromRootGroup[id2]);
|
|
66778
66778
|
}
|
|
66779
|
-
tree2[GRID_ROOT_GROUP_ID] = _extends$
|
|
66779
|
+
tree2[GRID_ROOT_GROUP_ID] = _extends$c({}, rootGroup, {
|
|
66780
66780
|
children: rootGroupChildren
|
|
66781
66781
|
});
|
|
66782
66782
|
return {
|
|
@@ -66926,7 +66926,7 @@ const emptyModel = {
|
|
|
66926
66926
|
type: "include",
|
|
66927
66927
|
ids: /* @__PURE__ */ new Set()
|
|
66928
66928
|
};
|
|
66929
|
-
const rowSelectionStateInitializer = (state, props) => _extends$
|
|
66929
|
+
const rowSelectionStateInitializer = (state, props) => _extends$c({}, state, {
|
|
66930
66930
|
rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel
|
|
66931
66931
|
});
|
|
66932
66932
|
const useGridRowSelection = (apiRef, props) => {
|
|
@@ -66990,7 +66990,7 @@ const useGridRowSelection = (apiRef, props) => {
|
|
|
66990
66990
|
const currentModel = gridRowSelectionStateSelector(apiRef);
|
|
66991
66991
|
if (currentModel !== model) {
|
|
66992
66992
|
logger2.debug(`Setting selection model`);
|
|
66993
|
-
apiRef.current.setState((state) => _extends$
|
|
66993
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
66994
66994
|
rowSelection: props.rowSelection ? model : emptyModel
|
|
66995
66995
|
}));
|
|
66996
66996
|
}
|
|
@@ -67453,7 +67453,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67453
67453
|
};
|
|
67454
67454
|
const classes2 = useUtilityClasses$7(ownerState);
|
|
67455
67455
|
const updateSelectionColumn = React.useCallback((columnsState) => {
|
|
67456
|
-
const selectionColumn = _extends$
|
|
67456
|
+
const selectionColumn = _extends$c({}, GRID_CHECKBOX_SELECTION_COL_DEF, {
|
|
67457
67457
|
cellClassName: classes2.cellCheckbox,
|
|
67458
67458
|
headerClassName: classes2.columnHeaderCheckbox,
|
|
67459
67459
|
headerName: apiRef.current.getLocaleText("checkboxSelectionHeaderName")
|
|
@@ -67467,7 +67467,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67467
67467
|
delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
|
|
67468
67468
|
columnsState.orderedFields = columnsState.orderedFields.filter((field2) => field2 !== GRID_CHECKBOX_SELECTION_FIELD);
|
|
67469
67469
|
} else if (shouldHaveSelectionColumn && haveSelectionColumn) {
|
|
67470
|
-
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$
|
|
67470
|
+
columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends$c({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
|
|
67471
67471
|
}
|
|
67472
67472
|
return columnsState;
|
|
67473
67473
|
}, [apiRef, classes2, props.checkboxSelection]);
|
|
@@ -67475,7 +67475,7 @@ const useGridRowSelectionPreProcessors = (apiRef, props) => {
|
|
|
67475
67475
|
};
|
|
67476
67476
|
const sortingStateInitializer = (state, props) => {
|
|
67477
67477
|
const sortModel = props.sortModel ?? props.initialState?.sorting?.sortModel ?? [];
|
|
67478
|
-
return _extends$
|
|
67478
|
+
return _extends$c({}, state, {
|
|
67479
67479
|
sorting: {
|
|
67480
67480
|
sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),
|
|
67481
67481
|
sortedRows: []
|
|
@@ -67511,7 +67511,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67511
67511
|
const existing = sortModel.find((c2) => c2.field === col.field);
|
|
67512
67512
|
if (existing) {
|
|
67513
67513
|
const nextSort = directionOverride === void 0 ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;
|
|
67514
|
-
return nextSort === void 0 ? void 0 : _extends$
|
|
67514
|
+
return nextSort === void 0 ? void 0 : _extends$c({}, existing, {
|
|
67515
67515
|
sort: nextSort
|
|
67516
67516
|
});
|
|
67517
67517
|
}
|
|
@@ -67534,8 +67534,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67534
67534
|
apiRef.current.setState((state) => {
|
|
67535
67535
|
if (props.sortingMode === "server") {
|
|
67536
67536
|
logger2.debug("Skipping sorting rows as sortingMode = server");
|
|
67537
|
-
return _extends$
|
|
67538
|
-
sorting: _extends$
|
|
67537
|
+
return _extends$c({}, state, {
|
|
67538
|
+
sorting: _extends$c({}, state.sorting, {
|
|
67539
67539
|
sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)
|
|
67540
67540
|
})
|
|
67541
67541
|
});
|
|
@@ -67545,8 +67545,8 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67545
67545
|
const sortedRows = apiRef.current.applyStrategyProcessor("sorting", {
|
|
67546
67546
|
sortRowList
|
|
67547
67547
|
});
|
|
67548
|
-
return _extends$
|
|
67549
|
-
sorting: _extends$
|
|
67548
|
+
return _extends$c({}, state, {
|
|
67549
|
+
sorting: _extends$c({}, state.sorting, {
|
|
67550
67550
|
sortedRows
|
|
67551
67551
|
})
|
|
67552
67552
|
});
|
|
@@ -67601,7 +67601,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67601
67601
|
if (!shouldExportSortModel) {
|
|
67602
67602
|
return prevState;
|
|
67603
67603
|
}
|
|
67604
|
-
return _extends$
|
|
67604
|
+
return _extends$c({}, prevState, {
|
|
67605
67605
|
sorting: {
|
|
67606
67606
|
sortModel: sortModelToExport
|
|
67607
67607
|
}
|
|
@@ -67613,7 +67613,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
67613
67613
|
return params2;
|
|
67614
67614
|
}
|
|
67615
67615
|
apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));
|
|
67616
|
-
return _extends$
|
|
67616
|
+
return _extends$c({}, params2, {
|
|
67617
67617
|
callbacks: [...params2.callbacks, apiRef.current.applySorting]
|
|
67618
67618
|
});
|
|
67619
67619
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
@@ -67909,8 +67909,8 @@ const EMPTY_DIMENSIONS = {
|
|
|
67909
67909
|
const dimensionsStateInitializer = (state, props, apiRef) => {
|
|
67910
67910
|
const dimensions = EMPTY_DIMENSIONS;
|
|
67911
67911
|
const density2 = gridDensityFactorSelector(apiRef);
|
|
67912
|
-
return _extends$
|
|
67913
|
-
dimensions: _extends$
|
|
67912
|
+
return _extends$c({}, state, {
|
|
67913
|
+
dimensions: _extends$c({}, dimensions, getStaticDimensions(props, apiRef, density2, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))
|
|
67914
67914
|
});
|
|
67915
67915
|
};
|
|
67916
67916
|
const columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {
|
|
@@ -67939,7 +67939,7 @@ function useGridDimensions(apiRef, props) {
|
|
|
67939
67939
|
} = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);
|
|
67940
67940
|
const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);
|
|
67941
67941
|
const setDimensions = React.useCallback((dimensions) => {
|
|
67942
|
-
apiRef.current.setState((state) => _extends$
|
|
67942
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
67943
67943
|
dimensions
|
|
67944
67944
|
}));
|
|
67945
67945
|
if (apiRef.current.rootElementRef.current) {
|
|
@@ -68163,7 +68163,7 @@ const rowsMetaStateInitializer = (state, props, apiRef) => {
|
|
|
68163
68163
|
const dataRowCount = gridRowCountSelector(apiRef);
|
|
68164
68164
|
const pagination = gridPaginationSelector(apiRef);
|
|
68165
68165
|
const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);
|
|
68166
|
-
return _extends$
|
|
68166
|
+
return _extends$c({}, state, {
|
|
68167
68167
|
rowsMeta: {
|
|
68168
68168
|
currentPageTotalHeight: rowCount * baseRowHeight,
|
|
68169
68169
|
positions: Array.from({
|
|
@@ -68210,12 +68210,12 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68210
68210
|
entry2.content = baseRowHeight;
|
|
68211
68211
|
entry2.needsFirstMeasurement = false;
|
|
68212
68212
|
} else {
|
|
68213
|
-
const rowHeightFromUser = getRowHeightProp(_extends$
|
|
68213
|
+
const rowHeightFromUser = getRowHeightProp(_extends$c({}, row, {
|
|
68214
68214
|
densityFactor
|
|
68215
68215
|
}));
|
|
68216
68216
|
if (rowHeightFromUser === "auto") {
|
|
68217
68217
|
if (entry2.needsFirstMeasurement) {
|
|
68218
|
-
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$
|
|
68218
|
+
const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends$c({}, row, {
|
|
68219
68219
|
densityFactor
|
|
68220
68220
|
})) : baseRowHeight;
|
|
68221
68221
|
entry2.content = estimatedRowHeight ?? baseRowHeight;
|
|
@@ -68230,7 +68230,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68230
68230
|
}
|
|
68231
68231
|
if (getRowSpacing) {
|
|
68232
68232
|
const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
68233
|
-
const spacing2 = getRowSpacing(_extends$
|
|
68233
|
+
const spacing2 = getRowSpacing(_extends$c({}, row, {
|
|
68234
68234
|
isFirstVisible: indexRelativeToCurrentPage === 0,
|
|
68235
68235
|
isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
|
|
68236
68236
|
indexRelativeToCurrentPage
|
|
@@ -68272,7 +68272,7 @@ const useGridRowsMeta = (apiRef, props) => {
|
|
|
68272
68272
|
pinnedBottomRowsTotalHeight
|
|
68273
68273
|
};
|
|
68274
68274
|
apiRef.current.setState((state) => {
|
|
68275
|
-
return _extends$
|
|
68275
|
+
return _extends$c({}, state, {
|
|
68276
68276
|
rowsMeta
|
|
68277
68277
|
});
|
|
68278
68278
|
});
|
|
@@ -68551,18 +68551,18 @@ const createGroupLookup = (columnGroupingModel) => {
|
|
|
68551
68551
|
console.warn(`MUI X: group groupId=${groupId} has no children.`);
|
|
68552
68552
|
}
|
|
68553
68553
|
}
|
|
68554
|
-
const groupParam = _extends$
|
|
68554
|
+
const groupParam = _extends$c({}, other, {
|
|
68555
68555
|
groupId
|
|
68556
68556
|
});
|
|
68557
68557
|
const subTreeLookup = createGroupLookup(children3);
|
|
68558
68558
|
if (subTreeLookup[groupId] !== void 0 || groupLookup[groupId] !== void 0) {
|
|
68559
68559
|
throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);
|
|
68560
68560
|
}
|
|
68561
|
-
groupLookup = _extends$
|
|
68561
|
+
groupLookup = _extends$c({}, groupLookup, subTreeLookup, {
|
|
68562
68562
|
[groupId]: groupParam
|
|
68563
68563
|
});
|
|
68564
68564
|
});
|
|
68565
|
-
return _extends$
|
|
68565
|
+
return _extends$c({}, groupLookup);
|
|
68566
68566
|
};
|
|
68567
68567
|
const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
68568
68568
|
if (!props.columnGroupingModel) {
|
|
@@ -68574,7 +68574,7 @@ const columnGroupsStateInitializer = (state, props, apiRef) => {
|
|
|
68574
68574
|
const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel ?? []);
|
|
68575
68575
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, apiRef.current.state.pinnedColumns ?? {});
|
|
68576
68576
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
68577
|
-
return _extends$
|
|
68577
|
+
return _extends$c({}, state, {
|
|
68578
68578
|
columnGrouping: {
|
|
68579
68579
|
lookup: groupLookup,
|
|
68580
68580
|
unwrappedGroupingModel,
|
|
@@ -68603,8 +68603,8 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
68603
68603
|
const orderedFields = state.columns?.orderedFields ?? [];
|
|
68604
68604
|
const pinnedColumns = state.pinnedColumns ?? {};
|
|
68605
68605
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);
|
|
68606
|
-
return _extends$
|
|
68607
|
-
columnGrouping: _extends$
|
|
68606
|
+
return _extends$c({}, state, {
|
|
68607
|
+
columnGrouping: _extends$c({}, state.columnGrouping, {
|
|
68608
68608
|
headerStructure: columnGroupsHeaderStructure
|
|
68609
68609
|
})
|
|
68610
68610
|
});
|
|
@@ -68619,7 +68619,7 @@ const useGridColumnGrouping = (apiRef, props) => {
|
|
|
68619
68619
|
const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, pinnedColumns);
|
|
68620
68620
|
const maxDepth2 = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map((field2) => unwrappedGroupingModel[field2]?.length ?? 0));
|
|
68621
68621
|
apiRef.current.setState((state) => {
|
|
68622
|
-
return _extends$
|
|
68622
|
+
return _extends$c({}, state, {
|
|
68623
68623
|
columnGrouping: {
|
|
68624
68624
|
lookup: groupLookup,
|
|
68625
68625
|
unwrappedGroupingModel,
|
|
@@ -68769,7 +68769,7 @@ function extractColumnWidths(apiRef, options, columns2) {
|
|
|
68769
68769
|
root2.classList.remove(gridClasses.autosizing);
|
|
68770
68770
|
return widthByField;
|
|
68771
68771
|
}
|
|
68772
|
-
const columnResizeStateInitializer = (state) => _extends$
|
|
68772
|
+
const columnResizeStateInitializer = (state) => _extends$c({}, state, {
|
|
68773
68773
|
columnResize: {
|
|
68774
68774
|
resizingColumnField: ""
|
|
68775
68775
|
}
|
|
@@ -68993,15 +68993,15 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
68993
68993
|
const handleResizeStart = React.useCallback(({
|
|
68994
68994
|
field: field2
|
|
68995
68995
|
}) => {
|
|
68996
|
-
apiRef.current.setState((state) => _extends$
|
|
68997
|
-
columnResize: _extends$
|
|
68996
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
68997
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
68998
68998
|
resizingColumnField: field2
|
|
68999
68999
|
})
|
|
69000
69000
|
}));
|
|
69001
69001
|
}, [apiRef]);
|
|
69002
69002
|
const handleResizeStop = React.useCallback(() => {
|
|
69003
|
-
apiRef.current.setState((state) => _extends$
|
|
69004
|
-
columnResize: _extends$
|
|
69003
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
69004
|
+
columnResize: _extends$c({}, state.columnResize, {
|
|
69005
69005
|
resizingColumnField: ""
|
|
69006
69006
|
})
|
|
69007
69007
|
}));
|
|
@@ -69039,7 +69039,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69039
69039
|
if (column2.resizable === false) {
|
|
69040
69040
|
return;
|
|
69041
69041
|
}
|
|
69042
|
-
apiRef.current.autosizeColumns(_extends$
|
|
69042
|
+
apiRef.current.autosizeColumns(_extends$c({}, props.autosizeOptions, {
|
|
69043
69043
|
disableColumnVirtualization: false,
|
|
69044
69044
|
columns: [column2.field]
|
|
69045
69045
|
}));
|
|
@@ -69056,7 +69056,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69056
69056
|
}
|
|
69057
69057
|
isAutosizingRef.current = true;
|
|
69058
69058
|
const state = gridColumnsStateSelector(apiRef);
|
|
69059
|
-
const options = _extends$
|
|
69059
|
+
const options = _extends$c({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {
|
|
69060
69060
|
columns: userOptions?.columns ?? state.orderedFields
|
|
69061
69061
|
});
|
|
69062
69062
|
options.columns = options.columns.filter((c2) => state.columnVisibilityModel[c2] !== false);
|
|
@@ -69067,7 +69067,7 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
69067
69067
|
await columnVirtualizationDisabled();
|
|
69068
69068
|
}
|
|
69069
69069
|
const widthByField = extractColumnWidths(apiRef, options, columns2);
|
|
69070
|
-
const newColumns = columns2.map((column2) => _extends$
|
|
69070
|
+
const newColumns = columns2.map((column2) => _extends$c({}, column2, {
|
|
69071
69071
|
width: widthByField[column2.field],
|
|
69072
69072
|
computedWidth: widthByField[column2.field],
|
|
69073
69073
|
flex: 0
|
|
@@ -69175,9 +69175,9 @@ const EMPTY_RANGE = {
|
|
|
69175
69175
|
const skippedFields = /* @__PURE__ */ new Set([GRID_CHECKBOX_SELECTION_FIELD, "__reorder__", GRID_DETAIL_PANEL_TOGGLE_FIELD]);
|
|
69176
69176
|
const DEFAULT_ROWS_TO_PROCESS = 20;
|
|
69177
69177
|
const computeRowSpanningState = (apiRef, colDefs, visibleRows, range2, rangeToProcess, resetState, processedRange) => {
|
|
69178
|
-
const spannedCells = resetState ? {} : _extends$
|
|
69179
|
-
const hiddenCells = resetState ? {} : _extends$
|
|
69180
|
-
const hiddenCellOriginMap = resetState ? {} : _extends$
|
|
69178
|
+
const spannedCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.spannedCells);
|
|
69179
|
+
const hiddenCells = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCells);
|
|
69180
|
+
const hiddenCellOriginMap = resetState ? {} : _extends$c({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);
|
|
69181
69181
|
if (resetState) {
|
|
69182
69182
|
processedRange = EMPTY_RANGE;
|
|
69183
69183
|
}
|
|
@@ -69289,7 +69289,7 @@ const getInitialRangeToProcess = (props, apiRef) => {
|
|
|
69289
69289
|
};
|
|
69290
69290
|
const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
69291
69291
|
if (!props.rowSpanning) {
|
|
69292
|
-
return _extends$
|
|
69292
|
+
return _extends$c({}, state, {
|
|
69293
69293
|
rowSpanning: EMPTY_STATE
|
|
69294
69294
|
});
|
|
69295
69295
|
}
|
|
@@ -69299,7 +69299,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
69299
69299
|
const columnsLookup = state.columns.lookup;
|
|
69300
69300
|
const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean(state.filter.filterModel.quickFilterValues?.length);
|
|
69301
69301
|
if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {
|
|
69302
|
-
return _extends$
|
|
69302
|
+
return _extends$c({}, state, {
|
|
69303
69303
|
rowSpanning: EMPTY_STATE
|
|
69304
69304
|
});
|
|
69305
69305
|
}
|
|
@@ -69314,7 +69314,7 @@ const rowSpanningStateInitializer = (state, props, apiRef) => {
|
|
|
69314
69314
|
hiddenCells,
|
|
69315
69315
|
hiddenCellOriginMap
|
|
69316
69316
|
} = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);
|
|
69317
|
-
return _extends$
|
|
69317
|
+
return _extends$c({}, state, {
|
|
69318
69318
|
rowSpanning: {
|
|
69319
69319
|
spannedCells,
|
|
69320
69320
|
hiddenCells,
|
|
@@ -69365,7 +69365,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69365
69365
|
return;
|
|
69366
69366
|
}
|
|
69367
69367
|
apiRef.current.setState((state) => {
|
|
69368
|
-
return _extends$
|
|
69368
|
+
return _extends$c({}, state, {
|
|
69369
69369
|
rowSpanning: {
|
|
69370
69370
|
spannedCells,
|
|
69371
69371
|
hiddenCells,
|
|
@@ -69389,7 +69389,7 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69389
69389
|
React.useEffect(() => {
|
|
69390
69390
|
if (!props.rowSpanning) {
|
|
69391
69391
|
if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {
|
|
69392
|
-
apiRef.current.setState((state) => _extends$
|
|
69392
|
+
apiRef.current.setState((state) => _extends$c({}, state, {
|
|
69393
69393
|
rowSpanning: EMPTY_STATE
|
|
69394
69394
|
}));
|
|
69395
69395
|
}
|
|
@@ -69398,8 +69398,8 @@ const useGridRowSpanning = (apiRef, props) => {
|
|
|
69398
69398
|
}
|
|
69399
69399
|
}, [apiRef, resetRowSpanningState, props.rowSpanning]);
|
|
69400
69400
|
};
|
|
69401
|
-
const listViewStateInitializer = (state, props, apiRef) => _extends$
|
|
69402
|
-
listViewColumn: props.listViewColumn ? _extends$
|
|
69401
|
+
const listViewStateInitializer = (state, props, apiRef) => _extends$c({}, state, {
|
|
69402
|
+
listViewColumn: props.listViewColumn ? _extends$c({}, props.listViewColumn, {
|
|
69403
69403
|
computedWidth: getListColumnWidth(apiRef)
|
|
69404
69404
|
}) : void 0
|
|
69405
69405
|
});
|
|
@@ -69409,8 +69409,8 @@ function useGridListView(apiRef, props) {
|
|
|
69409
69409
|
if (!state.listViewColumn) {
|
|
69410
69410
|
return state;
|
|
69411
69411
|
}
|
|
69412
|
-
return _extends$
|
|
69413
|
-
listViewColumn: _extends$
|
|
69412
|
+
return _extends$c({}, state, {
|
|
69413
|
+
listViewColumn: _extends$c({}, state.listViewColumn, {
|
|
69414
69414
|
computedWidth: getListColumnWidth(apiRef)
|
|
69415
69415
|
})
|
|
69416
69416
|
});
|
|
@@ -69429,8 +69429,8 @@ function useGridListView(apiRef, props) {
|
|
|
69429
69429
|
const listColumn = props.listViewColumn;
|
|
69430
69430
|
if (listColumn) {
|
|
69431
69431
|
apiRef.current.setState((state) => {
|
|
69432
|
-
return _extends$
|
|
69433
|
-
listViewColumn: _extends$
|
|
69432
|
+
return _extends$c({}, state, {
|
|
69433
|
+
listViewColumn: _extends$c({}, listColumn, {
|
|
69434
69434
|
computedWidth: getListColumnWidth(apiRef)
|
|
69435
69435
|
})
|
|
69436
69436
|
});
|
|
@@ -69475,7 +69475,7 @@ class CacheChunkManager {
|
|
|
69475
69475
|
const chunkedKeys = [];
|
|
69476
69476
|
for (let i2 = key2.start; i2 < key2.end; i2 += this.chunkSize) {
|
|
69477
69477
|
const end2 = Math.min(i2 + this.chunkSize - 1, key2.end);
|
|
69478
|
-
chunkedKeys.push(_extends$
|
|
69478
|
+
chunkedKeys.push(_extends$c({}, key2, {
|
|
69479
69479
|
start: i2,
|
|
69480
69480
|
end: end2
|
|
69481
69481
|
}));
|
|
@@ -69487,8 +69487,8 @@ class CacheChunkManager {
|
|
|
69487
69487
|
const responses = /* @__PURE__ */ new Map();
|
|
69488
69488
|
cacheKeys.forEach((chunkKey) => {
|
|
69489
69489
|
const isLastChunk = chunkKey.end === key2.end;
|
|
69490
|
-
const responseSlice = _extends$
|
|
69491
|
-
pageInfo: _extends$
|
|
69490
|
+
const responseSlice = _extends$c({}, response, {
|
|
69491
|
+
pageInfo: _extends$c({}, response.pageInfo, {
|
|
69492
69492
|
// If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk
|
|
69493
69493
|
hasNextPage: response.pageInfo?.hasNextPage !== void 0 && !isLastChunk ? true : response.pageInfo?.hasNextPage,
|
|
69494
69494
|
nextCursor: response.pageInfo?.nextCursor !== void 0 && !isLastChunk ? response.rows[chunkKey.end + 1].id : response.pageInfo?.nextCursor
|
|
@@ -69553,7 +69553,7 @@ const useGridDataSourceBase = (apiRef, props, options = {}) => {
|
|
|
69553
69553
|
return;
|
|
69554
69554
|
}
|
|
69555
69555
|
options.clearDataSourceState?.();
|
|
69556
|
-
const fetchParams = _extends$
|
|
69556
|
+
const fetchParams = _extends$c({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors("getRowsParams", {}), params2);
|
|
69557
69557
|
const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);
|
|
69558
69558
|
const responses = cacheKeys.map((cacheKey) => cache2.get(cacheKey));
|
|
69559
69559
|
if (responses.every((response) => response !== void 0)) {
|
|
@@ -69796,7 +69796,7 @@ function GridColumnGroupHeader(props) {
|
|
|
69796
69796
|
if (groupId && render2) {
|
|
69797
69797
|
headerComponent = render2(renderParams);
|
|
69798
69798
|
}
|
|
69799
|
-
const ownerState = _extends$
|
|
69799
|
+
const ownerState = _extends$c({}, props, {
|
|
69800
69800
|
classes: rootProps.classes,
|
|
69801
69801
|
headerAlign,
|
|
69802
69802
|
depth,
|
|
@@ -69830,8 +69830,8 @@ function GridColumnGroupHeader(props) {
|
|
|
69830
69830
|
onBlur: publish("columnGroupHeaderBlur")
|
|
69831
69831
|
}), [publish]);
|
|
69832
69832
|
const headerClassName = typeof group2.headerClassName === "function" ? group2.headerClassName(renderParams) : group2.headerClassName;
|
|
69833
|
-
const style2 = React.useMemo(() => attachPinnedStyle(_extends$
|
|
69834
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$
|
|
69833
|
+
const style2 = React.useMemo(() => attachPinnedStyle(_extends$c({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);
|
|
69834
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridGenericColumnHeaderItem, _extends$c({
|
|
69835
69835
|
ref: headerCellRef,
|
|
69836
69836
|
classes: classes2,
|
|
69837
69837
|
columnMenuOpen: false,
|
|
@@ -69970,7 +69970,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
69970
69970
|
const sectionLength = renderedColumns.length;
|
|
69971
69971
|
const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);
|
|
69972
69972
|
const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);
|
|
69973
|
-
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$
|
|
69973
|
+
columns2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(Memoized, _extends$c({}, sortColumnLookup[colDef.field], {
|
|
69974
69974
|
columnMenuOpen: open2,
|
|
69975
69975
|
filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,
|
|
69976
69976
|
headerHeight,
|
|
@@ -70042,7 +70042,7 @@ const useGridColumnHeaders = (props) => {
|
|
|
70042
70042
|
columnFields
|
|
70043
70043
|
}) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));
|
|
70044
70044
|
const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map((groupStructure) => {
|
|
70045
|
-
return _extends$
|
|
70045
|
+
return _extends$c({}, groupStructure, {
|
|
70046
70046
|
columnFields: groupStructure.columnFields.filter((field2) => columnVisibility[field2] !== false)
|
|
70047
70047
|
});
|
|
70048
70048
|
}).filter((groupStructure) => groupStructure.columnFields.length > 0);
|
|
@@ -70171,7 +70171,7 @@ const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref2)
|
|
|
70171
70171
|
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
|
|
70172
70172
|
const rootProps = useGridRootProps();
|
|
70173
70173
|
const classes2 = useUtilityClasses$5(rootProps);
|
|
70174
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$
|
|
70174
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridColumnHeadersRoot, _extends$c({
|
|
70175
70175
|
className: clsx$1(classes2.root, className),
|
|
70176
70176
|
ownerState: rootProps
|
|
70177
70177
|
}, other, {
|
|
@@ -70213,7 +70213,7 @@ const GridColumnHeaders2 = forwardRef(function GridColumnHeaders22(props, ref2)
|
|
|
70213
70213
|
columnGroupsHeaderStructure,
|
|
70214
70214
|
hasOtherElementInTabSequence
|
|
70215
70215
|
});
|
|
70216
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$
|
|
70216
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(GridBaseColumnHeaders, _extends$c({}, other, getInnerProps(), {
|
|
70217
70217
|
ref: ref2,
|
|
70218
70218
|
children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]
|
|
70219
70219
|
}));
|
|
@@ -70262,7 +70262,7 @@ function GridPinnedRows(_) {
|
|
|
70262
70262
|
const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay2(props, ref2) {
|
|
70263
70263
|
const apiRef = useGridApiContext();
|
|
70264
70264
|
const noResultsOverlayLabel = apiRef.current.getLocaleText("noResultsOverlayLabel");
|
|
70265
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$
|
|
70265
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridOverlay, _extends$c({}, props, {
|
|
70266
70266
|
ref: ref2,
|
|
70267
70267
|
children: noResultsOverlayLabel
|
|
70268
70268
|
}));
|
|
@@ -71787,7 +71787,7 @@ const GridColumnUnsortedIcon = /* @__PURE__ */ React.memo(function GridColumnHea
|
|
|
71787
71787
|
const rootProps = useGridRootProps();
|
|
71788
71788
|
const [nextSortDirection] = sortingOrder;
|
|
71789
71789
|
const Icon = nextSortDirection === "asc" ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;
|
|
71790
|
-
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$
|
|
71790
|
+
return Icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, _extends$c({}, other)) : null;
|
|
71791
71791
|
});
|
|
71792
71792
|
const encoder$2 = new TextEncoder();
|
|
71793
71793
|
let bufferLength = 2 * 1024;
|
|
@@ -72003,7 +72003,7 @@ const BaseSelect = forwardRef(function BaseSelect2(props, ref2) {
|
|
|
72003
72003
|
shrink: true,
|
|
72004
72004
|
variant: "outlined",
|
|
72005
72005
|
children: label2
|
|
72006
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$
|
|
72006
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$c({
|
|
72007
72007
|
id: id2,
|
|
72008
72008
|
labelId,
|
|
72009
72009
|
label: label2,
|
|
@@ -72059,13 +72059,13 @@ const BasePagination = forwardRef(function BasePagination2(props, ref2) {
|
|
|
72059
72059
|
const {
|
|
72060
72060
|
estimatedRowCount
|
|
72061
72061
|
} = rootProps;
|
|
72062
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$
|
|
72062
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledPagination, _extends$c({
|
|
72063
72063
|
component: "div",
|
|
72064
72064
|
onRowsPerPageChange: useEventCallback((event2) => {
|
|
72065
72065
|
onRowsPerPageChange?.(Number(event2.target.value));
|
|
72066
72066
|
}),
|
|
72067
72067
|
labelRowsPerPage: apiRef.current.getLocaleText("paginationRowsPerPage"),
|
|
72068
|
-
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$
|
|
72068
|
+
labelDisplayedRows: (params2) => apiRef.current.getLocaleText("paginationDisplayedRows")(_extends$c({}, params2, {
|
|
72069
72069
|
estimated: estimatedRowCount
|
|
72070
72070
|
})),
|
|
72071
72071
|
getItemAriaLabel: apiRef.current.getLocaleText("paginationItemAriaLabel")
|
|
@@ -72077,7 +72077,7 @@ const BaseBadge = forwardRef(function BaseBadge2(props, ref2) {
|
|
|
72077
72077
|
const {
|
|
72078
72078
|
material
|
|
72079
72079
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded3$1);
|
|
72080
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$
|
|
72080
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, _extends$c({}, rest, material, {
|
|
72081
72081
|
ref: ref2
|
|
72082
72082
|
}));
|
|
72083
72083
|
});
|
|
@@ -72104,7 +72104,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
72104
72104
|
}
|
|
72105
72105
|
}, [autoFocus]);
|
|
72106
72106
|
if (!label2) {
|
|
72107
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
72107
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
72108
72108
|
className: clsx$1(className, material?.className),
|
|
72109
72109
|
inputProps: slotProps?.htmlInput,
|
|
72110
72110
|
ref: handleRef,
|
|
@@ -72113,7 +72113,7 @@ const BaseCheckbox = forwardRef(function BaseCheckbox2(props, ref2) {
|
|
|
72113
72113
|
}
|
|
72114
72114
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, {
|
|
72115
72115
|
className,
|
|
72116
|
-
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$
|
|
72116
|
+
control: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, _extends$c({}, other, material, {
|
|
72117
72117
|
inputProps: slotProps?.htmlInput,
|
|
72118
72118
|
ref: handleRef,
|
|
72119
72119
|
touchRippleRef: rippleRef
|
|
@@ -72126,7 +72126,7 @@ const BaseCircularProgress = forwardRef(function BaseCircularProgress2(props, re
|
|
|
72126
72126
|
const {
|
|
72127
72127
|
material
|
|
72128
72128
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded5);
|
|
72129
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$
|
|
72129
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgress, _extends$c({}, rest, material, {
|
|
72130
72130
|
ref: ref2
|
|
72131
72131
|
}));
|
|
72132
72132
|
});
|
|
@@ -72134,7 +72134,7 @@ const BaseDivider = forwardRef(function BaseDivider2(props, ref2) {
|
|
|
72134
72134
|
const {
|
|
72135
72135
|
material
|
|
72136
72136
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded6);
|
|
72137
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$
|
|
72137
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Divider$1, _extends$c({}, rest, material, {
|
|
72138
72138
|
ref: ref2
|
|
72139
72139
|
}));
|
|
72140
72140
|
});
|
|
@@ -72142,7 +72142,7 @@ const BaseLinearProgress = forwardRef(function BaseLinearProgress2(props, ref2)
|
|
|
72142
72142
|
const {
|
|
72143
72143
|
material
|
|
72144
72144
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded7);
|
|
72145
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$
|
|
72145
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, _extends$c({}, rest, material, {
|
|
72146
72146
|
ref: ref2
|
|
72147
72147
|
}));
|
|
72148
72148
|
});
|
|
@@ -72150,7 +72150,7 @@ const BaseButton = forwardRef(function BaseButton2(props, ref2) {
|
|
|
72150
72150
|
const {
|
|
72151
72151
|
material
|
|
72152
72152
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded8);
|
|
72153
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$
|
|
72153
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, _extends$c({}, rest, material, {
|
|
72154
72154
|
ref: ref2
|
|
72155
72155
|
}));
|
|
72156
72156
|
});
|
|
@@ -72158,7 +72158,7 @@ const BaseIconButton = forwardRef(function BaseIconButton2(props, ref2) {
|
|
|
72158
72158
|
const {
|
|
72159
72159
|
material
|
|
72160
72160
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded9);
|
|
72161
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$
|
|
72161
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, _extends$c({}, rest, material, {
|
|
72162
72162
|
ref: ref2
|
|
72163
72163
|
}));
|
|
72164
72164
|
});
|
|
@@ -72166,7 +72166,7 @@ const BaseTooltip = forwardRef(function BaseTooltip2(props, ref2) {
|
|
|
72166
72166
|
const {
|
|
72167
72167
|
material
|
|
72168
72168
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded10);
|
|
72169
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$
|
|
72169
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$3, _extends$c({}, rest, material, {
|
|
72170
72170
|
ref: ref2
|
|
72171
72171
|
}));
|
|
72172
72172
|
});
|
|
@@ -72174,7 +72174,7 @@ const BaseSkeleton = forwardRef(function BaseSkeleton2(props, ref2) {
|
|
|
72174
72174
|
const {
|
|
72175
72175
|
material
|
|
72176
72176
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded11);
|
|
72177
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$
|
|
72177
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, _extends$c({}, rest, material, {
|
|
72178
72178
|
ref: ref2
|
|
72179
72179
|
}));
|
|
72180
72180
|
});
|
|
@@ -72182,7 +72182,7 @@ const BaseSwitch = forwardRef(function BaseSwitch2(props, ref2) {
|
|
|
72182
72182
|
const {
|
|
72183
72183
|
material
|
|
72184
72184
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded12);
|
|
72185
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$
|
|
72185
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, _extends$c({}, rest, material, {
|
|
72186
72186
|
ref: ref2
|
|
72187
72187
|
}));
|
|
72188
72188
|
});
|
|
@@ -72190,7 +72190,7 @@ const BaseMenuList = forwardRef(function BaseMenuList2(props, ref2) {
|
|
|
72190
72190
|
const {
|
|
72191
72191
|
material
|
|
72192
72192
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded13);
|
|
72193
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$
|
|
72193
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuList, _extends$c({}, rest, material, {
|
|
72194
72194
|
ref: ref2
|
|
72195
72195
|
}));
|
|
72196
72196
|
});
|
|
@@ -72217,12 +72217,12 @@ function BaseTextField(props) {
|
|
|
72217
72217
|
slotProps,
|
|
72218
72218
|
material
|
|
72219
72219
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded15);
|
|
72220
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
72220
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({
|
|
72221
72221
|
variant: "outlined"
|
|
72222
72222
|
}, rest, material, {
|
|
72223
72223
|
inputProps: slotProps?.htmlInput,
|
|
72224
72224
|
InputProps: transformInputProps(slotProps?.input),
|
|
72225
|
-
InputLabelProps: _extends$
|
|
72225
|
+
InputLabelProps: _extends$c({
|
|
72226
72226
|
shrink: true
|
|
72227
72227
|
}, slotProps?.inputLabel)
|
|
72228
72228
|
}));
|
|
@@ -72243,7 +72243,7 @@ function BaseAutocomplete(props) {
|
|
|
72243
72243
|
slotProps,
|
|
72244
72244
|
material
|
|
72245
72245
|
} = props, rest = _objectWithoutPropertiesLoose$1(props, _excluded16);
|
|
72246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$
|
|
72246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, _extends$c({
|
|
72247
72247
|
id: id2,
|
|
72248
72248
|
multiple,
|
|
72249
72249
|
freeSolo,
|
|
@@ -72258,7 +72258,7 @@ function BaseAutocomplete(props) {
|
|
|
72258
72258
|
}), {
|
|
72259
72259
|
key: key2
|
|
72260
72260
|
} = _getTagProps, tagProps = _objectWithoutPropertiesLoose$1(_getTagProps, _excluded17);
|
|
72261
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$
|
|
72261
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, _extends$c({
|
|
72262
72262
|
variant: "outlined",
|
|
72263
72263
|
size: "small",
|
|
72264
72264
|
label: typeof option === "string" ? option : getOptionLabel?.(option)
|
|
@@ -72270,12 +72270,12 @@ function BaseAutocomplete(props) {
|
|
|
72270
72270
|
InputProps,
|
|
72271
72271
|
InputLabelProps
|
|
72272
72272
|
} = params2, inputRest = _objectWithoutPropertiesLoose$1(params2, _excluded18);
|
|
72273
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$
|
|
72273
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, _extends$c({}, inputRest, {
|
|
72274
72274
|
label: label2,
|
|
72275
72275
|
placeholder,
|
|
72276
72276
|
inputProps,
|
|
72277
72277
|
InputProps: transformInputProps(InputProps, false),
|
|
72278
|
-
InputLabelProps: _extends$
|
|
72278
|
+
InputLabelProps: _extends$c({
|
|
72279
72279
|
shrink: true
|
|
72280
72280
|
}, InputLabelProps)
|
|
72281
72281
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
@@ -72283,7 +72283,7 @@ function BaseAutocomplete(props) {
|
|
|
72283
72283
|
}, rest, material));
|
|
72284
72284
|
}
|
|
72285
72285
|
function BaseInput(props) {
|
|
72286
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$
|
|
72286
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputBase, _extends$c({}, transformInputProps(props)));
|
|
72287
72287
|
}
|
|
72288
72288
|
function transformInputProps(props, wrapAdornments = true) {
|
|
72289
72289
|
if (!props) {
|
|
@@ -72315,7 +72315,7 @@ function transformInputProps(props, wrapAdornments = true) {
|
|
|
72315
72315
|
}
|
|
72316
72316
|
if (slotProps?.htmlInput) {
|
|
72317
72317
|
if (result.inputProps) {
|
|
72318
|
-
result.inputProps = _extends$
|
|
72318
|
+
result.inputProps = _extends$c({}, result.inputProps, slotProps?.htmlInput);
|
|
72319
72319
|
} else {
|
|
72320
72320
|
result.inputProps = slotProps?.htmlInput;
|
|
72321
72321
|
}
|
|
@@ -72379,7 +72379,7 @@ function BasePopper(props) {
|
|
|
72379
72379
|
onExited(node2);
|
|
72380
72380
|
}
|
|
72381
72381
|
};
|
|
72382
|
-
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$
|
|
72382
|
+
content2 = (p) => wrappers(props, /* @__PURE__ */ jsxRuntimeExports.jsx(Grow, _extends$c({}, p.TransitionProps, {
|
|
72383
72383
|
style: {
|
|
72384
72384
|
transformOrigin: transformOrigin[p.placement]
|
|
72385
72385
|
},
|
|
@@ -72389,7 +72389,7 @@ function BasePopper(props) {
|
|
|
72389
72389
|
})
|
|
72390
72390
|
})));
|
|
72391
72391
|
}
|
|
72392
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$
|
|
72392
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popper$2, _extends$c({
|
|
72393
72393
|
id: id2,
|
|
72394
72394
|
className,
|
|
72395
72395
|
open: open2,
|
|
@@ -72434,9 +72434,9 @@ function BaseSelectOption(_ref) {
|
|
|
72434
72434
|
native: native2
|
|
72435
72435
|
} = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded21);
|
|
72436
72436
|
if (native2) {
|
|
72437
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$
|
|
72437
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("option", _extends$c({}, props));
|
|
72438
72438
|
}
|
|
72439
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$
|
|
72439
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, _extends$c({}, props));
|
|
72440
72440
|
}
|
|
72441
72441
|
const iconSlots = {
|
|
72442
72442
|
booleanCellTrueIcon: GridCheckIcon,
|
|
@@ -72498,7 +72498,7 @@ const baseSlots = {
|
|
|
72498
72498
|
baseSkeleton: BaseSkeleton,
|
|
72499
72499
|
baseSwitch: BaseSwitch
|
|
72500
72500
|
};
|
|
72501
|
-
const materialSlots = _extends$
|
|
72501
|
+
const materialSlots = _extends$c({}, baseSlots, iconSlots);
|
|
72502
72502
|
const useUtilityClasses = () => {
|
|
72503
72503
|
const slots = {
|
|
72504
72504
|
root: ["bottomContainer"]
|
|
@@ -72512,12 +72512,12 @@ const Element$1 = styled$1("div")({
|
|
|
72512
72512
|
});
|
|
72513
72513
|
function GridBottomContainer(props) {
|
|
72514
72514
|
const classes2 = useUtilityClasses();
|
|
72515
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$
|
|
72515
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Element$1, _extends$c({}, props, {
|
|
72516
72516
|
className: clsx$1(classes2.root, gridClasses["container--bottom"]),
|
|
72517
72517
|
role: "presentation"
|
|
72518
72518
|
}));
|
|
72519
72519
|
}
|
|
72520
|
-
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$
|
|
72520
|
+
const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends$c({}, materialSlots, {
|
|
72521
72521
|
cell: MemoizedGridCell,
|
|
72522
72522
|
skeletonCell: Memoized$1,
|
|
72523
72523
|
columnHeaderFilterIconButton: GridColumnHeaderFilterIconButtonWrapped,
|
|
@@ -72553,7 +72553,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
72553
72553
|
signature: "DataGrid",
|
|
72554
72554
|
listView: false
|
|
72555
72555
|
};
|
|
72556
|
-
const getDataGridForcedProps = (themedProps) => _extends$
|
|
72556
|
+
const getDataGridForcedProps = (themedProps) => _extends$c({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
72557
72557
|
filterMode: "server",
|
|
72558
72558
|
sortingMode: "server",
|
|
72559
72559
|
paginationMode: "server"
|
|
@@ -72567,7 +72567,7 @@ const useDataGridProps = (inProps) => {
|
|
|
72567
72567
|
name: "MuiDataGrid"
|
|
72568
72568
|
})
|
|
72569
72569
|
);
|
|
72570
|
-
const localeText = React.useMemo(() => _extends$
|
|
72570
|
+
const localeText = React.useMemo(() => _extends$c({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
72571
72571
|
const slots = React.useMemo(() => computeSlots({
|
|
72572
72572
|
defaultSlots,
|
|
72573
72573
|
slots: themedProps.slots
|
|
@@ -72578,7 +72578,7 @@ const useDataGridProps = (inProps) => {
|
|
|
72578
72578
|
return acc;
|
|
72579
72579
|
}, {});
|
|
72580
72580
|
}, [themedProps]);
|
|
72581
|
-
return React.useMemo(() => _extends$
|
|
72581
|
+
return React.useMemo(() => _extends$c({}, themedProps, injectDefaultProps, {
|
|
72582
72582
|
localeText,
|
|
72583
72583
|
slots
|
|
72584
72584
|
}, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);
|
|
@@ -72600,7 +72600,7 @@ const DataGridRaw = forwardRef(function DataGrid2(inProps, ref2) {
|
|
|
72600
72600
|
privateApiRef,
|
|
72601
72601
|
configuration,
|
|
72602
72602
|
props,
|
|
72603
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$
|
|
72603
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedGridRoot, _extends$c({
|
|
72604
72604
|
className: props.className,
|
|
72605
72605
|
style: props.style,
|
|
72606
72606
|
sx: props.sx
|
|
@@ -73591,7 +73591,7 @@ var defineProperty$6 = function(obj, key2, value2) {
|
|
|
73591
73591
|
}
|
|
73592
73592
|
return obj;
|
|
73593
73593
|
};
|
|
73594
|
-
var _extends$
|
|
73594
|
+
var _extends$b = Object.assign || function(target2) {
|
|
73595
73595
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
73596
73596
|
var source2 = arguments[i2];
|
|
73597
73597
|
for (var key2 in source2) {
|
|
@@ -73603,7 +73603,7 @@ var _extends$c = Object.assign || function(target2) {
|
|
|
73603
73603
|
return target2;
|
|
73604
73604
|
};
|
|
73605
73605
|
function getClientRect(offsets2) {
|
|
73606
|
-
return _extends$
|
|
73606
|
+
return _extends$b({}, offsets2, {
|
|
73607
73607
|
right: offsets2.left + offsets2.width,
|
|
73608
73608
|
bottom: offsets2.top + offsets2.height
|
|
73609
73609
|
});
|
|
@@ -73787,7 +73787,7 @@ function computeAutoPlacement(placement, refRect, popper2, reference2, boundarie
|
|
|
73787
73787
|
}
|
|
73788
73788
|
};
|
|
73789
73789
|
var sortedAreas = Object.keys(rects).map(function(key2) {
|
|
73790
|
-
return _extends$
|
|
73790
|
+
return _extends$b({
|
|
73791
73791
|
key: key2
|
|
73792
73792
|
}, rects[key2], {
|
|
73793
73793
|
area: getArea(rects[key2])
|
|
@@ -74095,9 +74095,9 @@ function computeStyle(data2, options) {
|
|
|
74095
74095
|
var attributes = {
|
|
74096
74096
|
"x-placement": data2.placement
|
|
74097
74097
|
};
|
|
74098
|
-
data2.attributes = _extends$
|
|
74099
|
-
data2.styles = _extends$
|
|
74100
|
-
data2.arrowStyles = _extends$
|
|
74098
|
+
data2.attributes = _extends$b({}, attributes, data2.attributes);
|
|
74099
|
+
data2.styles = _extends$b({}, styles2, data2.styles);
|
|
74100
|
+
data2.arrowStyles = _extends$b({}, data2.offsets.arrow, data2.arrowStyles);
|
|
74101
74101
|
return data2;
|
|
74102
74102
|
}
|
|
74103
74103
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -74232,7 +74232,7 @@ function flip$1(data2, options) {
|
|
|
74232
74232
|
variation = getOppositeVariation(variation);
|
|
74233
74233
|
}
|
|
74234
74234
|
data2.placement = placement + (variation ? "-" + variation : "");
|
|
74235
|
-
data2.offsets.popper = _extends$
|
|
74235
|
+
data2.offsets.popper = _extends$b({}, data2.offsets.popper, getPopperOffsets(data2.instance.popper, data2.offsets.reference, data2.placement));
|
|
74236
74236
|
data2 = runModifiers(data2.instance.modifiers, data2, "flip");
|
|
74237
74237
|
}
|
|
74238
74238
|
});
|
|
@@ -74391,7 +74391,7 @@ function preventOverflow(data2, options) {
|
|
|
74391
74391
|
};
|
|
74392
74392
|
order2.forEach(function(placement) {
|
|
74393
74393
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
74394
|
-
popper2 = _extends$
|
|
74394
|
+
popper2 = _extends$b({}, popper2, check[side](placement));
|
|
74395
74395
|
});
|
|
74396
74396
|
data2.offsets.popper = popper2;
|
|
74397
74397
|
return data2;
|
|
@@ -74409,7 +74409,7 @@ function shift(data2) {
|
|
|
74409
74409
|
start: defineProperty$6({}, side, reference2[side]),
|
|
74410
74410
|
end: defineProperty$6({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
74411
74411
|
};
|
|
74412
|
-
data2.offsets.popper = _extends$
|
|
74412
|
+
data2.offsets.popper = _extends$b({}, popper2, shiftOffsets[shiftvariation]);
|
|
74413
74413
|
}
|
|
74414
74414
|
return data2;
|
|
74415
74415
|
}
|
|
@@ -74812,7 +74812,7 @@ var Popper$1 = function() {
|
|
|
74812
74812
|
return requestAnimationFrame(_this.update);
|
|
74813
74813
|
};
|
|
74814
74814
|
this.update = debounce$2(this.update.bind(this));
|
|
74815
|
-
this.options = _extends$
|
|
74815
|
+
this.options = _extends$b({}, Popper3.Defaults, options);
|
|
74816
74816
|
this.state = {
|
|
74817
74817
|
isDestroyed: false,
|
|
74818
74818
|
isCreated: false,
|
|
@@ -74821,11 +74821,11 @@ var Popper$1 = function() {
|
|
|
74821
74821
|
this.reference = reference2 && reference2.jquery ? reference2[0] : reference2;
|
|
74822
74822
|
this.popper = popper2 && popper2.jquery ? popper2[0] : popper2;
|
|
74823
74823
|
this.options.modifiers = {};
|
|
74824
|
-
Object.keys(_extends$
|
|
74825
|
-
_this.options.modifiers[name2] = _extends$
|
|
74824
|
+
Object.keys(_extends$b({}, Popper3.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
|
|
74825
|
+
_this.options.modifiers[name2] = _extends$b({}, Popper3.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
|
|
74826
74826
|
});
|
|
74827
74827
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
|
|
74828
|
-
return _extends$
|
|
74828
|
+
return _extends$b({
|
|
74829
74829
|
name: name2
|
|
74830
74830
|
}, _this.options.modifiers[name2]);
|
|
74831
74831
|
}).sort(function(a2, b2) {
|
|
@@ -75069,38 +75069,6 @@ function ScopedGlobalStyles(props) {
|
|
|
75069
75069
|
}, [parentClassName, styles2]);
|
|
75070
75070
|
return component;
|
|
75071
75071
|
}
|
|
75072
|
-
function _extends$b() {
|
|
75073
|
-
_extends$b = Object.assign ? Object.assign.bind() : function(target2) {
|
|
75074
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
75075
|
-
var source2 = arguments[i2];
|
|
75076
|
-
for (var key2 in source2) {
|
|
75077
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
|
75078
|
-
target2[key2] = source2[key2];
|
|
75079
|
-
}
|
|
75080
|
-
}
|
|
75081
|
-
}
|
|
75082
|
-
return target2;
|
|
75083
|
-
};
|
|
75084
|
-
return _extends$b.apply(this, arguments);
|
|
75085
|
-
}
|
|
75086
|
-
function _assertThisInitialized$1(self2) {
|
|
75087
|
-
if (self2 === void 0) {
|
|
75088
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
75089
|
-
}
|
|
75090
|
-
return self2;
|
|
75091
|
-
}
|
|
75092
|
-
function _setPrototypeOf$1(o2, p) {
|
|
75093
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
75094
|
-
o3.__proto__ = p2;
|
|
75095
|
-
return o3;
|
|
75096
|
-
};
|
|
75097
|
-
return _setPrototypeOf$1(o2, p);
|
|
75098
|
-
}
|
|
75099
|
-
function _inheritsLoose(subClass, superClass) {
|
|
75100
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
75101
|
-
subClass.prototype.constructor = subClass;
|
|
75102
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
75103
|
-
}
|
|
75104
75072
|
var safeIsNaN = Number.isNaN || function ponyfill(value2) {
|
|
75105
75073
|
return typeof value2 === "number" && value2 !== value2;
|
|
75106
75074
|
};
|
|
@@ -75468,7 +75436,7 @@ function createListComponent(_ref) {
|
|
|
75468
75436
|
className,
|
|
75469
75437
|
onScroll: onScroll6,
|
|
75470
75438
|
ref: this._outerRefSetter,
|
|
75471
|
-
style: _extends$
|
|
75439
|
+
style: _extends$c({
|
|
75472
75440
|
position: "relative",
|
|
75473
75441
|
height: height2,
|
|
75474
75442
|
width: width2,
|
|
@@ -211819,22 +211787,22 @@ async function getDecoder(fileDirectory) {
|
|
|
211819
211787
|
const Decoder = await importFn();
|
|
211820
211788
|
return new Decoder(fileDirectory);
|
|
211821
211789
|
}
|
|
211822
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
211823
|
-
addDecoder(5, () => import("./lzw-
|
|
211790
|
+
addDecoder([void 0, 1], () => import("./raw-DIDBeWlq.js").then((m2) => m2.default));
|
|
211791
|
+
addDecoder(5, () => import("./lzw-CcpH5iJt.js").then((m2) => m2.default));
|
|
211824
211792
|
addDecoder(6, () => {
|
|
211825
211793
|
throw new Error("old style JPEG compression is not supported.");
|
|
211826
211794
|
});
|
|
211827
|
-
addDecoder(7, () => import("./jpeg-
|
|
211828
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
211829
|
-
addDecoder(32773, () => import("./packbits-
|
|
211795
|
+
addDecoder(7, () => import("./jpeg-CDMJPRrU.js").then((m2) => m2.default));
|
|
211796
|
+
addDecoder([8, 32946], () => import("./deflate-CrWHFwMs.js").then((m2) => m2.default));
|
|
211797
|
+
addDecoder(32773, () => import("./packbits-BeOEJDb9.js").then((m2) => m2.default));
|
|
211830
211798
|
addDecoder(
|
|
211831
211799
|
34887,
|
|
211832
|
-
() => import("./lerc-
|
|
211800
|
+
() => import("./lerc-BfnnHmSr.js").then(async (m2) => {
|
|
211833
211801
|
await m2.zstd.init();
|
|
211834
211802
|
return m2;
|
|
211835
211803
|
}).then((m2) => m2.default)
|
|
211836
211804
|
);
|
|
211837
|
-
addDecoder(50001, () => import("./webimage-
|
|
211805
|
+
addDecoder(50001, () => import("./webimage-BPux70Xk.js").then((m2) => m2.default));
|
|
211838
211806
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
211839
211807
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
211840
211808
|
}
|
|
@@ -235446,7 +235414,7 @@ var config$2 = function config(options) {
|
|
|
235446
235414
|
}
|
|
235447
235415
|
return Object.freeze(DEFAULT_CONFIG);
|
|
235448
235416
|
};
|
|
235449
|
-
_extends$
|
|
235417
|
+
_extends$c(config$2, DEFAULT_CONFIG, {
|
|
235450
235418
|
MATRIX_OPTIONS,
|
|
235451
235419
|
NUMBER_OPTIONS
|
|
235452
235420
|
});
|
|
@@ -247271,9 +247239,9 @@ var createUnitClass = /* @__PURE__ */ factory(name$6, dependencies$6, (_ref) =>
|
|
|
247271
247239
|
}
|
|
247272
247240
|
}
|
|
247273
247241
|
};
|
|
247274
|
-
PREFIXES.SHORTLONG = _extends$
|
|
247275
|
-
PREFIXES.BINARY_SHORT = _extends$
|
|
247276
|
-
PREFIXES.BINARY_LONG = _extends$
|
|
247242
|
+
PREFIXES.SHORTLONG = _extends$c({}, PREFIXES.SHORT, PREFIXES.LONG);
|
|
247243
|
+
PREFIXES.BINARY_SHORT = _extends$c({}, PREFIXES.BINARY_SHORT_SI, PREFIXES.BINARY_SHORT_IEC);
|
|
247244
|
+
PREFIXES.BINARY_LONG = _extends$c({}, PREFIXES.BINARY_LONG_SI, PREFIXES.BINARY_LONG_IEC);
|
|
247277
247245
|
var BASE_DIMENSIONS = ["MASS", "LENGTH", "TIME", "CURRENT", "TEMPERATURE", "LUMINOUS_INTENSITY", "AMOUNT_OF_SUBSTANCE", "ANGLE", "BIT"];
|
|
247278
247246
|
var BASE_UNITS = {
|
|
247279
247247
|
NONE: {
|
|
@@ -256386,12 +256354,12 @@ class ErrorBoundary extends React__default.Component {
|
|
|
256386
256354
|
}
|
|
256387
256355
|
}
|
|
256388
256356
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
256389
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
256357
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-Chf9TR4u.js");
|
|
256390
256358
|
return { default: SpatialWrapper2 };
|
|
256391
256359
|
});
|
|
256392
256360
|
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 }) }) }) }));
|
|
256393
256361
|
const LazySpatialAccelerated = React__default.lazy(async () => {
|
|
256394
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
256362
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-fYLGd5-F.js");
|
|
256395
256363
|
return { default: SpatialWrapper2 };
|
|
256396
256364
|
});
|
|
256397
256365
|
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 }) }) }) }));
|
|
@@ -259381,8 +259349,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
259381
259349
|
}, {
|
|
259382
259350
|
key: "render",
|
|
259383
259351
|
value: function render2() {
|
|
259384
|
-
var props = _extends$
|
|
259385
|
-
return /* @__PURE__ */ React.createElement(CollectionView, _extends$
|
|
259352
|
+
var props = _extends$d({}, (_objectDestructuringEmpty(this.props), this.props));
|
|
259353
|
+
return /* @__PURE__ */ React.createElement(CollectionView, _extends$d({
|
|
259386
259354
|
cellLayoutManager: this,
|
|
259387
259355
|
isScrollingChange: this._isScrollingChange,
|
|
259388
259356
|
ref: this._setCollectionViewRef
|
|
@@ -260675,7 +260643,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
260675
260643
|
gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
|
|
260676
260644
|
var childrenToDisplay = this._childrenToDisplay;
|
|
260677
260645
|
var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
|
|
260678
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
260646
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({
|
|
260679
260647
|
ref: this._setScrollingContainerRef
|
|
260680
260648
|
}, containerProps, {
|
|
260681
260649
|
"aria-label": this.props["aria-label"],
|
|
@@ -261593,7 +261561,7 @@ var List$2 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
261593
261561
|
value: function render2() {
|
|
261594
261562
|
var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
|
|
261595
261563
|
var classNames2 = clsx("ReactVirtualized__List", className);
|
|
261596
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
261564
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
261597
261565
|
autoContainerWidth: true,
|
|
261598
261566
|
cellRenderer: this._cellRenderer,
|
|
261599
261567
|
className: classNames2,
|
|
@@ -263088,7 +263056,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
263088
263056
|
return null;
|
|
263089
263057
|
}
|
|
263090
263058
|
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;
|
|
263091
|
-
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
263059
|
+
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
263092
263060
|
cellRenderer: this._cellRendererBottomLeftGrid,
|
|
263093
263061
|
className: this.props.classNameBottomLeftGrid,
|
|
263094
263062
|
columnCount: fixedColumnCount,
|
|
@@ -263118,7 +263086,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
263118
263086
|
key: "_renderBottomRightGrid",
|
|
263119
263087
|
value: function _renderBottomRightGrid(props) {
|
|
263120
263088
|
var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
|
|
263121
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
263089
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
263122
263090
|
cellRenderer: this._cellRendererBottomRightGrid,
|
|
263123
263091
|
className: this.props.classNameBottomRightGrid,
|
|
263124
263092
|
columnCount: Math.max(0, columnCount - fixedColumnCount),
|
|
@@ -263143,7 +263111,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
263143
263111
|
if (!fixedColumnCount || !fixedRowCount) {
|
|
263144
263112
|
return null;
|
|
263145
263113
|
}
|
|
263146
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
263114
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
263147
263115
|
className: this.props.classNameTopLeftGrid,
|
|
263148
263116
|
columnCount: fixedColumnCount,
|
|
263149
263117
|
height: this._getTopGridHeight(props),
|
|
@@ -263170,7 +263138,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
263170
263138
|
left: 0
|
|
263171
263139
|
});
|
|
263172
263140
|
}
|
|
263173
|
-
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
263141
|
+
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$d({}, props, {
|
|
263174
263142
|
cellRenderer: this._cellRendererTopRightGrid,
|
|
263175
263143
|
className: this.props.classNameTopRightGrid,
|
|
263176
263144
|
columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
|
|
@@ -263445,7 +263413,7 @@ function defaultRowRenderer(_ref) {
|
|
|
263445
263413
|
};
|
|
263446
263414
|
}
|
|
263447
263415
|
}
|
|
263448
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
263416
|
+
return /* @__PURE__ */ React.createElement("div", _extends$d({}, a11yProps, {
|
|
263449
263417
|
className,
|
|
263450
263418
|
key: key2,
|
|
263451
263419
|
role: "row",
|
|
@@ -263728,7 +263696,7 @@ var Table$1 = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
263728
263696
|
paddingRight: scrollbarWidth,
|
|
263729
263697
|
width: width2
|
|
263730
263698
|
}, rowStyleObject)
|
|
263731
|
-
}), /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
263699
|
+
}), /* @__PURE__ */ React.createElement(Grid, _extends$d({}, this.props, {
|
|
263732
263700
|
elementRef: this._setGridElementRef,
|
|
263733
263701
|
"aria-readonly": null,
|
|
263734
263702
|
autoContainerWidth: true,
|
|
@@ -271429,7 +271397,7 @@ function HiglassGlobalStyles(props) {
|
|
|
271429
271397
|
}
|
|
271430
271398
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
271431
271399
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
271432
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
271400
|
+
const { HiGlassComponent } = await import("./higlass-DXSQ9sk_.js");
|
|
271433
271401
|
return { default: HiGlassComponent };
|
|
271434
271402
|
});
|
|
271435
271403
|
const HG_SIZE = 800;
|
|
@@ -274376,7 +274344,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
274376
274344
|
const { classes: classes2 } = props;
|
|
274377
274345
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
274378
274346
|
}
|
|
274379
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
274347
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BvdUAGCt.js"));
|
|
274380
274348
|
function createWorker() {
|
|
274381
274349
|
return new WorkerFactory();
|
|
274382
274350
|
}
|
|
@@ -386544,7 +386512,7 @@ export {
|
|
|
386544
386512
|
Vector42 as ag,
|
|
386545
386513
|
Line3 as ah,
|
|
386546
386514
|
SphereGeometry2 as ai,
|
|
386547
|
-
_extends$
|
|
386515
|
+
_extends$c as aj,
|
|
386548
386516
|
Plane2 as ak,
|
|
386549
386517
|
Triangle as al,
|
|
386550
386518
|
BackSide as am,
|