@openui5/sap.ui.integration 1.92.0 → 1.93.3
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/.reuse/dep5 +5 -0
- package/THIRDPARTY.txt +10 -1
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +1 -1
- package/src/sap/ui/integration/Host.js +16 -18
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +2 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +1 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +21 -10
- package/src/sap/ui/integration/cards/Filter.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +126 -0
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +19 -8
- package/src/sap/ui/integration/cards/ListContentRenderer.js +19 -9
- package/src/sap/ui/integration/cards/NumericHeader.js +1 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +184 -0
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +3 -1
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +93 -3
- package/src/sap/ui/integration/controls/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +5 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +8 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +5 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/AppConfig.js +0 -69
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +36 -14
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardResourceBundles.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/BaseField.js +27 -15
- package/src/sap/ui/integration/designtime/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/IntegerField.js +3 -2
- package/src/sap/ui/integration/designtime/editor/fields/ListField.js +60 -60
- package/src/sap/ui/integration/designtime/editor/fields/NumberField.js +3 -2
- package/src/sap/ui/integration/designtime/editor/fields/Settings.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/StringField.js +3 -4
- package/src/sap/ui/integration/designtime/editor/fields/viz/ColorSelect.js +2 -1
- package/src/sap/ui/integration/designtime/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/library.js +4 -4
- package/src/sap/ui/integration/messagebundle_ar.properties +69 -55
- package/src/sap/ui/integration/messagebundle_bg.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ca.properties +69 -55
- package/src/sap/ui/integration/messagebundle_cs.properties +69 -55
- package/src/sap/ui/integration/messagebundle_cy.properties +69 -55
- package/src/sap/ui/integration/messagebundle_da.properties +69 -55
- package/src/sap/ui/integration/messagebundle_de.properties +69 -55
- package/src/sap/ui/integration/messagebundle_el.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_GB.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +69 -55
- package/src/sap/ui/integration/messagebundle_es.properties +69 -55
- package/src/sap/ui/integration/messagebundle_es_MX.properties +69 -55
- package/src/sap/ui/integration/messagebundle_et.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hu.properties +69 -55
- package/src/sap/ui/integration/messagebundle_id.properties +69 -55
- package/src/sap/ui/integration/messagebundle_it.properties +69 -55
- package/src/sap/ui/integration/messagebundle_iw.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ja.properties +69 -55
- package/src/sap/ui/integration/messagebundle_kk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ko.properties +69 -55
- package/src/sap/ui/integration/messagebundle_lt.properties +69 -55
- package/src/sap/ui/integration/messagebundle_lv.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ms.properties +69 -55
- package/src/sap/ui/integration/messagebundle_nl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_no.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pt.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ro.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ru.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sh.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sv.properties +69 -55
- package/src/sap/ui/integration/messagebundle_th.properties +69 -55
- package/src/sap/ui/integration/messagebundle_tr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_uk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_vi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +69 -55
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +69 -55
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +248 -155
- package/src/sap/ui/integration/themes/base/CalendarContent.less +4 -2
- package/src/sap/ui/integration/themes/base/ListContentItem.less +92 -19
- package/src/sap/ui/integration/themes/base/Microchart.less +1 -1
- package/src/sap/ui/integration/thirdparty/webcomponents/bundle.es5.js +1 -1
- package/src/sap/ui/integration/thirdparty/webcomponents/bundle.esm.js +1 -1
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +2 -2
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +12 -7
- package/src/sap/ui/integration/util/CardActions.js +5 -2
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -1
- package/src/sap/ui/integration/util/DataProviderFactory.js +1 -1
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +1 -1
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +6 -4
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +20 -15
- package/src/sap/ui/integration/widgets/CardRenderer.js +12 -8
- package/src/sap/ui/integration/util/FooterFactory.js +0 -114
package/.reuse/dep5
CHANGED
|
@@ -464,3 +464,8 @@ Copyright:
|
|
|
464
464
|
License: Apache-2.0
|
|
465
465
|
Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
|
|
466
466
|
|
|
467
|
+
Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
468
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
469
|
+
License: Apache-2.0
|
|
470
|
+
Comment: these files belong to: SAP Theming Base Content
|
|
471
|
+
|
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.7
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -462,6 +462,15 @@ License: Apache-2.0
|
|
|
462
462
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
463
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
464
|
|
|
465
|
+
Component: SAP Theming Base Content, version: 11.1.34
|
|
466
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
467
|
+
License: Apache-2.0
|
|
468
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
|
+
Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
|
|
470
|
+
src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
|
|
471
|
+
src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
|
|
472
|
+
src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
473
|
+
|
|
465
474
|
|
|
466
475
|
ALL LICENSE TEXTS:
|
|
467
476
|
==================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.93.3",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.integration",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
18
|
-
"@openui5/sap.f": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.93.3",
|
|
18
|
+
"@openui5/sap.f": "1.93.3"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.93.3</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with integration-related controls.</documentation>
|
|
12
12
|
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.93.3
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -115,8 +115,6 @@ sap.ui.define([
|
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Fired when a message from channels like navigator.serviceWorker is received.
|
|
118
|
-
* @private
|
|
119
|
-
* @ui5-restricted
|
|
120
118
|
* @experimental since 1.91
|
|
121
119
|
*/
|
|
122
120
|
message: {
|
|
@@ -246,6 +244,7 @@ sap.ui.define([
|
|
|
246
244
|
* Call this method if you want to use the experimental caching for all cards.
|
|
247
245
|
* @private
|
|
248
246
|
* @ui5-restricted
|
|
247
|
+
* @experimental Since 1.91. The API might change.
|
|
249
248
|
*/
|
|
250
249
|
Host.prototype.useExperimentalCaching = function () {
|
|
251
250
|
this.bUseExperimentalCaching = true;
|
|
@@ -255,37 +254,36 @@ sap.ui.define([
|
|
|
255
254
|
/**
|
|
256
255
|
* Modify request headers before sending a data request.
|
|
257
256
|
* Override if you need to change the default cache headers behavior.
|
|
258
|
-
* @param {
|
|
259
|
-
* @param {
|
|
260
|
-
* @param {
|
|
261
|
-
* @returns {map}
|
|
257
|
+
* @param {map} mHeaders The current map of headers.
|
|
258
|
+
* @param {map} mSettings The map of request settings defined in the card manifest.
|
|
259
|
+
* @param {sap.ui.integration.widgets.Card} oCard The card for which the request is made.
|
|
260
|
+
* @returns {map} Map of http headers.
|
|
262
261
|
* @private
|
|
263
262
|
* @ui5-restricted
|
|
264
263
|
* @experimental Since 1.91. The API might change.
|
|
265
264
|
*/
|
|
266
|
-
Host.prototype.modifyRequestHeaders = function (mHeaders,
|
|
267
|
-
var oCacheSettings =
|
|
265
|
+
Host.prototype.modifyRequestHeaders = function (mHeaders, mSettings, oCard) {
|
|
266
|
+
var oCacheSettings = mSettings.request.cache,
|
|
268
267
|
aCacheControl = [];
|
|
269
268
|
|
|
270
|
-
if (oCacheSettings
|
|
271
|
-
aCacheControl.push("max-age=" + parseInt(oCacheSettings.maxAge || 0));
|
|
272
|
-
aCacheControl.push("stale-while-revalidate=" + parseInt(oCacheSettings.staleWhileRevalidate || 0));
|
|
273
|
-
} else {
|
|
269
|
+
if (oCacheSettings.noStore) {
|
|
274
270
|
// cache disabled
|
|
275
271
|
aCacheControl.push("max-age=0");
|
|
276
|
-
aCacheControl.push("stale-while-revalidate=0");
|
|
277
272
|
aCacheControl.push("no-store");
|
|
273
|
+
} else {
|
|
274
|
+
aCacheControl.push("max-age=" + parseInt(oCacheSettings.maxAge || 0));
|
|
275
|
+
|
|
276
|
+
if (oCacheSettings.staleWhileRevalidate) {
|
|
277
|
+
aCacheControl.push("x-stale-while-revalidate");
|
|
278
|
+
}
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
if (aCacheControl.length) {
|
|
281
282
|
mHeaders["Cache-Control"] = aCacheControl.join(", ");
|
|
282
283
|
}
|
|
283
284
|
|
|
284
|
-
if (oSettings.businessData !== undefined) {
|
|
285
|
-
mHeaders["x-sap-business-data"] = oSettings.businessData ? "true" : "false";
|
|
286
|
-
}
|
|
287
|
-
|
|
288
285
|
mHeaders["x-sap-card"] = "true";
|
|
286
|
+
mHeaders["x-use-cryptocache"] = "true";
|
|
289
287
|
|
|
290
288
|
return mHeaders;
|
|
291
289
|
};
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.core.Control
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.93.3
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -199,7 +199,7 @@ sap.ui.define([
|
|
|
199
199
|
return this;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
this._oLoadingPlaceholder = this.getAggregation("_loadingProvider").createContentPlaceholder(oConfiguration, sType);
|
|
202
|
+
this._oLoadingPlaceholder = this.getAggregation("_loadingProvider").createContentPlaceholder(oConfiguration, sType, this.getCardInstance());
|
|
203
203
|
this._setDataConfiguration(oConfiguration.data);
|
|
204
204
|
|
|
205
205
|
return this;
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/integration/cards/BaseContent",
|
|
9
9
|
"./ComponentContentRenderer",
|
|
10
|
-
"sap/ui/core/ComponentContainer"
|
|
10
|
+
"sap/ui/core/ComponentContainer",
|
|
11
|
+
"sap/ui/core/Component"
|
|
11
12
|
], function (
|
|
12
13
|
BaseContent,
|
|
13
14
|
ComponentContentRenderer,
|
|
14
|
-
ComponentContainer
|
|
15
|
+
ComponentContainer,
|
|
16
|
+
Component
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -27,7 +29,7 @@ sap.ui.define([
|
|
|
27
29
|
* @extends sap.ui.integration.cards.BaseContent
|
|
28
30
|
*
|
|
29
31
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
32
|
+
* @version 1.93.3
|
|
31
33
|
*
|
|
32
34
|
* @experimental
|
|
33
35
|
* @constructor
|
|
@@ -41,6 +43,17 @@ sap.ui.define([
|
|
|
41
43
|
renderer: ComponentContentRenderer
|
|
42
44
|
});
|
|
43
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Global hook when a new component instance of any kind is created.
|
|
48
|
+
* @param {sap.ui.core.Component} oInstance The created component instance.
|
|
49
|
+
*/
|
|
50
|
+
Component._fnOnInstanceCreated = function (oInstance) {
|
|
51
|
+
var oCompData = oInstance.getComponentData();
|
|
52
|
+
if (oCompData && oCompData["__sapUiIntegration_card"] && oInstance.onCardReady) {
|
|
53
|
+
oInstance.onCardReady(oCompData["__sapUiIntegration_card"]);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
44
57
|
ComponentContent.prototype.setConfiguration = function (oConfiguration) {
|
|
45
58
|
BaseContent.prototype.setConfiguration.apply(this, arguments);
|
|
46
59
|
|
|
@@ -51,14 +64,12 @@ sap.ui.define([
|
|
|
51
64
|
var oContainer = new ComponentContainer({
|
|
52
65
|
manifest: oConfiguration.componentManifest,
|
|
53
66
|
async: true,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (oComponent.onCardReady) {
|
|
59
|
-
oComponent.onCardReady(oCard);
|
|
67
|
+
settings: {
|
|
68
|
+
componentData: {
|
|
69
|
+
"__sapUiIntegration_card": this.getCardInstance()
|
|
60
70
|
}
|
|
61
|
-
|
|
71
|
+
},
|
|
72
|
+
componentCreated: function () {
|
|
62
73
|
// TODO _updated event is always needed, so that the busy indicator knows when to stop. We should review this for contents which do not have data.
|
|
63
74
|
this.fireEvent("_actionContentReady");
|
|
64
75
|
this.fireEvent("_updated");
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/core/Control",
|
|
8
|
+
"sap/ui/core/Core",
|
|
9
|
+
"sap/ui/integration/controls/ActionsStrip",
|
|
10
|
+
"sap/ui/integration/util/BindingHelper",
|
|
11
|
+
"sap/ui/integration/util/BindingResolver"
|
|
12
|
+
], function (
|
|
13
|
+
Control,
|
|
14
|
+
Core,
|
|
15
|
+
ActionsStrip,
|
|
16
|
+
BindingHelper,
|
|
17
|
+
BindingResolver
|
|
18
|
+
) {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Constructor for a new <code>Footer</code>.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
25
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
26
|
+
*
|
|
27
|
+
* @class
|
|
28
|
+
*
|
|
29
|
+
* @extends sap.ui.core.Control
|
|
30
|
+
*
|
|
31
|
+
* @author SAP SE
|
|
32
|
+
* @version 1.93.3
|
|
33
|
+
*
|
|
34
|
+
* @constructor
|
|
35
|
+
* @private
|
|
36
|
+
* @since 1.93
|
|
37
|
+
* @alias sap.ui.integration.cards.Footer
|
|
38
|
+
*/
|
|
39
|
+
var Footer = Control.extend("sap.ui.integration.cards.Footer", {
|
|
40
|
+
metadata: {
|
|
41
|
+
properties: {
|
|
42
|
+
/**
|
|
43
|
+
* Footer configuration from the manifest
|
|
44
|
+
*/
|
|
45
|
+
configuration: {
|
|
46
|
+
type: "object"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
aggregations: {
|
|
50
|
+
|
|
51
|
+
actionsStrip: {
|
|
52
|
+
type: "sap.ui.integration.controls.ActionsStrip",
|
|
53
|
+
multiple: false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
associations: {
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Association with the parent Card that contains this filter.
|
|
61
|
+
*/
|
|
62
|
+
card: {
|
|
63
|
+
type: "sap.ui.integration.widgets.Card",
|
|
64
|
+
multiple: false
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
renderer: {
|
|
71
|
+
apiVersion: 2,
|
|
72
|
+
render: function (oRM, oFooter) {
|
|
73
|
+
oRM.openStart("div", oFooter).class("sapFCardFooter");
|
|
74
|
+
|
|
75
|
+
if (oFooter.getCardInstance().isLoading() && oFooter._hasBinding()) {
|
|
76
|
+
oRM.class("sapFCardFooterLoading");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
oRM.openEnd();
|
|
80
|
+
|
|
81
|
+
oRM.renderControl(oFooter.getActionsStrip());
|
|
82
|
+
|
|
83
|
+
oRM.close("div");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
Footer.prototype._hasBinding = function () {
|
|
89
|
+
var oConfiguration = BindingHelper.createBindingInfos(this.getConfiguration(), this.getCardInstance().getBindingNamespaces());
|
|
90
|
+
|
|
91
|
+
// to do: if more precise check is needed search recursively
|
|
92
|
+
return oConfiguration.actionsStrip.some(function (oButtonConfig) {
|
|
93
|
+
for (var sKey in oButtonConfig) {
|
|
94
|
+
if (BindingResolver.isBindingInfo(oButtonConfig[sKey])) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return false;
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Gets the card instance of which this element is part of.
|
|
105
|
+
* @ui5-restricted
|
|
106
|
+
* @private
|
|
107
|
+
* @returns {sap.ui.integration.widgets.Card} The card instance.
|
|
108
|
+
*/
|
|
109
|
+
Footer.prototype.getCardInstance = function () {
|
|
110
|
+
return Core.byId(this.getCard());
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
Footer.create = function (oCard, oConfiguration) {
|
|
114
|
+
if (!oConfiguration.actionsStrip) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return new Footer({
|
|
119
|
+
configuration: oConfiguration,
|
|
120
|
+
card: oCard,
|
|
121
|
+
actionsStrip: ActionsStrip.create(oCard, oConfiguration.actionsStrip)
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
return Footer;
|
|
126
|
+
});
|
|
@@ -13,7 +13,8 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ui/integration/util/BindingHelper",
|
|
14
14
|
"sap/ui/integration/controls/Microchart",
|
|
15
15
|
"sap/ui/integration/controls/MicrochartLegend",
|
|
16
|
-
"sap/ui/integration/controls/ListContentItem"
|
|
16
|
+
"sap/ui/integration/controls/ListContentItem",
|
|
17
|
+
"sap/ui/integration/controls/ActionsStrip"
|
|
17
18
|
], function (
|
|
18
19
|
BaseListContent,
|
|
19
20
|
ListContentRenderer,
|
|
@@ -24,7 +25,8 @@ sap.ui.define([
|
|
|
24
25
|
BindingHelper,
|
|
25
26
|
Microchart,
|
|
26
27
|
MicrochartLegend,
|
|
27
|
-
ListContentItem
|
|
28
|
+
ListContentItem,
|
|
29
|
+
ActionsStrip
|
|
28
30
|
) {
|
|
29
31
|
"use strict";
|
|
30
32
|
|
|
@@ -37,6 +39,9 @@ sap.ui.define([
|
|
|
37
39
|
// shortcut for sap.m.ListType;
|
|
38
40
|
var ListType = mLibrary.ListType;
|
|
39
41
|
|
|
42
|
+
// shortcut for sap.m.ListSeparators;
|
|
43
|
+
var ListSeparators = mLibrary.ListSeparators;
|
|
44
|
+
|
|
40
45
|
// shortcut for sap.ui.integration.CardActionArea
|
|
41
46
|
var ActionArea = library.CardActionArea;
|
|
42
47
|
|
|
@@ -54,7 +59,7 @@ sap.ui.define([
|
|
|
54
59
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
55
60
|
*
|
|
56
61
|
* @author SAP SE
|
|
57
|
-
* @version 1.
|
|
62
|
+
* @version 1.93.3
|
|
58
63
|
*
|
|
59
64
|
* @constructor
|
|
60
65
|
* @private
|
|
@@ -173,8 +178,7 @@ sap.ui.define([
|
|
|
173
178
|
this._oList = new List({
|
|
174
179
|
id: this.getId() + "-list",
|
|
175
180
|
growing: false,
|
|
176
|
-
showNoData: false
|
|
177
|
-
showSeparators: "None"
|
|
181
|
+
showNoData: false
|
|
178
182
|
});
|
|
179
183
|
}
|
|
180
184
|
|
|
@@ -189,7 +193,8 @@ sap.ui.define([
|
|
|
189
193
|
* @param {Object} mItem The item template of the configuration object.
|
|
190
194
|
*/
|
|
191
195
|
ListContent.prototype._setItem = function (mItem) {
|
|
192
|
-
var
|
|
196
|
+
var oList = this._getList(),
|
|
197
|
+
mSettings = {
|
|
193
198
|
iconDensityAware: false,
|
|
194
199
|
title: mItem.title && (mItem.title.value || mItem.title),
|
|
195
200
|
description: mItem.description && (mItem.description.value || mItem.description),
|
|
@@ -220,6 +225,13 @@ sap.ui.define([
|
|
|
220
225
|
mSettings.microchart = this._createChartAndAddLegend(mItem.chart);
|
|
221
226
|
}
|
|
222
227
|
|
|
228
|
+
if (mItem.actionsStrip) {
|
|
229
|
+
mSettings.actionsStrip = ActionsStrip.create(this.getCardInstance(), mItem.actionsStrip);
|
|
230
|
+
oList.setShowSeparators(ListSeparators.All);
|
|
231
|
+
} else {
|
|
232
|
+
oList.setShowSeparators(ListSeparators.None);
|
|
233
|
+
}
|
|
234
|
+
|
|
223
235
|
this._oItemTemplate = new ListContentItem(mSettings);
|
|
224
236
|
this._oActions.attach({
|
|
225
237
|
area: ActionArea.ContentItem,
|
|
@@ -229,14 +241,13 @@ sap.ui.define([
|
|
|
229
241
|
enabledPropertyName: "type",
|
|
230
242
|
enabledPropertyValue: ListType.Navigation,
|
|
231
243
|
disabledPropertyValue: ListType.Inactive
|
|
232
|
-
|
|
233
244
|
});
|
|
234
245
|
|
|
235
246
|
var oBindingInfo = {
|
|
236
247
|
template: this._oItemTemplate
|
|
237
248
|
};
|
|
238
249
|
this._filterHiddenNavigationItems(mItem, oBindingInfo);
|
|
239
|
-
this._bindAggregationToControl("items",
|
|
250
|
+
this._bindAggregationToControl("items", oList, oBindingInfo);
|
|
240
251
|
};
|
|
241
252
|
|
|
242
253
|
ListContent.prototype._createChartAndAddLegend = function (oChartSettings) {
|
|
@@ -31,28 +31,38 @@ sap.ui.define(["./BaseContentRenderer"], function (BaseContentRenderer) {
|
|
|
31
31
|
* @override
|
|
32
32
|
*/
|
|
33
33
|
ListContentRenderer.getMinHeight = function (oConfiguration, oContent) {
|
|
34
|
-
if (!oConfiguration) {
|
|
34
|
+
if (!oConfiguration || !oConfiguration.maxItems || !oConfiguration.item) {
|
|
35
35
|
return this.DEFAULT_MIN_HEIGHT;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
var fItemHeight = this.getItemMinHeight(oConfiguration, oContent),
|
|
39
|
+
iCount = parseInt(oConfiguration.maxItems) || 0;
|
|
40
|
+
|
|
41
|
+
return (iCount * fItemHeight) + "rem";
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
ListContentRenderer.getItemMinHeight = function (oConfiguration, oControl) {
|
|
45
|
+
if (!oConfiguration || !oConfiguration.item) {
|
|
46
|
+
return 0;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
|
-
var bIsCompact = this.isCompact(
|
|
43
|
-
iCount = parseInt(oConfiguration.maxItems) || 0,
|
|
49
|
+
var bIsCompact = this.isCompact(oControl),
|
|
44
50
|
oTemplate = oConfiguration.item,
|
|
45
|
-
|
|
51
|
+
fItemHeight = bIsCompact ? 2 : 2.75; // list item height in "rem"
|
|
46
52
|
|
|
47
53
|
if (oTemplate.description || oTemplate.chart) {
|
|
48
|
-
|
|
54
|
+
fItemHeight = 5; // list item height with description or chart in "rem"
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
if (oTemplate.description && oTemplate.chart) {
|
|
52
|
-
|
|
58
|
+
fItemHeight = 6; // list item height with description and chart in "rem"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (oTemplate.actionsStrip) {
|
|
62
|
+
fItemHeight += bIsCompact ? 2.5 : 3.25; // actions strip height in "rem"
|
|
53
63
|
}
|
|
54
64
|
|
|
55
|
-
return
|
|
65
|
+
return fItemHeight;
|
|
56
66
|
};
|
|
57
67
|
|
|
58
68
|
return ListContentRenderer;
|
|
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
|
|
|
17
17
|
* <code>ui5-select</code>, or container with <code>ui5-radiobutton</code>, or <code>ui5-checkbox</code> web components.
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.93.3
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @since 1.74
|