@openui5/sap.ui.integration 1.124.0 → 1.125.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/.reuse/dep5 +5 -0
- package/THIRDPARTY.txt +7 -0
- package/package.json +7 -7
- package/src/sap/ui/integration/.library +3 -3
- 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 +9 -1
- 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 +80 -227
- package/src/sap/ui/integration/cards/BaseContent.js +2 -1
- 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 +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 +2 -2
- 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/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/ComboBoxFilter.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/cards/list/MicrochartsResizeHelper.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/BlockingMessage.js +35 -1
- package/src/sap/ui/integration/controls/ImageWithOverlay.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/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/ObjectStatus.js +1 -1
- package/src/sap/ui/integration/controls/Paginator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
- 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/i18n/i18n_sh.properties +17 -17
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -1
- 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 +1 -1
- 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 +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/i18n/i18n_sh.properties +30 -30
- 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 +1 -1
- package/src/sap/ui/integration/designtime/editor/Card.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +4 -2
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- 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 +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -1
- 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/ImageSelect.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/extensions/OAuth3LO.js +2 -1
- package/src/sap/ui/integration/library.js +2 -2
- package/src/sap/ui/integration/messagebundle.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ar.properties +5 -1
- package/src/sap/ui/integration/messagebundle_bg.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ca.properties +4 -0
- package/src/sap/ui/integration/messagebundle_cnr.properties +4 -0
- package/src/sap/ui/integration/messagebundle_cs.properties +4 -0
- package/src/sap/ui/integration/messagebundle_cy.properties +5 -1
- package/src/sap/ui/integration/messagebundle_da.properties +4 -0
- package/src/sap/ui/integration/messagebundle_de.properties +4 -0
- package/src/sap/ui/integration/messagebundle_el.properties +4 -0
- package/src/sap/ui/integration/messagebundle_en.properties +4 -0
- package/src/sap/ui/integration/messagebundle_en_GB.properties +4 -0
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +4 -0
- package/src/sap/ui/integration/messagebundle_es.properties +4 -0
- package/src/sap/ui/integration/messagebundle_es_MX.properties +4 -0
- package/src/sap/ui/integration/messagebundle_et.properties +4 -0
- package/src/sap/ui/integration/messagebundle_fi.properties +4 -0
- package/src/sap/ui/integration/messagebundle_fr.properties +4 -0
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +4 -0
- package/src/sap/ui/integration/messagebundle_hi.properties +4 -0
- package/src/sap/ui/integration/messagebundle_hr.properties +4 -0
- package/src/sap/ui/integration/messagebundle_hu.properties +4 -0
- package/src/sap/ui/integration/messagebundle_id.properties +4 -0
- package/src/sap/ui/integration/messagebundle_it.properties +4 -0
- package/src/sap/ui/integration/messagebundle_iw.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ja.properties +4 -0
- package/src/sap/ui/integration/messagebundle_kk.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ko.properties +4 -0
- package/src/sap/ui/integration/messagebundle_lt.properties +4 -0
- package/src/sap/ui/integration/messagebundle_lv.properties +5 -1
- package/src/sap/ui/integration/messagebundle_mk.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ms.properties +4 -0
- package/src/sap/ui/integration/messagebundle_nl.properties +4 -0
- package/src/sap/ui/integration/messagebundle_no.properties +4 -0
- package/src/sap/ui/integration/messagebundle_pl.properties +4 -0
- package/src/sap/ui/integration/messagebundle_pt.properties +4 -0
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ro.properties +4 -0
- package/src/sap/ui/integration/messagebundle_ru.properties +4 -0
- package/src/sap/ui/integration/messagebundle_sh.properties +4 -0
- package/src/sap/ui/integration/messagebundle_sk.properties +4 -0
- package/src/sap/ui/integration/messagebundle_sl.properties +4 -0
- package/src/sap/ui/integration/messagebundle_sr.properties +4 -0
- package/src/sap/ui/integration/messagebundle_sv.properties +4 -0
- package/src/sap/ui/integration/messagebundle_th.properties +4 -0
- package/src/sap/ui/integration/messagebundle_tr.properties +4 -0
- package/src/sap/ui/integration/messagebundle_uk.properties +4 -0
- package/src/sap/ui/integration/messagebundle_vi.properties +4 -0
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +4 -0
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +4 -0
- 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/model/PagingModelListBinding.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +3 -28
- package/src/sap/ui/integration/themes/base/AnalyticsCloudContent.less +11 -84
- package/src/sap/ui/integration/themes/base/Card.less +12 -0
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.js +103 -0
- 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 +1 -1
- package/src/sap/ui/integration/util/CardMerger.js +2 -0
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ComboBoxHelper.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +4 -1
- 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/ErrorHandler.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.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 +1 -1
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/OAuth3LOHelper.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 +22 -3
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +6 -3
package/.reuse/dep5
CHANGED
|
@@ -50,6 +50,11 @@ Copyright: Mario Heiderich
|
|
|
50
50
|
License: Apache-2.0
|
|
51
51
|
Comment: these files belong to: purify.js
|
|
52
52
|
|
|
53
|
+
Files: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
54
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
55
|
+
License: MIT
|
|
56
|
+
Comment: these files belong to: QUnit Composite 2.0.0
|
|
57
|
+
|
|
53
58
|
|
|
54
59
|
# Library: sap.ui.codeeditor:
|
|
55
60
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -12,6 +12,13 @@ License: Apache-2.0
|
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
13
13
|
Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
|
|
14
14
|
|
|
15
|
+
Component: QUnit Composite 2.0.0, version: 2.0.0
|
|
16
|
+
Copyright: jQuery Foundation and other contributors, https://jquery.org/
|
|
17
|
+
License: MIT
|
|
18
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
19
|
+
Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
|
|
20
|
+
src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
|
|
21
|
+
|
|
15
22
|
|
|
16
23
|
Library: sap.ui.codeeditor:
|
|
17
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.125.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,11 +14,11 @@
|
|
|
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.
|
|
19
|
-
"@openui5/sap.m": "1.
|
|
20
|
-
"@openui5/sap.ui.unified": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
22
|
-
"@openui5/sap.ui.table": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.125.0",
|
|
18
|
+
"@openui5/sap.f": "1.125.0",
|
|
19
|
+
"@openui5/sap.m": "1.125.0",
|
|
20
|
+
"@openui5/sap.ui.unified": "1.125.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.125.0",
|
|
22
|
+
"@openui5/sap.ui.table": "1.125.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 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.125.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with integration-related controls.</documentation>
|
|
12
12
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
<!-- Thirdparty references -->
|
|
58
58
|
<thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty">
|
|
59
|
-
<lib name="ui5-web-components" displayName="UI5 Web Components" npmName="@ui5/webcomponents" version="1.7.0" homepage="https://sap.github.io/ui5-webcomponents/" id="
|
|
59
|
+
<lib name="ui5-web-components" displayName="UI5 Web Components" npmName="@ui5/webcomponents" version="1.7.0" homepage="https://sap.github.io/ui5-webcomponents/" id="73554900106100139112">
|
|
60
60
|
<license url="https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt" type="Apache-2.0"></license>
|
|
61
61
|
<copyright>SAP</copyright>
|
|
62
62
|
<pattern>sap/ui/integration/thirdparty/webcomponents/*</pattern>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<copyright>Microsoft</copyright>
|
|
78
78
|
<pattern>sap/ui/integration/thirdparty/adaptive-expressions.js</pattern>
|
|
79
79
|
</lib>
|
|
80
|
-
<lib name="markdown-it" displayName="Markdown-it" npmName="markdown-it" version="12.3.2" hash="fb4306ba1f8f41a66d39cc7545d879fb" homepage="https://github.com/markdown-it/markdown-it" id="
|
|
80
|
+
<lib name="markdown-it" displayName="Markdown-it" npmName="markdown-it" version="12.3.2" hash="fb4306ba1f8f41a66d39cc7545d879fb" homepage="https://github.com/markdown-it/markdown-it" id="73554900106100113285">
|
|
81
81
|
<license url="https://github.com/markdown-it/markdown-it/blob/master/LICENSE" type="MIT"></license>
|
|
82
82
|
<copyright>2014 Vitaly Puzrin, Alex Kocharin</copyright>
|
|
83
83
|
<pattern>sap/ui/integration/thirdparty/markdown-it.js</pattern>
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @extends sap.ui.core.Element
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.125.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
@@ -473,6 +473,14 @@ sap.ui.define([
|
|
|
473
473
|
return fetch(sResource, mOptions);
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Override this method to change the source for the analytics cloud widget script.
|
|
478
|
+
* @private
|
|
479
|
+
* @ui5-restricted
|
|
480
|
+
* @experimental Since 1.125. The API might change.
|
|
481
|
+
*/
|
|
482
|
+
Host.prototype.getAnalyticsCloudWidgetSrc = function () { };
|
|
483
|
+
|
|
476
484
|
Host.prototype._addStatisticsParameter = function (sUrl) {
|
|
477
485
|
var oUrl = new URL(sUrl, window.location.href);
|
|
478
486
|
|
|
@@ -7,23 +7,22 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"./AnalyticsCloudContentRenderer",
|
|
9
9
|
"./BaseContent",
|
|
10
|
-
"sap/ui/integration/library",
|
|
11
10
|
"sap/ui/core/HTML",
|
|
12
11
|
"sap/ui/integration/util/BindingResolver",
|
|
13
12
|
"sap/m/IllustratedMessageType",
|
|
14
|
-
"sap/base/Log"
|
|
13
|
+
"sap/base/Log",
|
|
14
|
+
"sap/ui/integration/util/AnalyticsCloudHelper"
|
|
15
15
|
], function (
|
|
16
16
|
AnalyticsCloudContentRenderer,
|
|
17
17
|
BaseContent,
|
|
18
|
-
library,
|
|
19
18
|
HTML,
|
|
20
19
|
BindingResolver,
|
|
21
20
|
IllustratedMessageType,
|
|
22
|
-
Log
|
|
21
|
+
Log,
|
|
22
|
+
AnalyticsCloudHelper
|
|
23
|
+
) {
|
|
23
24
|
"use strict";
|
|
24
25
|
|
|
25
|
-
var ActionArea = library.CardActionArea;
|
|
26
|
-
|
|
27
26
|
/**
|
|
28
27
|
* Constructor for a new <code>AnalyticsCloudContent</code>.
|
|
29
28
|
*
|
|
@@ -31,18 +30,16 @@ sap.ui.define([
|
|
|
31
30
|
* @param {object} [mSettings] Initial settings for the new control
|
|
32
31
|
*
|
|
33
32
|
* @class
|
|
34
|
-
* A control that allows the creation of a card content which is based on
|
|
35
|
-
*
|
|
36
|
-
* <b>Note:</b> In order to use this content, the Highcharts library must be preloaded on the page. And <code>window.Highcharts</code> must be available.
|
|
33
|
+
* A control that allows the creation of a card content which is based on Analytics Cloud Widgets library and Analytics Cloud Service response.
|
|
37
34
|
*
|
|
38
35
|
* @extends sap.ui.integration.cards.BaseContent
|
|
39
36
|
*
|
|
40
37
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
38
|
+
* @version 1.125.0
|
|
42
39
|
*
|
|
43
40
|
* @constructor
|
|
44
41
|
* @private
|
|
45
|
-
* @since 1.
|
|
42
|
+
* @since 1.125
|
|
46
43
|
* @alias sap.ui.integration.cards.AnalyticsCloudContent
|
|
47
44
|
*/
|
|
48
45
|
var AnalyticsCloudContent = BaseContent.extend("sap.ui.integration.cards.AnalyticsCloudContent", {
|
|
@@ -58,12 +55,11 @@ sap.ui.define([
|
|
|
58
55
|
AnalyticsCloudContent.prototype.init = function () {
|
|
59
56
|
BaseContent.prototype.init.apply(this, arguments);
|
|
60
57
|
|
|
61
|
-
var sId = this.getId() + "-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
content: "<div id=" + sId + " class='sapFCardAnalyticsCloudContentHCC'></div>"
|
|
58
|
+
var sId = this.getId() + "-widgetContainer";
|
|
59
|
+
this._oWidgetContainer = new HTML(sId, {
|
|
60
|
+
content: "<div id=" + sId + " class='sapUiIntAnalyticsCloudContentContainer'></div>"
|
|
65
61
|
});
|
|
66
|
-
this.setAggregation("_content", this.
|
|
62
|
+
this.setAggregation("_content", this._oWidgetContainer);
|
|
67
63
|
};
|
|
68
64
|
|
|
69
65
|
/**
|
|
@@ -72,37 +68,32 @@ sap.ui.define([
|
|
|
72
68
|
AnalyticsCloudContent.prototype.exit = function () {
|
|
73
69
|
BaseContent.prototype.exit.apply(this, arguments);
|
|
74
70
|
|
|
75
|
-
if (this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (this._oHighchartContainer) {
|
|
81
|
-
this._oHighchartContainer.destroy();
|
|
82
|
-
this._oHighchartContainer = null;
|
|
71
|
+
if (this._oWidgetContainer) {
|
|
72
|
+
this._oWidgetContainer.destroy();
|
|
73
|
+
this._oWidgetContainer = null;
|
|
83
74
|
}
|
|
84
75
|
};
|
|
85
76
|
|
|
86
77
|
/**
|
|
87
|
-
* @
|
|
78
|
+
* @override
|
|
88
79
|
*/
|
|
89
80
|
AnalyticsCloudContent.prototype.loadDependencies = function (oCardManifest) {
|
|
90
|
-
return this.
|
|
81
|
+
return AnalyticsCloudHelper.loadWidget(this.getCardInstance()?.getHostInstance());
|
|
91
82
|
};
|
|
92
83
|
|
|
93
84
|
/**
|
|
94
85
|
* @override
|
|
95
86
|
*/
|
|
96
87
|
AnalyticsCloudContent.prototype.applyConfiguration = function () {
|
|
97
|
-
var oConfiguration = this.getParsedConfiguration();
|
|
98
|
-
|
|
99
88
|
//workaround until actions refactor
|
|
100
89
|
this.fireEvent("_actionContentReady");
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @override
|
|
94
|
+
*/
|
|
95
|
+
BaseContent.prototype.getStaticConfiguration = function () {
|
|
96
|
+
return this._getResolvedConfiguration();
|
|
106
97
|
};
|
|
107
98
|
|
|
108
99
|
/**
|
|
@@ -114,230 +105,92 @@ sap.ui.define([
|
|
|
114
105
|
return;
|
|
115
106
|
}
|
|
116
107
|
|
|
117
|
-
this.
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Loads the Highchart library based on the sac destination.
|
|
122
|
-
* @returns {Promise} A Promise which is resolved when Highcharts library is loaded.
|
|
123
|
-
*/
|
|
124
|
-
AnalyticsCloudContent.prototype._loadHighcharts = function () {
|
|
125
|
-
var oCard = this.getCardInstance(),
|
|
126
|
-
sDestinationKey = AnalyticsCloudContent.SAC_DESTINATION_KEY,
|
|
127
|
-
pDestination = oCard.resolveDestination(sDestinationKey);
|
|
128
|
-
|
|
129
|
-
return pDestination
|
|
130
|
-
.then(function (sUrl) {
|
|
131
|
-
return AnalyticsCloudContent.loadHighcharts(sUrl);
|
|
132
|
-
}, function (sReason) {
|
|
133
|
-
return Promise.reject("Destination with key '" + sDestinationKey + "' is required for AnalyticsCloud card. It could not be resolved. Reason: '" + sReason + "'");
|
|
134
|
-
});
|
|
108
|
+
this._renderWidget();
|
|
135
109
|
};
|
|
136
110
|
|
|
137
111
|
/**
|
|
138
|
-
* Creates
|
|
112
|
+
* Creates Widgets' chart inside the card content.
|
|
139
113
|
*/
|
|
140
|
-
AnalyticsCloudContent.prototype.
|
|
114
|
+
AnalyticsCloudContent.prototype._renderWidget = function () {
|
|
141
115
|
if (this._bIsBeingDestroyed) {
|
|
142
116
|
return;
|
|
143
117
|
}
|
|
144
118
|
|
|
145
|
-
|
|
146
|
-
oConfiguration = this.getParsedConfiguration(),
|
|
147
|
-
oBindingContext = this.getBindingContext(),
|
|
148
|
-
sPath,
|
|
149
|
-
oChartOptions;
|
|
150
|
-
|
|
151
|
-
// is all data already loaded (either from card level or from content level)
|
|
119
|
+
const oCard = this.getCardInstance();
|
|
152
120
|
if (!oCard.isReady()) {
|
|
153
|
-
oCard.attachEventOnce("_ready",
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// is Highcharts library available
|
|
158
|
-
if (!window.Highcharts) {
|
|
159
|
-
this.handleError({
|
|
160
|
-
illustrationType: IllustratedMessageType.ErrorScreen,
|
|
161
|
-
title: oCard.getTranslatedText("CARD_DATA_LOAD_ERROR"),
|
|
162
|
-
description: oCard.getTranslatedText("CARD_ERROR_HIGHCHARTS_DESCRIPTION")
|
|
121
|
+
oCard.attachEventOnce("_ready", () => {
|
|
122
|
+
this.invalidate();
|
|
163
123
|
});
|
|
164
124
|
return;
|
|
165
125
|
}
|
|
166
126
|
|
|
167
|
-
if (!
|
|
168
|
-
|
|
127
|
+
if (!sap?.sac?.api?.widget) {
|
|
128
|
+
this._widgetError("Object sap.sac.api.widget not found on the page.");
|
|
169
129
|
return;
|
|
170
130
|
}
|
|
171
131
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
oChartOptions = BindingResolver.resolveValue(oConfiguration.options, this, sPath);
|
|
177
|
-
|
|
178
|
-
this._oHighchart = new window.Highcharts.Chart(this._oHighchartContainer.getId(), oChartOptions);
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
/** Static methods */
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The key which must point to the SAC destination inside the card configuration. This destination will be used to load Highcharts library.
|
|
185
|
-
* @readonly
|
|
186
|
-
* @const {string}
|
|
187
|
-
*/
|
|
188
|
-
AnalyticsCloudContent.SAC_DESTINATION_KEY = "sac";
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* List of Highcharts modules to load.
|
|
192
|
-
* @readonly
|
|
193
|
-
* @const {Object}
|
|
194
|
-
*/
|
|
195
|
-
AnalyticsCloudContent.HIGHCHART_MODULES = {
|
|
196
|
-
"highcharts/highstock": {
|
|
197
|
-
amd: true,
|
|
198
|
-
exports: 'Highcharts'
|
|
199
|
-
},
|
|
200
|
-
"highcharts/highcharts-more": {
|
|
201
|
-
deps: ["highcharts/highstock"]
|
|
202
|
-
},
|
|
203
|
-
"highcharts/solid-gauge": {
|
|
204
|
-
deps: ["highcharts/highstock", "highcharts/highcharts-more"]
|
|
205
|
-
},
|
|
206
|
-
"highcharts/histogram-bellcurve": {
|
|
207
|
-
deps: ["highcharts/highstock"]
|
|
208
|
-
},
|
|
209
|
-
"highcharts/no-data-to-display": {
|
|
210
|
-
deps: ["highcharts/highstock"]
|
|
211
|
-
},
|
|
212
|
-
"highcharts/wordcloud": {
|
|
213
|
-
deps: ["highcharts/highstock"]
|
|
214
|
-
},
|
|
215
|
-
"highcharts/variable-pie": {
|
|
216
|
-
deps: ["highcharts/highstock"]
|
|
217
|
-
},
|
|
218
|
-
"highcharts/heatmap": {
|
|
219
|
-
deps: ["highcharts/highstock"]
|
|
220
|
-
},
|
|
221
|
-
"highcharts/treemap": {
|
|
222
|
-
deps: ["highcharts/highstock"]
|
|
223
|
-
},
|
|
224
|
-
"highcharts/variwide": {
|
|
225
|
-
deps: ["highcharts/highstock"]
|
|
226
|
-
},
|
|
227
|
-
"highcharts/pattern-fill": {
|
|
228
|
-
deps: ["highcharts/highstock"]
|
|
229
|
-
},
|
|
230
|
-
"highcharts/highcharts-3d": {
|
|
231
|
-
deps: ["highcharts/highstock"]
|
|
232
|
-
},
|
|
233
|
-
"highcharts/grouped-categories": {
|
|
234
|
-
deps: ["highcharts/highstock"]
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Loads the Highcharts library.
|
|
240
|
-
* @param {string} sBaseUrl The base url of the sac service from which the Highcharts library can be loaded.
|
|
241
|
-
* @return {Promise} A Promise which is resolved when all Highcharts dependencies are loaded. Rejected if there is a problem.
|
|
242
|
-
*/
|
|
243
|
-
AnalyticsCloudContent.loadHighcharts = function (sBaseUrl) {
|
|
244
|
-
var sSanitizedUrl = sBaseUrl.trim().replace(/\/$/, ""), // remove any trailing spaces and slashes
|
|
245
|
-
sFireflyServiceUrl = sSanitizedUrl,
|
|
246
|
-
bIsIncluded = this._isHighchartsIncluded(sFireflyServiceUrl),
|
|
247
|
-
bIsIncludedByOthers = this._isHighchartsIncludedByThirdParty();
|
|
248
|
-
|
|
249
|
-
if (bIsIncluded) {
|
|
250
|
-
return this._pLoadModules;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (bIsIncludedByOthers) {
|
|
254
|
-
return Promise.resolve();
|
|
132
|
+
const oWidget = this._getResolvedConfiguration()?.widget;
|
|
133
|
+
if (!oWidget) {
|
|
134
|
+
this._widgetError("Required widget configuration not found.");
|
|
135
|
+
return;
|
|
255
136
|
}
|
|
256
137
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
138
|
+
const fnSuccess = () => {
|
|
139
|
+
Log.info(`Widget rendered successfully: ${oWidget.widgetId}`, this);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const fnFailure = () => {
|
|
143
|
+
this._widgetError(`Widget rendering failed: ${oWidget.widgetId}`);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
sap.sac.api.widget.renderWidget(
|
|
147
|
+
this._oWidgetContainer.getId(),
|
|
148
|
+
{ proxy: oWidget["destination"] },
|
|
149
|
+
oWidget["storyId"],
|
|
150
|
+
oWidget["widgetId"],
|
|
151
|
+
{
|
|
152
|
+
...oWidget["options"],
|
|
153
|
+
renderComplete: {
|
|
154
|
+
onSuccess: fnSuccess,
|
|
155
|
+
onFailure: fnFailure
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
);
|
|
261
159
|
};
|
|
262
160
|
|
|
263
161
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @
|
|
266
|
-
* @return {boolean} True if loaded.
|
|
162
|
+
* Gets the content configuration, with resolved binding.
|
|
163
|
+
* @returns {Object} The resolved configuration.
|
|
267
164
|
*/
|
|
268
|
-
AnalyticsCloudContent.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
if (sIncludedFrom && sIncludedFrom !== sBaseUrl) {
|
|
276
|
-
Log.warning(
|
|
277
|
-
"Highcharts library is already included from '" + sIncludedFrom + "'. The included version will be used and will not load from '" + sBaseUrl + "'",
|
|
278
|
-
"sap.ui.integration.widgets.Card#AnalyticsCloud"
|
|
279
|
-
);
|
|
280
|
-
return true;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
return false;
|
|
165
|
+
AnalyticsCloudContent.prototype._getResolvedConfiguration = function () {
|
|
166
|
+
return BindingResolver.resolveValue(
|
|
167
|
+
this.getParsedConfiguration(),
|
|
168
|
+
this,
|
|
169
|
+
this.getBindingContext()?.getPath() || "/"
|
|
170
|
+
);
|
|
284
171
|
};
|
|
285
172
|
|
|
286
173
|
/**
|
|
287
|
-
*
|
|
288
|
-
* @
|
|
174
|
+
* Gets the content configuration, with resolved binding.
|
|
175
|
+
* @returns {Object} The resolved configuration.
|
|
289
176
|
*/
|
|
290
|
-
AnalyticsCloudContent.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return true;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
return false;
|
|
177
|
+
AnalyticsCloudContent.prototype._getResolvedConfiguration = function () {
|
|
178
|
+
return BindingResolver.resolveValue(
|
|
179
|
+
this.getParsedConfiguration(),
|
|
180
|
+
this,
|
|
181
|
+
this.getBindingContext()?.getPath() || "/"
|
|
182
|
+
);
|
|
300
183
|
};
|
|
301
184
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
* @param {string} sBaseUrl The base url of the sac service from which the Highcharts library can be loaded.
|
|
305
|
-
* @return {Promise} A Promise which is resolved when all Highcharts dependencies are loaded. Rejected if there is a problem.
|
|
306
|
-
*/
|
|
307
|
-
AnalyticsCloudContent._loadModules = function (sBaseUrl) {
|
|
308
|
-
var oShim = this.HIGHCHART_MODULES,
|
|
309
|
-
aModules = Object.getOwnPropertyNames(oShim);
|
|
185
|
+
AnalyticsCloudContent.prototype._widgetError = function (sError) {
|
|
186
|
+
const oCard = this.getCardInstance();
|
|
310
187
|
|
|
311
|
-
|
|
312
|
-
paths: {
|
|
313
|
-
"highcharts": sBaseUrl + "/highcharts"
|
|
314
|
-
},
|
|
315
|
-
async: true,
|
|
316
|
-
shim: oShim
|
|
317
|
-
});
|
|
188
|
+
Log.error(sError, this);
|
|
318
189
|
|
|
319
|
-
|
|
320
|
-
.
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Require the modules.
|
|
327
|
-
* @param {array} aModules The modules to require
|
|
328
|
-
* @return {Promise} A Promise which is resolved when the modules are loaded and rejected when failed to load.
|
|
329
|
-
*/
|
|
330
|
-
AnalyticsCloudContent._require = function (aModules) {
|
|
331
|
-
return new Promise(function (fnResolve, fnReject) {
|
|
332
|
-
sap.ui.require(
|
|
333
|
-
aModules,
|
|
334
|
-
function () {
|
|
335
|
-
fnResolve(arguments);
|
|
336
|
-
},
|
|
337
|
-
function (oError) {
|
|
338
|
-
fnReject(oError);
|
|
339
|
-
}
|
|
340
|
-
);
|
|
190
|
+
this.handleError({
|
|
191
|
+
illustrationType: IllustratedMessageType.ErrorScreen,
|
|
192
|
+
title: oCard.getTranslatedText("CARD_ERROR_ANALYTICS_CLOUD_TITLE"),
|
|
193
|
+
description: oCard.getTranslatedText("CARD_ERROR_ANALYTICS_CLOUD_DESCRIPTION")
|
|
341
194
|
});
|
|
342
195
|
};
|
|
343
196
|
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* @extends sap.ui.core.Control
|
|
70
70
|
*
|
|
71
71
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.125.0
|
|
73
73
|
*
|
|
74
74
|
* @constructor
|
|
75
75
|
* @private
|
|
@@ -414,6 +414,7 @@ sap.ui.define([
|
|
|
414
414
|
illustrationSize: oBlockingMessage.getIllustrationSize(),
|
|
415
415
|
title: oBlockingMessage.getTitle(),
|
|
416
416
|
description: oBlockingMessage.getDescription(),
|
|
417
|
+
imageSrc: oBlockingMessage.getImageSrc(),
|
|
417
418
|
httpResponse: oBlockingMessage.getHttpResponse(),
|
|
418
419
|
additionalContent: oBlockingMessage.getAdditionalContent()
|
|
419
420
|
};
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.125.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
@@ -275,7 +275,7 @@ sap.ui.define([
|
|
|
275
275
|
// remove the custom accessibility announcement from the sap.m.ListBase
|
|
276
276
|
// so the additional elements (like attributes) are also read
|
|
277
277
|
this._oList.onItemFocusIn = function (oItem, oFocusedControl) {
|
|
278
|
-
this._oList.
|
|
278
|
+
this._oList._handleTargetItemFocus(oItem.getDomRef());
|
|
279
279
|
}.bind(this);
|
|
280
280
|
|
|
281
281
|
this._oList.addEventDelegate({
|