@openui5/sap.uxap 1.117.1 → 1.118.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.117.1",
3
+ "version": "1.118.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.117.1",
18
- "@openui5/sap.m": "1.117.1",
19
- "@openui5/sap.ui.core": "1.117.1",
20
- "@openui5/sap.ui.layout": "1.117.1"
17
+ "@openui5/sap.f": "1.118.0",
18
+ "@openui5/sap.m": "1.118.0",
19
+ "@openui5/sap.ui.core": "1.118.0",
20
+ "@openui5/sap.ui.layout": "1.118.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.117.1</version>
6
+ <version>1.118.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.117.1
24
+ * @version 1.118.0
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -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.117.1
25
+ * @version 1.118.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.117.1
43
+ * @version 1.118.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.117.1
45
+ * @version 1.118.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -464,7 +464,26 @@ sap.ui.define([
464
464
  * The event is fired when the Edit Header button is pressed
465
465
  */
466
466
  editHeaderButtonPress: {},
467
+ /**
468
+ * The event is fired before the selected section is changed using the navigation.
469
+ * This event can be aborted by the application with preventDefault(), which means that there will be no navigation.
470
+ * @since 1.118
471
+ */
472
+ beforeNavigate: {
473
+ allowPreventDefault: true,
474
+ parameters: {
475
+
476
+ /**
477
+ * The selected section object.
478
+ */
479
+ section: {type: "sap.uxap.ObjectPageSection"},
467
480
 
481
+ /**
482
+ * The selected subsection object.
483
+ */
484
+ subSection: {type: "sap.uxap.ObjectPageSubSection"}
485
+ }
486
+ },
468
487
  /**
469
488
  * The event is fired when the selected section is changed using the navigation.
470
489
  * @since 1.40
@@ -2263,6 +2282,15 @@ sap.ui.define([
2263
2282
  oSection = bIsSubSection ? oSectionBase.getParent() : oSectionBase;
2264
2283
  oSubSection = bIsSubSection ? oSectionBase : this._getFirstVisibleSubSection(oSectionBase);
2265
2284
 
2285
+ var bExecuteDefault = this.fireBeforeNavigate({
2286
+ section: oSection,
2287
+ subSection: oSubSection
2288
+ });
2289
+
2290
+ if (!bExecuteDefault) {
2291
+ return;
2292
+ }
2293
+
2266
2294
  // we set *direct* scrolling by which we instruct the page to *skip* processing of intermediate sections (sections between current and requested)
2267
2295
  this.setDirectScrollingToSection(oSection.getId());
2268
2296
  // finally request the page to scroll to the requested section
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Element
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.117.1
41
+ * @version 1.118.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -597,7 +597,8 @@ sap.ui.define([
597
597
  };
598
598
 
599
599
  ObjectPageSubSection.prototype.onAfterRendering = function () {
600
- var oObjectPageLayout = this._getObjectPageLayout();
600
+ var oObjectPageLayout = this._getObjectPageLayout(),
601
+ oParent = this.getParent();
601
602
 
602
603
  if (ObjectPageSectionBase.prototype.onAfterRendering) {
603
604
  ObjectPageSectionBase.prototype.onAfterRendering.call(this);
@@ -618,6 +619,12 @@ sap.ui.define([
618
619
  }
619
620
 
620
621
  this._bShouldFocusSeeMoreLessButton = false;
622
+
623
+ // Removes the horizontal spacing of the grid, which is needed for
624
+ // suport of Table inside ObjectPageSubSection scenario
625
+ if (oParent && oParent.hasStyleClass("sapUiTableOnObjectPageAdjustmentsForSection")) {
626
+ this.getAggregation("_grid").setProperty("hSpacing", 0);
627
+ }
621
628
  };
622
629
 
623
630
  ObjectPageSubSection.prototype.onBeforeRendering = function () {
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @constructor
24
24
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
25
25
  * @author SAP SE
26
- * @version 1.117.1
26
+ * @version 1.118.0
27
27
  * @since 1.75
28
28
  * @experimental Since 1.75
29
29
  */
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @constructor
24
24
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
25
25
  * @author SAP SE
26
- * @version 1.117.1
26
+ * @version 1.118.0
27
27
  * @experimental Since 1.54
28
28
  */
29
29
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
23
23
  * @author SAP SE
24
- * @version 1.117.1
24
+ * @version 1.118.0
25
25
  * @experimental Since 1.50
26
26
  */
27
27
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @constructor
20
20
  * @alias sap.uxap.changeHandler.UnstashObjectPageSection
21
21
  * @author SAP SE
22
- * @version 1.117.1
22
+ * @version 1.118.0
23
23
  * @experimental Since 1.115
24
24
  */
25
25
 
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace
31
31
  * @alias sap.uxap
32
32
  * @author SAP SE
33
- * @version 1.117.1
33
+ * @version 1.118.0
34
34
  * @since 1.36
35
35
  * @public
36
36
  */
@@ -73,7 +73,7 @@ sap.ui.define([
73
73
  "sap.uxap.ObjectPageHeaderLayoutData",
74
74
  "sap.uxap.ObjectPageLazyLoader"
75
75
  ],
76
- version: "1.117.1",
76
+ version: "1.118.0",
77
77
  extensions: {
78
78
  flChangeHandlers: {
79
79
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",