@redsift/table 11.6.0-muiv5 → 11.6.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.
- package/_internal/BasePopper.js +2 -2
- package/_internal/ControlledPagination.js +32 -24
- package/_internal/ControlledPagination.js.map +1 -1
- package/_internal/DataGrid2.js +64 -80
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/GridToolbarFilterSemanticField2.js +12 -12
- package/_internal/GridToolbarFilterSemanticField2.js.map +1 -1
- package/_internal/Portal.js +1 -1
- package/_internal/StatefulDataGrid.js +1 -1
- package/_internal/StatefulDataGrid2.js +1904 -238
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/TextCell2.js +1 -1
- package/_internal/Toolbar2.js +3 -3
- package/_internal/Toolbar2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +11 -17
- package/_internal/ToolbarWrapper2.js.map +1 -1
- package/_internal/_rollupPluginBabelHelpers.js +1 -1
- package/_internal/useControlledDatagridState.js +24 -1831
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +82 -79
- package/index.js +48 -3
- package/index.js.map +1 -1
- package/package.json +4 -4
package/_internal/BasePopper.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _objectWithoutProperties, b as _extends$1 } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { forwardRef } from 'react';
|
|
4
4
|
import { ButtonsColorPalette, IconButton, Button, Checkbox, Icon } from '@redsift/design-system';
|
|
5
5
|
import { mdiFilterVariant, mdiViewColumn, mdiChevronUp, mdiChevronDown, mdiViewHeadline, mdiViewSequential, mdiViewStream, mdiChevronRight, mdiTrayArrowDown } from '@redsift/icons';
|
|
6
|
-
import {
|
|
6
|
+
import { f as generateUtilityClass, g as generateUtilityClasses, _ as _objectWithoutPropertiesLoose, o as ownerDocument, n as Portal, a as _extends, p as chainPropTypes, P as PropTypes, H as HTMLElementType, m as refType, q as useForkRef, t as useEnhancedEffect, v as useSlotProps, l as composeClasses, w as useClassNamesOverride, h as styled, x as useTheme, j as useThemeProps } from './Portal.js';
|
|
7
7
|
import { j as jsxRuntimeExports } from './jsx-runtime.js';
|
|
8
8
|
|
|
9
9
|
var top = 'top';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as _extends$1 } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { Children, isValidElement, cloneElement, createElement } from 'react';
|
|
4
4
|
import { Flexbox, Text, LinkButton } from '@redsift/design-system';
|
|
5
5
|
import { gridPaginatedVisibleSortedGridRowEntriesSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import {
|
|
6
|
+
import { p as chainPropTypes, P as PropTypes, o as ownerDocument, t as useEnhancedEffect, u as useTheme$1, y as defaultTheme, T as THEME_ID, q as useForkRef, z as exactProp, f as generateUtilityClass, g as generateUtilityClasses, _ as _objectWithoutPropertiesLoose, a as _extends, v as useSlotProps, n as Portal, H as HTMLElementType, l as composeClasses, w as useClassNamesOverride, h as styled, j as useThemeProps, c as clsx, A as isHostComponent, m as refType, k as capitalize, B as formatMuiErrorMessage, r as rootShouldForwardProp, D as deepmerge, E as reactIsExports, F as resolveComponentProps, G as alpha, I as slotShouldForwardProp, J as lighten, K as darken } from './Portal.js';
|
|
7
7
|
import { j as jsxRuntimeExports } from './jsx-runtime.js';
|
|
8
8
|
import { Global, keyframes } from '@emotion/react';
|
|
9
9
|
import * as ReactDOM from 'react-dom';
|
|
@@ -10380,12 +10380,10 @@ const ServerSideControlledPagination = _ref3 => {
|
|
|
10380
10380
|
selectionStatus,
|
|
10381
10381
|
displaySelection,
|
|
10382
10382
|
displayPagination,
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
onPageSizeChange,
|
|
10383
|
+
paginationModel,
|
|
10384
|
+
onPaginationModelChange,
|
|
10385
|
+
pageSizeOptions,
|
|
10387
10386
|
displayRowsPerPage,
|
|
10388
|
-
rowsPerPageOptions,
|
|
10389
10387
|
paginationProps,
|
|
10390
10388
|
rowCount
|
|
10391
10389
|
} = _ref3;
|
|
@@ -10404,13 +10402,17 @@ const ServerSideControlledPagination = _ref3 => {
|
|
|
10404
10402
|
}, totalRowsLabel) : /*#__PURE__*/React__default.createElement(Text, null)) : null, displayPagination ? /*#__PURE__*/React__default.createElement(TablePagination$1, _extends$1({
|
|
10405
10403
|
component: "div",
|
|
10406
10404
|
count: totalNumberOfRowsInTable,
|
|
10407
|
-
page: page,
|
|
10408
|
-
onPageChange: (event,
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10405
|
+
page: paginationModel.page,
|
|
10406
|
+
onPageChange: (event, page) => onPaginationModelChange({
|
|
10407
|
+
page,
|
|
10408
|
+
pageSize: paginationModel.pageSize
|
|
10409
|
+
}),
|
|
10410
|
+
rowsPerPage: paginationModel.pageSize,
|
|
10411
|
+
onRowsPerPageChange: event => onPaginationModelChange({
|
|
10412
|
+
page: paginationModel.page,
|
|
10413
|
+
pageSize: parseInt(event.target.value, 10)
|
|
10414
|
+
}),
|
|
10415
|
+
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
10414
10416
|
}, paginationProps)) : null);
|
|
10415
10417
|
};
|
|
10416
10418
|
|
|
@@ -10436,11 +10438,9 @@ const ControlledPagination = _ref3 => {
|
|
|
10436
10438
|
displayPagination = false,
|
|
10437
10439
|
selectionStatus,
|
|
10438
10440
|
apiRef,
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
onPageSizeChange,
|
|
10443
|
-
rowsPerPageOptions,
|
|
10441
|
+
paginationModel,
|
|
10442
|
+
onPaginationModelChange,
|
|
10443
|
+
pageSizeOptions,
|
|
10444
10444
|
isRowSelectable,
|
|
10445
10445
|
paginationProps
|
|
10446
10446
|
} = _ref3;
|
|
@@ -10470,13 +10470,21 @@ const ControlledPagination = _ref3 => {
|
|
|
10470
10470
|
}, `${selectionStatus.numberOfSelectedRows} row${selectionStatus.numberOfSelectedRows > 1 ? 's' : ''} selected`) : /*#__PURE__*/React__default.createElement(Text, null)) : null, displayPagination ? /*#__PURE__*/React__default.createElement(TablePagination$1, _extends$1({
|
|
10471
10471
|
component: "div",
|
|
10472
10472
|
count: numberOfFilteredRowsInTable,
|
|
10473
|
-
page: page,
|
|
10474
|
-
onPageChange: (event,
|
|
10475
|
-
|
|
10473
|
+
page: paginationModel.page,
|
|
10474
|
+
onPageChange: (event, page) => {
|
|
10475
|
+
onPaginationModelChange({
|
|
10476
|
+
page,
|
|
10477
|
+
pageSize: paginationModel.pageSize
|
|
10478
|
+
});
|
|
10479
|
+
},
|
|
10480
|
+
rowsPerPage: paginationModel.pageSize,
|
|
10476
10481
|
onRowsPerPageChange: event => {
|
|
10477
|
-
|
|
10482
|
+
onPaginationModelChange({
|
|
10483
|
+
page: paginationModel.page,
|
|
10484
|
+
pageSize: parseInt(event.target.value, 10)
|
|
10485
|
+
});
|
|
10478
10486
|
},
|
|
10479
|
-
rowsPerPageOptions: displayRowsPerPage ?
|
|
10487
|
+
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
10480
10488
|
}, paginationProps)) : null);
|
|
10481
10489
|
};
|
|
10482
10490
|
|