@openui5/sap.ui.fl 1.84.18 → 1.84.22
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/LICENSE.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +2 -2
- package/src/sap/ui/fl/Cache.js +2 -2
- package/src/sap/ui/fl/Change.js +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +10 -12
- package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +2 -2
- package/src/sap/ui/fl/EventHistory.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnector.js +3 -7
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
- package/src/sap/ui/fl/FlexController.js +39 -20
- package/src/sap/ui/fl/FlexControllerFactory.js +2 -2
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +2 -2
- package/src/sap/ui/fl/PreprocessorImpl.js +2 -2
- package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
- package/src/sap/ui/fl/Utils.js +2 -2
- package/src/sap/ui/fl/Variant.js +2 -2
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +2 -2
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +3 -5
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/prepareAppDescriptorMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/prepareChangesMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/prepareCompVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/prepareVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +2 -2
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/fl/changeHandler/Base.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
- package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +1 -1
- package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +1 -1
- package/src/sap/ui/fl/fieldExt/Access.js +2 -2
- package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +2 -2
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
- package/src/sap/ui/fl/library.js +10 -10
- package/src/sap/ui/fl/library.support.js +2 -3
- package/src/sap/ui/fl/registry/ChangeHandlerRegistration.js +1 -1
- package/src/sap/ui/fl/registry/ChangeRegistry.js +2 -2
- package/src/sap/ui/fl/registry/ChangeRegistryItem.js +2 -2
- package/src/sap/ui/fl/registry/ChangeTypeMetadata.js +2 -2
- package/src/sap/ui/fl/registry/Settings.js +1 -1
- package/src/sap/ui/fl/registry/SimpleChanges.js +2 -2
- package/src/sap/ui/fl/requireAsync.js +1 -1
- package/src/sap/ui/fl/support/Flexibility.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +1 -1
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +2 -2
- package/src/sap/ui/fl/themes/base/library.source.less +1 -1
- package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
- package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +2 -2
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
- package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +2 -2
- package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
- package/src/sap/ui/fl/write/_internal/Versions.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +2 -2
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +2 -2
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -2
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +3 -2
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +1 -1
package/LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.22",
|
|
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.84.
|
|
18
|
-
"@openui5/sap.ui.core": "1.84.
|
|
17
|
+
"@openui5/sap.m": "1.84.22",
|
|
18
|
+
"@openui5/sap.ui.core": "1.84.22"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.fl</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
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.84.
|
|
9
|
+
<version>1.84.22</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ function(
|
|
|
24
24
|
* @alias sap.ui.fl.Cache
|
|
25
25
|
* @experimental Since 1.25.0
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.84.
|
|
27
|
+
* @version 1.84.22
|
|
28
28
|
*/
|
|
29
29
|
var Cache = function() {};
|
|
30
30
|
|
package/src/sap/ui/fl/Change.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -850,26 +850,22 @@ sap.ui.define([
|
|
|
850
850
|
/**
|
|
851
851
|
* Removes unsaved changes and reverts these.
|
|
852
852
|
*
|
|
853
|
-
* @param {string}
|
|
853
|
+
* @param {string|string[]} vLayer - Layer or multiple layers for which changes shall be deleted
|
|
854
854
|
* @param {sap.ui.core.Component} oComponent - Component instance
|
|
855
|
-
* @param {string} oControl - Control for which the changes should be
|
|
855
|
+
* @param {string} [oControl] - Control for which the changes should be deleted. If omitted, all changes for the app component are considered.
|
|
856
856
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
857
857
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
858
858
|
*
|
|
859
859
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
860
860
|
*/
|
|
861
|
-
ChangePersistence.prototype.removeDirtyChanges = function(
|
|
862
|
-
|
|
863
|
-
Log.error("The selectorId must be provided");
|
|
864
|
-
return Promise.reject("The selectorId must be provided");
|
|
865
|
-
}
|
|
866
|
-
|
|
861
|
+
ChangePersistence.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes) {
|
|
862
|
+
var aLayers = [].concat(vLayer);
|
|
867
863
|
var aDirtyChanges = this._aDirtyChanges;
|
|
868
864
|
|
|
869
865
|
var aChangesToBeRemoved = aDirtyChanges.filter(function (oChange) {
|
|
870
866
|
var bChangeValid = true;
|
|
871
867
|
|
|
872
|
-
if (oChange.getLayer()
|
|
868
|
+
if (aLayers.indexOf(oChange.getLayer()) === -1) {
|
|
873
869
|
return false;
|
|
874
870
|
}
|
|
875
871
|
|
|
@@ -877,8 +873,10 @@ sap.ui.define([
|
|
|
877
873
|
return false;
|
|
878
874
|
}
|
|
879
875
|
|
|
880
|
-
|
|
881
|
-
|
|
876
|
+
if (oControl) {
|
|
877
|
+
var vSelector = oChange.getSelector();
|
|
878
|
+
bChangeValid = oControl.getId() === JsControlTreeModifier.getControlIdBySelector(vSelector, oComponent);
|
|
879
|
+
}
|
|
882
880
|
|
|
883
881
|
if (aChangeTypes) {
|
|
884
882
|
bChangeValid = bChangeValid && aChangeTypes.indexOf(oChange.getChangeType()) !== -1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @alias sap.ui.fl.ChangePersistenceFactory
|
|
24
24
|
* @experimental Since 1.27.0
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.84.
|
|
26
|
+
* @version 1.84.22
|
|
27
27
|
*/
|
|
28
28
|
var ChangePersistenceFactory = {};
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @author SAP SE
|
|
48
48
|
* @experimental Since 1.56
|
|
49
49
|
* @since 1.56
|
|
50
|
-
* @version 1.84.
|
|
50
|
+
* @version 1.84.22
|
|
51
51
|
* @private
|
|
52
52
|
* @ui5-restricted
|
|
53
53
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define(function () {
|
|
|
14
14
|
* @alias sap.ui.fl.EventHistory
|
|
15
15
|
* @experimental Since 1.47.0
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.84.
|
|
17
|
+
* @version 1.84.22
|
|
18
18
|
*/
|
|
19
19
|
var EventHistory = function () {
|
|
20
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -88,9 +88,7 @@ sap.ui.define([
|
|
|
88
88
|
synchronous: {
|
|
89
89
|
clearAll: function (oStorage) {
|
|
90
90
|
var fnRemoveItem = function(sKey) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (!bIsFlexObject) {
|
|
91
|
+
if (sKey.indexOf(FL_PREFIX) === -1) {
|
|
94
92
|
return;
|
|
95
93
|
}
|
|
96
94
|
|
|
@@ -115,9 +113,7 @@ sap.ui.define([
|
|
|
115
113
|
getNumberOfChanges: function(oStorage, sReference) {
|
|
116
114
|
var iCount = 0;
|
|
117
115
|
Object.keys(oStorage).map(function(sKey) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (!bIsFlexObject) {
|
|
116
|
+
if (sKey.indexOf(FL_PREFIX) === -1) {
|
|
121
117
|
return;
|
|
122
118
|
}
|
|
123
119
|
var oFlexObject = JSON.parse(oStorage.getItem(sKey));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @class
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.84.
|
|
23
|
+
* @version 1.84.22
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @class
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.84.
|
|
23
|
+
* @version 1.84.22
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.84.
|
|
19
|
+
* @version 1.84.22
|
|
20
20
|
*
|
|
21
21
|
* @private
|
|
22
22
|
* @static
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -19,7 +19,8 @@ sap.ui.define([
|
|
|
19
19
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
20
20
|
"sap/ui/core/util/reflection/XmlTreeModifier",
|
|
21
21
|
"sap/ui/core/Component",
|
|
22
|
-
"sap/base/Log"
|
|
22
|
+
"sap/base/Log",
|
|
23
|
+
"sap/base/util/values"
|
|
23
24
|
], function(
|
|
24
25
|
ChangeRegistry,
|
|
25
26
|
Utils,
|
|
@@ -35,11 +36,12 @@ sap.ui.define([
|
|
|
35
36
|
JsControlTreeModifier,
|
|
36
37
|
XmlTreeModifier,
|
|
37
38
|
Component,
|
|
38
|
-
Log
|
|
39
|
+
Log,
|
|
40
|
+
values
|
|
39
41
|
) {
|
|
40
42
|
"use strict";
|
|
41
43
|
|
|
42
|
-
function revertChangesAndUpdateVariantModel(oComponent, aChanges) {
|
|
44
|
+
function revertChangesAndUpdateVariantModel(oComponent, bSkipUrlUpdate, aChanges) {
|
|
43
45
|
return Promise.resolve()
|
|
44
46
|
.then(function () {
|
|
45
47
|
if (aChanges.length !== 0) {
|
|
@@ -61,12 +63,14 @@ sap.ui.define([
|
|
|
61
63
|
}
|
|
62
64
|
});
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
if (!bSkipUrlUpdate) {
|
|
67
|
+
URLHandler.update({
|
|
68
|
+
parameters: [],
|
|
69
|
+
updateURL: true,
|
|
70
|
+
updateHashEntry: true,
|
|
71
|
+
model: oModel
|
|
72
|
+
});
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
|
|
@@ -83,7 +87,7 @@ sap.ui.define([
|
|
|
83
87
|
* @alias sap.ui.fl.FlexController
|
|
84
88
|
* @experimental Since 1.27.0
|
|
85
89
|
* @author SAP SE
|
|
86
|
-
* @version 1.84.
|
|
90
|
+
* @version 1.84.22
|
|
87
91
|
*/
|
|
88
92
|
var FlexController = function(sComponentName) {
|
|
89
93
|
this._oChangePersistence = undefined;
|
|
@@ -434,21 +438,35 @@ sap.ui.define([
|
|
|
434
438
|
return Promise.all(aPromises);
|
|
435
439
|
};
|
|
436
440
|
|
|
441
|
+
FlexController.prototype._removeOtherLayerChanges = function(oAppComponent, sLayer, bRemoveOtherLayerChanges) {
|
|
442
|
+
if (bRemoveOtherLayerChanges && sLayer) {
|
|
443
|
+
var aLayersToReset = values(Layer).filter(function(sLayerToCheck) {
|
|
444
|
+
return sLayerToCheck !== sLayer;
|
|
445
|
+
});
|
|
446
|
+
return this.removeDirtyChanges(aLayersToReset, oAppComponent, undefined, undefined, undefined, true);
|
|
447
|
+
}
|
|
448
|
+
return Promise.resolve();
|
|
449
|
+
};
|
|
450
|
+
|
|
437
451
|
/**
|
|
438
452
|
* Saves all changes of a persistence instance.
|
|
439
453
|
*
|
|
440
454
|
* @param {sap.ui.core.UIComponent} [oAppComponent] - AppComponent instance
|
|
441
455
|
* @param {boolean} [bSkipUpdateCache=false] - Indicates the cache should not be updated
|
|
442
456
|
* @param {boolean} [bDraft=false] - Indicates if changes should be written as a draft
|
|
457
|
+
* @param {string} [sLayer] - Layer for which the changes should be saved
|
|
458
|
+
* @param {boolean} [bRemoveOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
443
459
|
* @returns {Promise} resolving with an array of responses or rejecting with the first error
|
|
444
460
|
* @public
|
|
445
461
|
*/
|
|
446
|
-
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft) {
|
|
462
|
+
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft, sLayer, bRemoveOtherLayerChanges) {
|
|
447
463
|
var nParentVersion = bDraft ? Versions.getVersionsModel({
|
|
448
464
|
reference: Utils.normalizeReference(this._sComponentName),
|
|
449
465
|
layer: Layer.CUSTOMER // only the customer layer has draft active
|
|
450
466
|
}).getProperty("/persistedVersion") : undefined;
|
|
451
|
-
|
|
467
|
+
|
|
468
|
+
return this._removeOtherLayerChanges(oAppComponent, sLayer, bRemoveOtherLayerChanges)
|
|
469
|
+
.then(this._oChangePersistence.saveDirtyChanges.bind(this._oChangePersistence, oAppComponent, bSkipUpdateCache, undefined, nParentVersion))
|
|
452
470
|
.then(function(oResult) {
|
|
453
471
|
if (bDraft && oResult && oResult.response) {
|
|
454
472
|
var vChangeDefinition = oResult.response;
|
|
@@ -575,23 +593,24 @@ sap.ui.define([
|
|
|
575
593
|
*/
|
|
576
594
|
FlexController.prototype.resetChanges = function(sLayer, sGenerator, oComponent, aSelectorIds, aChangeTypes) {
|
|
577
595
|
return this._oChangePersistence.resetChanges(sLayer, sGenerator, aSelectorIds, aChangeTypes)
|
|
578
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
596
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent, undefined));
|
|
579
597
|
};
|
|
580
598
|
|
|
581
599
|
/**
|
|
582
|
-
* Removes unsaved changes and reverts these.
|
|
600
|
+
* Removes unsaved changes and reverts these. If no control is provided, all dirty changes are removed.
|
|
583
601
|
*
|
|
584
|
-
* @param {string}
|
|
602
|
+
* @param {string|string[]} vLayer - Layer or multiple layers for which changes shall be deleted
|
|
585
603
|
* @param {sap.ui.core.Component} oComponent - Component instance
|
|
586
|
-
* @param {sap.ui.core.Control} oControl - Control for which the changes should be removed
|
|
604
|
+
* @param {sap.ui.core.Control} [oControl] - Control for which the changes should be removed
|
|
587
605
|
* @param {string} [sGenerator] - Generator of changes (optional)
|
|
588
606
|
* @param {string[]} [aChangeTypes] - Types of changes (optional)
|
|
607
|
+
* @param {boolean} [bSkipUrlUpdate] - Whether to skip soft reload during variant model update
|
|
589
608
|
*
|
|
590
609
|
* @returns {Promise} Promise that resolves after the deletion took place
|
|
591
610
|
*/
|
|
592
|
-
FlexController.prototype.removeDirtyChanges = function(
|
|
593
|
-
return this._oChangePersistence.removeDirtyChanges(
|
|
594
|
-
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent));
|
|
611
|
+
FlexController.prototype.removeDirtyChanges = function(vLayer, oComponent, oControl, sGenerator, aChangeTypes, bSkipUrlUpdate) {
|
|
612
|
+
return this._oChangePersistence.removeDirtyChanges(vLayer, oComponent, oControl, sGenerator, aChangeTypes)
|
|
613
|
+
.then(revertChangesAndUpdateVariantModel.bind(this, oComponent, bSkipUrlUpdate));
|
|
595
614
|
};
|
|
596
615
|
|
|
597
616
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @alias sap.ui.fl.FlexControllerFactory
|
|
31
31
|
* @experimental Since 1.27.0
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.84.
|
|
33
|
+
* @version 1.84.22
|
|
34
34
|
*/
|
|
35
35
|
var FlexControllerFactory = {};
|
|
36
36
|
|
package/src/sap/ui/fl/Layer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ function(
|
|
|
39
39
|
*
|
|
40
40
|
* @namespace sap.ui.fl.LayerUtils
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.84.
|
|
42
|
+
* @version 1.84.22
|
|
43
43
|
*/
|
|
44
44
|
var LayerUtils = {
|
|
45
45
|
_mLayersIndex: mLayersIndex,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ function(
|
|
|
35
35
|
* @class
|
|
36
36
|
* @constructor
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.84.
|
|
38
|
+
* @version 1.84.22
|
|
39
39
|
* @experimental Since 1.27.0
|
|
40
40
|
*/
|
|
41
41
|
var PreprocessorImpl = function() {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @class
|
|
41
41
|
* @constructor
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.84.
|
|
43
|
+
* @version 1.84.22
|
|
44
44
|
* @experimental Since 1.43.0
|
|
45
45
|
*/
|
|
46
46
|
var RegistrationDelegator = {
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ function(
|
|
|
45
45
|
* @namespace
|
|
46
46
|
* @alias sap.ui.fl.Utils
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.84.
|
|
48
|
+
* @version 1.84.22
|
|
49
49
|
* @experimental Since 1.25.0
|
|
50
50
|
*/
|
|
51
51
|
var Utils = {
|
package/src/sap/ui/fl/Variant.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class Variant class.
|
|
34
34
|
* @extends sap.ui.base.ManagedObject
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.84.
|
|
36
|
+
* @version 1.84.22
|
|
37
37
|
* @alias sap.ui.fl.Variant
|
|
38
38
|
* @experimental Since 1.52.0
|
|
39
39
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @constructor
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.84.
|
|
29
|
+
* @version 1.84.22
|
|
30
30
|
* @experimental Since 1.27.0
|
|
31
31
|
*/
|
|
32
32
|
var XmlPreprocessorImpl = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.84.
|
|
24
|
+
* @version 1.84.22
|
|
25
25
|
*
|
|
26
26
|
* @experimental Since 1.80 This class is experimental and provides only limited functionality. Also the API might be
|
|
27
27
|
* changed in future.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @alias sap.ui.fl.FlexCustomData
|
|
29
29
|
* @experimental Since 1.61.0
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.84.
|
|
31
|
+
* @version 1.84.22
|
|
32
32
|
*/
|
|
33
33
|
var FlexCustomData = {};
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @namespace sap.ui.fl.apply._internal.connectors.changes.Utils
|
|
24
24
|
* @since 1.70
|
|
25
|
-
* @version 1.84.
|
|
25
|
+
* @version 1.84.22
|
|
26
26
|
* @private
|
|
27
27
|
* @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
|
|
28
28
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
3
|
* OpenUI5
|
|
4
|
-
* (c) Copyright 2009-
|
|
4
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.Preprocessor
|
|
29
29
|
* @experimental
|
|
30
30
|
* @since 1.74
|
|
31
|
-
* @version 1.84.
|
|
31
|
+
* @version 1.84.22
|
|
32
32
|
* @private
|
|
33
33
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
34
34
|
*/
|