@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 +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/BlockBaseMetadata.js +1 -1
- package/src/sap/uxap/ObjectPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderContent.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderTitle.js +1 -1
- package/src/sap/uxap/ObjectPageLayout.js +28 -0
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/ObjectPageSubSection.js +8 -1
- package/src/sap/uxap/changeHandler/AddIFrameObjectPageLayout.js +1 -1
- package/src/sap/uxap/changeHandler/MoveObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/RenameObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/UnstashObjectPageSection.js +1 -1
- package/src/sap/uxap/library.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "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.
|
|
18
|
-
"@openui5/sap.m": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.layout": "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
|
}
|
package/src/sap/uxap/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<name>sap.uxap</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
|
-
<version>1.
|
|
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>
|
|
@@ -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
|
|
@@ -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 () {
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @namespace
|
|
31
31
|
* @alias sap.uxap
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 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.
|
|
76
|
+
version: "1.118.0",
|
|
77
77
|
extensions: {
|
|
78
78
|
flChangeHandlers: {
|
|
79
79
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|