@redsift/table 12.5.4 → 12.5.5-muiv8-alpha.0
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.
|
@@ -3545,7 +3545,6 @@ const StatefulDataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3545
3545
|
onColumnWidthChange: onColumnWidthChange,
|
|
3546
3546
|
onRowGroupingModelChange: onRowGroupingModelChange,
|
|
3547
3547
|
onAggregationModelChange: onAggregationModelChange,
|
|
3548
|
-
pivotModel: pivotModel,
|
|
3549
3548
|
onPivotModelChange: onPivotModelChange,
|
|
3550
3549
|
pivotActive: pivotActive,
|
|
3551
3550
|
onPivotActiveChange: onPivotActiveChange
|
|
@@ -3553,11 +3552,16 @@ const StatefulDataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3553
3552
|
// onChange handlers are write-only for URL/localStorage persistence,
|
|
3554
3553
|
// and initialState seeds MUI on mount from the persisted URL state.
|
|
3555
3554
|
// columnVisibilityModel / pinnedColumns / rowGroupingModel /
|
|
3556
|
-
// aggregationModel are also uncontrolled here to
|
|
3557
|
-
// re-render race with consumer-side
|
|
3558
|
-
// updates (otherwise user toggles
|
|
3559
|
-
// the stale controlled value).
|
|
3560
|
-
//
|
|
3555
|
+
// aggregationModel / pivotModel are also uncontrolled here to
|
|
3556
|
+
// avoid a controlled re-render race with consumer-side
|
|
3557
|
+
// microtask-deferred history updates (otherwise user toggles
|
|
3558
|
+
// flip back when MUI re-emits with the stale controlled value).
|
|
3559
|
+
// pivotModel specifically also carries `hidden`/`sort` field
|
|
3560
|
+
// metadata that our simplified URL representation strips — so
|
|
3561
|
+
// controlling it would prevent users from unchecking fields in
|
|
3562
|
+
// the pivot panel (the controlled prop would immediately re-add
|
|
3563
|
+
// them). Consumers needing programmatic changes should use the
|
|
3564
|
+
// apiRef imperative API.
|
|
3561
3565
|
}, isDataSourceMode ? {
|
|
3562
3566
|
onFilterModelChange: onFilterModelChange,
|
|
3563
3567
|
onSortModelChange: onSortModelChange,
|
|
@@ -3585,6 +3589,7 @@ const StatefulDataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3585
3589
|
paginationModel
|
|
3586
3590
|
},
|
|
3587
3591
|
pivoting: _objectSpread2(_objectSpread2({}, initialState === null || initialState === void 0 ? void 0 : initialState.pivoting), {}, {
|
|
3592
|
+
model: pivotModel,
|
|
3588
3593
|
enabled: pivotActive
|
|
3589
3594
|
})
|
|
3590
3595
|
})
|
|
@@ -3596,6 +3601,7 @@ const StatefulDataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3596
3601
|
filterModel,
|
|
3597
3602
|
sortModel,
|
|
3598
3603
|
paginationModel,
|
|
3604
|
+
pivotModel,
|
|
3599
3605
|
onFilterModelChange: onFilterModelChange,
|
|
3600
3606
|
onSortModelChange: onSortModelChange,
|
|
3601
3607
|
onPaginationModelChange: wrappedOnPaginationModelChange,
|