@openui5/sap.ui.integration 1.147.0 → 1.148.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 +6 -6
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +1 -1
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -3
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -4
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -9
- package/src/sap/ui/integration/cards/BaseContent.js +2 -9
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -85
- package/src/sap/ui/integration/cards/CalendarContent.js +7 -10
- package/src/sap/ui/integration/cards/ComponentContent.js +10 -7
- package/src/sap/ui/integration/cards/Footer.js +11 -2
- package/src/sap/ui/integration/cards/Header.js +2 -9
- package/src/sap/ui/integration/cards/ListContent.js +1 -12
- package/src/sap/ui/integration/cards/NumericHeader.js +2 -8
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -7
- package/src/sap/ui/integration/cards/TableContent.js +1 -21
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -14
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -4
- package/src/sap/ui/integration/cards/actions/CardActions.js +36 -191
- package/src/sap/ui/integration/cards/actions/NavigationAction.js +0 -4
- package/src/sap/ui/integration/cards/actions/SubmitAction.js +1 -2
- 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 +2 -2
- 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 +5 -8
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/BlockingMessage.js +1 -1
- package/src/sap/ui/integration/controls/ComboBox.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionColumn.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionRow.js +1 -1
- package/src/sap/ui/integration/controls/ImageWithOverlay.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/delegate/OverflowHandler.js +1 -1
- package/src/sap/ui/integration/delegate/Paginator.js +1 -1
- package/src/sap/ui/integration/delegate/PreventKeyboardScrolling.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/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/config/generateActionConfig.js +0 -6
- package/src/sap/ui/integration/designtime/cardEditor/config/generateDataConfig.js +0 -14
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +0 -9
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cnr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_GB.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +30 -6
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +31 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +31 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_mk.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +30 -0
- 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 +20 -6
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +3 -1
- package/src/sap/ui/integration/editor/Editor.js +23 -12
- 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/css/Editor.css +2 -2
- 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 +1 -1
- package/src/sap/ui/integration/formatters/IconFormatter.js +8 -0
- package/src/sap/ui/integration/library-bootstrap.js +6 -9
- package/src/sap/ui/integration/library.js +2 -17
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +20 -31
- package/src/sap/ui/integration/themes/base/Footer.less +4 -0
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.js +1 -1
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +1 -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 +1 -2
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -2
- package/src/sap/ui/integration/util/DataProviderFactory.js +3 -13
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/DisplayVariants.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 -6
- 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/ObjectStatusFactory.js +1 -1
- package/src/sap/ui/integration/util/RadioButtonHelper.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/SorterHelper.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +1 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +5 -33
- package/src/sap/ui/integration/services/Data.js +0 -55
- package/src/sap/ui/integration/services/Navigation.js +0 -47
- package/src/sap/ui/integration/services/Service.js +0 -49
- package/src/sap/ui/integration/util/ServiceDataProvider.js +0 -117
- package/src/sap/ui/integration/util/ServiceManager.js +0 -173
|
@@ -14,7 +14,6 @@ sap.ui.define([
|
|
|
14
14
|
"sap/ui/core/Lib",
|
|
15
15
|
"sap/ui/thirdparty/jquery",
|
|
16
16
|
"sap/ui/integration/util/Manifest",
|
|
17
|
-
"sap/ui/integration/util/ServiceManager",
|
|
18
17
|
"sap/base/Log",
|
|
19
18
|
"sap/base/util/merge",
|
|
20
19
|
"sap/base/util/deepEqual",
|
|
@@ -53,7 +52,6 @@ sap.ui.define([
|
|
|
53
52
|
Library,
|
|
54
53
|
jQuery,
|
|
55
54
|
CardManifest,
|
|
56
|
-
ServiceManager,
|
|
57
55
|
Log,
|
|
58
56
|
merge,
|
|
59
57
|
deepEqual,
|
|
@@ -93,7 +91,6 @@ sap.ui.define([
|
|
|
93
91
|
CONTENT: "/sap.card/content",
|
|
94
92
|
FOOTER: "/sap.card/footer",
|
|
95
93
|
PAGINATOR: "/sap.card/footer/paginator",
|
|
96
|
-
SERVICES: "/sap.ui5/services",
|
|
97
94
|
APP_TYPE: "/sap.app/type",
|
|
98
95
|
PARAMS: "/sap.card/configuration/parameters",
|
|
99
96
|
DESTINATIONS: "/sap.card/configuration/destinations",
|
|
@@ -111,8 +108,6 @@ sap.ui.define([
|
|
|
111
108
|
|
|
112
109
|
const SemanticRole = fLibrary.cards.SemanticRole;
|
|
113
110
|
|
|
114
|
-
const ActionArea = library.CardActionArea;
|
|
115
|
-
|
|
116
111
|
const CardArea = library.CardArea;
|
|
117
112
|
|
|
118
113
|
const CardDataMode = library.CardDataMode;
|
|
@@ -192,7 +187,7 @@ sap.ui.define([
|
|
|
192
187
|
* @extends sap.f.CardBase
|
|
193
188
|
*
|
|
194
189
|
* @author SAP SE
|
|
195
|
-
* @version 1.
|
|
190
|
+
* @version 1.148.0
|
|
196
191
|
* @public
|
|
197
192
|
* @constructor
|
|
198
193
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
@@ -267,6 +262,8 @@ sap.ui.define([
|
|
|
267
262
|
* <li>If both the manifest URL and the base URL are defined, the base URL is used.</li>
|
|
268
263
|
* <li>If neither the manifest URL nor the base URL is defined, relative resources will not load correctly.</li>
|
|
269
264
|
* </ul>
|
|
265
|
+
*
|
|
266
|
+
* @since 1.70
|
|
270
267
|
*/
|
|
271
268
|
baseUrl: {
|
|
272
269
|
type: "sap.ui.core.URI",
|
|
@@ -660,7 +657,7 @@ sap.ui.define([
|
|
|
660
657
|
* @name sap.ui.integration.widgets.CardFacade
|
|
661
658
|
* @public
|
|
662
659
|
* @author SAP SE
|
|
663
|
-
* @version 1.
|
|
660
|
+
* @version 1.148.0
|
|
664
661
|
* @borrows sap.ui.integration.widgets.Card#getId as getId
|
|
665
662
|
* @borrows sap.ui.integration.widgets.Card#getCombinedParameters as getCombinedParameters
|
|
666
663
|
* @borrows sap.ui.integration.widgets.Card#getManifestEntry as getManifestEntry
|
|
@@ -1528,11 +1525,6 @@ sap.ui.define([
|
|
|
1528
1525
|
this._oCardManifest.destroy();
|
|
1529
1526
|
this._oCardManifest = null;
|
|
1530
1527
|
}
|
|
1531
|
-
if (this._oServiceManager) {
|
|
1532
|
-
this._oServiceManager.destroy();
|
|
1533
|
-
this._oServiceManager = null;
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
1528
|
if (this._oDestinations) {
|
|
1537
1529
|
this._oDestinations.destroy();
|
|
1538
1530
|
this._oDestinations = null;
|
|
@@ -2076,7 +2068,6 @@ sap.ui.define([
|
|
|
2076
2068
|
this._applyModelSizeLimit();
|
|
2077
2069
|
|
|
2078
2070
|
this._applyLoadingDelay();
|
|
2079
|
-
this._applyServiceManifestSettings();
|
|
2080
2071
|
this._applyFilterBarManifestSettings();
|
|
2081
2072
|
this._applyDataManifestSettings();
|
|
2082
2073
|
this._applyActionManifestSettings();
|
|
@@ -2147,7 +2138,7 @@ sap.ui.define([
|
|
|
2147
2138
|
this._oDataProvider.destroy();
|
|
2148
2139
|
}
|
|
2149
2140
|
|
|
2150
|
-
this._oDataProvider = this._oDataProviderFactory.create(oDataSettings
|
|
2141
|
+
this._oDataProvider = this._oDataProviderFactory.create(oDataSettings);
|
|
2151
2142
|
|
|
2152
2143
|
if (oDataSettings.name) {
|
|
2153
2144
|
oModel = this.getModel(oDataSettings.name);
|
|
@@ -2227,7 +2218,6 @@ sap.ui.define([
|
|
|
2227
2218
|
});
|
|
2228
2219
|
|
|
2229
2220
|
oActions.attach({
|
|
2230
|
-
area: ActionArea.Card,
|
|
2231
2221
|
enabledPropertyName: "interactive",
|
|
2232
2222
|
actions: oActionsSettings,
|
|
2233
2223
|
control: this
|
|
@@ -2236,22 +2226,6 @@ sap.ui.define([
|
|
|
2236
2226
|
this._oActions = oActions;
|
|
2237
2227
|
};
|
|
2238
2228
|
|
|
2239
|
-
/**
|
|
2240
|
-
* Register all required services in the ServiceManager based on the card manifest.
|
|
2241
|
-
*
|
|
2242
|
-
* @private
|
|
2243
|
-
*/
|
|
2244
|
-
Card.prototype._applyServiceManifestSettings = function () {
|
|
2245
|
-
var oServiceFactoryReferences = this._oCardManifest.get(MANIFEST_PATHS.SERVICES);
|
|
2246
|
-
if (!oServiceFactoryReferences) {
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
if (!this._oServiceManager) {
|
|
2251
|
-
this._oServiceManager = new ServiceManager(oServiceFactoryReferences, this);
|
|
2252
|
-
}
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
2229
|
/**
|
|
2256
2230
|
*
|
|
2257
2231
|
* @private
|
|
@@ -2519,7 +2493,6 @@ sap.ui.define([
|
|
|
2519
2493
|
oContent = this.createContent({
|
|
2520
2494
|
cardType: sCardType,
|
|
2521
2495
|
contentManifest: oContentManifest,
|
|
2522
|
-
serviceManager: this._oServiceManager,
|
|
2523
2496
|
dataProviderFactory: this._oDataProviderFactory,
|
|
2524
2497
|
iconFormatter: this._oIconFormatter,
|
|
2525
2498
|
noDataConfiguration: this._oCardManifest.get(MANIFEST_PATHS.NO_DATA_MESSAGES),
|
|
@@ -3096,7 +3069,6 @@ sap.ui.define([
|
|
|
3096
3069
|
return new Promise((resolve, reject) => {
|
|
3097
3070
|
this._oDataProviderFactory
|
|
3098
3071
|
.create({ request: oResult },
|
|
3099
|
-
undefined,
|
|
3100
3072
|
undefined,
|
|
3101
3073
|
undefined,
|
|
3102
3074
|
true)
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define(['./Service'], function (Service) {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @class sap.ui.integration.Data
|
|
11
|
-
* Provides an interface for a simple DataService
|
|
12
|
-
* @private
|
|
13
|
-
* @ui5-restricted sap.ushell
|
|
14
|
-
* @extends sap.ui.integration.Service
|
|
15
|
-
*/
|
|
16
|
-
var Data = Service.extend();
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @callback fnDataChangeCallback
|
|
20
|
-
* @param {Object} oEvent The event object.
|
|
21
|
-
* @param {Object} oEvent.data The data.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Attaches an event handler to the event with the given identifier.
|
|
26
|
-
* @param {function} fnDataChangeCallback The handler function to call when the dataChange event occurs.
|
|
27
|
-
* @param {Object} [oParams] Additional parameters that can be used by the data service.
|
|
28
|
-
* @abstract
|
|
29
|
-
*/
|
|
30
|
-
Data.prototype.attachDataChanged = function (fnDataChangeCallback, oParams) {};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Detaches an event handler to the event with the given identifier.
|
|
34
|
-
* @param {function} fnDataChangeCallback The handler function to call when the dataChange event occurs.
|
|
35
|
-
* @abstract
|
|
36
|
-
*/
|
|
37
|
-
Data.prototype.detachDataChanged = function (fnDataChangeCallback) {};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Expected by a consumer of a data service to retrieve updates of the data.
|
|
41
|
-
* The consumer might implement a polling mechanism for data and therefore could ask
|
|
42
|
-
* periodically for the data.
|
|
43
|
-
* It is up to the service to decide how to handle such periodic requests and whether they result
|
|
44
|
-
* in real fetching of data from a backend service.
|
|
45
|
-
*
|
|
46
|
-
* @param {object} [oInfo] an info object that gives the service more information about this getData call.
|
|
47
|
-
* @returns {Promise} the JSON of the data that should be updated or a promise that resolves with the data.
|
|
48
|
-
* @abstract
|
|
49
|
-
*/
|
|
50
|
-
Data.prototype.getData = function (oInfo) {
|
|
51
|
-
return Promise.resolve(false);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return Data;
|
|
55
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define(['./Service'], function (Service) {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @class Navigation
|
|
11
|
-
* Implements the abstract base class for a Navigation Service
|
|
12
|
-
* @private
|
|
13
|
-
* @ui5-restricted sap.ushell
|
|
14
|
-
* @extends Service
|
|
15
|
-
*/
|
|
16
|
-
var Navigation = Service.extend();
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Expected by a consumer from the Navigation to navigate to a given <code>oContext</code>.
|
|
20
|
-
* @param {Object} oContext An object that gives the service information about the target.
|
|
21
|
-
* @param {Object} oContext.parameters A map with parameters.
|
|
22
|
-
* @abstract
|
|
23
|
-
*/
|
|
24
|
-
Navigation.prototype.navigate = function (oContext) {};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Expected by a consumer of a Navigation Service to check whether a given <code>oContext</code> is valid.
|
|
28
|
-
* @param {Object} oContext an object that gives the service information about the target.
|
|
29
|
-
* @param {Object} oContext.parameters A map with parameters.
|
|
30
|
-
* @returns {Promise} A promise that resolves with true if the navigation target can be resolved.
|
|
31
|
-
*/
|
|
32
|
-
Navigation.prototype.enabled = function (oContext) {
|
|
33
|
-
return Promise.resolve(false);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Expected by a consumer of a Navigation Service to check if a navigation item must be hidden.
|
|
38
|
-
* @param {Object} oContext an object that gives the service information about the target.
|
|
39
|
-
* @param {Object} oContext.parameters A map with parameters.
|
|
40
|
-
* @returns {Promise} A promise that resolves with true if the item must be hidden.
|
|
41
|
-
*/
|
|
42
|
-
Navigation.prototype.hidden = function (oContext) {
|
|
43
|
-
return Promise.resolve(false);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
return Navigation;
|
|
47
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([], function () {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Base class for all services.
|
|
11
|
-
* To inherit use the extend method <code>Service.extend</code>
|
|
12
|
-
* @class
|
|
13
|
-
* @alias sap.ui.integration.services.Service
|
|
14
|
-
* @private
|
|
15
|
-
* @ui5-restricted sap.ushell
|
|
16
|
-
*/
|
|
17
|
-
var Service = function () {
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Extends a given constructor function Class with the Services methods.
|
|
22
|
-
* The extend method is passed on to the newly derived class for later reuse to subclass Class.
|
|
23
|
-
*
|
|
24
|
-
* @param {function} [Class] A constructor function of a class that should be inherited from service, if not given a default constructor is created
|
|
25
|
-
* @returns {function} The constructor function of the class
|
|
26
|
-
*/
|
|
27
|
-
Service.extend = function (Class) {
|
|
28
|
-
if (!Class) {
|
|
29
|
-
var that = this;
|
|
30
|
-
Class = function () {
|
|
31
|
-
that.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
Class.prototype = Object.create(this.prototype);
|
|
35
|
-
Class.prototype.constructor = Class;
|
|
36
|
-
Class.extend = this.extend.bind(Class);
|
|
37
|
-
|
|
38
|
-
return Class;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @returns {sap.ui.integration.services.Service} The interface of the service.
|
|
43
|
-
*/
|
|
44
|
-
Service.prototype.getInterface = function () {
|
|
45
|
-
return this;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return Service;
|
|
49
|
-
});
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define(["sap/ui/integration/util/DataProvider"], function (DataProvider) {
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Constructor for a new <code>ServiceDataProvider</code>.
|
|
11
|
-
*
|
|
12
|
-
* @param {string} [sId] ID for the new data provider, generated automatically if no ID is given.
|
|
13
|
-
* @param {object} [mSettings] Initial settings for the new data provider.
|
|
14
|
-
*
|
|
15
|
-
* @class
|
|
16
|
-
*
|
|
17
|
-
* @extends sap.ui.integration.util.DataProvider
|
|
18
|
-
*
|
|
19
|
-
* @author SAP SE
|
|
20
|
-
* @version 1.147.0
|
|
21
|
-
*
|
|
22
|
-
* @constructor
|
|
23
|
-
* @private
|
|
24
|
-
* @since 1.65
|
|
25
|
-
* @alias sap.ui.integration.util.ServiceDataProvider
|
|
26
|
-
*/
|
|
27
|
-
var ServiceDataProvider = DataProvider.extend("sap.ui.integration.util.ServiceDataProvider", {
|
|
28
|
-
metadata: {
|
|
29
|
-
library: "sap.ui.integration",
|
|
30
|
-
interfaces: ["sap.ui.integration.util.IServiceDataProvider"]
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Destroys the <code>DataProvider</code> instance.
|
|
36
|
-
*/
|
|
37
|
-
ServiceDataProvider.prototype.destroy = function () {
|
|
38
|
-
this._oDataServicePromise = null;
|
|
39
|
-
if (this._oServiceManager) {
|
|
40
|
-
this._oServiceManager = null;
|
|
41
|
-
}
|
|
42
|
-
DataProvider.prototype.destroy.apply(this, arguments);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Sets a reference to a service manager and creates an instance
|
|
47
|
-
* for the required data service.
|
|
48
|
-
*
|
|
49
|
-
* @param {sap.ui.integration.util.ServiceManager} oServiceManager A reference to a pre-configured service manager instance.
|
|
50
|
-
*/
|
|
51
|
-
ServiceDataProvider.prototype.createServiceInstances = function (oServiceManager) {
|
|
52
|
-
this._oServiceManager = oServiceManager;
|
|
53
|
-
const oConfiguration = this.getResolvedConfiguration();
|
|
54
|
-
|
|
55
|
-
if (!oConfiguration || !oConfiguration.service) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let vService = oConfiguration.service;
|
|
60
|
-
|
|
61
|
-
if (vService && typeof vService === "object") {
|
|
62
|
-
vService = vService.name;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
this._createServiceInstance(vService);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Creates an instance of the required data service.
|
|
70
|
-
*
|
|
71
|
-
* @param {string} sServiceName The name of the service to create an instance of.
|
|
72
|
-
*/
|
|
73
|
-
ServiceDataProvider.prototype._createServiceInstance = function (sServiceName) {
|
|
74
|
-
const oConfiguration = this.getResolvedConfiguration();
|
|
75
|
-
|
|
76
|
-
this._oDataServicePromise = this._oServiceManager
|
|
77
|
-
.getService(sServiceName)
|
|
78
|
-
.then(function (oDataService) {
|
|
79
|
-
oDataService.attachDataChanged(function (oEvent) {
|
|
80
|
-
this.fireDataChanged({ data: oEvent.data });
|
|
81
|
-
}.bind(this), oConfiguration.service.parameters);
|
|
82
|
-
|
|
83
|
-
return oDataService;
|
|
84
|
-
}.bind(this));
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @override
|
|
89
|
-
* @returns {Promise} A promise resolved when the data is available and rejected in case of an error.
|
|
90
|
-
*/
|
|
91
|
-
ServiceDataProvider.prototype.getData = function () {
|
|
92
|
-
const oConfiguration = this.getResolvedConfiguration();
|
|
93
|
-
const oService = oConfiguration.service;
|
|
94
|
-
|
|
95
|
-
return new Promise(function (resolve, reject) {
|
|
96
|
-
if (oService && this._oDataServicePromise) {
|
|
97
|
-
this._oDataServicePromise
|
|
98
|
-
.then(function (oDataServiceInstance) {
|
|
99
|
-
oDataServiceInstance.getData()
|
|
100
|
-
.then(function (data) {
|
|
101
|
-
resolve(data);
|
|
102
|
-
})
|
|
103
|
-
.catch(function () {
|
|
104
|
-
reject("Card data service failed to get data.");
|
|
105
|
-
});
|
|
106
|
-
})
|
|
107
|
-
.catch(function () {
|
|
108
|
-
reject("Card data service unavailable.");
|
|
109
|
-
});
|
|
110
|
-
} else {
|
|
111
|
-
reject("Could not get card data.");
|
|
112
|
-
}
|
|
113
|
-
}.bind(this));
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
return ServiceDataProvider;
|
|
117
|
-
});
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/base/EventProvider",
|
|
8
|
-
"sap/base/Log"
|
|
9
|
-
], function (
|
|
10
|
-
EventProvider,
|
|
11
|
-
Log
|
|
12
|
-
) {
|
|
13
|
-
"use strict";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Constructor for a new <code>ServiceManager</code>.
|
|
17
|
-
*
|
|
18
|
-
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
19
|
-
* @param {object} [mSettings] Initial settings for the new control
|
|
20
|
-
*
|
|
21
|
-
* @class
|
|
22
|
-
* Parses an object and decides which services needs to be instantiated
|
|
23
|
-
* and handles their lifecycle.
|
|
24
|
-
* It also provides instances of the services by getService method.
|
|
25
|
-
*
|
|
26
|
-
* mServiceFactoryReferences object format:
|
|
27
|
-
*
|
|
28
|
-
* "services": {
|
|
29
|
-
* "Navigation": {
|
|
30
|
-
* "factoryName": "demoapp.demoappservices.SampleNavigationFactory"
|
|
31
|
-
* },
|
|
32
|
-
* "SomeOtherService": {
|
|
33
|
-
* "factoryName": "demoapp.demoappservices.SomeOtherServiceFactory"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
*
|
|
37
|
-
* @extends sap.ui.base.EventProvider
|
|
38
|
-
*
|
|
39
|
-
* @author SAP SE
|
|
40
|
-
* @version 1.147.0
|
|
41
|
-
*
|
|
42
|
-
* @constructor
|
|
43
|
-
* @param {Object} mServiceFactoryReferences A map with service descriptions.
|
|
44
|
-
* @param {Object} oServiceContext A context to be used for newly created service instances.
|
|
45
|
-
* @private
|
|
46
|
-
* @alias sap.ui.integration.util.ServiceManager
|
|
47
|
-
*/
|
|
48
|
-
var ServiceManager = EventProvider.extend("sap.ui.integration.util.ServiceManager", {
|
|
49
|
-
constructor: function (mServiceFactoryReferences, oServiceContext) {
|
|
50
|
-
if (!mServiceFactoryReferences) {
|
|
51
|
-
throw new Error("Missing manifest services reference!");
|
|
52
|
-
}
|
|
53
|
-
if (!oServiceContext) {
|
|
54
|
-
throw new Error("Missing context object");
|
|
55
|
-
}
|
|
56
|
-
EventProvider.call(this);
|
|
57
|
-
this._mServiceFactoryReferences = mServiceFactoryReferences;
|
|
58
|
-
this._mServices = {};
|
|
59
|
-
this._oServiceContext = oServiceContext;
|
|
60
|
-
this._initAllServices();
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Initializes all services based on _mServiceFactoryReferences.
|
|
66
|
-
* @private
|
|
67
|
-
*/
|
|
68
|
-
ServiceManager.prototype._initAllServices = function () {
|
|
69
|
-
for (var sServiceName in this._mServiceFactoryReferences) {
|
|
70
|
-
this._initService(sServiceName);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Initializes a service which can then be available by getService(sServiceName).
|
|
76
|
-
*
|
|
77
|
-
* @private
|
|
78
|
-
* @param {string} sName The name of the service or a service configuration object.
|
|
79
|
-
*/
|
|
80
|
-
ServiceManager.prototype._initService = function (sName) {
|
|
81
|
-
var oServiceRef = this._mServices[sName] || {};
|
|
82
|
-
|
|
83
|
-
oServiceRef.promise = ServiceManager._getService(this._oServiceContext, sName, this._mServiceFactoryReferences)
|
|
84
|
-
.then(function (oServiceInstance) {
|
|
85
|
-
oServiceRef.instance = oServiceInstance;
|
|
86
|
-
}).catch(function (oError) {
|
|
87
|
-
Log.error(oError.message);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
this._mServices[sName] = oServiceRef;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Returns an instance of a service based on its name.
|
|
95
|
-
*
|
|
96
|
-
* @param {string} sServiceName The name of the service inside sap.ui5/services. If not passed the first registered service will be returned.
|
|
97
|
-
* @returns {Promise} A promise resolved when the service instance is ready.
|
|
98
|
-
*/
|
|
99
|
-
ServiceManager.prototype.getService = function (sServiceName) {
|
|
100
|
-
var sErrorMessage = "Invalid service";
|
|
101
|
-
return new Promise(function (fnResolve, fnReject) {
|
|
102
|
-
|
|
103
|
-
if (!sServiceName
|
|
104
|
-
|| !this._mServices[sServiceName]
|
|
105
|
-
|| !Object.keys(this._mServices[sServiceName])) {
|
|
106
|
-
fnReject(sErrorMessage);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
this._mServices[sServiceName].promise.then(function () {
|
|
111
|
-
if (this._mServices[sServiceName].instance) {
|
|
112
|
-
fnResolve(this._mServices[sServiceName].instance);
|
|
113
|
-
} else {
|
|
114
|
-
fnReject(sErrorMessage);
|
|
115
|
-
}
|
|
116
|
-
}.bind(this)).catch(fnReject);
|
|
117
|
-
}.bind(this));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
ServiceManager.prototype.destroy = function () {
|
|
121
|
-
this._mServices = null;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// Copied from Component.js
|
|
125
|
-
// Creates an instance of a service based on the manifest settings
|
|
126
|
-
ServiceManager._getService = function (oInstance, sName, mServices) {
|
|
127
|
-
return new Promise(function (fnResolve, fnReject) {
|
|
128
|
-
var oServiceEntry,
|
|
129
|
-
sFactory;
|
|
130
|
-
if (oInstance.bIsDestroyed) {
|
|
131
|
-
fnReject(new Error("Service " + sName + " could not be loaded as the requestor " + oInstance.getMetadata().getName() + " was destroyed."));
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (!mServices) {
|
|
135
|
-
fnReject(new Error("No Services declared"));
|
|
136
|
-
return;
|
|
137
|
-
} else {
|
|
138
|
-
oServiceEntry = mServices[sName];
|
|
139
|
-
}
|
|
140
|
-
if (!oServiceEntry || !oServiceEntry.factoryName) {
|
|
141
|
-
fnReject(new Error("No Service '" + sName + "' declared or factoryName missing"));
|
|
142
|
-
return;
|
|
143
|
-
} else {
|
|
144
|
-
sFactory = oServiceEntry.factoryName;
|
|
145
|
-
}
|
|
146
|
-
sap.ui.require(["sap/ui/core/service/ServiceFactoryRegistry"], function (ServiceFactoryRegistry) {
|
|
147
|
-
// lookup the factory in the registry
|
|
148
|
-
var oServiceFactory = ServiceFactoryRegistry.get(sFactory);
|
|
149
|
-
if (oServiceFactory) {
|
|
150
|
-
// create a new Service instance with the current Component as context
|
|
151
|
-
oServiceFactory.createInstance({
|
|
152
|
-
scopeObject: oInstance,
|
|
153
|
-
scopeType: "component",
|
|
154
|
-
settings: oServiceEntry.settings || {}
|
|
155
|
-
}).then(function (oServiceInstance) {
|
|
156
|
-
if (oServiceInstance.getInterface) {
|
|
157
|
-
fnResolve(oServiceInstance.getInterface());
|
|
158
|
-
} else {
|
|
159
|
-
fnResolve(oServiceInstance);
|
|
160
|
-
}
|
|
161
|
-
}).catch(fnReject);
|
|
162
|
-
} else {
|
|
163
|
-
// the service factory could not be found in the registry
|
|
164
|
-
var oError = new Error("ServiceFactory '" + sFactory + "' for Service '" + sName + "' not found in ServiceFactoryRegistry");
|
|
165
|
-
oError._optional = oServiceEntry.optional;
|
|
166
|
-
fnReject(oError);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
return ServiceManager;
|
|
173
|
-
});
|