@openui5/sap.ui.fl 1.96.4 → 1.96.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +31 -22
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +1 -1
- package/src/sap/ui/fl/EventHistory.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
- package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
- package/src/sap/ui/fl/Utils.js +1 -1
- package/src/sap/ui/fl/Variant.js +1 -1
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +1 -1
- 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 +1 -1
- 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/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/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/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +7 -10
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +2 -1
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +19 -20
- 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 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.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 +1 -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/codeExt/CodeExtManager.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 +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +11 -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 +9 -9
- package/src/sap/ui/fl/support/Flexibility.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/support/diagnostics/Flexibility.controller.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 +6 -5
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
- 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/FieldExtensibility.js +1 -1
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.10
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.7",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.fl",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.96.
|
|
18
|
-
"@openui5/sap.ui.core": "1.96.
|
|
17
|
+
"@openui5/sap.m": "1.96.7",
|
|
18
|
+
"@openui5/sap.ui.core": "1.96.7"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.96.
|
|
9
|
+
<version>1.96.7</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -907,6 +907,20 @@ sap.ui.define([
|
|
|
907
907
|
return (oObject.getRequest() === "$TMP" || oObject.getRequest() === "") && oObject.getLayer() === sLayer;
|
|
908
908
|
}
|
|
909
909
|
|
|
910
|
+
function isPersistedAndInLayer(sLayer, oObject) {
|
|
911
|
+
return oObject.getState() === Change.states.PERSISTED && oObject.getLayer() === sLayer;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
function getAllCompVariantsEntities() {
|
|
915
|
+
var aCompVariantEntities = [];
|
|
916
|
+
var mCompVariantsMap = FlexState.getCompVariantsMap(this.getComponentName());
|
|
917
|
+
for (var sPersistencyKey in mCompVariantsMap) {
|
|
918
|
+
for (var sId in mCompVariantsMap[sPersistencyKey].byId) {
|
|
919
|
+
aCompVariantEntities.push(mCompVariantsMap[sPersistencyKey].byId[sId]);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
return aCompVariantEntities;
|
|
923
|
+
}
|
|
910
924
|
/**
|
|
911
925
|
* Transports all the UI changes and app variant descriptor (if exists) to the target system
|
|
912
926
|
*
|
|
@@ -917,19 +931,8 @@ sap.ui.define([
|
|
|
917
931
|
* @returns {Promise} promise that resolves when all the artifacts are successfully transported
|
|
918
932
|
*/
|
|
919
933
|
ChangePersistence.prototype.transportAllUIChanges = function(oRootControl, sStyleClass, sLayer, aAppVariantDescriptors) {
|
|
920
|
-
return
|
|
921
|
-
|
|
922
|
-
FlexState.getCompVariantsMap(this.getComponentName())// FIXME: also transport comp changes via compState
|
|
923
|
-
]).then(function(aResponses) {
|
|
924
|
-
var aLocalChanges = aResponses[0];
|
|
925
|
-
var mCompVariantsMap = aResponses[1];
|
|
926
|
-
var aCompVariantEntities = [];
|
|
927
|
-
for (var sPersistencyKey in mCompVariantsMap) {
|
|
928
|
-
for (var sId in mCompVariantsMap[sPersistencyKey].byId) {
|
|
929
|
-
aCompVariantEntities.push(mCompVariantsMap[sPersistencyKey].byId[sId]);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
|
|
934
|
+
return this.getChangesForComponent({currentLayer: sLayer, includeCtrlVariants: true}).then(function(aLocalChanges) {
|
|
935
|
+
var aCompVariantEntities = getAllCompVariantsEntities.call(this);
|
|
933
936
|
aLocalChanges = aLocalChanges.concat(
|
|
934
937
|
aCompVariantEntities.filter(isLocalAndInLayer.bind(this, sLayer)));
|
|
935
938
|
|
|
@@ -960,10 +963,10 @@ sap.ui.define([
|
|
|
960
963
|
};
|
|
961
964
|
|
|
962
965
|
/**
|
|
963
|
-
* Removes unsaved changes
|
|
966
|
+
* Removes unsaved changes.
|
|
964
967
|
*
|
|
965
|
-
* @param {string|string[]} vLayer - Layer or multiple layers for which changes shall be deleted
|
|
966
|
-
* @param {sap.ui.core.Component} oComponent - Component instance
|
|
968
|
+
* @param {string|string[]} [vLayer] - Layer or multiple layers for which changes shall be deleted. If omitted, changes on all layers are considered.
|
|
969
|
+
* @param {sap.ui.core.Component} [oComponent] - Component instance, required if oControl is specified
|
|
967
970
|
* @param {string} [oControl] - Control for which the changes should be deleted. If omitted, all changes for the app component are considered.
|
|
968
971
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
969
972
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
@@ -971,13 +974,13 @@ sap.ui.define([
|
|
|
971
974
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
972
975
|
*/
|
|
973
976
|
ChangePersistence.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes) {
|
|
974
|
-
var aLayers = [].concat(vLayer);
|
|
977
|
+
var aLayers = [].concat(vLayer || []);
|
|
975
978
|
var aDirtyChanges = this._aDirtyChanges;
|
|
976
979
|
|
|
977
980
|
var aChangesToBeRemoved = aDirtyChanges.filter(function (oChange) {
|
|
978
981
|
var bChangeValid = true;
|
|
979
982
|
|
|
980
|
-
if (!aLayers.includes(oChange.getLayer())) {
|
|
983
|
+
if (aLayers.length && !aLayers.includes(oChange.getLayer())) {
|
|
981
984
|
return false;
|
|
982
985
|
}
|
|
983
986
|
|
|
@@ -1022,10 +1025,16 @@ sap.ui.define([
|
|
|
1022
1025
|
var bSelectorIdsProvided = aSelectorIds && aSelectorIds.length > 0;
|
|
1023
1026
|
var bChangeTypesProvided = aChangeTypes && aChangeTypes.length > 0;
|
|
1024
1027
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1028
|
+
//In case of application reset and PUBLIC layer available, also includes comp variant entities
|
|
1029
|
+
var isPublicLayerAvailable = Settings.getInstanceOrUndef() && Settings.getInstanceOrUndef().isPublicLayerAvailable();
|
|
1030
|
+
var isApplicationReset = sGenerator === undefined && aSelectorIds === undefined && aChangeTypes === undefined;
|
|
1031
|
+
var aCompVariantsEntries = [];
|
|
1032
|
+
if (isPublicLayerAvailable && isApplicationReset) {
|
|
1033
|
+
aCompVariantsEntries = getAllCompVariantsEntities.call(this).filter(isPersistedAndInLayer.bind(this, sLayer));
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
return this.getChangesForComponent({ currentLayer: sLayer, includeCtrlVariants: true}).then(function(aChanges) {
|
|
1037
|
+
aChanges = aChanges.concat(aCompVariantsEntries);
|
|
1029
1038
|
var mParams = {
|
|
1030
1039
|
reference: this.getComponentName(),
|
|
1031
1040
|
layer: sLayer,
|
package/src/sap/ui/fl/Utils.js
CHANGED
package/src/sap/ui/fl/Variant.js
CHANGED
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.AddAnnotationsToOData
|
|
140
140
|
* @experimental
|
|
141
141
|
* @since 1.87
|
|
142
|
-
* @version 1.96.
|
|
142
|
+
* @version 1.96.7
|
|
143
143
|
* @private
|
|
144
144
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
145
145
|
*/
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* @namespace sap.ui.fl.apply._internal.flexState.FlexState
|
|
73
73
|
* @experimental
|
|
74
74
|
* @since 1.73
|
|
75
|
-
* @version 1.96.
|
|
75
|
+
* @version 1.96.7
|
|
76
76
|
* @private
|
|
77
77
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
78
78
|
*/
|
|
@@ -84,7 +84,6 @@ sap.ui.define([
|
|
|
84
84
|
var _oShellNavigationService;
|
|
85
85
|
var _oURLParsingService;
|
|
86
86
|
var _oChangePersistenceFactory;
|
|
87
|
-
var _oFlexControllerFactory;
|
|
88
87
|
var _mFlexObjectInfo = {
|
|
89
88
|
appDescriptorChanges: {
|
|
90
89
|
prepareFunction: prepareAppDescriptorMap,
|
|
@@ -300,12 +299,10 @@ sap.ui.define([
|
|
|
300
299
|
// is migrated from changePersistenceFactory to the FlexState
|
|
301
300
|
function lazyLoadModules() {
|
|
302
301
|
return Promise.all([
|
|
303
|
-
Utils.requireAsync("sap/ui/fl/ChangePersistenceFactory")
|
|
304
|
-
Utils.requireAsync("sap/ui/fl/FlexControllerFactory")
|
|
302
|
+
Utils.requireAsync("sap/ui/fl/ChangePersistenceFactory")
|
|
305
303
|
])
|
|
306
304
|
.then(function(aModules) {
|
|
307
305
|
_oChangePersistenceFactory = aModules[0];
|
|
308
|
-
_oFlexControllerFactory = aModules[1];
|
|
309
306
|
})
|
|
310
307
|
.catch(function(oError) {
|
|
311
308
|
Log.error("Error loading modules: " + oError.message);
|
|
@@ -385,11 +382,11 @@ sap.ui.define([
|
|
|
385
382
|
delete _mInitPromises[sReference];
|
|
386
383
|
// TODO: get rid of the following deletes as far as the change state
|
|
387
384
|
// is migrated from changePersistenceFactory to the FlexState
|
|
388
|
-
if (
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
385
|
+
if (
|
|
386
|
+
_oChangePersistenceFactory
|
|
387
|
+
&& (_oChangePersistenceFactory._instanceCache || {}).hasOwnProperty(sReference)
|
|
388
|
+
) {
|
|
389
|
+
_oChangePersistenceFactory._instanceCache[sReference].removeDirtyChanges();
|
|
393
390
|
}
|
|
394
391
|
} else {
|
|
395
392
|
Object.keys(_mInstances).forEach(function(sReference) {
|
|
@@ -81,7 +81,7 @@ sap.ui.define([
|
|
|
81
81
|
* @namespace sap.ui.fl.apply._internal.flexState.Loader
|
|
82
82
|
* @experimental
|
|
83
83
|
* @since 1.74
|
|
84
|
-
* @version 1.96.
|
|
84
|
+
* @version 1.96.7
|
|
85
85
|
* @private
|
|
86
86
|
* @ui5-restricted sap.ui.fl.apply._internal.flexState
|
|
87
87
|
*/
|
|
@@ -119,6 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
var sCacheKey = mPropertyBag.reInitialize ? undefined : ManifestUtils.getCacheKeyFromAsyncHints(mPropertyBag.reference, mPropertyBag.asyncHints);
|
|
120
120
|
|
|
121
121
|
return ApplyStorage.loadFlexData({
|
|
122
|
+
preview: ManifestUtils.getPreviewSectionFromAsyncHints(mPropertyBag.asyncHints),
|
|
122
123
|
reference: mPropertyBag.reference,
|
|
123
124
|
componentName: sComponentName,
|
|
124
125
|
cacheKey: sCacheKey,
|
|
@@ -20,15 +20,11 @@ function(
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
function getFlAsyncHint(oAsyncHints) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return oFlAsyncHint;
|
|
23
|
+
if (oAsyncHints && oAsyncHints.requests && Array.isArray(oAsyncHints.requests)) {
|
|
24
|
+
return oAsyncHints.requests.find(function(oAsyncHint) {
|
|
25
|
+
return oAsyncHint.name === "sap.ui.fl.changes";
|
|
26
|
+
});
|
|
27
|
+
}
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
/**
|
|
@@ -37,7 +33,7 @@ function(
|
|
|
37
33
|
* @namespace sap.ui.fl.apply._internal.flexState.ManifestUtils
|
|
38
34
|
* @experimental
|
|
39
35
|
* @since 1.74
|
|
40
|
-
* @version 1.96.
|
|
36
|
+
* @version 1.96.7
|
|
41
37
|
* @private
|
|
42
38
|
*/
|
|
43
39
|
var ManifestUtils = {
|
|
@@ -85,21 +81,24 @@ function(
|
|
|
85
81
|
},
|
|
86
82
|
|
|
87
83
|
getCacheKeyFromAsyncHints: function(sReference, oAsyncHints) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
var oFlAsyncHint = getFlAsyncHint(oAsyncHints);
|
|
85
|
+
if (oFlAsyncHint && oFlAsyncHint.reference === sReference) {
|
|
86
|
+
return oFlAsyncHint.cachebusterToken || "<NO CHANGES>";
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
getPreviewSectionFromAsyncHints: function(oAsyncHints) {
|
|
91
|
+
var oFlAsyncHint = getFlAsyncHint(oAsyncHints);
|
|
92
|
+
if (oFlAsyncHint) {
|
|
93
|
+
return oFlAsyncHint.preview;
|
|
93
94
|
}
|
|
94
95
|
},
|
|
95
96
|
|
|
96
97
|
getChangeManifestFromAsyncHints: function(oAsyncHints) {
|
|
97
98
|
// whenever there is a back end providing a fl async hint it is also not necessary to merge on client side
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
99
|
+
var oFlAsyncHint = getFlAsyncHint(oAsyncHints);
|
|
100
|
+
if (oFlAsyncHint) {
|
|
101
|
+
return false;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
return true;
|