@openui5/sap.uxap 1.103.1 → 1.104.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/.eslintrc.json +2 -3
- package/.reuse/dep5 +17 -0
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +35 -2
- 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 +1 -0
- package/src/sap/uxap/ObjectPageLayoutRenderer.js +1 -1
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/ObjectPageSectionBase.js +5 -13
- 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/component/ObjectPageLayoutUXDrivenFactory.controller.js +15 -13
- package/src/sap/uxap/library.js +2 -2
- package/src/sap/uxap/messagebundle_ko.properties +3 -3
package/.eslintrc.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"overrides": [
|
|
3
3
|
/*
|
|
4
|
-
* Productive code
|
|
4
|
+
* Productive code and test code of sap.uxap has been cleaned up.
|
|
5
5
|
* No more references to the global jQuery allowed
|
|
6
6
|
*/
|
|
7
7
|
{
|
|
8
8
|
"files": [
|
|
9
9
|
"src/**/*.js",
|
|
10
|
-
"test
|
|
11
|
-
"test/sap/uxap/qunit/**/*.js"
|
|
10
|
+
"test/**/*.js"
|
|
12
11
|
],
|
|
13
12
|
"globals": {
|
|
14
13
|
"jQuery": "off"
|
package/.reuse/dep5
CHANGED
|
@@ -137,6 +137,11 @@ Copyright: jQuery Foundation and other contributors
|
|
|
137
137
|
License: MIT
|
|
138
138
|
Comment: these files belong to: QUnit 2
|
|
139
139
|
|
|
140
|
+
Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
|
|
141
|
+
Copyright: jQuery Foundation and other contributors
|
|
142
|
+
License: MIT
|
|
143
|
+
Comment: these files belong to: QUnit 2.18
|
|
144
|
+
|
|
140
145
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/jquery-compat.js
|
|
141
146
|
Copyright: OpenJS Foundation and other contributors
|
|
142
147
|
License: MIT
|
|
@@ -234,6 +239,11 @@ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
|
|
|
234
239
|
License: BSD-3-Clause
|
|
235
240
|
Comment: these files belong to: SinonJS
|
|
236
241
|
|
|
242
|
+
Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
|
|
243
|
+
Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
|
|
244
|
+
License: BSD-3-Clause
|
|
245
|
+
Comment: these files belong to: SinonJS 14
|
|
246
|
+
|
|
237
247
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
238
248
|
Copyright: 2010-2011, Christian Johansen
|
|
239
249
|
License: BSD-3-Clause
|
|
@@ -339,6 +349,13 @@ Copyright:
|
|
|
339
349
|
License: Apache-2.0 and ISC
|
|
340
350
|
Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
|
|
341
351
|
|
|
352
|
+
Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
353
|
+
Copyright:
|
|
354
|
+
2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
355
|
+
Arthur David Olson, Paul Eggert and other contributors
|
|
356
|
+
License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
|
|
357
|
+
Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
|
|
358
|
+
|
|
342
359
|
|
|
343
360
|
# Library: sap.ui.documentation:
|
|
344
361
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -76,6 +76,12 @@ License: MIT
|
|
|
76
76
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
77
77
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.*
|
|
78
78
|
|
|
79
|
+
Component: QUnit 2.18, version: 2.18.0
|
|
80
|
+
Copyright: jQuery Foundation and other contributors
|
|
81
|
+
License: MIT
|
|
82
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
83
|
+
Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
|
|
84
|
+
|
|
79
85
|
Component: jQuery-Migrate, version: 3.3.1
|
|
80
86
|
Copyright: OpenJS Foundation and other contributors
|
|
81
87
|
License: MIT
|
|
@@ -191,13 +197,19 @@ License: BSD-3-Clause
|
|
|
191
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
192
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-4.js
|
|
193
199
|
|
|
200
|
+
Component: SinonJS 14, version: 14.0.0
|
|
201
|
+
Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
|
|
202
|
+
License: BSD-3-Clause
|
|
203
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
204
|
+
Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
|
|
205
|
+
|
|
194
206
|
Component: Sinon-qunit, version: 2.0.0
|
|
195
207
|
Copyright: 2010-2011, Christian Johansen
|
|
196
208
|
License: BSD-3-Clause
|
|
197
209
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
210
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
211
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
212
|
+
Component: URI.js, version: 1.19.11
|
|
201
213
|
Copyright: Rodney Rehm
|
|
202
214
|
License: MIT
|
|
203
215
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -315,6 +327,12 @@ License: ISC
|
|
|
315
327
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
|
|
316
328
|
Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
|
|
317
329
|
|
|
330
|
+
Component: Time Zone Database, version: 2022a
|
|
331
|
+
Copyright: Arthur David Olson, Paul Eggert and other contributors
|
|
332
|
+
License: LicenseRef-tzdata-PublicDomain
|
|
333
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
|
|
334
|
+
Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
335
|
+
|
|
318
336
|
|
|
319
337
|
Library: sap.ui.documentation:
|
|
320
338
|
|
|
@@ -450,7 +468,7 @@ License: Apache-2.0
|
|
|
450
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
470
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.1.40
|
|
454
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
473
|
License: Apache-2.0
|
|
456
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -980,6 +998,21 @@ END of license: LicenseRef-JSONinJSPublicDomain
|
|
|
980
998
|
=================================
|
|
981
999
|
|
|
982
1000
|
|
|
1001
|
+
=================================
|
|
1002
|
+
BEGIN of license: LicenseRef-tzdata-PublicDomain
|
|
1003
|
+
=================================
|
|
1004
|
+
|
|
1005
|
+
Unless specified below, all files in the tz code and data (including
|
|
1006
|
+
this LICENSE file) are in the public domain.
|
|
1007
|
+
|
|
1008
|
+
If the files date.c, newstrftime.3, and strftime.c are present, they
|
|
1009
|
+
contain material derived from BSD and use the BSD 3-clause license.
|
|
1010
|
+
|
|
1011
|
+
=================================
|
|
1012
|
+
END of license: LicenseRef-tzdata-PublicDomain
|
|
1013
|
+
=================================
|
|
1014
|
+
|
|
1015
|
+
|
|
983
1016
|
=================================
|
|
984
1017
|
BEGIN of license: MIT
|
|
985
1018
|
=================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.104.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.104.0",
|
|
18
|
+
"@openui5/sap.m": "1.104.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.104.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.104.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.104.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>
|
|
@@ -26,7 +26,7 @@ sap.ui.define(["sap/ui/Device"],
|
|
|
26
26
|
var aSections,
|
|
27
27
|
oHeader = oControl.getHeaderTitle(),
|
|
28
28
|
oAnchorBar = null,
|
|
29
|
-
oRb = sap.
|
|
29
|
+
oRb = sap.ui.getCore().getLibraryResourceBundle("sap.uxap"),
|
|
30
30
|
bIsHeaderContentVisible = oControl.getHeaderContent() && oControl.getHeaderContent().length > 0 && oControl.getShowHeaderContent(),
|
|
31
31
|
bIsTitleInHeaderContent = oControl.getShowTitleInHeaderContent() && oControl.getShowHeaderContent(),
|
|
32
32
|
bRenderHeaderContent = bIsHeaderContentVisible || bIsTitleInHeaderContent,
|
|
@@ -172,15 +172,12 @@ sap.ui.define([
|
|
|
172
172
|
*/
|
|
173
173
|
ObjectPageSectionBase.prototype.setInvisibleTextLabelValue = function (sValue) {
|
|
174
174
|
var oAriaLabelledBy = this.getAggregation("ariaLabelledBy"),
|
|
175
|
-
sSectionText = this.getSectionText(),
|
|
176
175
|
sLabel = "";
|
|
177
176
|
|
|
178
|
-
|
|
179
|
-
sLabel = sValue + " ";
|
|
180
|
-
}
|
|
177
|
+
sLabel = sValue || this.getSectionText();
|
|
181
178
|
|
|
182
179
|
if (oAriaLabelledBy) {
|
|
183
|
-
sap.ui.getCore().byId(oAriaLabelledBy.getId()).setText(sLabel
|
|
180
|
+
sap.ui.getCore().byId(oAriaLabelledBy.getId()).setText(sLabel);
|
|
184
181
|
}
|
|
185
182
|
|
|
186
183
|
return this;
|
|
@@ -193,17 +190,12 @@ sap.ui.define([
|
|
|
193
190
|
*/
|
|
194
191
|
ObjectPageSectionBase.prototype._getAriaLabelledBy = function () {
|
|
195
192
|
// Each section should be labelled as:
|
|
196
|
-
// 'titleName
|
|
193
|
+
// 'titleName' - if the section has a title
|
|
197
194
|
// 'Section' - if it does not have a title
|
|
198
195
|
|
|
199
|
-
var sLabel = ""
|
|
200
|
-
sTitle = this._getTitle();
|
|
201
|
-
|
|
202
|
-
if (sTitle) {
|
|
203
|
-
sLabel += sTitle + " ";
|
|
204
|
-
}
|
|
196
|
+
var sLabel = "";
|
|
205
197
|
|
|
206
|
-
sLabel
|
|
198
|
+
sLabel = this._getTitle() || this.getSectionText();
|
|
207
199
|
|
|
208
200
|
return new InvisibleText({
|
|
209
201
|
text: sLabel
|
|
@@ -10,16 +10,18 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/base/ManagedObject",
|
|
11
11
|
"sap/ui/core/mvc/Controller",
|
|
12
12
|
"sap/base/Log",
|
|
13
|
-
"sap/base/util/
|
|
14
|
-
"sap/
|
|
13
|
+
"sap/base/util/each",
|
|
14
|
+
"sap/base/util/isEmptyObject",
|
|
15
|
+
"sap/base/util/ObjectPath"
|
|
15
16
|
], function(
|
|
16
17
|
BindingMode,
|
|
17
18
|
Context,
|
|
18
19
|
ManagedObject,
|
|
19
20
|
Controller,
|
|
20
21
|
Log,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
each,
|
|
23
|
+
isEmptyObject,
|
|
24
|
+
ObjectPath
|
|
23
25
|
) {
|
|
24
26
|
"use strict";
|
|
25
27
|
|
|
@@ -27,16 +29,16 @@ sap.ui.define([
|
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
31
|
* injects the header based on configuration
|
|
30
|
-
* @param {object} oModel model
|
|
32
|
+
* @param {object} oModel model instance
|
|
31
33
|
*/
|
|
32
34
|
connectToComponent: function (oModel) {
|
|
33
35
|
|
|
34
|
-
var bHasPendingRequest =
|
|
36
|
+
var bHasPendingRequest = isEmptyObject(oModel.getData());
|
|
35
37
|
|
|
36
38
|
//ensure a 1 way binding otherwise it cause any block property change to update the entire subSections
|
|
37
39
|
oModel.setDefaultBindingMode(BindingMode.OneWay);
|
|
38
40
|
|
|
39
|
-
var fnHeaderFactory =
|
|
41
|
+
var fnHeaderFactory = function () {
|
|
40
42
|
|
|
41
43
|
if (bHasPendingRequest) {
|
|
42
44
|
oModel.detachRequestCompleted(fnHeaderFactory);
|
|
@@ -56,7 +58,7 @@ sap.ui.define([
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
}
|
|
61
|
+
}.bind(this);
|
|
60
62
|
|
|
61
63
|
//if data are not there yet, we wait for them
|
|
62
64
|
if (bHasPendingRequest) {
|
|
@@ -82,21 +84,21 @@ sap.ui.define([
|
|
|
82
84
|
oControlMetadata = oControlClass.getMetadata();
|
|
83
85
|
|
|
84
86
|
//pre-processing: substitute event handler as strings by their function instance
|
|
85
|
-
|
|
87
|
+
each(oControlMetadata._mAllEvents, function (sEventName, oEventProperties) {
|
|
86
88
|
if (typeof oControlInfo[sEventName] == "string") {
|
|
87
89
|
oControlInfo[sEventName] = this.convertEventHandler(oControlInfo[sEventName]);
|
|
88
90
|
}
|
|
89
|
-
}
|
|
91
|
+
}.bind(this));
|
|
90
92
|
|
|
91
93
|
//creates the control with control info = create with provided properties
|
|
92
94
|
oControl = ManagedObject.create(oControlInfo);
|
|
93
95
|
|
|
94
96
|
//post-processing: bind properties on the objectPageLayoutMetadata model
|
|
95
|
-
|
|
97
|
+
each(oControlMetadata._mAllProperties, function (sPropertyName, oProperty) {
|
|
96
98
|
if (oControlInfo[sPropertyName]) {
|
|
97
99
|
oControl.bindProperty(sPropertyName, "objectPageLayoutMetadata>" + oBindingContext.getPath() + "/" + sPropertyName);
|
|
98
100
|
}
|
|
99
|
-
}
|
|
101
|
+
});
|
|
100
102
|
} catch (sError) {
|
|
101
103
|
Log.error("ObjectPageLayoutFactory :: error in control creation from config: " + sError);
|
|
102
104
|
}
|
|
@@ -114,7 +116,7 @@ sap.ui.define([
|
|
|
114
116
|
var fnNameSpace = window, aNameSpaceParts = sStaticHandlerName.split('.');
|
|
115
117
|
|
|
116
118
|
try {
|
|
117
|
-
|
|
119
|
+
each(aNameSpaceParts, function (iIndex, sNameSpacePart) {
|
|
118
120
|
fnNameSpace = fnNameSpace[sNameSpacePart];
|
|
119
121
|
});
|
|
120
122
|
} catch (sError) {
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.uxap
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.104.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.
|
|
71
|
+
version: "1.104.0",
|
|
72
72
|
extensions: {
|
|
73
73
|
flChangeHandlers: {
|
|
74
74
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
SHOW_MORE=\uC790\uC138\uD788 \
|
|
2
|
+
SHOW_MORE=\uC790\uC138\uD788 \uBCF4\uAE30
|
|
3
3
|
|
|
4
|
-
SHOW_LESS=\uAC04\uB2E8\uD788 \
|
|
4
|
+
SHOW_LESS=\uAC04\uB2E8\uD788 \uBCF4\uAE30
|
|
5
5
|
|
|
6
6
|
ANCHOR_BAR_ARIA_LABEL=\uC575\uCEE4
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ BREADCRUMB_TRAIL_LABEL=\uD0D0\uC0C9 \uACBD\uB85C \uCD94\uC801
|
|
|
13
13
|
|
|
14
14
|
SHOW_ALL=\uBAA8\uB450 \uD45C\uC2DC
|
|
15
15
|
|
|
16
|
-
HIDE_ALL=\uAC04\uB2E8\uD788 \
|
|
16
|
+
HIDE_ALL=\uAC04\uB2E8\uD788 \uBCF4\uAE30
|
|
17
17
|
|
|
18
18
|
SHOW=\uD3BC\uCE58\uAE30
|
|
19
19
|
|