@openui5/sap.ui.integration 1.124.2 → 1.126.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 +9 -4
- package/THIRDPARTY.txt +13 -6
- 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 +136 -207
- 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 -7
- package/src/sap/ui/integration/cards/NumericHeader.js +7 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +2 -2
- package/src/sap/ui/integration/cards/TimelineContent.js +33 -3
- package/src/sap/ui/integration/cards/WebPageContent.js +39 -14
- package/src/sap/ui/integration/cards/WebPageContentRenderer.js +15 -3
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/actions/ShowCardAction.js +4 -0
- 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 +2 -1
- package/src/sap/ui/integration/controls/ActionsToolbar.js +9 -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 +23 -6
- package/src/sap/ui/integration/controls/Microchart.js +3 -2
- 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 +18 -5
- 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/EvalUtils.js +42 -0
- 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 +3 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +35 -1
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +27 -1
- package/src/sap/ui/integration/editor/Editor.js +8 -4
- 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 +27 -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 +59 -28
- package/src/sap/ui/integration/themes/base/AnalyticsCloudContent.less +11 -85
- package/src/sap/ui/integration/themes/base/Card.less +43 -0
- package/src/sap/ui/integration/themes/base/CardVariants.less +246 -0
- package/src/sap/ui/integration/themes/base/library.source.less +1 -1
- package/src/sap/ui/integration/themes/sap_hcb/base_ActionsStrip.less +26 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_AdaptiveCard.less +8 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_AnalyticsCloudContent.less +21 -0
- package/src/sap/ui/integration/themes/sap_hcb/{ListContentItem.less → base_BlockingMessage.less} +7 -2
- package/src/sap/ui/integration/themes/sap_hcb/base_CalendarContent.less +247 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_Card.less +77 -0
- package/src/sap/ui/integration/themes/{base/CardTileVariant.less → sap_hcb/base_CardVariants.less} +84 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_CustomElementBase.less +14 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_CustomElementCard.less +10 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_Footer.less +10 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_ImageWithOverlay.less +69 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_LinkWithIcon.less +11 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_ListContentItem.less +164 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_Microchart.less +62 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_MicrochartLegend.less +52 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_ObjectContent.less +181 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_ObjectStatus.less +58 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_Paginator.less +125 -0
- package/src/sap/ui/integration/themes/sap_hcb/base_WebPageContent.less +16 -0
- package/src/sap/ui/integration/themes/sap_hcb/library.source.less +31 -1
- 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 +16 -1
- 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/DisplayVariants.js +132 -0
- 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 +46 -3
- 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 +85 -10
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
|
|
|
@@ -379,13 +384,13 @@ Copyright: 2017 Wei Song and Oliver Nightingale
|
|
|
379
384
|
License: MIT
|
|
380
385
|
Comment: these files belong to: Elasticlunr
|
|
381
386
|
|
|
382
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
383
|
-
Copyright:
|
|
387
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
388
|
+
Copyright: SpryMedia Ltd
|
|
384
389
|
License: MIT
|
|
385
390
|
Comment: these files belong to: DataTables
|
|
386
391
|
|
|
387
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
388
|
-
Copyright:
|
|
392
|
+
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
393
|
+
Copyright: SpryMedia Ltd
|
|
389
394
|
License: MIT
|
|
390
395
|
Comment: these files belong to: Buttons extension for DataTables
|
|
391
396
|
|
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
|
|
|
@@ -356,17 +363,17 @@ License: MIT
|
|
|
356
363
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
357
364
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
|
|
358
365
|
|
|
359
|
-
Component: DataTables, version:
|
|
360
|
-
Copyright:
|
|
366
|
+
Component: DataTables, version: 2.0.1
|
|
367
|
+
Copyright: SpryMedia Ltd
|
|
361
368
|
License: MIT
|
|
362
369
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
363
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-
|
|
370
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
|
|
364
371
|
|
|
365
|
-
Component: Buttons extension for DataTables, version:
|
|
366
|
-
Copyright:
|
|
372
|
+
Component: Buttons extension for DataTables, version: 3.0.0
|
|
373
|
+
Copyright: SpryMedia Ltd
|
|
367
374
|
License: MIT
|
|
368
375
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
369
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-
|
|
376
|
+
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
|
|
370
377
|
|
|
371
378
|
|
|
372
379
|
Library: sap.ui.integration:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.126.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.126.0",
|
|
18
|
+
"@openui5/sap.f": "1.126.0",
|
|
19
|
+
"@openui5/sap.m": "1.126.0",
|
|
20
|
+
"@openui5/sap.ui.unified": "1.126.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.126.0",
|
|
22
|
+
"@openui5/sap.ui.table": "1.126.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.126.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.126.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,24 @@
|
|
|
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/base/util/deepClone",
|
|
15
|
+
"sap/ui/integration/util/AnalyticsCloudHelper"
|
|
15
16
|
], function (
|
|
16
17
|
AnalyticsCloudContentRenderer,
|
|
17
18
|
BaseContent,
|
|
18
|
-
library,
|
|
19
19
|
HTML,
|
|
20
20
|
BindingResolver,
|
|
21
21
|
IllustratedMessageType,
|
|
22
|
-
Log
|
|
22
|
+
Log,
|
|
23
|
+
deepClone,
|
|
24
|
+
AnalyticsCloudHelper
|
|
25
|
+
) {
|
|
23
26
|
"use strict";
|
|
24
27
|
|
|
25
|
-
var ActionArea = library.CardActionArea;
|
|
26
|
-
|
|
27
28
|
/**
|
|
28
29
|
* Constructor for a new <code>AnalyticsCloudContent</code>.
|
|
29
30
|
*
|
|
@@ -31,18 +32,16 @@ sap.ui.define([
|
|
|
31
32
|
* @param {object} [mSettings] Initial settings for the new control
|
|
32
33
|
*
|
|
33
34
|
* @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.
|
|
35
|
+
* A control that allows the creation of a card content which is based on Analytics Cloud Widgets library and Analytics Cloud Service response.
|
|
37
36
|
*
|
|
38
37
|
* @extends sap.ui.integration.cards.BaseContent
|
|
39
38
|
*
|
|
40
39
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
40
|
+
* @version 1.126.0
|
|
42
41
|
*
|
|
43
42
|
* @constructor
|
|
44
43
|
* @private
|
|
45
|
-
* @since 1.
|
|
44
|
+
* @since 1.125
|
|
46
45
|
* @alias sap.ui.integration.cards.AnalyticsCloudContent
|
|
47
46
|
*/
|
|
48
47
|
var AnalyticsCloudContent = BaseContent.extend("sap.ui.integration.cards.AnalyticsCloudContent", {
|
|
@@ -58,12 +57,11 @@ sap.ui.define([
|
|
|
58
57
|
AnalyticsCloudContent.prototype.init = function () {
|
|
59
58
|
BaseContent.prototype.init.apply(this, arguments);
|
|
60
59
|
|
|
61
|
-
var sId = this.getId() + "-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
content: "<div id=" + sId + " class='sapFCardAnalyticsCloudContentHCC'></div>"
|
|
60
|
+
var sId = this.getId() + "-widgetContainer";
|
|
61
|
+
this._oWidgetContainer = new HTML(sId, {
|
|
62
|
+
content: "<div id=" + sId + " class='sapUiIntAnalyticsCloudContentContainer'></div>"
|
|
65
63
|
});
|
|
66
|
-
this.setAggregation("_content", this.
|
|
64
|
+
this.setAggregation("_content", this._oWidgetContainer);
|
|
67
65
|
};
|
|
68
66
|
|
|
69
67
|
/**
|
|
@@ -72,37 +70,32 @@ sap.ui.define([
|
|
|
72
70
|
AnalyticsCloudContent.prototype.exit = function () {
|
|
73
71
|
BaseContent.prototype.exit.apply(this, arguments);
|
|
74
72
|
|
|
75
|
-
if (this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (this._oHighchartContainer) {
|
|
81
|
-
this._oHighchartContainer.destroy();
|
|
82
|
-
this._oHighchartContainer = null;
|
|
73
|
+
if (this._oWidgetContainer) {
|
|
74
|
+
this._oWidgetContainer.destroy();
|
|
75
|
+
this._oWidgetContainer = null;
|
|
83
76
|
}
|
|
84
77
|
};
|
|
85
78
|
|
|
86
79
|
/**
|
|
87
|
-
* @
|
|
80
|
+
* @override
|
|
88
81
|
*/
|
|
89
82
|
AnalyticsCloudContent.prototype.loadDependencies = function (oCardManifest) {
|
|
90
|
-
return this.
|
|
83
|
+
return AnalyticsCloudHelper.loadWidget(this.getCardInstance()?.getHostInstance());
|
|
91
84
|
};
|
|
92
85
|
|
|
93
86
|
/**
|
|
94
87
|
* @override
|
|
95
88
|
*/
|
|
96
89
|
AnalyticsCloudContent.prototype.applyConfiguration = function () {
|
|
97
|
-
var oConfiguration = this.getParsedConfiguration();
|
|
98
|
-
|
|
99
90
|
//workaround until actions refactor
|
|
100
91
|
this.fireEvent("_actionContentReady");
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @override
|
|
96
|
+
*/
|
|
97
|
+
AnalyticsCloudContent.prototype.getStaticConfiguration = function () {
|
|
98
|
+
return this._getResolvedConfiguration();
|
|
106
99
|
};
|
|
107
100
|
|
|
108
101
|
/**
|
|
@@ -114,230 +107,166 @@ sap.ui.define([
|
|
|
114
107
|
return;
|
|
115
108
|
}
|
|
116
109
|
|
|
117
|
-
this.
|
|
110
|
+
this._renderWidget();
|
|
118
111
|
};
|
|
119
112
|
|
|
120
113
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @returns {Promise} A Promise which is resolved when Highcharts library is loaded.
|
|
114
|
+
* Creates Widgets' chart inside the card content.
|
|
123
115
|
*/
|
|
124
|
-
AnalyticsCloudContent.prototype.
|
|
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
|
-
});
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Creates Highcharts' chart inside the card content.
|
|
139
|
-
*/
|
|
140
|
-
AnalyticsCloudContent.prototype._createHighchart = function () {
|
|
116
|
+
AnalyticsCloudContent.prototype._renderWidget = function () {
|
|
141
117
|
if (this._bIsBeingDestroyed) {
|
|
142
118
|
return;
|
|
143
119
|
}
|
|
144
120
|
|
|
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)
|
|
121
|
+
const oCard = this.getCardInstance();
|
|
152
122
|
if (!oCard.isReady()) {
|
|
153
|
-
oCard.attachEventOnce("_ready",
|
|
123
|
+
oCard.attachEventOnce("_ready", () => {
|
|
124
|
+
// Makes sure that it goes through onAfterRendering when card is ready
|
|
125
|
+
this.invalidate();
|
|
126
|
+
});
|
|
154
127
|
return;
|
|
155
128
|
}
|
|
156
129
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
this.handleError({
|
|
160
|
-
illustrationType: IllustratedMessageType.ErrorScreen,
|
|
161
|
-
title: oCard.getTranslatedText("CARD_DATA_LOAD_ERROR"),
|
|
162
|
-
description: oCard.getTranslatedText("CARD_ERROR_HIGHCHARTS_DESCRIPTION")
|
|
163
|
-
});
|
|
130
|
+
if (!sap?.sac?.api?.widget) {
|
|
131
|
+
this._showError("Object sap.sac.api.widget not found on the page.");
|
|
164
132
|
return;
|
|
165
133
|
}
|
|
166
134
|
|
|
167
|
-
|
|
168
|
-
|
|
135
|
+
const oConfig = this._getResolvedConfiguration();
|
|
136
|
+
if (!oConfig.sacTenantDestination) {
|
|
137
|
+
this._showError("Required configuration /sap.card/content/sacTenantDestination was not found or is empty.");
|
|
169
138
|
return;
|
|
170
139
|
}
|
|
171
140
|
|
|
172
|
-
|
|
173
|
-
|
|
141
|
+
const sContainerId = this._oWidgetContainer.getId();
|
|
142
|
+
const oWidget = oConfig?.widget;
|
|
143
|
+
const vInterpretation = oConfig?.interpretation;
|
|
144
|
+
const oOptions = this._getOptions(oConfig);
|
|
145
|
+
|
|
146
|
+
if (oWidget) {
|
|
147
|
+
sap.sac.api.widget.renderWidget(
|
|
148
|
+
sContainerId,
|
|
149
|
+
{ proxy: oConfig.sacTenantDestination },
|
|
150
|
+
oWidget.storyId,
|
|
151
|
+
oWidget.widgetId,
|
|
152
|
+
oOptions
|
|
153
|
+
);
|
|
154
|
+
} else if (vInterpretation) {
|
|
155
|
+
sap.sac.api.widget.renderWidgetForJustAsk(
|
|
156
|
+
sContainerId,
|
|
157
|
+
{ proxy: oConfig.sacTenantDestination },
|
|
158
|
+
vInterpretation,
|
|
159
|
+
oOptions
|
|
160
|
+
);
|
|
161
|
+
} else {
|
|
162
|
+
this._showError("Required configuration /sap.card/content/widget or /sap.card/content/interpretation was not found or is empty.");
|
|
174
163
|
}
|
|
175
|
-
|
|
176
|
-
oChartOptions = BindingResolver.resolveValue(oConfiguration.options, this, sPath);
|
|
177
|
-
|
|
178
|
-
this._oHighchart = new window.Highcharts.Chart(this._oHighchartContainer.getId(), oChartOptions);
|
|
179
164
|
};
|
|
180
165
|
|
|
181
|
-
/** Static methods */
|
|
182
|
-
|
|
183
166
|
/**
|
|
184
|
-
*
|
|
185
|
-
* @
|
|
186
|
-
* @const {string}
|
|
167
|
+
* Gets the content configuration, with resolved binding.
|
|
168
|
+
* @returns {Object} The resolved configuration.
|
|
187
169
|
*/
|
|
188
|
-
AnalyticsCloudContent.
|
|
170
|
+
AnalyticsCloudContent.prototype._getResolvedConfiguration = function () {
|
|
171
|
+
return BindingResolver.resolveValue(
|
|
172
|
+
this.getParsedConfiguration(),
|
|
173
|
+
this,
|
|
174
|
+
this.getBindingContext()?.getPath() || "/"
|
|
175
|
+
);
|
|
176
|
+
};
|
|
189
177
|
|
|
190
178
|
/**
|
|
191
|
-
*
|
|
192
|
-
* @
|
|
193
|
-
* @
|
|
179
|
+
* Gets the options from manifest merged with default options.
|
|
180
|
+
* @param {Object} oConfig The content config.
|
|
181
|
+
* @returns {Object} The options.
|
|
194
182
|
*/
|
|
195
|
-
AnalyticsCloudContent.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
}
|
|
183
|
+
AnalyticsCloudContent.prototype._getOptions = function (oConfig) {
|
|
184
|
+
const oOptions = deepClone(oConfig.options) || {};
|
|
185
|
+
const oDefaultAttributes = {
|
|
186
|
+
enableInteraction: false,
|
|
187
|
+
enableUndoRedo: false,
|
|
188
|
+
enableMenus: false,
|
|
189
|
+
showHeader: false,
|
|
190
|
+
showFooter: false
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
oOptions.attributes = Object.assign({}, oDefaultAttributes, oOptions.attributes);
|
|
194
|
+
|
|
195
|
+
oOptions.renderComplete = {
|
|
196
|
+
onSuccess: this._onWidgetSuccess.bind(this),
|
|
197
|
+
onFailure: this._onWidgetFailure.bind(this)
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
return oOptions;
|
|
236
201
|
};
|
|
237
202
|
|
|
238
203
|
/**
|
|
239
|
-
*
|
|
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.
|
|
204
|
+
* Handles the case where widget rendering was successful.
|
|
242
205
|
*/
|
|
243
|
-
AnalyticsCloudContent.
|
|
244
|
-
|
|
245
|
-
sFireflyServiceUrl = sSanitizedUrl,
|
|
246
|
-
bIsIncluded = this._isHighchartsIncluded(sFireflyServiceUrl),
|
|
247
|
-
bIsIncludedByOthers = this._isHighchartsIncludedByThirdParty();
|
|
248
|
-
|
|
249
|
-
if (bIsIncluded) {
|
|
250
|
-
return this._pLoadModules;
|
|
251
|
-
}
|
|
206
|
+
AnalyticsCloudContent.prototype._onWidgetSuccess = function () {
|
|
207
|
+
const sWidgetId = this._getResolvedConfiguration()?.widget?.widgetId || "interpretation";
|
|
252
208
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
this._sIncludedFrom = sFireflyServiceUrl;
|
|
258
|
-
this._pLoadModules = this._loadModules(sFireflyServiceUrl);
|
|
259
|
-
|
|
260
|
-
return this._pLoadModules;
|
|
209
|
+
Log.info(`Widget rendered successfully: ${sWidgetId}`, this);
|
|
210
|
+
this._updateWidgetInfo();
|
|
261
211
|
};
|
|
262
212
|
|
|
263
213
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @param {string}
|
|
266
|
-
* @return {boolean} True if loaded.
|
|
214
|
+
* Handles the case where widget rendering was failure.
|
|
215
|
+
* @param {Error|Object|string|null} vError The error returned by the widget.
|
|
267
216
|
*/
|
|
268
|
-
AnalyticsCloudContent.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
217
|
+
AnalyticsCloudContent.prototype._onWidgetFailure = function (vError) {
|
|
218
|
+
const oWidget = this._getResolvedConfiguration()?.widget;
|
|
219
|
+
const sStoryId = oWidget?.storyId || "interpretation";
|
|
220
|
+
const sWidgetId = oWidget?.widgetId || "interpretation";
|
|
221
|
+
|
|
222
|
+
let sError = `There was a failure in sap.sac.api.widget.renderWidget with storyId ${sStoryId} and widgetId ${sWidgetId}.`;
|
|
223
|
+
|
|
224
|
+
if (vError instanceof Error) {
|
|
225
|
+
sError += " " + vError.toString();
|
|
226
|
+
Log.error(vError.stack);
|
|
227
|
+
} else if (typeof vError === "object") {
|
|
228
|
+
sError += " " + JSON.stringify(vError);
|
|
229
|
+
} else if (vError) {
|
|
230
|
+
sError += " " + vError;
|
|
273
231
|
}
|
|
274
232
|
|
|
275
|
-
|
|
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
|
-
}
|
|
233
|
+
Log.error(sError, this);
|
|
282
234
|
|
|
283
|
-
|
|
235
|
+
this._updateWidgetInfo();
|
|
284
236
|
};
|
|
285
237
|
|
|
286
238
|
/**
|
|
287
|
-
*
|
|
288
|
-
* @return {boolean} True if loaded.
|
|
239
|
+
* Sets the widget info from sap.sac.api.widget.getWidgetInfo to card's model widgetInfo
|
|
289
240
|
*/
|
|
290
|
-
AnalyticsCloudContent.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
241
|
+
AnalyticsCloudContent.prototype._updateWidgetInfo = async function () {
|
|
242
|
+
const oCard = this.getCardInstance();
|
|
243
|
+
const sContainerId = this._oWidgetContainer.getId();
|
|
244
|
+
|
|
245
|
+
let oWidgetInfo = {};
|
|
246
|
+
try {
|
|
247
|
+
oWidgetInfo = await sap.sac.api.widget.getWidgetInfo(sContainerId);
|
|
248
|
+
} catch (oError) {
|
|
249
|
+
Log.error("Call to sap.sac.api.widget.getWidgetInfo failed.", this);
|
|
297
250
|
}
|
|
298
251
|
|
|
299
|
-
|
|
252
|
+
oCard.getModel("widgetInfo").setData(oWidgetInfo);
|
|
253
|
+
|
|
254
|
+
oCard.scheduleFireStateChanged();
|
|
300
255
|
};
|
|
301
256
|
|
|
302
257
|
/**
|
|
303
|
-
*
|
|
304
|
-
* @param {string}
|
|
305
|
-
* @return {Promise} A Promise which is resolved when all Highcharts dependencies are loaded. Rejected if there is a problem.
|
|
258
|
+
* Displays widget initialization error to the end user and logs error message.
|
|
259
|
+
* @param {string} sError The error message to log.
|
|
306
260
|
*/
|
|
307
|
-
AnalyticsCloudContent.
|
|
308
|
-
|
|
309
|
-
aModules = Object.getOwnPropertyNames(oShim);
|
|
310
|
-
|
|
311
|
-
sap.ui.loader.config({
|
|
312
|
-
paths: {
|
|
313
|
-
"highcharts": sBaseUrl + "/highcharts"
|
|
314
|
-
},
|
|
315
|
-
async: true,
|
|
316
|
-
shim: oShim
|
|
317
|
-
});
|
|
261
|
+
AnalyticsCloudContent.prototype._showError = function (sError) {
|
|
262
|
+
const oCard = this.getCardInstance();
|
|
318
263
|
|
|
319
|
-
|
|
320
|
-
.catch(function () {
|
|
321
|
-
return Promise.reject("There was a problem with loading of the Highcharts library files.");
|
|
322
|
-
});
|
|
323
|
-
};
|
|
264
|
+
Log.error(sError, this);
|
|
324
265
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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
|
-
);
|
|
266
|
+
this.handleError({
|
|
267
|
+
illustrationType: IllustratedMessageType.ErrorScreen,
|
|
268
|
+
title: oCard.getTranslatedText("CARD_ERROR_ANALYTICS_CLOUD_TITLE"),
|
|
269
|
+
description: oCard.getTranslatedText("CARD_ERROR_ANALYTICS_CLOUD_DESCRIPTION")
|
|
341
270
|
});
|
|
342
271
|
};
|
|
343
272
|
|