@openui5/sap.uxap 1.100.0 → 1.101.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 +5 -5
- package/package.json +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/BlockBase.js +2 -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 +5 -3
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -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 +14 -3
- package/src/sap/uxap/library.js +16 -18
package/THIRDPARTY.txt
CHANGED
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.38
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.
|
|
3
|
+
"version": "1.101.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.101.0",
|
|
18
|
+
"@openui5/sap.m": "1.101.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.101.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.101.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.101.0</version>
|
|
7
7
|
<copyright>OpenUI5
|
|
8
8
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
@@ -378,6 +378,7 @@ sap.ui.define([
|
|
|
378
378
|
/**
|
|
379
379
|
* Set the column layout for this particular block.
|
|
380
380
|
* @param {string} sLayout The column layout to apply to the control
|
|
381
|
+
* @returns {*} this
|
|
381
382
|
* @public
|
|
382
383
|
*/
|
|
383
384
|
BlockBase.prototype.setColumnLayout = function (sLayout) {
|
|
@@ -386,7 +387,7 @@ sap.ui.define([
|
|
|
386
387
|
/*the parent subsection needs to recalculate block layout data
|
|
387
388
|
based on the changed block column layout */
|
|
388
389
|
}
|
|
389
|
-
this.setProperty("columnLayout", sLayout);
|
|
390
|
+
return this.setProperty("columnLayout", sLayout);
|
|
390
391
|
};
|
|
391
392
|
|
|
392
393
|
/**
|
|
@@ -1984,9 +1984,11 @@ sap.ui.define([
|
|
|
1984
1984
|
this._setCurrentTabSection(oSelectedSection);
|
|
1985
1985
|
this._bAllContentFitsContainer = this._hasSingleVisibleFullscreenSubSection(oSelectedSection);
|
|
1986
1986
|
}
|
|
1987
|
-
this.
|
|
1987
|
+
if (this.getEnableLazyLoading() && this._oLazyLoading) {
|
|
1988
|
+
this._oLazyLoading.doLazyLoading();
|
|
1989
|
+
}
|
|
1988
1990
|
// if the current scroll position is not at the selected section OR the ScrollEnablement is still scrolling due to an animation
|
|
1989
|
-
if (!this._isClosestScrolledSection(sSelectedSectionId) || this._oScroller._$Container.is(":animated")) {
|
|
1991
|
+
if (!this._isClosestScrolledSection(sSelectedSectionId) || (this._oScroller._$Container && this._oScroller._$Container.is(":animated"))) {
|
|
1990
1992
|
// then change the selection to match the correct section
|
|
1991
1993
|
this.scrollToSection(sSelectedSectionId, null, 0, false, true /* redirect scroll */);
|
|
1992
1994
|
}
|
|
@@ -3162,7 +3164,7 @@ sap.ui.define([
|
|
|
3162
3164
|
var iScrollTop = Math.max(Math.ceil(oEvent.target.scrollTop), 0), // top of the visible page
|
|
3163
3165
|
$wrapper = this._$opWrapper.length && this._$opWrapper[0],
|
|
3164
3166
|
$spacer = this._$spacer.length && this._$spacer[0],
|
|
3165
|
-
iSpacerHeight = $spacer.
|
|
3167
|
+
iSpacerHeight = this._$spacer.height(),
|
|
3166
3168
|
iPageHeight,
|
|
3167
3169
|
oHeader = this.getHeaderTitle(),
|
|
3168
3170
|
bShouldStick = this._shouldSnapHeaderOnScroll(iScrollTop),
|
|
@@ -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.
|
|
24
|
+
* @version 1.101.0
|
|
25
25
|
* @experimental Since 1.50
|
|
26
26
|
*/
|
|
27
27
|
|
|
@@ -34,23 +34,34 @@ sap.ui.define([
|
|
|
34
34
|
var RenameObjectPageSection = BaseRename.createRenameChangeHandler(mRenameSettings);
|
|
35
35
|
|
|
36
36
|
RenameObjectPageSection._getControlForRename = function (oControl, oModifier) {
|
|
37
|
-
var aSubSections
|
|
37
|
+
var aSubSections,
|
|
38
|
+
vTitle;
|
|
39
|
+
|
|
38
40
|
return Promise.resolve()
|
|
39
41
|
.then(function() {
|
|
40
42
|
return oModifier.getAggregation(oControl, "subSections");
|
|
41
43
|
})
|
|
42
44
|
.then(function(aSubSectionsLocal) {
|
|
43
45
|
aSubSections = aSubSectionsLocal;
|
|
46
|
+
|
|
47
|
+
if (aSubSections.length !== 1) {
|
|
48
|
+
// if there are no or more than one sub sections, the following
|
|
49
|
+
// code should not execute and oControl should be returned
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
return Promise.all([oModifier.getPropertyBindingOrProperty(aSubSections[0], "title"),
|
|
45
54
|
oModifier.getProperty(oModifier.getParent(oControl), "subSectionLayout")]);
|
|
46
55
|
})
|
|
47
56
|
.then(function(aProperties) {
|
|
48
57
|
// due to specific logic in the Object Page Layout, the title of the Section is
|
|
49
58
|
// taken from its SubSection in case it is only one no matter if the Section has title itself.
|
|
59
|
+
vTitle = aProperties[0];
|
|
50
60
|
|
|
51
61
|
if (aSubSections
|
|
52
62
|
&& aSubSections.length === 1
|
|
53
|
-
&&
|
|
63
|
+
&& vTitle
|
|
64
|
+
&& (typeof vTitle === "object") || (typeof vTitle === "string" && vTitle.trim() !== "")
|
|
54
65
|
&& aProperties[1] === "TitleOnTop"
|
|
55
66
|
) {
|
|
56
67
|
return aSubSections[0];
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -22,15 +22,13 @@ sap.ui.define([
|
|
|
22
22
|
* SAP UxAP
|
|
23
23
|
*
|
|
24
24
|
* @namespace
|
|
25
|
-
* @
|
|
25
|
+
* @alias sap.uxap
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.101.0
|
|
28
28
|
* @since 1.36
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
// delegate further initialization of this library to the Core
|
|
33
|
-
sap.ui.getCore().initLibrary({
|
|
31
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
34
32
|
name: "sap.uxap",
|
|
35
33
|
dependencies: ["sap.ui.core", "sap.f", "sap.m", "sap.ui.layout"],
|
|
36
34
|
designtime: "sap/uxap/designtime/library.designtime",
|
|
@@ -69,7 +67,7 @@ sap.ui.define([
|
|
|
69
67
|
"sap.uxap.ObjectPageHeaderLayoutData",
|
|
70
68
|
"sap.uxap.ObjectPageLazyLoader"
|
|
71
69
|
],
|
|
72
|
-
version: "1.
|
|
70
|
+
version: "1.101.0",
|
|
73
71
|
extensions: {
|
|
74
72
|
flChangeHandlers: {
|
|
75
73
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|
|
@@ -109,7 +107,7 @@ sap.ui.define([
|
|
|
109
107
|
* @public
|
|
110
108
|
* @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
|
|
111
109
|
*/
|
|
112
|
-
|
|
110
|
+
thisLib.BlockBaseColumnLayout = DataType.createType('sap.uxap.BlockBaseColumnLayout', {
|
|
113
111
|
isValid: function (vValue) {
|
|
114
112
|
return /^(auto|[1-4]{1})$/.test(vValue);
|
|
115
113
|
}
|
|
@@ -127,7 +125,7 @@ sap.ui.define([
|
|
|
127
125
|
* @public
|
|
128
126
|
* @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
|
|
129
127
|
*/
|
|
130
|
-
|
|
128
|
+
thisLib.BlockBaseFormAdjustment = {
|
|
131
129
|
|
|
132
130
|
/**
|
|
133
131
|
* Any form within the block will be automatically adjusted to have as many columns as the colspan of its parent block.
|
|
@@ -154,7 +152,7 @@ sap.ui.define([
|
|
|
154
152
|
* @public
|
|
155
153
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
156
154
|
*/
|
|
157
|
-
|
|
155
|
+
thisLib.ObjectPageConfigurationMode = {
|
|
158
156
|
|
|
159
157
|
/**
|
|
160
158
|
* Determines the JSON URL.
|
|
@@ -177,7 +175,7 @@ sap.ui.define([
|
|
|
177
175
|
* @public
|
|
178
176
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
179
177
|
*/
|
|
180
|
-
|
|
178
|
+
thisLib.ObjectPageHeaderDesign = {
|
|
181
179
|
|
|
182
180
|
/**
|
|
183
181
|
* Light theme for the <code>ObjectPageHeader</code>.
|
|
@@ -200,7 +198,7 @@ sap.ui.define([
|
|
|
200
198
|
* @public
|
|
201
199
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
202
200
|
*/
|
|
203
|
-
|
|
201
|
+
thisLib.ObjectPageHeaderPictureShape = {
|
|
204
202
|
|
|
205
203
|
/**
|
|
206
204
|
* Circle shape for the images in the <code>ObjectPageHeader</code>.
|
|
@@ -223,7 +221,7 @@ sap.ui.define([
|
|
|
223
221
|
* @public
|
|
224
222
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
225
223
|
*/
|
|
226
|
-
|
|
224
|
+
thisLib.ObjectPageSubSectionLayout = {
|
|
227
225
|
|
|
228
226
|
/**
|
|
229
227
|
* Title and actions on top of the block area.
|
|
@@ -246,7 +244,7 @@ sap.ui.define([
|
|
|
246
244
|
* @public
|
|
247
245
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
248
246
|
*/
|
|
249
|
-
|
|
247
|
+
thisLib.ObjectPageSubSectionMode = {
|
|
250
248
|
|
|
251
249
|
/**
|
|
252
250
|
* Collapsed mode of display of the <code>ObjectPageLayout</code>.
|
|
@@ -271,7 +269,7 @@ sap.ui.define([
|
|
|
271
269
|
* @since 1.32.0
|
|
272
270
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
273
271
|
*/
|
|
274
|
-
|
|
272
|
+
thisLib.Importance = {
|
|
275
273
|
|
|
276
274
|
/**
|
|
277
275
|
* Low importance of the content.
|
|
@@ -296,7 +294,7 @@ sap.ui.define([
|
|
|
296
294
|
*
|
|
297
295
|
* @type {{getClosestOPL: Function}}
|
|
298
296
|
*/
|
|
299
|
-
|
|
297
|
+
thisLib.Utilities = {
|
|
300
298
|
|
|
301
299
|
/**
|
|
302
300
|
* Returns the reference to the <code>ObjectPageLayout</code> for a given control.
|
|
@@ -318,10 +316,10 @@ sap.ui.define([
|
|
|
318
316
|
return true;
|
|
319
317
|
}
|
|
320
318
|
|
|
321
|
-
return
|
|
319
|
+
return thisLib.Utilities._isCurrentMediaSize("Phone", oRange);
|
|
322
320
|
},
|
|
323
321
|
isTabletScenario: function (oRange) {
|
|
324
|
-
return
|
|
322
|
+
return thisLib.Utilities._isCurrentMediaSize("Tablet", oRange);
|
|
325
323
|
},
|
|
326
324
|
_isCurrentMediaSize: function (sMedia, oRange) {
|
|
327
325
|
return oRange && oRange.name === sMedia;
|
|
@@ -403,6 +401,6 @@ sap.ui.define([
|
|
|
403
401
|
* @see {@link topic:d2ef0099542d44dc868719d908e576d0 Object Page Headers}
|
|
404
402
|
*/
|
|
405
403
|
|
|
406
|
-
return
|
|
404
|
+
return thisLib;
|
|
407
405
|
|
|
408
406
|
});
|