You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ObjectPage): refactor component to support ui5wc v2 (#6089)
BREAKING CHANGE: `headerContent` has been renamed to `headerArea` and
now only accepts the `ObjectPageHeader` component.
BREAKING CHANGE: `headerTitle` has been renamed to `titleArea` and now
only accepts the `ObjectPageTitle` component.
BREAKING CHANGE: `footer` has been renamed to `footerArea`.
BREAKING CHANGE: `onToggleHeaderContent` has been renamed to
`onToggleHeaderArea`
BREAKING CHANGE: `onPinnedStateChange` has been renamed to
`onPinButtonToggle`
BREAKING CHANGE: __ObjectPageTitle__: `actions` has been renamed to
`actionsBar`. Instead of single actions, the `Toolbar` component should
now be passed.
BREAKING CHANGE: __ObjectPageTitle__: `navigationActions` has been
renamed to `navigationBar`. Instead of single actions, the `Toolbar`
component should now be passed.
BREAKING CHANGE: __ObjectPageTitle__: `actionsToolbarProps`: Since it's
now recommended passing the `Toolbar` component directly, this prop is
redundant.
BREAKING CHANGE: __ObjectPageTitle__: `navigationActionsToolbarProps`:
Since it's now recommended passing the `Toolbar` component directly,
this prop is redundant.
Copy file name to clipboardExpand all lines: docs/MigrationGuide.mdx
+66-11Lines changed: 66 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -627,33 +627,88 @@ The regular methods are now general purpose, so they can be used both inside the
627
627
### ObjectPage
628
628
629
629
The newly introduced `DynamicPage` web component comes with its own `DynamicPageHeader` and `DynamicPageTitle` components, which are unfortunately incompatible with our `ObjectPage` implementation.
630
-
Please use the following components instead:
630
+
Please use the `ObjectPageHeader` or `ObjectPageTitle` component instead.
631
631
632
-
-`headerContent` now only accepts the `ObjectPageHeader` component.
633
-
-`headerTitle` now only accepts the `ObjectPageTitle` component.
632
+
**Removed Props:**
633
+
634
+
-`showHideHeaderButton`: Hiding the expand/collapse button is not supported by design anymore.
635
+
-`showTitleInHeaderContent`: Showing the `headerTitle` as part of the `headerContent` is [not supported by design anymore](https://experience.sap.com/fiori-design-web/object-page/#dynamic-page-header-mandatory).
636
+
637
+
**Refactored Props:**
638
+
639
+
-`headerContent` has been renamed to `headerArea` and now only accepts the `ObjectPageHeader` component.
640
+
-`headerTitle` has been renamed to `titleArea` and now only accepts the `ObjectPageTitle` component.
641
+
-`headerContentPinnable` has been renamed to `hidePinButton` and the logic has been inverted. The pin button is now shown by default.
634
642
635
643
**Renamed Props:**
636
644
637
645
-`a11yConfig` has been renamed to `accessibilityAttributes`
638
646
-`a11yConfig.dynamicPageAnchorBar` has been renamed to `accessibilityAttributes.objectPageAnchorBar`
639
647
-`alwaysShowContentHeader` has been renamed to `headerPinned`
640
-
-`headerContentPinnable` has been renamed to `hidePinButton` and the logic has been inverted. The pin button is now shown by default.
641
-
642
-
**Removed Props:**
643
-
644
-
-`showHideHeaderButton`: Hiding the expand/collapse button is not supported by design anymore.
645
-
-`showTitleInHeaderContent`: Showing the `headerTitle` as part of the `headerContent` is [not supported by design anymore](https://experience.sap.com/fiori-design-web/object-page/#dynamic-page-header-mandatory).
648
+
-`footer` has been renamed to `footerArea`
649
+
-`onToggleHeaderContent` has been renamed to `onToggleHeaderArea`
650
+
-`onPinnedStateChange` has been renamed to `onPinButtonToggle`
646
651
647
652
Also, the namings of internal `data-component-name` attributes have been adjusted accordingly. E.g. `data-component-name="DynamicPageTitleSubHeader"` has been renamed to `data-component-name="ObjectPageTitleSubHeader"`
648
653
649
-
### ObjectPageTitle
654
+
### ObjectPageTitle (f.k.a. DynamicPageTitle)
650
655
651
-
_The `ObjectPageTitle` component is the renamed implementation of the old (React only) `DynamicPageTitle` component._
656
+
_The `ObjectPageTitle` component is the renamed implementation of the old (React only) `DynamicPageTitle` component. Now, it should only be used in the `ObjectPage`._
652
657
653
658
**Removed Props:**
654
659
660
+
-`actionsToolbarProps`: Since it's now recommended passing the `Toolbar` component directly, this prop is redundant.
661
+
-`navigationActionsToolbarProps`: Since it's now recommended passing the `Toolbar` component directly, this prop is redundant.
655
662
-`showSubHeaderRight`: Displaying the subheader in the same line as the header is not supported by design anymore.
656
663
664
+
**Refactored Props:**
665
+
666
+
-`actions` has been renamed to `actionsBar`. Instead of single actions, the `Toolbar` component should now be passed.
667
+
-`navigationActions` has been renamed to `navigationBar`. Instead of single actions, the `Toolbar` component should now be passed. The `ObjectPageTitle` still offers support for the legacy `Toolbar`.
668
+
669
+
_The `ObjectPageTitle` still offers support for the legacy `Toolbar`. You can find out more about this [here](?path=/docs/layouts-floorplans-objectpage--docs#legacy-toolbar-support)._
The prop `titleText` is now required and the default value `true` has been removed for the `titleTextUppercase` prop to comply with the updated Fiori design guidelines.
0 commit comments