@openui5/sap.uxap 1.112.2 → 1.113.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/THIRDPARTY.txt CHANGED
@@ -478,7 +478,7 @@ License: Apache-2.0
478
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
479
  Contained in: lib/jsdoc/ui5/plugin.js
480
480
 
481
- Component: SAP Theming Base Content, version: 11.1.48
481
+ Component: SAP Theming Base Content, version: 11.2.1
482
482
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
483
  License: Apache-2.0
484
484
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.112.2",
3
+ "version": "1.113.0",
4
4
  "description": "OpenUI5 UI Library sap.uxap",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,9 +14,9 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.f": "1.112.2",
18
- "@openui5/sap.m": "1.112.2",
19
- "@openui5/sap.ui.core": "1.112.2",
20
- "@openui5/sap.ui.layout": "1.112.2"
17
+ "@openui5/sap.f": "1.113.0",
18
+ "@openui5/sap.m": "1.113.0",
19
+ "@openui5/sap.ui.core": "1.113.0",
20
+ "@openui5/sap.ui.layout": "1.113.0"
21
21
  }
22
22
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  <name>sap.uxap</name>
5
5
  <vendor>SAP SE</vendor>
6
- <version>1.112.2</version>
6
+ <version>1.113.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.112.2
24
+ * @version 1.113.0
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -99,7 +99,7 @@ sap.ui.define([
99
99
  * Keyboard handling requirement to have the same behavior on [ENTER] key
100
100
  * as on [SPACE] key (namely, to toggle the open state the select dropdown)
101
101
  */
102
- HierarchicalSelect.prototype.onsapenter = Select.prototype.onsapspace;
102
+ HierarchicalSelect.prototype.onsapenter = Select.prototype.ontap;
103
103
 
104
104
  /**
105
105
  * Keyboard handling of [UP], [PAGE-UP], [PAGE-DOWN], [HOME], [END] keys
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.112.2
25
+ * @version 1.113.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @implements sap.uxap.IHeaderContent
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.112.2
43
+ * @version 1.113.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -65,7 +65,8 @@ sap.ui.define([
65
65
  * @param bPinnable
66
66
  * @param sStableId
67
67
  */
68
- ObjectPageDynamicHeaderContent.createInstance = function (aContent, bVisible, sContentDesign, bPinnable, sStableId) {
68
+ ObjectPageDynamicHeaderContent.createInstance = function (aContent, bVisible, sContentDesign /* not used */, bPinnable, sStableId) {
69
+
69
70
  return new ObjectPageDynamicHeaderContent({
70
71
  content: aContent,
71
72
  visible: bVisible,
@@ -101,6 +102,7 @@ sap.ui.define([
101
102
  /**
102
103
  * Required by the {@link sap.uxap.IHeaderContent} interface.
103
104
  * @param sDesign
105
+ * @deprecated As of version 1.40.1
104
106
  */
105
107
  ObjectPageDynamicHeaderContent.prototype.setContentDesign = function (sDesign) {
106
108
  // implementation not supported
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.112.2
45
+ * @version 1.113.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -129,7 +129,7 @@ sap.ui.define([
129
129
  /**
130
130
  * Required by the {@link sap.uxap.IHeaderTitle} interface.
131
131
  *
132
- * @deprecated Since version 1.40.1
132
+ * @deprecated As of version 1.40.1
133
133
  */
134
134
  ObjectPageDynamicHeaderTitle.prototype.getHeaderDesign = function () {
135
135
  return library.ObjectPageHeaderDesign.Light;
@@ -168,7 +168,7 @@ sap.ui.define([
168
168
  * Determines the design of the header - Light or Dark.
169
169
  * <b>Note: </b>This property is deprecated. It will continue to work in the Blue Crystal theme,
170
170
  * but it will not be taken into account for the Belize themes.
171
- * @deprecated Since version 1.40.1
171
+ * @deprecated As of version 1.40.1
172
172
  */
173
173
  headerDesign: {
174
174
  type: "sap.uxap.ObjectPageHeaderDesign",
@@ -234,7 +234,7 @@ sap.ui.define([
234
234
  /**
235
235
  *
236
236
  * A list of all the active link elements in the BreadCrumbs control.
237
- * @deprecated as of version 1.50, use the <code>breadcrumbs</code> aggregation instead.
237
+ * @deprecated As of version 1.50, use the <code>breadcrumbs</code> aggregation instead.
238
238
  */
239
239
  breadCrumbsLinks: {type: "sap.m.Link", multiple: true, singularName: "breadCrumbLink", deprecated: true},
240
240
 
@@ -382,7 +382,7 @@ sap.ui.define([
382
382
  };
383
383
 
384
384
  /**
385
- * @deprecated as of version 1.50, breadCrumbsLinks has been deprecated
385
+ * @deprecated As of version 1.50, <code>breadCrumbsLinks</code> has been deprecated
386
386
  */
387
387
  ObjectPageHeader.getMetadata().forwardAggregation(
388
388
  "breadCrumbsLinks",
@@ -538,7 +538,7 @@ sap.ui.define([
538
538
  };
539
539
 
540
540
  /**
541
- * @deprecated Since version 1.40.1
541
+ * @deprecated As of version 1.40.1
542
542
  */
543
543
  ObjectPageHeader.prototype.setHeaderDesign = function (sHeaderDesign) {
544
544
  this.setProperty("headerDesign", sHeaderDesign);
@@ -655,6 +655,7 @@ sap.ui.define([
655
655
  oAction.setVisible = function (bVisible) {
656
656
  oAction._setInternalVisible(bVisible, true);
657
657
  Button.prototype.setVisible.call(this, bVisible);
658
+ that._adaptLayout();
658
659
  };
659
660
 
660
661
  oAction.onAfterRendering = function () {
@@ -1073,11 +1074,13 @@ sap.ui.define([
1073
1074
 
1074
1075
  /**
1075
1076
  * Determines whether to render the <code>breadcrumbs</code> or the <code>breadCrumbsLinks</code> aggregation.
1076
- * If <code>breadcrumbs</code> is set, the <code>breadCrumbsLinks</code> is omitted.
1077
1077
  * @private
1078
1078
  */
1079
1079
  ObjectPageHeader.prototype._getBreadcrumbsAggregation = function () {
1080
1080
  var oBreadCrumbs = this.getBreadcrumbs(),
1081
+ /**
1082
+ * @deprecated As of version 1.50, <code>breadCrumbsLinks</code> has been deprecated
1083
+ */
1081
1084
  oBreadCrumbsLegacy = this._lazyLoadInternalAggregation('_breadCrumbs', true);
1082
1085
 
1083
1086
  return oBreadCrumbs
@@ -70,7 +70,7 @@ sap.ui.define([
70
70
  * Determines the design of the header - Light or Dark.
71
71
  * <b>Note: </b>This property is deprecated. It will continue to work in the Blue Crystal theme,
72
72
  * but it will not be taken into account for the Belize themes.
73
- * @deprecated Since version 1.40.1
73
+ * @deprecated As of version 1.40.1
74
74
  */
75
75
  contentDesign: {
76
76
  type: "sap.uxap.ObjectPageHeaderDesign",
@@ -216,11 +216,10 @@ sap.ui.define([
216
216
  * @param bPinnable
217
217
  * @param sStableId
218
218
  */
219
- ObjectPageHeaderContent.createInstance = function (aContent, bVisible, sContentDesign, bPinnable, sStableId) {
219
+ ObjectPageHeaderContent.createInstance = function (aContent, bVisible, sContentDesign /* not used */, bPinnable, sStableId) {
220
220
  return new ObjectPageHeaderContent({
221
221
  content: aContent,
222
222
  visible: bVisible,
223
- contentDesign: sContentDesign,
224
223
  id: sStableId
225
224
  });
226
225
  };
@@ -32,6 +32,9 @@ sap.ui.define([
32
32
  if (bRenderEditBtn) {
33
33
  oRm.openStart("div", oControl)
34
34
  .class("sapUxAPObjectPageHeaderContentFlexBox")
35
+ /**
36
+ * @deprecated As of version 1.40.1
37
+ */
35
38
  .class("sapUxAPObjectPageHeaderContentDesign-" + oControl.getContentDesign());
36
39
 
37
40
  if (oHeader) {
@@ -45,6 +48,9 @@ sap.ui.define([
45
48
  if (bRenderEditBtn) {
46
49
  oRm.class("sapUxAPObjectPageHeaderContentCellLeft");
47
50
  } else {
51
+ /**
52
+ * @deprecated As of version 1.40.1
53
+ */
48
54
  oRm.class("sapUxAPObjectPageHeaderContentDesign-" + oControl.getContentDesign());
49
55
  if (oHeader) {
50
56
  oRm.class('sapUxAPObjectPageContentObjectImage-' + oHeader.getObjectImageShape());
@@ -30,7 +30,7 @@ sap.ui.define(["./ObjectImageHelper", "sap/ui/Device"], function (ObjectImageHel
30
30
 
31
31
  oRm.openStart("div", oControl).class('sapUxAPObjectPageHeader');
32
32
  /**
33
- * @deprecated Since version 1.40.1
33
+ * @deprecated As of version 1.40.1
34
34
  */
35
35
  oRm.class('sapUxAPObjectPageHeaderDesign-' + oControl.getHeaderDesign());
36
36
  oRm.openEnd();
@@ -712,7 +712,7 @@ sap.ui.define([
712
712
  this._createHeaderContent();
713
713
 
714
714
  /**
715
- * @deprecated Since version 1.40.1
715
+ * @deprecated As of version 1.40.1
716
716
  */
717
717
  this._getHeaderContent().setContentDesign(this._getHeaderDesign());
718
718
 
@@ -1236,7 +1236,7 @@ sap.ui.define([
1236
1236
  }
1237
1237
  // enable scrolling in non-fullscreen-mode only
1238
1238
  // (to avoid any scrollbar appearing even for an instance while we snap/unsnap header)
1239
- this._toggleScrolling(!this._bAllContentFitsContainer);
1239
+ this._toggleScrolling(!this._bAllContentFitsContainer || this._headerBiggerThanAllowedToBeFixed());
1240
1240
 
1241
1241
  this._registerOnContentResize();
1242
1242
 
@@ -1405,8 +1405,49 @@ sap.ui.define([
1405
1405
  horizontal: false,
1406
1406
  vertical: true
1407
1407
  });
1408
+
1409
+ this._oScroller.setOnAfterScrollToElement(this._onAfterScrollToElement.bind(this));
1408
1410
  };
1409
1411
 
1412
+ /**
1413
+ * Callback for the end of the scroll triggered from <code>scrollToElement</code>
1414
+ * of <code>sap.ui.core.delegate.ScrollEnablement</code>.
1415
+ *
1416
+ * Required for Safari and IE11 (where there is no browser automatic scroll adjustment,
1417
+ * see <code>overflow-anchor</code> CSS property).
1418
+ *
1419
+ * The execution of <code>scrollToElement</code> changes the current scroll position,
1420
+ * so we check if the new scroll position entails subsequent change of the scroll
1421
+ * container of our page(namely: snapping of the header, which involves removal
1422
+ * of the anchorBar from the top of the scroll container and placing it
1423
+ * in the title area above the scroll container instead).
1424
+ *
1425
+ * If such a change (namely, removal of the anchorBar from the top of the scroll container)
1426
+ * should occur, then the content bellow the removed anchorBar will became offset with X pixels,
1427
+ * where X is the anchorBar height => the element [provided to <code>scrollToElement </code>]
1428
+ * will be misplaced as a result.
1429
+ *
1430
+ * Therefore here we synchronously call the listener to the "scroll" event to check if
1431
+ * it entails the above snapping and subsequent misplacement => if it entails it,
1432
+ * then we adjust back the scroll position to correct the misplacement of the scrolled element.
1433
+ *
1434
+ * @private
1435
+ */
1436
+ ObjectPageLayout.prototype._onAfterScrollToElement = function () {
1437
+ var iScrollTop = this._$opWrapper.scrollTop(),
1438
+ bStickyAnchorBarBefore = this._bStickyAnchorBar;
1439
+
1440
+ // synchronously call the listener for the "scroll" event, to trigger any pending toggling of the header
1441
+ this._onScroll({ target: { scrollTop: iScrollTop}});
1442
+
1443
+ // if the anchorBar was sticked (removed from the topmost part of the scrollable area) =>
1444
+ // all elements bellow it became offset with X pixels, where X is the anchorBar height =>
1445
+ // the element (target of <code>scrollToElement</code>) was offset respectively =>
1446
+ // adjust the scroll position to ensure the element is back visible (outside scroll overflow)
1447
+ if (this._bStickyAnchorBar && !bStickyAnchorBarBefore && this._$opWrapper.scrollTop() === iScrollTop) {
1448
+ this._$opWrapper.scrollTop(iScrollTop - this.iAnchorBarHeight);
1449
+ }
1450
+ };
1410
1451
  /**
1411
1452
  * Sets the section that should be selected.
1412
1453
  *
@@ -2101,7 +2142,7 @@ sap.ui.define([
2101
2142
 
2102
2143
  // the current tab changed => update the <code>this._bAllContentFitsContainer</code> accordingly
2103
2144
  this._bAllContentFitsContainer = this._hasSingleVisibleFullscreenSubSection(oToSelect);
2104
- this._toggleScrolling(!this._bAllContentFitsContainer);
2145
+ this._toggleScrolling(!this._bAllContentFitsContainer || this._headerBiggerThanAllowedToBeFixed());
2105
2146
 
2106
2147
  bFullscreenModeChanged = this._bAllContentFitsContainer !== bWasFullscreenMode;
2107
2148
  if (bFullscreenModeChanged && !this._bHeaderExpanded) {
@@ -3013,6 +3054,7 @@ sap.ui.define([
3013
3054
  // (1) add top padding for the area underneath the title element
3014
3055
  // so that the title does not overlap the content of the scroll container
3015
3056
  oWrapperElement.style.paddingTop = iTitleHeight + "px";
3057
+ oWrapperElement.style.scrollPaddingTop = iTitleHeight + "px";
3016
3058
  if (this._oScroller) {
3017
3059
  this._oScroller.setScrollPaddingTop(iTitleHeight);
3018
3060
  }
@@ -3713,7 +3755,6 @@ sap.ui.define([
3713
3755
 
3714
3756
  ObjectPageLayout.prototype._createHeaderContent = function () {
3715
3757
  var oHeaderTitle = this.getHeaderTitle(),
3716
- sHeaderTitleBackgroundDesign = oHeaderTitle && oHeaderTitle.supportsBackgroundDesign() && oHeaderTitle.getBackgroundDesign(),
3717
3758
  oHeaderContent = this.getAggregation("_headerContent"),
3718
3759
  oOldHeaderContent,
3719
3760
  oNewHeaderContent;
@@ -3732,14 +3773,13 @@ sap.ui.define([
3732
3773
  oNewHeaderContent = fnHeaderContentClass.createInstance(
3733
3774
  this.getAggregation("headerContent"),
3734
3775
  this.getShowHeaderContent(),
3735
- this._getHeaderDesign(),
3776
+ "",
3736
3777
  this.getHeaderContentPinnable(),
3737
3778
  this.getId() + "-OPHeaderContent"
3738
3779
  );
3739
3780
 
3740
3781
  oNewHeaderContent.getContent().forEach(this._replaceHeaderContentParent, this);
3741
3782
 
3742
- sHeaderTitleBackgroundDesign && oNewHeaderContent.setBackgroundDesign(sHeaderTitleBackgroundDesign);
3743
3783
  this.setAggregation("_headerContent", oNewHeaderContent, true);
3744
3784
  }
3745
3785
  };
@@ -3749,7 +3789,7 @@ sap.ui.define([
3749
3789
  var oHeaderTitle = this.getHeaderTitle();
3750
3790
 
3751
3791
  /**
3752
- * @deprecated Since version 1.40.1
3792
+ * @deprecated As of version 1.40.1
3753
3793
  */
3754
3794
  if (oHeaderTitle && oHeaderTitle.getHeaderDesign() == "Dark") {
3755
3795
 
@@ -3774,7 +3814,7 @@ sap.ui.define([
3774
3814
  var oHeaderTitle = this.getHeaderTitle();
3775
3815
 
3776
3816
  /**
3777
- * @deprecated Since version 1.40.1
3817
+ * @deprecated As of version 1.40.1
3778
3818
  */
3779
3819
  if (oHeaderTitle && oHeaderTitle.getHeaderDesign() == "Dark") {
3780
3820
  if (this._bStickyAnchorBar) {
@@ -3946,7 +3986,7 @@ sap.ui.define([
3946
3986
  sDesign = library.ObjectPageHeaderDesign.Light;
3947
3987
 
3948
3988
  /**
3949
- * @deprecated Since version 1.40.1
3989
+ * @deprecated As of version 1.40.1
3950
3990
  */
3951
3991
  if (oHeader != null) {
3952
3992
  sDesign = oHeader.getHeaderDesign();
@@ -245,8 +245,11 @@ sap.ui.define([],
245
245
  ObjectPageLayoutRenderer._renderHeaderContentDOM = function (oRm, oControl, bRender, sId, bApplyBelizePlusClass) {
246
246
  oRm.openStart("header", oControl.getId() + sId)
247
247
  .class("ui-helper-clearfix")
248
- .class("sapUxAPObjectPageHeaderDetails")
249
- .class("sapUxAPObjectPageHeaderDetailsDesign-" + oControl._getHeaderDesign());
248
+ .class("sapUxAPObjectPageHeaderDetails");
249
+ /**
250
+ * @deprecated As of version 1.40.1
251
+ */
252
+ oRm.class("sapUxAPObjectPageHeaderDetailsDesign-" + oControl._getHeaderDesign());
250
253
 
251
254
  if (bApplyBelizePlusClass) {
252
255
  oRm.class("sapContrastPlus");
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Element
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.112.2
40
+ * @version 1.113.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
23
23
  * @author SAP SE
24
- * @version 1.112.2
24
+ * @version 1.113.0
25
25
  * @since 1.75
26
26
  * @experimental Since 1.75
27
27
  */
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/changeHandler/MoveControls", "sap/ui/core/Core", "sap/
13
13
  * @constructor
14
14
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
15
15
  * @author SAP SE
16
- * @version 1.112.2
16
+ * @version 1.113.0
17
17
  * @experimental Since 1.54
18
18
  */
19
19
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @constructor
20
20
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
21
21
  * @author SAP SE
22
- * @version 1.112.2
22
+ * @version 1.113.0
23
23
  * @experimental Since 1.50
24
24
  */
25
25
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.uxap
27
27
  * @author SAP SE
28
- * @version 1.112.2
28
+ * @version 1.113.0
29
29
  * @since 1.36
30
30
  * @public
31
31
  */
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  "sap.uxap.ObjectPageHeaderLayoutData",
69
69
  "sap.uxap.ObjectPageLazyLoader"
70
70
  ],
71
- version: "1.112.2",
71
+ version: "1.113.0",
72
72
  extensions: {
73
73
  flChangeHandlers: {
74
74
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
@@ -172,6 +172,7 @@ sap.ui.define([
172
172
  * @enum {string}
173
173
  * @public
174
174
  */
175
+
175
176
  thisLib.ObjectPageHeaderDesign = {
176
177
 
177
178
  /**
@@ -39,7 +39,7 @@ TOOLTIP_OP_CHANGES_MARK_VALUE=Ungesicherte \u00C4nderungen
39
39
 
40
40
  TOOLTIP_OP_EXPAND_HEADER_BTN=Kopfdaten expandieren
41
41
 
42
- TOOLTIP_OP_SHOW_SIDE_CONTENT=Seitenbereich \u00F6ffnen
42
+ TOOLTIP_OP_SHOW_SIDE_CONTENT=Seiten-Panel \u00F6ffnen
43
43
 
44
44
  ROOT_ARIA_LABEL_WITHOUT_TITLE=Objektdetails
45
45