@openui5/sap.ui.fl 1.114.0 → 1.115.1
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 +0 -5
- package/THIRDPARTY.txt +0 -6
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +39 -21
- package/src/sap/ui/fl/ChangePersistence.js +14 -21
- package/src/sap/ui/fl/ChangePersistenceFactory.js +3 -55
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +5 -22
- package/src/sap/ui/fl/FlexControllerFactory.js +7 -159
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +2 -11
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +0 -2
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +8 -7
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +4 -12
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +3 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +8 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +25 -27
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +104 -80
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +34 -15
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +300 -386
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +219 -0
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +7 -9
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +6 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +3 -1
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +3 -22
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +2 -3
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -0
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +43 -43
- package/src/sap/ui/fl/messagebundle.properties +6 -0
- package/src/sap/ui/fl/messagebundle_ar.properties +4 -0
- package/src/sap/ui/fl/messagebundle_bg.properties +6 -2
- package/src/sap/ui/fl/messagebundle_ca.properties +4 -0
- package/src/sap/ui/fl/messagebundle_cs.properties +4 -0
- package/src/sap/ui/fl/messagebundle_cy.properties +4 -0
- package/src/sap/ui/fl/messagebundle_da.properties +4 -0
- package/src/sap/ui/fl/messagebundle_de.properties +6 -2
- package/src/sap/ui/fl/messagebundle_el.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_GB.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +4 -0
- package/src/sap/ui/fl/messagebundle_es.properties +4 -0
- package/src/sap/ui/fl/messagebundle_es_MX.properties +4 -0
- package/src/sap/ui/fl/messagebundle_et.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_hu.properties +4 -0
- package/src/sap/ui/fl/messagebundle_id.properties +4 -0
- package/src/sap/ui/fl/messagebundle_it.properties +4 -0
- package/src/sap/ui/fl/messagebundle_iw.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ja.properties +12 -8
- package/src/sap/ui/fl/messagebundle_kk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ko.properties +4 -0
- package/src/sap/ui/fl/messagebundle_lt.properties +4 -0
- package/src/sap/ui/fl/messagebundle_lv.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ms.properties +4 -0
- package/src/sap/ui/fl/messagebundle_nl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_no.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pt.properties +4 -0
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ro.properties +4 -0
- package/src/sap/ui/fl/messagebundle_ru.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sh.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sl.properties +4 -0
- package/src/sap/ui/fl/messagebundle_sv.properties +4 -0
- package/src/sap/ui/fl/messagebundle_th.properties +5 -1
- package/src/sap/ui/fl/messagebundle_tr.properties +4 -0
- package/src/sap/ui/fl/messagebundle_uk.properties +4 -0
- package/src/sap/ui/fl/messagebundle_vi.properties +4 -0
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +4 -0
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +4 -0
- package/src/sap/ui/fl/registry/Settings.js +10 -0
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +124 -338
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +134 -111
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +35 -8
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +17 -2
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +8 -5
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +6 -0
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +34 -4
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +11 -7
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +12 -11
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +87 -27
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +7 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -23
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +5 -5
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +4 -3
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +10 -1
- package/src/sap/ui/fl/write/api/TranslationAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +70 -21
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +0 -356
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/Log",
|
|
9
|
+
"sap/ui/fl/apply/_internal/changes/descriptor/Applier",
|
|
10
|
+
"sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory",
|
|
11
|
+
"sap/ui/fl/apply/_internal/changes/Applier",
|
|
12
|
+
"sap/ui/fl/apply/_internal/flexState/FlexState",
|
|
13
|
+
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
14
|
+
"sap/ui/fl/apply/api/ControlVariantApplyAPI",
|
|
15
|
+
"sap/ui/fl/variants/VariantModel",
|
|
16
|
+
"sap/ui/fl/FlexControllerFactory",
|
|
17
|
+
"sap/ui/fl/Layer",
|
|
18
|
+
"sap/ui/fl/Utils",
|
|
19
|
+
"sap/ui/performance/Measurement"
|
|
20
|
+
], function(
|
|
21
|
+
Log,
|
|
22
|
+
AppDescriptorApplier,
|
|
23
|
+
ApplyStrategyFactory,
|
|
24
|
+
ChangesApplier,
|
|
25
|
+
FlexState,
|
|
26
|
+
ManifestUtils,
|
|
27
|
+
ControlVariantApplyAPI,
|
|
28
|
+
VariantModel,
|
|
29
|
+
FlexControllerFactory,
|
|
30
|
+
Layer,
|
|
31
|
+
Utils,
|
|
32
|
+
Measurement
|
|
33
|
+
) {
|
|
34
|
+
"use strict";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @namespace sap.ui.fl.apply._internal.preprocessors.ComponentLifecycleHooks
|
|
38
|
+
* @experimental Since 1.114
|
|
39
|
+
* @since Since 1.114
|
|
40
|
+
* @author SAP SE
|
|
41
|
+
*
|
|
42
|
+
* @private
|
|
43
|
+
* @ui5-restricted sap.ui.fl
|
|
44
|
+
*/
|
|
45
|
+
var ComponentLifecycleHooks = {};
|
|
46
|
+
|
|
47
|
+
// in this object a promise is stored for every application component instance
|
|
48
|
+
// if the same instance is initialized twice the promise is replaced
|
|
49
|
+
ComponentLifecycleHooks._componentInstantiationPromises = new WeakMap();
|
|
50
|
+
var oEmbeddedComponentsPromises = {};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The fl library must ensure a proper rta startup by a lazy loading of the rta library and starting RTA accordingly.
|
|
54
|
+
* This is needed in the stand alone scenario; ATTENTION: if also the ushell-plugin of rta runs, the first one will
|
|
55
|
+
* actually trigger the reload and clear the flag for the second.
|
|
56
|
+
*
|
|
57
|
+
* @param {object} oResult - The result which will be passed after the rta startup was checked and triggered if needed
|
|
58
|
+
* @param {object} oComponent - Application component about to be started
|
|
59
|
+
* @returns {Promise} Promise resolving with the initially passed result
|
|
60
|
+
*/
|
|
61
|
+
function checkForRtaStartOnDraftAndReturnResult(oResult, oComponent) {
|
|
62
|
+
// if the FLP is available the restart behavior is handled there
|
|
63
|
+
if (Utils.getUshellContainer()) {
|
|
64
|
+
return Promise.resolve(oResult);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
var sRestartingComponent = window.sessionStorage.getItem("sap.ui.rta.restart." + Layer.CUSTOMER);
|
|
68
|
+
if (sRestartingComponent) {
|
|
69
|
+
var sComponentId = ManifestUtils.getFlexReferenceForControl(oComponent);
|
|
70
|
+
if (sRestartingComponent !== sComponentId && sRestartingComponent !== "true") {
|
|
71
|
+
Log.error("an application component was started " +
|
|
72
|
+
"which does not match the component for which the restart was triggered:\n" +
|
|
73
|
+
"Triggering component: " + sRestartingComponent + "\n" +
|
|
74
|
+
"Started component: " + sComponentId);
|
|
75
|
+
|
|
76
|
+
return Promise.resolve(oResult);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return new Promise(function(resolve, reject) {
|
|
80
|
+
Promise.all([
|
|
81
|
+
sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true}),
|
|
82
|
+
oComponent.rootControlLoaded()
|
|
83
|
+
])
|
|
84
|
+
.then(function() {
|
|
85
|
+
sap.ui.require(["sap/ui/rta/api/startKeyUserAdaptation"], function(startKeyUserAdaptation) {
|
|
86
|
+
startKeyUserAdaptation({
|
|
87
|
+
rootControl: oComponent
|
|
88
|
+
});
|
|
89
|
+
resolve(oResult);
|
|
90
|
+
});
|
|
91
|
+
})
|
|
92
|
+
.catch(function(oError) {
|
|
93
|
+
reject(oError);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return Promise.resolve(oResult);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function propagateChangesForAppComponent (oAppComponent) {
|
|
102
|
+
// only manifest with type = "application" will fetch changes
|
|
103
|
+
var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
|
|
104
|
+
var oVariantModel;
|
|
105
|
+
return oFlexController._oChangePersistence.loadChangesMapForComponent(oAppComponent)
|
|
106
|
+
.then(function(fnGetChangesMap) {
|
|
107
|
+
var fnPropagationListener = ChangesApplier.applyAllChangesForControl.bind(ChangesApplier, fnGetChangesMap, oAppComponent, oFlexController);
|
|
108
|
+
fnPropagationListener._bIsSapUiFlFlexControllerApplyChangesOnControl = true;
|
|
109
|
+
oAppComponent.addPropagationListener(fnPropagationListener);
|
|
110
|
+
oVariantModel = ComponentLifecycleHooks._createVariantModel(oFlexController, oAppComponent);
|
|
111
|
+
return oVariantModel.initialize();
|
|
112
|
+
})
|
|
113
|
+
.then(function() {
|
|
114
|
+
oAppComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
115
|
+
Measurement.end("flexProcessing");
|
|
116
|
+
return oVariantModel;
|
|
117
|
+
}).then(function(oResult) {
|
|
118
|
+
return checkForRtaStartOnDraftAndReturnResult(oResult, oAppComponent);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function getChangesAndPropagate(oComponent, vConfig) {
|
|
123
|
+
// if component's manifest is of type 'application' then only a flex controller and change persistence instances are created.
|
|
124
|
+
// if component's manifest is of type 'component' then no flex controller and change persistence instances are created. The variant model is fetched from the outer app component and applied on this component type.
|
|
125
|
+
if (Utils.isApplicationComponent(oComponent)) {
|
|
126
|
+
var sComponentId = oComponent.getId();
|
|
127
|
+
// TODO: remove this line when the maps and filtered response are always up to data
|
|
128
|
+
// Currently with the variants the maps are out of sync when the app gets loaded again without complete reload
|
|
129
|
+
FlexState.rebuildFilteredResponse(ManifestUtils.getFlexReferenceForControl(oComponent));
|
|
130
|
+
var oReturnPromise = FlexState.initialize({
|
|
131
|
+
componentId: sComponentId,
|
|
132
|
+
asyncHints: vConfig.asyncHints
|
|
133
|
+
})
|
|
134
|
+
.then(propagateChangesForAppComponent.bind(this, oComponent))
|
|
135
|
+
.then(function() {
|
|
136
|
+
// update any potential embedded component waiting for this app component
|
|
137
|
+
if (oEmbeddedComponentsPromises[sComponentId]) {
|
|
138
|
+
oEmbeddedComponentsPromises[sComponentId].forEach(function(oEmbeddedComponent) {
|
|
139
|
+
var oVariantModel = oComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
140
|
+
oEmbeddedComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
141
|
+
});
|
|
142
|
+
delete oEmbeddedComponentsPromises[sComponentId];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
ComponentLifecycleHooks._componentInstantiationPromises.set(oComponent, oReturnPromise);
|
|
146
|
+
|
|
147
|
+
return oReturnPromise;
|
|
148
|
+
} else if (Utils.isEmbeddedComponent(oComponent)) {
|
|
149
|
+
var oAppComponent = Utils.getAppComponentForControl(oComponent);
|
|
150
|
+
// Some embedded components might not have an app component, e.g. sap.ushell.plugins.rta, sap.ushell.plugins.rta-personalize
|
|
151
|
+
if (oAppComponent && Utils.isApplicationComponent(oAppComponent)) {
|
|
152
|
+
// once the VModel is set to the outer component it also has to be set to any embedded component
|
|
153
|
+
if (ComponentLifecycleHooks._componentInstantiationPromises.has(oAppComponent)) {
|
|
154
|
+
return ComponentLifecycleHooks._componentInstantiationPromises.get(oAppComponent).then(function() {
|
|
155
|
+
var oVariantModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
156
|
+
oComponent.setModel(oVariantModel, ControlVariantApplyAPI.getVariantModelName());
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
oEmbeddedComponentsPromises[oAppComponent.getId()] = oEmbeddedComponentsPromises[oAppComponent.getId()] || [];
|
|
160
|
+
oEmbeddedComponentsPromises[oAppComponent.getId()].push(oComponent);
|
|
161
|
+
}
|
|
162
|
+
return Promise.resolve();
|
|
163
|
+
}
|
|
164
|
+
return Promise.resolve();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function onLoadComponent(oConfig, oManifest) {
|
|
168
|
+
// stop processing if the component is not of the type application or component ID is missing
|
|
169
|
+
if (!Utils.isApplication(oManifest) || !oConfig.id) {
|
|
170
|
+
return Promise.resolve();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
FlexState.initialize({
|
|
174
|
+
componentData: oConfig.componentData || (oConfig.settings && oConfig.settings.componentData),
|
|
175
|
+
asyncHints: oConfig.asyncHints,
|
|
176
|
+
manifest: oManifest,
|
|
177
|
+
componentId: oConfig.id
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
// manifest descriptor changes for ABAP mixed mode can only be applied in this hook,
|
|
181
|
+
// because at this point all libs have been loaded (in contrast to the first Component._fnPreprocessManifest hook), but the manifest is still adaptable
|
|
182
|
+
return AppDescriptorApplier.applyChangesIncludedInManifest(oManifest, ApplyStrategyFactory.getRuntimeStrategy());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// the current sinon version used in UI5 does not support stubbing the constructor
|
|
186
|
+
ComponentLifecycleHooks._createVariantModel = function(oFlexController, oAppComponent) {
|
|
187
|
+
return new VariantModel({}, {
|
|
188
|
+
flexController: oFlexController,
|
|
189
|
+
appComponent: oAppComponent
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Gets the changes and in case of existing changes, prepare the applyChanges function already with the changes.
|
|
195
|
+
*
|
|
196
|
+
* @param {object} oComponent - Component instance that is currently loading
|
|
197
|
+
* @param {object} vConfig - Configuration of loaded component
|
|
198
|
+
* @returns {Promise} Promise which resolves when all relevant tasks for changes propagation have been processed
|
|
199
|
+
*/
|
|
200
|
+
ComponentLifecycleHooks.instanceCreatedHook = function() {
|
|
201
|
+
return getChangesAndPropagate.apply(undefined, arguments);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Callback which is called within the early state of Component processing.
|
|
206
|
+
* Already triggers the loading of the flexibility changes if the loaded manifest is an application variant.
|
|
207
|
+
* The processing is only done for components of the type "application"
|
|
208
|
+
*
|
|
209
|
+
* @param {object} oConfig - Copy of the configuration of loaded component
|
|
210
|
+
* @param {object} oConfig.asyncHints - Async hints passed from the app index to the core Component processing
|
|
211
|
+
* @param {object} oManifest - Copy of the manifest of loaded component
|
|
212
|
+
* @returns {Promise} Resolves after all Manifest changes are applied
|
|
213
|
+
*/
|
|
214
|
+
ComponentLifecycleHooks.componentLoadedHook = function() {
|
|
215
|
+
return onLoadComponent.apply(undefined, arguments);
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
return ComponentLifecycleHooks;
|
|
219
|
+
});
|
|
@@ -14,7 +14,7 @@ sap.ui.define(["sap/ui/core/Core"], function(oCore) {
|
|
|
14
14
|
* @alias sap.ui.fl.apply._internal.preprocessors.EventHistory
|
|
15
15
|
* @experimental Since 1.47.0
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.115.1
|
|
18
18
|
*
|
|
19
19
|
* @private
|
|
20
20
|
* @ui5-restricted sap.ui.fl.apply._internal.preprocessors.RegistrationDelegator
|
|
@@ -13,11 +13,10 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor",
|
|
14
14
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
15
15
|
"sap/ui/fl/apply/_internal/preprocessors/EventHistory",
|
|
16
|
+
"sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks",
|
|
16
17
|
"sap/ui/fl/apply/_internal/DelegateMediator",
|
|
17
18
|
"sap/ui/fl/apply/api/DelegateMediatorAPI",
|
|
18
19
|
"sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration",
|
|
19
|
-
"sap/ui/fl/ChangePersistenceFactory",
|
|
20
|
-
"sap/ui/fl/FlexControllerFactory",
|
|
21
20
|
"sap/ui/core/Configuration",
|
|
22
21
|
// the lower 2 are set as a callback in the "register...Processors" which are not detected as dependencies from the preload-building
|
|
23
22
|
"sap/ui/fl/apply/_internal/preprocessors/ControllerExtension",
|
|
@@ -30,11 +29,10 @@ sap.ui.define([
|
|
|
30
29
|
Preprocessor,
|
|
31
30
|
ManifestUtils,
|
|
32
31
|
EventHistory,
|
|
32
|
+
ComponentLifecycleHooks,
|
|
33
33
|
DelegateMediator,
|
|
34
|
-
|
|
34
|
+
DelegateMediatorAPI,
|
|
35
35
|
ChangeHandlerRegistration,
|
|
36
|
-
ChangePersistenceFactory,
|
|
37
|
-
FlexControllerFactory,
|
|
38
36
|
Configuration
|
|
39
37
|
) {
|
|
40
38
|
"use strict";
|
|
@@ -46,14 +44,14 @@ sap.ui.define([
|
|
|
46
44
|
* @class
|
|
47
45
|
* @constructor
|
|
48
46
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
47
|
+
* @version 1.115.1
|
|
50
48
|
* @experimental Since 1.43.0
|
|
51
49
|
*/
|
|
52
50
|
var RegistrationDelegator = {};
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
function registerChangesInComponent() {
|
|
56
|
-
Component._fnOnInstanceCreated =
|
|
54
|
+
Component._fnOnInstanceCreated = ComponentLifecycleHooks.instanceCreatedHook;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
function registerChangeHandlers() {
|
|
@@ -62,7 +60,7 @@ sap.ui.define([
|
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
function registerLoadComponentEventHandler() {
|
|
65
|
-
Component._fnLoadComponentCallback =
|
|
63
|
+
Component._fnLoadComponentCallback = ComponentLifecycleHooks.componentLoadedHook;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
function registerExtensionProvider() {
|
|
@@ -98,7 +96,7 @@ sap.ui.define([
|
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
function registerDefaultDelegate() {
|
|
101
|
-
|
|
99
|
+
DelegateMediatorAPI.registerDefaultDelegate({
|
|
102
100
|
modelType: "sap.ui.model.odata.v4.ODataModel",
|
|
103
101
|
delegate: "sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate",
|
|
104
102
|
delegateType: DelegateMediator.types.READONLY
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @namespace sap.ui.fl.apply.api.ControlVariantApplyAPI
|
|
48
48
|
* @experimental Since 1.67
|
|
49
49
|
* @since 1.67
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.115.1
|
|
51
51
|
* @public
|
|
52
52
|
*/
|
|
53
53
|
var ControlVariantApplyAPI = /** @lends sap.ui.fl.apply.api.ControlVariantApplyAPI */{
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @alias sap.ui.fl.changeHandler.AddXML
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.115.1
|
|
20
20
|
* @since 1.54
|
|
21
21
|
* @private
|
|
22
22
|
* @experimental Since 1.54. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @alias sap.ui.fl.changeHandler.AddXMLAtExtensionPoint
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.115.1
|
|
20
20
|
* @since 1.75
|
|
21
21
|
* @private
|
|
22
22
|
* @experimental Since 1.75. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @alias sap.ui.fl.changeHandler.BaseAddXml
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.115.1
|
|
26
26
|
* @since 1.75
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental Since 1.75. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -21,7 +21,7 @@ function(
|
|
|
21
21
|
*
|
|
22
22
|
* @alias sap.ui.fl.changeHandler.MoveControls
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.115.1
|
|
25
25
|
* @experimental Since 1.46
|
|
26
26
|
*/
|
|
27
27
|
var MoveControls = { };
|
|
@@ -418,6 +418,11 @@ function(
|
|
|
418
418
|
},
|
|
419
419
|
getTargetIndex: function(oChange) {
|
|
420
420
|
return oChange.getContent().movedElements[0].targetIndex;
|
|
421
|
+
},
|
|
422
|
+
setIndexInRevertData: function(oChange, iIndex) {
|
|
423
|
+
var aRevertData = oChange.getRevertData();
|
|
424
|
+
aRevertData[0].index = iIndex;
|
|
425
|
+
oChange.setRevertData(aRevertData);
|
|
421
426
|
}
|
|
422
427
|
};
|
|
423
428
|
};
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.fl.changeHandler.PropertyBindingChange
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.115.1
|
|
22
22
|
* @since 1.38
|
|
23
23
|
* @private
|
|
24
24
|
* @experimental Since 1.38. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @alias sap.ui.fl.changeHandler.PropertyChange
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.115.1
|
|
26
26
|
* @since 1.36
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental Since 1.36. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @namespace
|
|
20
20
|
* @name sap.ui.fl.descriptorRelated
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.115.1
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.rta, smart business
|
|
25
25
|
*/
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @namespace
|
|
30
30
|
* @name sap.ui.fl.descriptorRelated.api
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.115.1
|
|
33
33
|
* @private
|
|
34
34
|
* @ui5-restricted sap.ui.rta, smart business
|
|
35
35
|
*/
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @constructor
|
|
44
44
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChange
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.115.1
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted sap.ui.rta, smart business
|
|
49
49
|
*/
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
* @constructor
|
|
125
125
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChangeFactory
|
|
126
126
|
* @author SAP SE
|
|
127
|
-
* @version 1.
|
|
127
|
+
* @version 1.115.1
|
|
128
128
|
* @private
|
|
129
129
|
* @ui5-restricted sap.ui.rta, smart business
|
|
130
130
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @namespace
|
|
39
39
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorInlineChangeFactory
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.115.1
|
|
42
42
|
* @private
|
|
43
43
|
* @deprecated Since version 1.76
|
|
44
44
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorVariantFactory
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.115.1
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
*
|
|
60
60
|
* @namespace sap.ui.fl.initial._internal.Storage
|
|
61
61
|
* @since 1.67
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.115.1
|
|
63
63
|
* @private
|
|
64
64
|
* @ui5-restricted sap.ui.fl
|
|
65
65
|
*/
|
|
@@ -144,6 +144,8 @@ sap.ui.define([
|
|
|
144
144
|
* @param {string} [mPropertyBag.componentName] componentName of the application which may differ from the reference in case of an app variant
|
|
145
145
|
* @param {string} [mPropertyBag.cacheKey] cacheKey which can be used to etag / cachebuster the request
|
|
146
146
|
* @param {number} [mPropertyBag.version] - Number of the version for which the data should be loaded
|
|
147
|
+
* @param {boolean} [mPropertyBag.allContexts] Includes also restricted context
|
|
148
|
+
* @param {string} [mPropertyBag.adaptationId] - Context-based adaptation to be loaded
|
|
147
149
|
* @returns {Promise<object>} Resolves with the responses from all configured connectors merged into one object
|
|
148
150
|
*/
|
|
149
151
|
Storage.loadFlexData = function (mPropertyBag) {
|
|
@@ -76,23 +76,6 @@ sap.ui.define([
|
|
|
76
76
|
}, "") || null;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* Concatenates all allContextsProvided from a list of flex data request responses headers into a passed result string.
|
|
81
|
-
*
|
|
82
|
-
* @param {object[]} aResponses List of responses containing allContextsProvided header to be concatenated
|
|
83
|
-
* @param {string} [aResponses.allContextsProvided] allContextsProvided value
|
|
84
|
-
* @returns {boolean | undefined} Returns allContextsProvided value if response has allContextsProvided true or false, otherwise returns undefined
|
|
85
|
-
* @private
|
|
86
|
-
* @ui5-restricted sap.ui.fl.Cache
|
|
87
|
-
*/
|
|
88
|
-
function isAllContextsProvided(aResponses) {
|
|
89
|
-
for (var i = 0; i < aResponses.length; i++) {
|
|
90
|
-
if (aResponses[i].info) {
|
|
91
|
-
return aResponses[i].info.allContextsProvided;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
79
|
/**
|
|
97
80
|
* Merges the results from all involved connectors.
|
|
98
81
|
*
|
|
@@ -119,11 +102,9 @@ sap.ui.define([
|
|
|
119
102
|
variantManagementChanges: concatFlexObjects(aResponses, "variantManagementChanges"),
|
|
120
103
|
cacheKey: _concatEtag(aResponses)
|
|
121
104
|
};
|
|
122
|
-
var
|
|
123
|
-
if (
|
|
124
|
-
oResult.info =
|
|
125
|
-
allContextsProvided: bAllContextsProvided
|
|
126
|
-
};
|
|
105
|
+
var oInfoObject = concatFlexObjects(aResponses, "info");
|
|
106
|
+
if (oInfoObject.length > 0) {
|
|
107
|
+
oResult.info = oInfoObject[0];
|
|
127
108
|
}
|
|
128
109
|
return oResult;
|
|
129
110
|
};
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
*
|
|
28
28
|
* @namespace sap.ui.fl.initial._internal.StorageUtils
|
|
29
29
|
* @since 1.74
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.115.1
|
|
31
31
|
* @private
|
|
32
32
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage, sap.ui.fl.write._internal.Storage,
|
|
33
33
|
* sap.ui.fl.initial._internal.connectors.ObjectStorageConnector, sap.ui.fl.initial._internal.connectors.ObjectPathConnector
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* @alias sap.ui.fl.registry.ChangeHandlerRegistration
|
|
85
85
|
*
|
|
86
86
|
* @author SAP SE
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.115.1
|
|
88
88
|
* @private
|
|
89
89
|
* @ui5-restricted sap.ui.fl
|
|
90
90
|
*
|
|
@@ -92,6 +92,7 @@ sap.ui.define([
|
|
|
92
92
|
*/
|
|
93
93
|
getChangeHandlersOfLoadedLibsAndRegisterOnNewLoadedLibs: function () {
|
|
94
94
|
var oAlreadyLoadedLibraries = Core.getLoadedLibraries();
|
|
95
|
+
Core.attachLibraryChanged(handleLibraryRegistrationAfterFlexLibraryIsLoaded);
|
|
95
96
|
var aPromises = [];
|
|
96
97
|
|
|
97
98
|
Object.values(oAlreadyLoadedLibraries).forEach(function(oLibrary) {
|
|
@@ -100,8 +101,6 @@ sap.ui.define([
|
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
|
|
103
|
-
Core.attachLibraryChanged(handleLibraryRegistrationAfterFlexLibraryIsLoaded);
|
|
104
|
-
|
|
105
104
|
return Promise.all(aPromises);
|
|
106
105
|
},
|
|
107
106
|
|
|
@@ -83,6 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* @param {string} [mPropertyBag.preview.reference] Reference of the base application for building the preview request
|
|
84
84
|
* @param {sap.ui.fl.Layer} [mPropertyBag.preview.maxLayer] Limit to which layer the preview data has to be requested
|
|
85
85
|
* @param {boolean} [mPropertyBag.allContexts] Includes also restricted context
|
|
86
|
+
* @param {string} [mPropertyBag.version] Version to be loaded
|
|
86
87
|
* @param {string} [mPropertyBag.adaptationId] - Context-based adaptation to be loaded
|
|
87
88
|
* @returns {Promise<object>} Promise resolving with the JSON parsed server response of the flex data request
|
|
88
89
|
* or resolves with undefined in case cache bustering determines that no data is present
|