@openui5/sap.ui.integration 1.108.1 → 1.109.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 +1 -1
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +2 -2
- 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 +2 -2
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +5 -2
- 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 +73 -24
- package/src/sap/ui/integration/cards/BaseListContent.js +51 -2
- package/src/sap/ui/integration/cards/CalendarContent.js +3 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +29 -2
- package/src/sap/ui/integration/cards/ListContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/NumericHeader.js +2 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +29 -2
- package/src/sap/ui/integration/cards/TableContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.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/cards/filters/BaseFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +1 -1
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/LinkWithIcon.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +1 -1
- 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/controls/Paginator.js +24 -20
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +5 -9
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +2 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +3 -8
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.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 +5 -7
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.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 +2 -4
- 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 +2 -4
- 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 +4 -14
- 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/filtersEditor/FiltersEditor.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 +3 -5
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +12 -4
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +70 -26
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +12 -12
- package/src/sap/ui/integration/editor/Editor.js +13 -17
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +4 -5
- package/src/sap/ui/integration/editor/Extension.js +1 -1
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -1
- package/src/sap/ui/integration/editor/fields/BaseField.js +1 -1
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/GroupField.js +1 -1
- package/src/sap/ui/integration/editor/fields/IntegerField.js +1 -1
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +4 -6
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +6 -8
- package/src/sap/ui/integration/editor/fields/StringListField.js +7 -9
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +1 -1
- package/src/sap/ui/integration/formatters/DateTimeFormatter.js +11 -6
- package/src/sap/ui/integration/library.js +25 -3
- package/src/sap/ui/integration/messagebundle.properties +3 -0
- package/src/sap/ui/integration/messagebundle_ar.properties +2 -0
- package/src/sap/ui/integration/messagebundle_bg.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ca.properties +2 -0
- package/src/sap/ui/integration/messagebundle_cs.properties +2 -0
- package/src/sap/ui/integration/messagebundle_cy.properties +2 -0
- package/src/sap/ui/integration/messagebundle_da.properties +2 -0
- package/src/sap/ui/integration/messagebundle_de.properties +2 -0
- package/src/sap/ui/integration/messagebundle_el.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_GB.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +2 -0
- package/src/sap/ui/integration/messagebundle_es.properties +2 -0
- package/src/sap/ui/integration/messagebundle_es_MX.properties +2 -0
- package/src/sap/ui/integration/messagebundle_et.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hu.properties +2 -0
- package/src/sap/ui/integration/messagebundle_id.properties +2 -0
- package/src/sap/ui/integration/messagebundle_it.properties +2 -0
- package/src/sap/ui/integration/messagebundle_iw.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ja.properties +2 -0
- package/src/sap/ui/integration/messagebundle_kk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ko.properties +2 -0
- package/src/sap/ui/integration/messagebundle_lt.properties +2 -0
- package/src/sap/ui/integration/messagebundle_lv.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ms.properties +2 -0
- package/src/sap/ui/integration/messagebundle_nl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_no.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pt.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ro.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ru.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sh.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sv.properties +2 -0
- package/src/sap/ui/integration/messagebundle_th.properties +2 -0
- package/src/sap/ui/integration/messagebundle_tr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_uk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_vi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +2 -0
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +2 -0
- package/src/sap/ui/integration/model/ContextModel.js +2 -2
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/model/PagingModelListBinding.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +58 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +10 -2
- 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 +3 -1
- package/src/sap/ui/integration/util/CardObserver.js +39 -9
- package/src/sap/ui/integration/util/ContentFactory.js +43 -44
- package/src/sap/ui/integration/util/CsrfTokenHandler.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/Forms.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 +35 -5
- 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/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +8 -9
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +113 -138
- package/src/sap/ui/integration/widgets/CardRenderer.js +8 -2
package/THIRDPARTY.txt
CHANGED
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.1.44
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.109.0",
|
|
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.109.0",
|
|
18
|
+
"@openui5/sap.f": "1.109.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 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.109.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with integration-related controls.</documentation>
|
|
12
12
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<!-- Thirdparty references -->
|
|
46
46
|
<thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty">
|
|
47
|
-
<lib name="ui5-web-components" displayName="UI5 Web Components" npmName="@ui5/webcomponents" version="1.7.0"
|
|
47
|
+
<lib name="ui5-web-components" displayName="UI5 Web Components" npmName="@ui5/webcomponents" version="1.7.0" homepage="https://sap.github.io/ui5-webcomponents/" id="73554900106100099957">
|
|
48
48
|
<license url="https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt" type="Apache-2.0"></license>
|
|
49
49
|
<copyright>SAP</copyright>
|
|
50
50
|
<pattern>sap/ui/integration/thirdparty/webcomponents/*</pattern>
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @extends sap.ui.base.ManagedObject
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.109.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @public
|
|
@@ -141,7 +141,7 @@ sap.ui.define([
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* Called
|
|
144
|
+
* Called after the card is initialized.
|
|
145
145
|
* @public
|
|
146
146
|
*/
|
|
147
147
|
Extension.prototype.onCardReady = function () { };
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.integration.cards.BaseContent
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.109.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @private
|
|
@@ -61,6 +61,8 @@ sap.ui.define([
|
|
|
61
61
|
AdaptiveContent.prototype.init = function () {
|
|
62
62
|
BaseContent.prototype.init.apply(this, arguments);
|
|
63
63
|
|
|
64
|
+
//workaround until actions refactor
|
|
65
|
+
this.fireEvent("_actionContentReady"); // todo
|
|
64
66
|
this.setComponentsReady(false);
|
|
65
67
|
this._bAdaptiveCardElementsReady = false;
|
|
66
68
|
this._setupCardContent();
|
|
@@ -371,6 +373,7 @@ sap.ui.define([
|
|
|
371
373
|
if (!oContentTemplateData && !oCardDataProvider) {
|
|
372
374
|
this._oCardTemplate = null;
|
|
373
375
|
this._renderMSCardContent(oConfiguration);
|
|
376
|
+
this.fireEvent("_dataReady");
|
|
374
377
|
return;
|
|
375
378
|
}
|
|
376
379
|
|
|
@@ -383,7 +386,7 @@ sap.ui.define([
|
|
|
383
386
|
|
|
384
387
|
}
|
|
385
388
|
// create a data provider with the templating data and setup it
|
|
386
|
-
this.
|
|
389
|
+
this.setDataConfiguration(oContentTemplateData);
|
|
387
390
|
};
|
|
388
391
|
|
|
389
392
|
/**
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/* global Set */
|
|
8
|
-
|
|
9
7
|
sap.ui.define([
|
|
10
8
|
"./BaseContentRenderer",
|
|
11
9
|
"sap/m/MessageStrip",
|
|
@@ -20,7 +18,8 @@ sap.ui.define([
|
|
|
20
18
|
"sap/ui/integration/util/LoadingProvider",
|
|
21
19
|
"sap/ui/integration/util/BindingHelper",
|
|
22
20
|
"sap/ui/integration/util/BindingResolver",
|
|
23
|
-
"sap/base/util/merge"
|
|
21
|
+
"sap/base/util/merge",
|
|
22
|
+
"sap/ui/integration/library"
|
|
24
23
|
], function (
|
|
25
24
|
BaseContentRenderer,
|
|
26
25
|
MessageStrip,
|
|
@@ -35,13 +34,17 @@ sap.ui.define([
|
|
|
35
34
|
LoadingProvider,
|
|
36
35
|
BindingHelper,
|
|
37
36
|
BindingResolver,
|
|
38
|
-
merge
|
|
37
|
+
merge,
|
|
38
|
+
library
|
|
39
39
|
) {
|
|
40
40
|
"use strict";
|
|
41
41
|
|
|
42
42
|
// shortcut for sap.ui.core.InvisibleMessageMode
|
|
43
43
|
var InvisibleMessageMode = coreLibrary.InvisibleMessageMode;
|
|
44
44
|
|
|
45
|
+
// shortcut for sap.ui.integration.widgets.CardDesign
|
|
46
|
+
var CardDesign = library.CardDesign;
|
|
47
|
+
|
|
45
48
|
/**
|
|
46
49
|
* Constructor for a new <code>BaseContent</code>.
|
|
47
50
|
*
|
|
@@ -54,7 +57,7 @@ sap.ui.define([
|
|
|
54
57
|
* @extends sap.ui.core.Control
|
|
55
58
|
*
|
|
56
59
|
* @author SAP SE
|
|
57
|
-
* @version 1.
|
|
60
|
+
* @version 1.109.0
|
|
58
61
|
*
|
|
59
62
|
* @constructor
|
|
60
63
|
* @private
|
|
@@ -64,6 +67,18 @@ sap.ui.define([
|
|
|
64
67
|
var BaseContent = Control.extend("sap.ui.integration.cards.BaseContent", {
|
|
65
68
|
metadata: {
|
|
66
69
|
library: "sap.ui.integration",
|
|
70
|
+
properties: {
|
|
71
|
+
/**
|
|
72
|
+
* Defines the design of the content.
|
|
73
|
+
* @experimental Since 1.109
|
|
74
|
+
* @since 1.109
|
|
75
|
+
*/
|
|
76
|
+
design: {
|
|
77
|
+
type: "sap.ui.integration.CardDesign",
|
|
78
|
+
group: "Appearance",
|
|
79
|
+
defaultValue: CardDesign.Solid
|
|
80
|
+
}
|
|
81
|
+
},
|
|
67
82
|
aggregations: {
|
|
68
83
|
|
|
69
84
|
/**
|
|
@@ -133,6 +148,18 @@ sap.ui.define([
|
|
|
133
148
|
this._mObservers = {};
|
|
134
149
|
|
|
135
150
|
this.setAggregation("_loadingProvider", new LoadingProvider());
|
|
151
|
+
this.awaitEvent("_dataReady");
|
|
152
|
+
this.awaitEvent("_actionContentReady");
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
BaseContent.prototype.onBeforeRendering = function () {
|
|
156
|
+
var oCard = this.getCardInstance();
|
|
157
|
+
|
|
158
|
+
if (!this.getAggregation("_loadingPlaceholder") && oCard && this.getConfiguration()) {
|
|
159
|
+
var oLoadingPlaceholder = this.getAggregation("_loadingProvider")
|
|
160
|
+
.createContentPlaceholder(this.getConfiguration(), oCard.getManifestEntry("/sap.card/type"), oCard);
|
|
161
|
+
this.setAggregation("_loadingPlaceholder", oLoadingPlaceholder);
|
|
162
|
+
}
|
|
136
163
|
};
|
|
137
164
|
|
|
138
165
|
/**
|
|
@@ -185,6 +212,19 @@ sap.ui.define([
|
|
|
185
212
|
return Promise.resolve();
|
|
186
213
|
};
|
|
187
214
|
|
|
215
|
+
BaseContent.prototype.setLoadDependenciesPromise = function (oPromise) {
|
|
216
|
+
this._pLoadDependencies = oPromise;
|
|
217
|
+
this.awaitEvent("_loadDependencies");
|
|
218
|
+
|
|
219
|
+
this._pLoadDependencies.then(function () {
|
|
220
|
+
this.fireEvent("_loadDependencies");
|
|
221
|
+
}.bind(this));
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
BaseContent.prototype.getLoadDependenciesPromise = function () {
|
|
225
|
+
return this._pLoadDependencies;
|
|
226
|
+
};
|
|
227
|
+
|
|
188
228
|
BaseContent.prototype.getActions = function () {
|
|
189
229
|
return this._oActions;
|
|
190
230
|
};
|
|
@@ -223,22 +263,15 @@ sap.ui.define([
|
|
|
223
263
|
/**
|
|
224
264
|
* @public
|
|
225
265
|
* @param {object} oConfiguration Content configuration from the manifest
|
|
226
|
-
* @param {string} sType The type of the content
|
|
227
266
|
* @returns {this} Pointer to the control instance to allow method chaining
|
|
228
267
|
*/
|
|
229
|
-
BaseContent.prototype.setConfiguration = function (oConfiguration
|
|
268
|
+
BaseContent.prototype.setConfiguration = function (oConfiguration) {
|
|
230
269
|
this._oConfiguration = oConfiguration;
|
|
231
|
-
this.awaitEvent("_dataReady");
|
|
232
|
-
this.awaitEvent("_actionContentReady");
|
|
233
270
|
|
|
234
271
|
if (!oConfiguration) {
|
|
235
272
|
return this;
|
|
236
273
|
}
|
|
237
274
|
|
|
238
|
-
var oLoadingPlaceholder = this.getAggregation("_loadingProvider").createContentPlaceholder(oConfiguration, sType, this.getCardInstance());
|
|
239
|
-
this.setAggregation("_loadingPlaceholder", oLoadingPlaceholder);
|
|
240
|
-
this._setDataConfiguration(oConfiguration.data);
|
|
241
|
-
|
|
242
275
|
return this;
|
|
243
276
|
};
|
|
244
277
|
|
|
@@ -294,11 +327,12 @@ sap.ui.define([
|
|
|
294
327
|
this._getMessageContainer().destroy();
|
|
295
328
|
}.bind(this)
|
|
296
329
|
}).addStyleClass("sapFCardContentMessage");
|
|
330
|
+
var oDomRef = this.getDomRef();
|
|
297
331
|
|
|
298
332
|
oMessagePopup.destroyItems();
|
|
299
333
|
oMessagePopup.addItem(oMessage);
|
|
300
334
|
|
|
301
|
-
if (
|
|
335
|
+
if (oDomRef && oDomRef.contains(document.activeElement)) {
|
|
302
336
|
InvisibleMessage.getInstance().announce(sMessage, InvisibleMessageMode.Assertive);
|
|
303
337
|
} else {
|
|
304
338
|
InvisibleMessage.getInstance().announce(sMessage, InvisibleMessageMode.Polite);
|
|
@@ -309,9 +343,10 @@ sap.ui.define([
|
|
|
309
343
|
* Requests data and bind it to the item template.
|
|
310
344
|
*
|
|
311
345
|
* @private
|
|
346
|
+
* @ui5-restricted sap.ui.integration.util.ContentFactory
|
|
312
347
|
* @param {Object} oDataSettings The data part of the configuration object
|
|
313
348
|
*/
|
|
314
|
-
BaseContent.prototype.
|
|
349
|
+
BaseContent.prototype.setDataConfiguration = function (oDataSettings) {
|
|
315
350
|
var oCard = this.getCardInstance(),
|
|
316
351
|
oModel;
|
|
317
352
|
|
|
@@ -345,11 +380,12 @@ sap.ui.define([
|
|
|
345
380
|
|
|
346
381
|
oModel.attachEvent("change", function () {
|
|
347
382
|
// It is possible to receive change event after the content is destroyed
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
383
|
+
this.getLoadDependenciesPromise().then(function (bLoadSuccessful){
|
|
384
|
+
if (bLoadSuccessful && !this.isDestroyed()) {
|
|
385
|
+
this.onDataChanged();
|
|
386
|
+
this.onDataRequestComplete();
|
|
387
|
+
}
|
|
388
|
+
}.bind(this));
|
|
353
389
|
}.bind(this));
|
|
354
390
|
|
|
355
391
|
if (this._oDataProvider) {
|
|
@@ -358,8 +394,14 @@ sap.ui.define([
|
|
|
358
394
|
}.bind(this));
|
|
359
395
|
|
|
360
396
|
this._oDataProvider.attachDataChanged(function (oEvent) {
|
|
361
|
-
|
|
362
|
-
|
|
397
|
+
var oData = oEvent.getParameter("data");
|
|
398
|
+
|
|
399
|
+
this.getLoadDependenciesPromise().then(function (bLoadSuccessful){
|
|
400
|
+
if (bLoadSuccessful && !this.isDestroyed()) {
|
|
401
|
+
oModel.setData(oData);
|
|
402
|
+
}
|
|
403
|
+
}.bind(this));
|
|
404
|
+
}.bind(this));
|
|
363
405
|
|
|
364
406
|
this._oDataProvider.attachError(function (oEvent) {
|
|
365
407
|
this.handleError(oEvent.getParameter("message"));
|
|
@@ -446,6 +488,14 @@ sap.ui.define([
|
|
|
446
488
|
*/
|
|
447
489
|
BaseContent.prototype.onDataChanged = function () { };
|
|
448
490
|
|
|
491
|
+
BaseContent.prototype.onCardDataChanged = function () {
|
|
492
|
+
this.getLoadDependenciesPromise().then(function (bLoadSuccessful){
|
|
493
|
+
if (bLoadSuccessful && !this.isDestroyed()) {
|
|
494
|
+
this.onDataChanged();
|
|
495
|
+
}
|
|
496
|
+
}.bind(this));
|
|
497
|
+
};
|
|
498
|
+
|
|
449
499
|
/**
|
|
450
500
|
* Binds an aggregation to the binding path of the BaseContent.
|
|
451
501
|
* Observes the aggregation to update parameters>/visibleItems.
|
|
@@ -482,9 +532,8 @@ sap.ui.define([
|
|
|
482
532
|
return;
|
|
483
533
|
}
|
|
484
534
|
|
|
485
|
-
oControl.bindAggregation(sAggregation, oBindingInfo);
|
|
486
|
-
|
|
487
535
|
this._observeAggregation(sAggregation, oControl);
|
|
536
|
+
oControl.bindAggregation(sAggregation, oBindingInfo);
|
|
488
537
|
};
|
|
489
538
|
|
|
490
539
|
/**
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @extends sap.ui.integration.cards.BaseContent
|
|
32
32
|
*
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.109.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
@@ -53,6 +53,8 @@ sap.ui.define([
|
|
|
53
53
|
BaseListContent.prototype.init = function () {
|
|
54
54
|
BaseContent.prototype.init.apply(this, arguments);
|
|
55
55
|
this._oAwaitingPromise = null;
|
|
56
|
+
this._fMinHeight = 0;
|
|
57
|
+
this._bIsFirstRendering = true;
|
|
56
58
|
};
|
|
57
59
|
|
|
58
60
|
/**
|
|
@@ -64,10 +66,52 @@ sap.ui.define([
|
|
|
64
66
|
this._oAwaitingPromise = null;
|
|
65
67
|
};
|
|
66
68
|
|
|
69
|
+
BaseListContent.prototype.onAfterRendering = function () {
|
|
70
|
+
if (!this._bIsFirstRendering) {
|
|
71
|
+
this._keepHeight();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
this._bIsFirstRendering = false;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
BaseListContent.prototype._keepHeight = function () {
|
|
78
|
+
if (!this.getDomRef()) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var fCurrentHeight = this.getDomRef().getBoundingClientRect().height;
|
|
83
|
+
|
|
84
|
+
if (fCurrentHeight > this._fMinHeight) {
|
|
85
|
+
this._fMinHeight = fCurrentHeight;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (this._fMinHeight) {
|
|
89
|
+
this.getDomRef().style.minHeight = this._fMinHeight + "px";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
this._keepPlaceholderMinItems();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
BaseListContent.prototype._keepPlaceholderMinItems = function () {
|
|
96
|
+
var oLoadingPlaceholder = this.getAggregation("_loadingPlaceholder"),
|
|
97
|
+
bContentReady = !!this.getAggregation("_content"),
|
|
98
|
+
iNumberOfItems,
|
|
99
|
+
iNewMinItems;
|
|
100
|
+
|
|
101
|
+
if (!oLoadingPlaceholder || !oLoadingPlaceholder.getMinItems || !bContentReady) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
iNumberOfItems = this.getInnerList().getItems().length;
|
|
106
|
+
|
|
107
|
+
iNewMinItems = Math.max(oLoadingPlaceholder.getMinItems(), iNumberOfItems);
|
|
108
|
+
oLoadingPlaceholder.setMinItems(iNewMinItems);
|
|
109
|
+
};
|
|
110
|
+
|
|
67
111
|
/**
|
|
68
112
|
* @override
|
|
69
113
|
*/
|
|
70
|
-
BaseListContent.prototype.setConfiguration = function (oConfiguration
|
|
114
|
+
BaseListContent.prototype.setConfiguration = function (oConfiguration) {
|
|
71
115
|
BaseContent.prototype.setConfiguration.apply(this, arguments);
|
|
72
116
|
oConfiguration = this.getConfiguration();
|
|
73
117
|
|
|
@@ -91,6 +135,8 @@ sap.ui.define([
|
|
|
91
135
|
oList.addStyleClass("sapFCardMaxItems");
|
|
92
136
|
}
|
|
93
137
|
|
|
138
|
+
this._fMinHeight = 0;
|
|
139
|
+
|
|
94
140
|
return this;
|
|
95
141
|
};
|
|
96
142
|
|
|
@@ -222,6 +268,9 @@ sap.ui.define([
|
|
|
222
268
|
|
|
223
269
|
BaseListContent.prototype.sliceData = function (iStartIndex, iEndIndex) {
|
|
224
270
|
this.getModel().sliceData(iStartIndex, iEndIndex);
|
|
271
|
+
if (iStartIndex !== 0) {
|
|
272
|
+
this._keepHeight();
|
|
273
|
+
}
|
|
225
274
|
};
|
|
226
275
|
|
|
227
276
|
BaseListContent.prototype.getDataLength = function () {
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
* @extends sap.ui.integration.cards.BaseContent
|
|
71
71
|
*
|
|
72
72
|
* @author SAP SE
|
|
73
|
-
* @version 1.
|
|
73
|
+
* @version 1.109.0
|
|
74
74
|
*
|
|
75
75
|
* @constructor
|
|
76
76
|
* @private
|
|
@@ -196,6 +196,8 @@ sap.ui.define([
|
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
CalendarContent.prototype.onBeforeRendering = function () {
|
|
199
|
+
BaseContent.prototype.onBeforeRendering.apply(this, arguments);
|
|
200
|
+
|
|
199
201
|
var oInitiallySelectedDate = this._oCalendar.getSelectedDates().length ? this._oCalendar.getSelectedDates()[0].getStartDate() : this._oCalendar.getStartDate();
|
|
200
202
|
|
|
201
203
|
this._setParameters();
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
69
69
|
*
|
|
70
70
|
* @author SAP SE
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.109.0
|
|
72
72
|
*
|
|
73
73
|
* @constructor
|
|
74
74
|
* @private
|
|
@@ -92,6 +92,16 @@ sap.ui.define([
|
|
|
92
92
|
renderer: ListContentRenderer
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Called on before rendering of the control.
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
ListContent.prototype.onBeforeRendering = function () {
|
|
100
|
+
BaseListContent.prototype.onBeforeRendering.apply(this, arguments);
|
|
101
|
+
|
|
102
|
+
this._getList().setBackgroundDesign(this.getDesign());
|
|
103
|
+
};
|
|
104
|
+
|
|
95
105
|
/**
|
|
96
106
|
* Called when control is initialized.
|
|
97
107
|
*/
|
|
@@ -134,6 +144,7 @@ sap.ui.define([
|
|
|
134
144
|
* @override
|
|
135
145
|
*/
|
|
136
146
|
ListContent.prototype.onAfterRendering = function () {
|
|
147
|
+
BaseListContent.prototype.onAfterRendering.apply(this, arguments);
|
|
137
148
|
this._resizeMicrocharts();
|
|
138
149
|
};
|
|
139
150
|
|
|
@@ -242,6 +253,23 @@ sap.ui.define([
|
|
|
242
253
|
growing: false,
|
|
243
254
|
showNoData: false
|
|
244
255
|
});
|
|
256
|
+
|
|
257
|
+
this._oList.addEventDelegate({
|
|
258
|
+
onfocusin: function (oEvent) {
|
|
259
|
+
if (!(oEvent.srcControl instanceof ListContentItem)) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
var fItemBottom = oEvent.target.getBoundingClientRect().bottom;
|
|
264
|
+
var fContentBottom = this.getDomRef().getBoundingClientRect().bottom;
|
|
265
|
+
var fDist = Math.abs(fItemBottom - fContentBottom);
|
|
266
|
+
var ROUNDED_CORNER_PX_THRESHOLD = 10;
|
|
267
|
+
|
|
268
|
+
if (fDist < ROUNDED_CORNER_PX_THRESHOLD) {
|
|
269
|
+
oEvent.srcControl.addStyleClass("sapUiIntLCIRoundedCorners");
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}, this);
|
|
245
273
|
}
|
|
246
274
|
|
|
247
275
|
return this._oList;
|
|
@@ -269,7 +297,6 @@ sap.ui.define([
|
|
|
269
297
|
};
|
|
270
298
|
|
|
271
299
|
if (mItem.icon) {
|
|
272
|
-
|
|
273
300
|
mSettings.icon = BindingHelper.formattedProperty(mItem.icon.src, function (sValue) {
|
|
274
301
|
return this._oIconFormatter.formatSrc(sValue);
|
|
275
302
|
}.bind(this));
|
|
@@ -39,18 +39,22 @@ sap.ui.define([
|
|
|
39
39
|
* @override
|
|
40
40
|
*/
|
|
41
41
|
ListContentRenderer.getMinHeight = function (oConfiguration, oContent, oCard) {
|
|
42
|
-
|
|
42
|
+
if (oContent._fMinHeight) {
|
|
43
|
+
return oContent._fMinHeight + "px";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var iMinItems = oCard.getContentMinItems(oConfiguration),
|
|
43
47
|
fItemHeight;
|
|
44
48
|
|
|
45
49
|
if (!oConfiguration ||
|
|
46
50
|
!oConfiguration.item ||
|
|
47
|
-
|
|
51
|
+
iMinItems == null) {
|
|
48
52
|
return this.DEFAULT_MIN_HEIGHT;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
fItemHeight = this.getItemMinHeight(oConfiguration, oContent);
|
|
52
56
|
|
|
53
|
-
return (
|
|
57
|
+
return (iMinItems * fItemHeight) + "rem";
|
|
54
58
|
};
|
|
55
59
|
|
|
56
60
|
ListContentRenderer.getItemMinHeight = function (oConfiguration, oControl) {
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.f.cards.NumericHeader
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.109.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -73,6 +73,7 @@ sap.ui.define([
|
|
|
73
73
|
mSettings.scale = mConfiguration.mainIndicator.unit;
|
|
74
74
|
mSettings.trend = mConfiguration.mainIndicator.trend;
|
|
75
75
|
mSettings.state = mConfiguration.mainIndicator.state; // TODO convert ValueState to ValueColor
|
|
76
|
+
mSettings.numberVisible = mConfiguration.mainIndicator.visible;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
if (mConfiguration.sideIndicators) {
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
78
78
|
*
|
|
79
79
|
* @author SAP SE
|
|
80
|
-
* @version 1.
|
|
80
|
+
* @version 1.109.0
|
|
81
81
|
*
|
|
82
82
|
* @constructor
|
|
83
83
|
* @private
|
|
@@ -91,6 +91,16 @@ sap.ui.define([
|
|
|
91
91
|
renderer: TableContentRenderer
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Called on before rendering of the control.
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
TableContent.prototype.onBeforeRendering = function () {
|
|
99
|
+
BaseListContent.prototype.onBeforeRendering.apply(this, arguments);
|
|
100
|
+
|
|
101
|
+
this._getTable().setBackgroundDesign(this.getDesign());
|
|
102
|
+
};
|
|
103
|
+
|
|
94
104
|
TableContent.prototype.exit = function () {
|
|
95
105
|
BaseListContent.prototype.exit.apply(this, arguments);
|
|
96
106
|
|
|
@@ -101,7 +111,6 @@ sap.ui.define([
|
|
|
101
111
|
};
|
|
102
112
|
|
|
103
113
|
TableContent.prototype._getTable = function () {
|
|
104
|
-
|
|
105
114
|
if (this._bIsBeingDestroyed) {
|
|
106
115
|
return null;
|
|
107
116
|
}
|
|
@@ -113,6 +122,24 @@ sap.ui.define([
|
|
|
113
122
|
id: this.getId() + "-Table",
|
|
114
123
|
showSeparators: ListSeparators.None
|
|
115
124
|
});
|
|
125
|
+
|
|
126
|
+
oTable.addEventDelegate({
|
|
127
|
+
onfocusin: function (oEvent) {
|
|
128
|
+
if (!(oEvent.srcControl instanceof ColumnListItem)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
var fItemBottom = oEvent.target.getBoundingClientRect().bottom;
|
|
133
|
+
var fContentBottom = this.getDomRef().getBoundingClientRect().bottom;
|
|
134
|
+
var fDist = Math.abs(fItemBottom - fContentBottom);
|
|
135
|
+
var ROUNDED_CORNER_PX_THRESHOLD = 10;
|
|
136
|
+
|
|
137
|
+
if (fDist < ROUNDED_CORNER_PX_THRESHOLD) {
|
|
138
|
+
oEvent.srcControl.addStyleClass("sapUiIntTCIRoundedCorners");
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}, this);
|
|
142
|
+
|
|
116
143
|
this.setAggregation("_content", oTable);
|
|
117
144
|
}
|
|
118
145
|
|