@redsift/table 9.3.3 → 9.4.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/index.d.ts +3 -3
- package/index.js +90 -56
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -86,12 +86,12 @@ type StyledDataGridProps = {
|
|
|
86
86
|
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
87
87
|
|
|
88
88
|
interface CompletionResponseItem {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
field: string;
|
|
90
|
+
operator: string;
|
|
91
91
|
value?: string;
|
|
92
92
|
}
|
|
93
93
|
type CompletionResponse = {
|
|
94
|
-
|
|
94
|
+
logicOperator: 'and' | 'or';
|
|
95
95
|
items: CompletionResponseItem[];
|
|
96
96
|
};
|
|
97
97
|
interface LocaleText {
|
package/index.js
CHANGED
|
@@ -8516,7 +8516,7 @@ function getPopperUtilityClass(slot) {
|
|
|
8516
8516
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
8517
8517
|
|
|
8518
8518
|
const _excluded$E = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
8519
|
-
_excluded2$
|
|
8519
|
+
_excluded2$3 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
8520
8520
|
function flipPlacement(placement, direction) {
|
|
8521
8521
|
if (direction === 'ltr') {
|
|
8522
8522
|
return placement;
|
|
@@ -8700,7 +8700,7 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
|
|
|
8700
8700
|
slotProps = {},
|
|
8701
8701
|
slots = {}
|
|
8702
8702
|
} = props,
|
|
8703
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
8703
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$3);
|
|
8704
8704
|
const [exited, setExited] = React.useState(true);
|
|
8705
8705
|
const handleEnter = () => {
|
|
8706
8706
|
setExited(false);
|
|
@@ -14961,7 +14961,7 @@ function getPopoverUtilityClass(slot) {
|
|
|
14961
14961
|
generateUtilityClasses('MuiPopover', ['root', 'paper']);
|
|
14962
14962
|
|
|
14963
14963
|
const _excluded$l = ["onEntering"],
|
|
14964
|
-
_excluded2$
|
|
14964
|
+
_excluded2$2 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
|
|
14965
14965
|
_excluded3 = ["slotProps"];
|
|
14966
14966
|
function getOffsetTop(rect, vertical) {
|
|
14967
14967
|
let offset = 0;
|
|
@@ -15058,7 +15058,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
15058
15058
|
} = {}
|
|
15059
15059
|
} = props,
|
|
15060
15060
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$l),
|
|
15061
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
15061
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$2);
|
|
15062
15062
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
15063
15063
|
const paperRef = React.useRef();
|
|
15064
15064
|
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
@@ -15464,7 +15464,7 @@ function getMenuUtilityClass(slot) {
|
|
|
15464
15464
|
generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);
|
|
15465
15465
|
|
|
15466
15466
|
const _excluded$k = ["onEntering"],
|
|
15467
|
-
_excluded2 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
|
|
15467
|
+
_excluded2$1 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
|
|
15468
15468
|
const RTL_ORIGIN = {
|
|
15469
15469
|
vertical: 'top',
|
|
15470
15470
|
horizontal: 'right'
|
|
@@ -15531,7 +15531,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
15531
15531
|
variant = 'selectedMenu'
|
|
15532
15532
|
} = props,
|
|
15533
15533
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$k),
|
|
15534
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
15534
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$1);
|
|
15535
15535
|
const theme = useTheme();
|
|
15536
15536
|
const isRtl = theme.direction === 'rtl';
|
|
15537
15537
|
const ownerState = _extends$1({}, props, {
|
|
@@ -17647,7 +17647,7 @@ const getGridStringOperators = () => [...getGridStringOperators$1(), ...getGridS
|
|
|
17647
17647
|
|
|
17648
17648
|
const API_URL = 'https://api.openai.com/v1/chat/completions';
|
|
17649
17649
|
async function getCompletion(text, role, openai_api_key) {
|
|
17650
|
-
let model = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'gpt-3.5-turbo-
|
|
17650
|
+
let model = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'gpt-3.5-turbo-1106';
|
|
17651
17651
|
try {
|
|
17652
17652
|
const messages = [{
|
|
17653
17653
|
role: 'system',
|
|
@@ -21694,10 +21694,10 @@ const COMPONENT_NAME$2 = 'GridToolbarFilterSemanticField';
|
|
|
21694
21694
|
const CLASSNAME$2 = 'redsift-datagrid-toolbar-nlp-filter-field';
|
|
21695
21695
|
const DEFAULT_PROPS$1 = {
|
|
21696
21696
|
dateFormat: 'yyyy-mm-dd',
|
|
21697
|
-
defaultModel: 'gpt-4-
|
|
21697
|
+
defaultModel: 'gpt-4-1106-preview',
|
|
21698
21698
|
defaultFilter: {
|
|
21699
21699
|
items: [],
|
|
21700
|
-
|
|
21700
|
+
logicOperator: 'and'
|
|
21701
21701
|
},
|
|
21702
21702
|
disablePower: false,
|
|
21703
21703
|
localeText: {
|
|
@@ -21738,16 +21738,16 @@ const getRole = (config, dateFormat) => {
|
|
|
21738
21738
|
}).join('\n');
|
|
21739
21739
|
return `The AI assistant parses user input to generate a JSON object that will be used as a row filter for a data table MUI Data Grid.
|
|
21740
21740
|
The filter supports mulitple conditions using only two logical operator "and", "or". It only allows "and" between all conditions or "or" between all conditions. It can't mix the two types.
|
|
21741
|
-
The AI assistant extracts information from the user input and generates a JSON object with exactly the two keys "
|
|
21742
|
-
- "
|
|
21743
|
-
- "items": a list of conditions, each is an object with exactly the three keys "
|
|
21744
|
-
- "
|
|
21741
|
+
The AI assistant extracts information from the user input and generates a JSON object with exactly the two keys "logicOperator" and "items":
|
|
21742
|
+
- "logicOperator": the logical operator, only "and" or "or" are allowed. If there is only one condition in the "items", use "and".
|
|
21743
|
+
- "items": a list of conditions, each is an object with exactly the three keys "field", "operator" and "value":
|
|
21744
|
+
- "field": the column name, must be one of ${columns}
|
|
21745
21745
|
- "value":
|
|
21746
|
-
- this can be skipped if the "
|
|
21747
|
-
- a list of multiple values if the "
|
|
21746
|
+
- this can be skipped if the "operator" is either "isEmpty" or "isNotEmpty"
|
|
21747
|
+
- a list of multiple values if the "operator" ends with "AnyOf"
|
|
21748
21748
|
- otherwise, it's a single value represented as a string: "true" instead of true, "false" instead of false, "0.6" instead of 0.6.
|
|
21749
21749
|
For "date" data type, use ${dateFormat}. If relative date is input, convert to the actual date given today is ${today}.
|
|
21750
|
-
- "
|
|
21750
|
+
- "operator": the comparison operator, accepted values depend on the data type of the column
|
|
21751
21751
|
${operators}
|
|
21752
21752
|
|
|
21753
21753
|
Below is the datatype in square bracket, constraints on the data range if any, followed by the description of each column used in the data table:
|
|
@@ -21859,8 +21859,8 @@ const GridToolbarFilterSemanticField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
21859
21859
|
isLoading: isLoading
|
|
21860
21860
|
}, buttonText)), !disablePower && /*#__PURE__*/React__default.createElement(Tooltip, null, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, null, /*#__PURE__*/React__default.createElement(Switch, {
|
|
21861
21861
|
width: "175px",
|
|
21862
|
-
isSelected: modelRef.current === 'gpt-4-
|
|
21863
|
-
onChange: value => modelRef.current = value ? 'gpt-4-
|
|
21862
|
+
isSelected: modelRef.current === 'gpt-4-1106-preview',
|
|
21863
|
+
onChange: value => modelRef.current = value ? 'gpt-4-1106-preview' : 'gpt-3.5-turbo-1106'
|
|
21864
21864
|
}, powerText)), /*#__PURE__*/React__default.createElement(Tooltip.Content, null, powerTooltipContent))), showErrorRef.current && /*#__PURE__*/React__default.createElement(Text, {
|
|
21865
21865
|
color: "error",
|
|
21866
21866
|
marginLeft: "8px"
|
|
@@ -21877,7 +21877,7 @@ GridToolbarFilterSemanticField.displayName = COMPONENT_NAME$2;
|
|
|
21877
21877
|
|
|
21878
21878
|
/** ------ */
|
|
21879
21879
|
|
|
21880
|
-
const Toolbar$
|
|
21880
|
+
const Toolbar$3 = props => {
|
|
21881
21881
|
const {
|
|
21882
21882
|
hasExportButton = true,
|
|
21883
21883
|
exportButtonProps,
|
|
@@ -23607,7 +23607,7 @@ const ToolbarRoot = styled$1('div', {
|
|
|
23607
23607
|
theme,
|
|
23608
23608
|
ownerState
|
|
23609
23609
|
}) => ownerState.variant === 'regular' && theme.mixins.toolbar);
|
|
23610
|
-
const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
23610
|
+
const Toolbar$1 = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
23611
23611
|
const props = useThemeProps({
|
|
23612
23612
|
props: inProps,
|
|
23613
23613
|
name: 'MuiToolbar'
|
|
@@ -23632,7 +23632,7 @@ const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
|
|
|
23632
23632
|
ownerState: ownerState
|
|
23633
23633
|
}, other));
|
|
23634
23634
|
});
|
|
23635
|
-
process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */ = {
|
|
23635
|
+
process.env.NODE_ENV !== "production" ? Toolbar$1.propTypes /* remove-proptypes */ = {
|
|
23636
23636
|
// ----------------------------- Warning --------------------------------
|
|
23637
23637
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
23638
23638
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -23670,7 +23670,7 @@ process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */
|
|
|
23670
23670
|
*/
|
|
23671
23671
|
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dense', 'regular']), PropTypes.string])
|
|
23672
23672
|
} : void 0;
|
|
23673
|
-
var Toolbar$
|
|
23673
|
+
var Toolbar$2 = Toolbar$1;
|
|
23674
23674
|
|
|
23675
23675
|
var KeyboardArrowLeft = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
23676
23676
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
@@ -24018,7 +24018,7 @@ const TablePaginationRoot = styled$1(TableCell$1, {
|
|
|
24018
24018
|
padding: 0
|
|
24019
24019
|
}
|
|
24020
24020
|
}));
|
|
24021
|
-
const TablePaginationToolbar = styled$1(Toolbar$
|
|
24021
|
+
const TablePaginationToolbar = styled$1(Toolbar$2, {
|
|
24022
24022
|
name: 'MuiTablePagination',
|
|
24023
24023
|
slot: 'Toolbar',
|
|
24024
24024
|
overridesResolver: (props, styles) => _extends$1({
|
|
@@ -24368,7 +24368,8 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
24368
24368
|
} : void 0;
|
|
24369
24369
|
var TablePagination$1 = TablePagination;
|
|
24370
24370
|
|
|
24371
|
-
const _excluded$1 = ["
|
|
24371
|
+
const _excluded$1 = ["hideToolbar", "RenderedToolbar", "filterModel", "onFilterModelChange", "pagination", "ControlledPagination", "paginationPlacement", "selectionStatus", "apiRef", "isRowSelectable", "paginationModel", "onPaginationModelChange", "pageSizeOptions", "paginationProps"],
|
|
24372
|
+
_excluded2 = ["apiRef", "autoHeight", "className", "slots", "slotProps", "filterModel", "height", "hideToolbar", "initialState", "isRowSelectable", "license", "onFilterModelChange", "paginationModel", "onPaginationModelChange", "onRowSelectionModelChange", "pagination", "paginationPlacement", "paginationProps", "rows", "pageSizeOptions", "sx"];
|
|
24372
24373
|
const COMPONENT_NAME$1 = 'DataGrid';
|
|
24373
24374
|
const CLASSNAME$1 = 'redsift-datagrid';
|
|
24374
24375
|
const DEFAULT_PROPS = {
|
|
@@ -24442,8 +24443,42 @@ const ControlledPagination = _ref3 => {
|
|
|
24442
24443
|
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
24443
24444
|
}, paginationProps)) : null);
|
|
24444
24445
|
};
|
|
24446
|
+
const Toolbar = _ref4 => {
|
|
24447
|
+
let {
|
|
24448
|
+
hideToolbar,
|
|
24449
|
+
RenderedToolbar,
|
|
24450
|
+
filterModel,
|
|
24451
|
+
onFilterModelChange,
|
|
24452
|
+
pagination,
|
|
24453
|
+
ControlledPagination,
|
|
24454
|
+
paginationPlacement,
|
|
24455
|
+
selectionStatus,
|
|
24456
|
+
apiRef,
|
|
24457
|
+
isRowSelectable,
|
|
24458
|
+
paginationModel,
|
|
24459
|
+
onPaginationModelChange,
|
|
24460
|
+
pageSizeOptions,
|
|
24461
|
+
paginationProps
|
|
24462
|
+
} = _ref4,
|
|
24463
|
+
forwardedProps = _objectWithoutProperties(_ref4, _excluded$1);
|
|
24464
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideToolbar ? /*#__PURE__*/React__default.createElement(RenderedToolbar, _extends$2({}, forwardedProps, {
|
|
24465
|
+
filterModel: filterModel,
|
|
24466
|
+
onFilterModelChange: onFilterModelChange
|
|
24467
|
+
})) : null, pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, {
|
|
24468
|
+
displaySelection: true,
|
|
24469
|
+
displayRowsPerPage: false,
|
|
24470
|
+
displayPagination: ['top', 'both'].includes(paginationPlacement),
|
|
24471
|
+
selectionStatus: selectionStatus.current,
|
|
24472
|
+
apiRef: apiRef,
|
|
24473
|
+
isRowSelectable: isRowSelectable,
|
|
24474
|
+
paginationModel: paginationModel,
|
|
24475
|
+
onPaginationModelChange: onPaginationModelChange,
|
|
24476
|
+
pageSizeOptions: pageSizeOptions,
|
|
24477
|
+
paginationProps: paginationProps
|
|
24478
|
+
}) : null);
|
|
24479
|
+
};
|
|
24445
24480
|
const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
24446
|
-
var
|
|
24481
|
+
var _ref5, _ref6, _initialState$paginat, _initialState$paginat2, _initialState$paginat3, _pageSizeOptions$, _ref7, _initialState$paginat4, _initialState$paginat5, _initialState$paginat6;
|
|
24447
24482
|
const datagridRef = ref || useRef();
|
|
24448
24483
|
const {
|
|
24449
24484
|
apiRef: propsApiRef,
|
|
@@ -24468,10 +24503,10 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24468
24503
|
pageSizeOptions,
|
|
24469
24504
|
sx
|
|
24470
24505
|
} = props,
|
|
24471
|
-
forwardedProps = _objectWithoutProperties(props,
|
|
24506
|
+
forwardedProps = _objectWithoutProperties(props, _excluded2);
|
|
24472
24507
|
const _apiRef = useGridApiRef();
|
|
24473
24508
|
const apiRef = propsApiRef !== null && propsApiRef !== void 0 ? propsApiRef : _apiRef;
|
|
24474
|
-
const RenderedToolbar = slots !== null && slots !== void 0 && slots.toolbar ? slots.toolbar : Toolbar$
|
|
24509
|
+
const RenderedToolbar = slots !== null && slots !== void 0 && slots.toolbar ? slots.toolbar : Toolbar$3;
|
|
24475
24510
|
LicenseInfo.setLicenseKey(license);
|
|
24476
24511
|
const height = propsHeight !== null && propsHeight !== void 0 ? propsHeight : autoHeight ? undefined : '500px';
|
|
24477
24512
|
const selectionStatus = useRef({
|
|
@@ -24490,8 +24525,8 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24490
24525
|
}
|
|
24491
24526
|
};
|
|
24492
24527
|
const [paginationModel, setPaginationModel] = useState({
|
|
24493
|
-
pageSize: (
|
|
24494
|
-
page: (
|
|
24528
|
+
pageSize: (_ref5 = (_ref6 = (_initialState$paginat = initialState === null || initialState === void 0 ? void 0 : (_initialState$paginat2 = initialState.pagination) === null || _initialState$paginat2 === void 0 ? void 0 : (_initialState$paginat3 = _initialState$paginat2.paginationModel) === null || _initialState$paginat3 === void 0 ? void 0 : _initialState$paginat3.pageSize) !== null && _initialState$paginat !== void 0 ? _initialState$paginat : propsPaginationModel === null || propsPaginationModel === void 0 ? void 0 : propsPaginationModel.pageSize) !== null && _ref6 !== void 0 ? _ref6 : typeof (pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions[0]) === 'number' ? pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions[0] : pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : (_pageSizeOptions$ = pageSizeOptions[0]) === null || _pageSizeOptions$ === void 0 ? void 0 : _pageSizeOptions$.value) !== null && _ref5 !== void 0 ? _ref5 : 100,
|
|
24529
|
+
page: (_ref7 = (_initialState$paginat4 = initialState === null || initialState === void 0 ? void 0 : (_initialState$paginat5 = initialState.pagination) === null || _initialState$paginat5 === void 0 ? void 0 : (_initialState$paginat6 = _initialState$paginat5.paginationModel) === null || _initialState$paginat6 === void 0 ? void 0 : _initialState$paginat6.page) !== null && _initialState$paginat4 !== void 0 ? _initialState$paginat4 : propsPaginationModel === null || propsPaginationModel === void 0 ? void 0 : propsPaginationModel.page) !== null && _ref7 !== void 0 ? _ref7 : 0
|
|
24495
24530
|
});
|
|
24496
24531
|
const onPaginationModelChange = model => {
|
|
24497
24532
|
if (propsOnPaginationModelChange) {
|
|
@@ -24555,23 +24590,7 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24555
24590
|
displayName: "OpenFilterButtonIcon"
|
|
24556
24591
|
}, props))
|
|
24557
24592
|
}, slots), {}, {
|
|
24558
|
-
toolbar:
|
|
24559
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideToolbar ? /*#__PURE__*/React__default.createElement(RenderedToolbar, _extends$2({}, props, {
|
|
24560
|
-
filterModel: filterModel,
|
|
24561
|
-
onFilterModelChange: onFilterModelChange
|
|
24562
|
-
})) : null, pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, {
|
|
24563
|
-
displaySelection: true,
|
|
24564
|
-
displayRowsPerPage: false,
|
|
24565
|
-
displayPagination: ['top', 'both'].includes(paginationPlacement),
|
|
24566
|
-
selectionStatus: selectionStatus.current,
|
|
24567
|
-
apiRef: apiRef,
|
|
24568
|
-
isRowSelectable: isRowSelectable,
|
|
24569
|
-
paginationModel: paginationModel,
|
|
24570
|
-
onPaginationModelChange: onPaginationModelChange,
|
|
24571
|
-
pageSizeOptions: pageSizeOptions,
|
|
24572
|
-
paginationProps: paginationProps
|
|
24573
|
-
}) : null);
|
|
24574
|
-
},
|
|
24593
|
+
toolbar: Toolbar,
|
|
24575
24594
|
pagination: props => pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, _extends$2({}, props, {
|
|
24576
24595
|
displaySelection: false,
|
|
24577
24596
|
displayRowsPerPage: ['bottom', 'both'].includes(paginationPlacement),
|
|
@@ -24586,7 +24605,22 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24586
24605
|
})) : null
|
|
24587
24606
|
}),
|
|
24588
24607
|
slotProps: _objectSpread2(_objectSpread2({}, slotProps), {}, {
|
|
24589
|
-
toolbar: _objectSpread2({
|
|
24608
|
+
toolbar: _objectSpread2({
|
|
24609
|
+
hideToolbar,
|
|
24610
|
+
RenderedToolbar,
|
|
24611
|
+
filterModel,
|
|
24612
|
+
onFilterModelChange,
|
|
24613
|
+
pagination,
|
|
24614
|
+
ControlledPagination,
|
|
24615
|
+
paginationPlacement,
|
|
24616
|
+
selectionStatus,
|
|
24617
|
+
apiRef,
|
|
24618
|
+
isRowSelectable,
|
|
24619
|
+
paginationModel,
|
|
24620
|
+
onPaginationModelChange,
|
|
24621
|
+
pageSizeOptions,
|
|
24622
|
+
paginationProps
|
|
24623
|
+
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.toolbar)
|
|
24590
24624
|
}),
|
|
24591
24625
|
filterModel: filterModel,
|
|
24592
24626
|
initialState: initialState,
|
|
@@ -24599,33 +24633,33 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24599
24633
|
onPaginationModelChange: onPaginationModelChange,
|
|
24600
24634
|
onRowSelectionModelChange: (newSelectionModel, details) => {
|
|
24601
24635
|
if (pagination) {
|
|
24602
|
-
const selectableRowsInPage = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(
|
|
24636
|
+
const selectableRowsInPage = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref8 => {
|
|
24603
24637
|
var _props$isRowSelectabl;
|
|
24604
24638
|
let {
|
|
24605
24639
|
model
|
|
24606
|
-
} =
|
|
24640
|
+
} = _ref8;
|
|
24607
24641
|
return (_props$isRowSelectabl = props.isRowSelectable) === null || _props$isRowSelectabl === void 0 ? void 0 : _props$isRowSelectabl.call(props, {
|
|
24608
24642
|
row: model
|
|
24609
24643
|
});
|
|
24610
|
-
}).map(
|
|
24644
|
+
}).map(_ref9 => {
|
|
24611
24645
|
let {
|
|
24612
24646
|
id
|
|
24613
|
-
} =
|
|
24647
|
+
} = _ref9;
|
|
24614
24648
|
return id;
|
|
24615
24649
|
}) : gridPaginatedVisibleSortedGridRowIdsSelector(apiRef);
|
|
24616
24650
|
const numberOfSelectableRowsInPage = selectableRowsInPage.length;
|
|
24617
|
-
const selectableRowsInTable = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridFilteredSortedRowEntriesSelector(apiRef).filter(
|
|
24651
|
+
const selectableRowsInTable = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridFilteredSortedRowEntriesSelector(apiRef).filter(_ref10 => {
|
|
24618
24652
|
var _props$isRowSelectabl2;
|
|
24619
24653
|
let {
|
|
24620
24654
|
model
|
|
24621
|
-
} =
|
|
24655
|
+
} = _ref10;
|
|
24622
24656
|
return (_props$isRowSelectabl2 = props.isRowSelectable) === null || _props$isRowSelectabl2 === void 0 ? void 0 : _props$isRowSelectabl2.call(props, {
|
|
24623
24657
|
row: model
|
|
24624
24658
|
});
|
|
24625
|
-
}).map(
|
|
24659
|
+
}).map(_ref11 => {
|
|
24626
24660
|
let {
|
|
24627
24661
|
id
|
|
24628
|
-
} =
|
|
24662
|
+
} = _ref11;
|
|
24629
24663
|
return id;
|
|
24630
24664
|
}) : gridFilteredSortedRowIdsSelector(apiRef);
|
|
24631
24665
|
const numberOfSelectableRowsInTable = selectableRowsInTable.length;
|
|
@@ -24732,5 +24766,5 @@ const TextCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24732
24766
|
TextCell.className = CLASSNAME;
|
|
24733
24767
|
TextCell.displayName = COMPONENT_NAME;
|
|
24734
24768
|
|
|
24735
|
-
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DataGrid, ENDS_WITH_ANY_OF, GridToolbarFilterSemanticField, IS_ANY_OF, IS_BETWEEN, IS_NOT_ANY_OF, STARTS_WITH_ANY_OF, TextCell, Toolbar$
|
|
24769
|
+
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DataGrid, ENDS_WITH_ANY_OF, GridToolbarFilterSemanticField, IS_ANY_OF, IS_BETWEEN, IS_NOT_ANY_OF, STARTS_WITH_ANY_OF, TextCell, Toolbar$3 as Toolbar, getCompletion, getGridNumericOperators, getGridStringArrayOperators, getGridStringOperators };
|
|
24736
24770
|
//# sourceMappingURL=index.js.map
|