@redsift/table 9.3.3-muiv5 → 9.4.0-muiv5

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.
Files changed (3) hide show
  1. package/index.js +81 -43
  2. package/index.js.map +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -8515,7 +8515,7 @@ function getPopperUtilityClass(slot) {
8515
8515
  generateUtilityClasses('MuiPopper', ['root']);
8516
8516
 
8517
8517
  const _excluded$E = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
8518
- _excluded2$2 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
8518
+ _excluded2$3 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
8519
8519
  function flipPlacement(placement, direction) {
8520
8520
  if (direction === 'ltr') {
8521
8521
  return placement;
@@ -8699,7 +8699,7 @@ const Popper$2 = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedR
8699
8699
  slotProps = {},
8700
8700
  slots = {}
8701
8701
  } = props,
8702
- other = _objectWithoutPropertiesLoose(props, _excluded2$2);
8702
+ other = _objectWithoutPropertiesLoose(props, _excluded2$3);
8703
8703
  const [exited, setExited] = React.useState(true);
8704
8704
  const handleEnter = () => {
8705
8705
  setExited(false);
@@ -14960,7 +14960,7 @@ function getPopoverUtilityClass(slot) {
14960
14960
  generateUtilityClasses('MuiPopover', ['root', 'paper']);
14961
14961
 
14962
14962
  const _excluded$l = ["onEntering"],
14963
- _excluded2$1 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
14963
+ _excluded2$2 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
14964
14964
  _excluded3 = ["slotProps"];
14965
14965
  function getOffsetTop(rect, vertical) {
14966
14966
  let offset = 0;
@@ -15057,7 +15057,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
15057
15057
  } = {}
15058
15058
  } = props,
15059
15059
  TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$l),
15060
- other = _objectWithoutPropertiesLoose(props, _excluded2$1);
15060
+ other = _objectWithoutPropertiesLoose(props, _excluded2$2);
15061
15061
  const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
15062
15062
  const paperRef = React.useRef();
15063
15063
  const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
@@ -15463,7 +15463,7 @@ function getMenuUtilityClass(slot) {
15463
15463
  generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);
15464
15464
 
15465
15465
  const _excluded$k = ["onEntering"],
15466
- _excluded2 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
15466
+ _excluded2$1 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
15467
15467
  const RTL_ORIGIN = {
15468
15468
  vertical: 'top',
15469
15469
  horizontal: 'right'
@@ -15530,7 +15530,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
15530
15530
  variant = 'selectedMenu'
15531
15531
  } = props,
15532
15532
  TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$k),
15533
- other = _objectWithoutPropertiesLoose(props, _excluded2);
15533
+ other = _objectWithoutPropertiesLoose(props, _excluded2$1);
15534
15534
  const theme = useTheme();
15535
15535
  const isRtl = theme.direction === 'rtl';
15536
15536
  const ownerState = _extends$1({}, props, {
@@ -21876,7 +21876,7 @@ GridToolbarFilterSemanticField.displayName = COMPONENT_NAME$2;
21876
21876
 
21877
21877
  /** ------ */
21878
21878
 
21879
- const Toolbar$2 = props => {
21879
+ const Toolbar$3 = props => {
21880
21880
  const {
21881
21881
  hasExportButton = true,
21882
21882
  exportButtonProps,
@@ -23606,7 +23606,7 @@ const ToolbarRoot = styled$1('div', {
23606
23606
  theme,
23607
23607
  ownerState
23608
23608
  }) => ownerState.variant === 'regular' && theme.mixins.toolbar);
23609
- const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
23609
+ const Toolbar$1 = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
23610
23610
  const props = useThemeProps({
23611
23611
  props: inProps,
23612
23612
  name: 'MuiToolbar'
@@ -23631,7 +23631,7 @@ const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
23631
23631
  ownerState: ownerState
23632
23632
  }, other));
23633
23633
  });
23634
- process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */ = {
23634
+ process.env.NODE_ENV !== "production" ? Toolbar$1.propTypes /* remove-proptypes */ = {
23635
23635
  // ----------------------------- Warning --------------------------------
23636
23636
  // | These PropTypes are generated from the TypeScript type definitions |
23637
23637
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -23669,7 +23669,7 @@ process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */
23669
23669
  */
23670
23670
  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dense', 'regular']), PropTypes.string])
23671
23671
  } : void 0;
23672
- var Toolbar$1 = Toolbar;
23672
+ var Toolbar$2 = Toolbar$1;
23673
23673
 
23674
23674
  var KeyboardArrowLeft = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
23675
23675
  d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
@@ -24017,7 +24017,7 @@ const TablePaginationRoot = styled$1(TableCell$1, {
24017
24017
  padding: 0
24018
24018
  }
24019
24019
  }));
24020
- const TablePaginationToolbar = styled$1(Toolbar$1, {
24020
+ const TablePaginationToolbar = styled$1(Toolbar$2, {
24021
24021
  name: 'MuiTablePagination',
24022
24022
  slot: 'Toolbar',
24023
24023
  overridesResolver: (props, styles) => _extends$1({
@@ -24367,7 +24367,8 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
24367
24367
  } : void 0;
24368
24368
  var TablePagination$1 = TablePagination;
24369
24369
 
24370
- const _excluded$1 = ["apiRef", "autoHeight", "className", "components", "componentsProps", "filterModel", "height", "hideToolbar", "initialState", "isRowSelectable", "license", "onFilterModelChange", "onPageChange", "onPageSizeChange", "onSelectionModelChange", "page", "pageSize", "pagination", "paginationPlacement", "paginationProps", "rows", "rowsPerPageOptions", "sx"];
24370
+ const _excluded$1 = ["hideToolbar", "RenderedToolbar", "filterModel", "onFilterModelChange", "pagination", "ControlledPagination", "paginationPlacement", "selectionStatus", "apiRef", "isRowSelectable", "page", "onPageChange", "pageSize", "onPageSizeChange", "rowsPerPageOptions", "paginationProps"],
24371
+ _excluded2 = ["apiRef", "autoHeight", "className", "components", "componentsProps", "filterModel", "height", "hideToolbar", "initialState", "isRowSelectable", "license", "onFilterModelChange", "onPageChange", "onPageSizeChange", "onSelectionModelChange", "page", "pageSize", "pagination", "paginationPlacement", "paginationProps", "rows", "rowsPerPageOptions", "sx"];
24371
24372
  const COMPONENT_NAME$1 = 'DataGrid';
24372
24373
  const CLASSNAME$1 = 'redsift-datagrid';
24373
24374
  const DEFAULT_PROPS = {
@@ -24439,6 +24440,44 @@ const ControlledPagination = _ref3 => {
24439
24440
  rowsPerPageOptions: displayRowsPerPage ? rowsPerPageOptions : []
24440
24441
  }, paginationProps)) : null);
24441
24442
  };
24443
+ const Toolbar = _ref4 => {
24444
+ let {
24445
+ hideToolbar,
24446
+ RenderedToolbar,
24447
+ filterModel,
24448
+ onFilterModelChange,
24449
+ pagination,
24450
+ ControlledPagination,
24451
+ paginationPlacement,
24452
+ selectionStatus,
24453
+ apiRef,
24454
+ isRowSelectable,
24455
+ page,
24456
+ onPageChange,
24457
+ pageSize,
24458
+ onPageSizeChange,
24459
+ rowsPerPageOptions,
24460
+ paginationProps
24461
+ } = _ref4,
24462
+ forwardedProps = _objectWithoutProperties(_ref4, _excluded$1);
24463
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideToolbar ? /*#__PURE__*/React__default.createElement(RenderedToolbar, _extends$2({}, forwardedProps, {
24464
+ filterModel: filterModel,
24465
+ onFilterModelChange: onFilterModelChange
24466
+ })) : null, pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, {
24467
+ displaySelection: true,
24468
+ displayRowsPerPage: false,
24469
+ displayPagination: ['top', 'both'].includes(paginationPlacement),
24470
+ selectionStatus: selectionStatus.current,
24471
+ apiRef: apiRef,
24472
+ isRowSelectable: isRowSelectable,
24473
+ page: page,
24474
+ onPageChange: onPageChange,
24475
+ pageSize: pageSize,
24476
+ onPageSizeChange: onPageSizeChange,
24477
+ rowsPerPageOptions: rowsPerPageOptions,
24478
+ paginationProps: paginationProps
24479
+ }) : null);
24480
+ };
24442
24481
  const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
24443
24482
  var _initialState$paginat, _initialState$paginat2;
24444
24483
  const datagridRef = ref || useRef();
@@ -24467,10 +24506,10 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
24467
24506
  rowsPerPageOptions,
24468
24507
  sx
24469
24508
  } = props,
24470
- forwardedProps = _objectWithoutProperties(props, _excluded$1);
24509
+ forwardedProps = _objectWithoutProperties(props, _excluded2);
24471
24510
  const _apiRef = useGridApiRef();
24472
24511
  const apiRef = propsApiRef !== null && propsApiRef !== void 0 ? propsApiRef : _apiRef;
24473
- const RenderedToolbar = components !== null && components !== void 0 && components.Toolbar ? components.Toolbar : Toolbar$2;
24512
+ const RenderedToolbar = components !== null && components !== void 0 && components.Toolbar ? components.Toolbar : Toolbar$3;
24474
24513
  LicenseInfo.setLicenseKey(license);
24475
24514
  const height = propsHeight !== null && propsHeight !== void 0 ? propsHeight : autoHeight ? undefined : '500px';
24476
24515
  const selectionStatus = useRef({
@@ -24565,25 +24604,7 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
24565
24604
  displayName: "OpenFilterButtonIcon"
24566
24605
  }, props))
24567
24606
  }, components), {}, {
24568
- Toolbar: props => {
24569
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideToolbar ? /*#__PURE__*/React__default.createElement(RenderedToolbar, _extends$2({}, props, {
24570
- filterModel: filterModel,
24571
- onFilterModelChange: onFilterModelChange
24572
- })) : null, pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, {
24573
- displaySelection: true,
24574
- displayRowsPerPage: false,
24575
- displayPagination: ['top', 'both'].includes(paginationPlacement),
24576
- selectionStatus: selectionStatus.current,
24577
- apiRef: apiRef,
24578
- isRowSelectable: isRowSelectable,
24579
- page: page,
24580
- onPageChange: onPageChange,
24581
- pageSize: pageSize,
24582
- onPageSizeChange: onPageSizeChange,
24583
- rowsPerPageOptions: rowsPerPageOptions,
24584
- paginationProps: paginationProps
24585
- }) : null);
24586
- },
24607
+ Toolbar: Toolbar,
24587
24608
  Pagination: props => pagination ? /*#__PURE__*/React__default.createElement(ControlledPagination, _extends$2({}, props, {
24588
24609
  displaySelection: false,
24589
24610
  displayRowsPerPage: ['bottom', 'both'].includes(paginationPlacement),
@@ -24600,7 +24621,24 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
24600
24621
  })) : null
24601
24622
  }),
24602
24623
  componentsProps: _objectSpread2(_objectSpread2({}, componentsProps), {}, {
24603
- toolbar: _objectSpread2({}, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.toolbar)
24624
+ toolbar: _objectSpread2({
24625
+ hideToolbar,
24626
+ RenderedToolbar,
24627
+ filterModel,
24628
+ onFilterModelChange,
24629
+ pagination,
24630
+ ControlledPagination,
24631
+ paginationPlacement,
24632
+ selectionStatus,
24633
+ apiRef,
24634
+ isRowSelectable,
24635
+ page,
24636
+ onPageChange,
24637
+ pageSize,
24638
+ onPageSizeChange,
24639
+ rowsPerPageOptions,
24640
+ paginationProps
24641
+ }, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.toolbar)
24604
24642
  }),
24605
24643
  filterModel: filterModel,
24606
24644
  initialState: initialState,
@@ -24615,33 +24653,33 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
24615
24653
  onPageSizeChange: onPageSizeChange,
24616
24654
  onSelectionModelChange: (newSelectionModel, details) => {
24617
24655
  if (pagination) {
24618
- const selectableRowsInPage = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref4 => {
24656
+ const selectableRowsInPage = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref5 => {
24619
24657
  var _props$isRowSelectabl;
24620
24658
  let {
24621
24659
  model
24622
- } = _ref4;
24660
+ } = _ref5;
24623
24661
  return (_props$isRowSelectabl = props.isRowSelectable) === null || _props$isRowSelectabl === void 0 ? void 0 : _props$isRowSelectabl.call(props, {
24624
24662
  row: model
24625
24663
  });
24626
- }).map(_ref5 => {
24664
+ }).map(_ref6 => {
24627
24665
  let {
24628
24666
  id
24629
- } = _ref5;
24667
+ } = _ref6;
24630
24668
  return id;
24631
24669
  }) : gridPaginatedVisibleSortedGridRowIdsSelector(apiRef);
24632
24670
  const numberOfSelectableRowsInPage = selectableRowsInPage.length;
24633
- const selectableRowsInTable = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridFilteredSortedRowEntriesSelector(apiRef).filter(_ref6 => {
24671
+ const selectableRowsInTable = props.isRowSelectable && typeof props.isRowSelectable === 'function' ? gridFilteredSortedRowEntriesSelector(apiRef).filter(_ref7 => {
24634
24672
  var _props$isRowSelectabl2;
24635
24673
  let {
24636
24674
  model
24637
- } = _ref6;
24675
+ } = _ref7;
24638
24676
  return (_props$isRowSelectabl2 = props.isRowSelectable) === null || _props$isRowSelectabl2 === void 0 ? void 0 : _props$isRowSelectabl2.call(props, {
24639
24677
  row: model
24640
24678
  });
24641
- }).map(_ref7 => {
24679
+ }).map(_ref8 => {
24642
24680
  let {
24643
24681
  id
24644
- } = _ref7;
24682
+ } = _ref8;
24645
24683
  return id;
24646
24684
  }) : gridFilteredSortedRowIdsSelector(apiRef);
24647
24685
  const numberOfSelectableRowsInTable = selectableRowsInTable.length;
@@ -24748,5 +24786,5 @@ const TextCell = /*#__PURE__*/forwardRef((props, ref) => {
24748
24786
  TextCell.className = CLASSNAME;
24749
24787
  TextCell.displayName = COMPONENT_NAME;
24750
24788
 
24751
- 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$2 as Toolbar, getCompletion, getGridNumericOperators, getGridStringArrayOperators, getGridStringOperators };
24789
+ 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 };
24752
24790
  //# sourceMappingURL=index.js.map