aefis-core-ui 2.5.0 → 2.5.2

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.
@@ -18222,7 +18222,6 @@ Section.propTypes = {
18222
18222
  sx: PropTypes.any
18223
18223
  };
18224
18224
 
18225
- // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
18226
18225
  const Header$1 = ({
18227
18226
  imageUrl,
18228
18227
  imageStyle,
@@ -18234,16 +18233,19 @@ const Header$1 = ({
18234
18233
  avatarColor,
18235
18234
  avatarIcon,
18236
18235
  format: _format = "default",
18237
- description
18236
+ description,
18237
+ titleWordBreak: _titleWordBreak = false
18238
18238
  }) => {
18239
- const containerStyle = {
18239
+ const containerStyle = _extends({
18240
18240
  display: "flex",
18241
18241
  alignItems: "center",
18242
18242
  boxSizing: "border-box",
18243
18243
  width: "100%",
18244
18244
  padding: _format === "default" ? 2 : 0,
18245
18245
  paddingBottom: _format === "default" ? 3 : 0
18246
- };
18246
+ }, _titleWordBreak && {
18247
+ wordBreak: "break-word"
18248
+ });
18247
18249
  const imageHeaderContainerStyle = {
18248
18250
  height: 125,
18249
18251
  margin: 2,
@@ -18304,7 +18306,8 @@ Header$1.propTypes = {
18304
18306
  avatarColor: PropTypes.string,
18305
18307
  avatarIcon: PropTypes.any,
18306
18308
  format: PropTypes.oneOf(["default", "noFormat"]),
18307
- description: PropTypes.string
18309
+ description: PropTypes.string,
18310
+ titleWordBreak: PropTypes.bool
18308
18311
  };
18309
18312
 
18310
18313
  // Copyright (c) 2022 HelioCampus Inc., all rights reserved.
@@ -21408,7 +21411,8 @@ const TitleAndActionHeader = /*#__PURE__*/React__default.forwardRef(({
21408
21411
  breadcrumbs,
21409
21412
  centerMobile: _centerMobile = false,
21410
21413
  centerMobileSx: _centerMobileSx = {},
21411
- titleWordBreak: _titleWordBreak = false
21414
+ titleWordBreak: _titleWordBreak = false,
21415
+ forcePDFLandscape
21412
21416
  }, ref) => {
21413
21417
  const filterSetConfiguration = filterSetsProp || initialFilterSetsProp;
21414
21418
  const [open, setOpen] = useState(false);
@@ -21643,7 +21647,8 @@ const TitleAndActionHeader = /*#__PURE__*/React__default.forwardRef(({
21643
21647
  children: [_additionalActionsPosition === "left" && additionalActions, actions && /*#__PURE__*/jsx(Actions, {
21644
21648
  data: actions
21645
21649
  }), _additionalActionsPosition === "right" && additionalActions, _showExport && /*#__PURE__*/jsx(ExportButton, {
21646
- options: exportOptions
21650
+ options: exportOptions,
21651
+ forcePDFLandscape: forcePDFLandscape
21647
21652
  })]
21648
21653
  })
21649
21654
  })
@@ -21716,6 +21721,8 @@ TitleAndActionHeader.propTypes = {
21716
21721
  /** if a url is provided, the export is directed the url. */
21717
21722
  url: PropTypes.string
21718
21723
  })),
21724
+ /** pdf export will be on landscape mode */
21725
+ forcePDFLandscape: PropTypes.bool,
21719
21726
  /** Function to execute when the filter button is clicked. If provided, the filter button will be displayed. */
21720
21727
  onFilterClick: PropTypes.func,
21721
21728
  /** Have filters been applied? */