@openui5/sap.ui.fl 1.115.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +33 -2
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +29 -29
- package/src/sap/ui/fl/ChangePersistence.js +69 -71
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnector.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +5 -5
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +157 -130
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +11 -11
- package/src/sap/ui/fl/Utils.js +16 -17
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +41 -38
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +114 -94
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +19 -19
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +4 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -2
- 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 +15 -15
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +8 -8
- 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 +6 -6
- 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 -2
- 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 +3 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +4 -6
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +10 -10
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -4
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +4 -5
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +29 -29
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +44 -44
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.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 -14
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +3 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +6 -5
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +12 -4
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +23 -5
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +183 -64
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +27 -17
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +50 -50
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +27 -13
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +55 -37
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +12 -12
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +5 -5
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +6 -6
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +4 -4
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +10 -4
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -6
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +21 -21
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +34 -34
- package/src/sap/ui/fl/changeHandler/Base.js +7 -7
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +107 -107
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +45 -45
- package/src/sap/ui/fl/changeHandler/BaseRename.js +26 -26
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +15 -16
- package/src/sap/ui/fl/changeHandler/MoveControls.js +190 -191
- package/src/sap/ui/fl/changeHandler/MoveElements.js +36 -36
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/StashControl.js +35 -35
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +7 -7
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +21 -21
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +39 -39
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +5 -5
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +12 -12
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +7 -9
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +12 -12
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +60 -60
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +2 -5
- package/src/sap/ui/fl/initial/_internal/Storage.js +18 -19
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +4 -4
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +20 -21
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +6 -6
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +4 -4
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +18 -18
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +4 -4
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +7 -9
- package/src/sap/ui/fl/library.js +44 -45
- package/src/sap/ui/fl/library.support.js +59 -59
- package/src/sap/ui/fl/messagebundle.properties +4 -119
- package/src/sap/ui/fl/messagebundle_ar.properties +2 -79
- package/src/sap/ui/fl/messagebundle_bg.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ca.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cs.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cy.properties +2 -79
- package/src/sap/ui/fl/messagebundle_da.properties +2 -79
- package/src/sap/ui/fl/messagebundle_de.properties +2 -79
- package/src/sap/ui/fl/messagebundle_el.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -79
- package/src/sap/ui/fl/messagebundle_et.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hu.properties +2 -79
- package/src/sap/ui/fl/messagebundle_id.properties +2 -79
- package/src/sap/ui/fl/messagebundle_it.properties +2 -79
- package/src/sap/ui/fl/messagebundle_iw.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ja.properties +2 -79
- package/src/sap/ui/fl/messagebundle_kk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ko.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ms.properties +2 -79
- package/src/sap/ui/fl/messagebundle_nl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_no.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ro.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ru.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sh.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_th.properties +2 -79
- package/src/sap/ui/fl/messagebundle_tr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_uk.properties +3 -80
- package/src/sap/ui/fl/messagebundle_vi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -79
- package/src/sap/ui/fl/registry/Settings.js +41 -43
- package/src/sap/ui/fl/requireAsync.js +7 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +8 -8
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +22 -22
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +3 -3
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +3 -5
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +27 -27
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +20 -20
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +17 -17
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +34 -34
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +10 -10
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -2
- package/src/sap/ui/fl/util/IFrame.js +18 -18
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +7 -7
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +2 -2
- package/src/sap/ui/fl/util/getContainerUserInfo.js +25 -25
- package/src/sap/ui/fl/util/resolveBinding.js +3 -3
- package/src/sap/ui/fl/variants/VariantManagement.js +8 -32
- package/src/sap/ui/fl/variants/VariantModel.js +182 -124
- package/src/sap/ui/fl/variants/context/Component.js +1 -2
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -5
- package/src/sap/ui/fl/write/_internal/SaveAs.js +143 -143
- package/src/sap/ui/fl/write/_internal/Storage.js +46 -49
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +4 -4
- package/src/sap/ui/fl/write/_internal/Versions.js +104 -94
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +9 -9
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +7 -7
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +3 -5
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +15 -10
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.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/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +10 -10
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -24
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -61
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +4 -4
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +6 -6
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +14 -14
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +3 -3
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +15 -7
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +3 -3
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +3 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +4 -4
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +26 -26
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +78 -57
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +12 -13
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +12 -12
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +7 -7
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +7 -7
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +9 -9
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +546 -110
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +109 -67
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +3 -3
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +19 -20
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +19 -19
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +59 -54
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +8 -8
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +6 -6
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +14 -13
- package/src/sap/ui/fl/write/api/TranslationAPI.js +13 -13
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +14 -14
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +7 -7
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +17 -17
|
@@ -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.116.0
|
|
25
25
|
* @experimental Since 1.46
|
|
26
26
|
*/
|
|
27
27
|
var MoveControls = { };
|
|
@@ -31,7 +31,6 @@ function(
|
|
|
31
31
|
MoveControls.TARGET_ALIAS = "target";
|
|
32
32
|
MoveControls.MOVED_ELEMENTS_ALIAS = "movedElements";
|
|
33
33
|
|
|
34
|
-
|
|
35
34
|
function fnCheckConditions(oChange, oModifier, oView, oAppComponent) {
|
|
36
35
|
if (!oChange) {
|
|
37
36
|
return Promise.reject(new Error("No change instance"));
|
|
@@ -73,13 +72,13 @@ function(
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
return Promise.resolve()
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
.then(oModifier.bySelector.bind(oModifier, mMovedElement.selector || mMovedElement.id, oAppComponent, oView))
|
|
76
|
+
.then(function(oControl) {
|
|
77
|
+
if (!oControl) {
|
|
78
|
+
return Promise.reject(new Error("Control to move was not found. Id: '" + mMovedElement.selector.id + "'"));
|
|
79
|
+
}
|
|
80
|
+
return oControl;
|
|
81
|
+
});
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
function fnCheckCompleteChangeContentConditions(mSpecificChangeInfo) {
|
|
@@ -90,7 +89,7 @@ function(
|
|
|
90
89
|
return Promise.reject(new Error("MovedElements array is empty"));
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
mSpecificChangeInfo.movedElements.forEach(function
|
|
92
|
+
mSpecificChangeInfo.movedElements.forEach(function(mElement) {
|
|
94
93
|
if (!mElement.id) {
|
|
95
94
|
throw new Error("MovedControls element has no id attribute");
|
|
96
95
|
}
|
|
@@ -112,45 +111,45 @@ function(
|
|
|
112
111
|
var oTargetParent;
|
|
113
112
|
|
|
114
113
|
return Promise.resolve()
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
114
|
+
.then(function() {
|
|
115
|
+
return mSpecificChangeInfo.source.parent || oModifier.bySelector(mSpecificChangeInfo.source.id, oAppComponent);
|
|
116
|
+
})
|
|
117
|
+
.then(function(oRetrievedSourceParent) {
|
|
118
|
+
oSourceParent = oRetrievedSourceParent;
|
|
119
|
+
return mSpecificChangeInfo.target.parent || oModifier.bySelector(mSpecificChangeInfo.target.id, oAppComponent);
|
|
120
|
+
})
|
|
121
|
+
.then(function(oReturnedTargetParent) {
|
|
122
|
+
oTargetParent = oReturnedTargetParent;
|
|
123
|
+
var sSourceAggregation = mSpecificChangeInfo.source.aggregation;
|
|
124
|
+
var sTargetAggregation = mSpecificChangeInfo.target.aggregation;
|
|
125
|
+
var mAdditionalSourceInfo = {
|
|
126
|
+
aggregation: mSpecificChangeInfo.source.aggregation,
|
|
127
|
+
type: oModifier.getControlType(oSourceParent)
|
|
128
|
+
};
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
var mAdditionalTargetInfo = {
|
|
131
|
+
aggregation: mSpecificChangeInfo.target.aggregation,
|
|
132
|
+
type: oModifier.getControlType(oTargetParent)
|
|
133
|
+
};
|
|
135
134
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
135
|
+
var mSpecificInfo = {
|
|
136
|
+
source: {
|
|
137
|
+
id: oSourceParent.getId(),
|
|
138
|
+
aggregation: sSourceAggregation,
|
|
139
|
+
type: mAdditionalSourceInfo.type,
|
|
140
|
+
selector: oModifier.getSelector(mSpecificChangeInfo.source.id, oAppComponent, mAdditionalSourceInfo)
|
|
141
|
+
},
|
|
142
|
+
target: {
|
|
143
|
+
id: oTargetParent.getId(),
|
|
144
|
+
aggregation: sTargetAggregation,
|
|
145
|
+
type: mAdditionalTargetInfo.type,
|
|
146
|
+
selector: oModifier.getSelector(mSpecificChangeInfo.target.id, oAppComponent, mAdditionalTargetInfo)
|
|
147
|
+
},
|
|
148
|
+
movedElements: mSpecificChangeInfo.movedElements
|
|
149
|
+
};
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
return mSpecificInfo;
|
|
152
|
+
});
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
/**
|
|
@@ -186,73 +185,73 @@ function(
|
|
|
186
185
|
var aRevertData = [];
|
|
187
186
|
var aPromises = [];
|
|
188
187
|
return fnCheckConditions(oChange, oModifier, oView, oAppComponent)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
188
|
+
.then(function() {
|
|
189
|
+
oChangeContent.movedElements.forEach(function(mMovedElement) {
|
|
190
|
+
var fnPromise = function() {
|
|
191
|
+
return Promise.resolve()
|
|
192
|
+
.then(fnGetElementControlOrThrowError.bind(null, mMovedElement, oModifier, oAppComponent, oView))
|
|
193
|
+
.then(function(oRetrievedMovedElement) {
|
|
194
|
+
oMovedElement = oRetrievedMovedElement;
|
|
195
|
+
oSourceParent = oModifier.getParent(oMovedElement);
|
|
196
|
+
// mPropertyBag.sourceAggregation and mPropertyBag.targetAggregation should always be used when available
|
|
197
|
+
return mPropertyBag.sourceAggregation || oModifier.getParentAggregationName(oMovedElement, oSourceParent);
|
|
198
|
+
})
|
|
199
|
+
.then(function(sRetrievedAggregation) {
|
|
200
|
+
sSourceAggregation = sRetrievedAggregation;
|
|
201
|
+
return oModifier.bySelector(oChangeContent.target.selector, oAppComponent, oView);
|
|
202
|
+
})
|
|
203
|
+
.then(function(oRetrievedTargetParent) {
|
|
204
|
+
oTargetParent = oRetrievedTargetParent;
|
|
205
|
+
sTargetAggregation = mPropertyBag.targetAggregation || oChangeContent.target.selector.aggregation;
|
|
206
|
+
// save the current index, sourceParent and sourceAggregation for revert
|
|
207
|
+
return oModifier.findIndexInParentAggregation(oMovedElement);
|
|
208
|
+
})
|
|
209
|
+
.then(function(iRetrievedSourceIndex) {
|
|
210
|
+
iSourceIndex = iRetrievedSourceIndex;
|
|
211
|
+
iInsertIndex = mMovedElement.targetIndex;
|
|
212
|
+
if (iSourceIndex > -1) {
|
|
213
|
+
// if iIndex === iInsertIndex and source===target the operation was already performed (e.g. drag&drop in RTA)
|
|
214
|
+
// in this case we need the sourceIndex and sourceParent that is saved in the change in order to revert it to the correct index
|
|
215
|
+
// and we can't use the current aggregations/parents
|
|
216
|
+
if (
|
|
217
|
+
iSourceIndex === iInsertIndex
|
|
219
218
|
&& sSourceAggregation === sTargetAggregation
|
|
220
219
|
&& oModifier.getParent(oMovedElement) === oTargetParent
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
if (!bChangeAlreadyPerformed) {
|
|
242
|
-
return Promise.resolve()
|
|
243
|
-
.then(oModifier.removeAggregation.bind(oModifier, oSourceParent, sSourceAggregation, oMovedElement))
|
|
244
|
-
.then(oModifier.insertAggregation.bind(oModifier, oTargetParent, sTargetAggregation, oMovedElement, iInsertIndex, oView));
|
|
245
|
-
}
|
|
246
|
-
return Promise.resolve();
|
|
220
|
+
) {
|
|
221
|
+
iSourceIndex = mMovedElement.sourceIndex;
|
|
222
|
+
sSourceAggregation = mPropertyBag.sourceAggregation || oChangeContent.source.selector.aggregation;
|
|
223
|
+
bChangeAlreadyPerformed = true;
|
|
224
|
+
return oModifier.bySelector(oChangeContent.source.selector, oAppComponent, oView);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return Promise.resolve();
|
|
228
|
+
})
|
|
229
|
+
.then(function(oRetrievedSourceParent) {
|
|
230
|
+
if (oRetrievedSourceParent) {
|
|
231
|
+
oSourceParent = oRetrievedSourceParent;
|
|
232
|
+
}
|
|
233
|
+
if (iSourceIndex > -1) {
|
|
234
|
+
aRevertData.unshift({
|
|
235
|
+
index: iSourceIndex,
|
|
236
|
+
aggregation: sSourceAggregation,
|
|
237
|
+
sourceParent: oModifier.getSelector(oSourceParent, oAppComponent)
|
|
247
238
|
});
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
239
|
+
}
|
|
240
|
+
if (!bChangeAlreadyPerformed) {
|
|
241
|
+
return Promise.resolve()
|
|
242
|
+
.then(oModifier.removeAggregation.bind(oModifier, oSourceParent, sSourceAggregation, oMovedElement))
|
|
243
|
+
.then(oModifier.insertAggregation.bind(oModifier, oTargetParent, sTargetAggregation, oMovedElement, iInsertIndex, oView));
|
|
244
|
+
}
|
|
245
|
+
return Promise.resolve();
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
aPromises.push(fnPromise);
|
|
249
|
+
}, this);
|
|
250
|
+
return FlUtils.execPromiseQueueSequentially(aPromises, true, true);
|
|
251
|
+
}.bind(this))
|
|
252
|
+
.then(function() {
|
|
253
|
+
oChange.setRevertData(aRevertData);
|
|
254
|
+
});
|
|
256
255
|
};
|
|
257
256
|
|
|
258
257
|
/**
|
|
@@ -287,54 +286,54 @@ function(
|
|
|
287
286
|
var iInsertIndex;
|
|
288
287
|
|
|
289
288
|
return fnCheckConditions(oChange, oModifier, oView, oAppComponent)
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
289
|
+
.then(oModifier.bySelector.bind(oModifier, oChangeContent.source.selector, oAppComponent, oView))
|
|
290
|
+
.then(function(oRetrievedSourceParent) {
|
|
291
|
+
oSourceParent = oRetrievedSourceParent;
|
|
292
|
+
sSourceAggregation = oChangeContent.source.selector.aggregation;
|
|
293
|
+
sTargetAggregation = oChangeContent.target.selector.aggregation;
|
|
294
|
+
return oModifier.bySelector(oChangeContent.target.selector, oAppComponent, oView);
|
|
295
|
+
})
|
|
296
|
+
.then(function(oRetrievedTargetParent) {
|
|
297
|
+
oTargetParent = oRetrievedTargetParent;
|
|
298
|
+
var aRevertData = oChange.getRevertData();
|
|
299
|
+
oChangeContent.movedElements.reverse();
|
|
300
|
+
var aPromises = [];
|
|
301
|
+
oChangeContent.movedElements.forEach(function(mMovedElement, iElementIndex) {
|
|
302
|
+
var fnPromise = function() {
|
|
303
|
+
return Promise.resolve()
|
|
304
|
+
.then(fnGetElementControlOrThrowError.bind(this, mMovedElement, oModifier, oAppComponent, oView))
|
|
305
|
+
.then(function(oRetrievedMovedElement) {
|
|
306
|
+
oMovedElement = oRetrievedMovedElement;
|
|
307
|
+
if (!oMovedElement) {
|
|
308
|
+
Log.warning("Element to move not found");
|
|
309
|
+
return Promise.reject();
|
|
310
|
+
}
|
|
311
|
+
iInsertIndex = mMovedElement.sourceIndex;
|
|
312
|
+
if (aRevertData) {
|
|
313
|
+
var mRevertData = aRevertData[iElementIndex];
|
|
314
|
+
sSourceAggregation = mRevertData.aggregation;
|
|
315
|
+
iInsertIndex = mRevertData.index;
|
|
316
|
+
return oModifier.bySelector(mRevertData.sourceParent, oAppComponent, oView);
|
|
317
|
+
}
|
|
318
|
+
return Promise.resolve();
|
|
319
|
+
})
|
|
320
|
+
.then(function(oRetrievedSourceParent) {
|
|
321
|
+
if (oRetrievedSourceParent) {
|
|
322
|
+
oSourceParent = oRetrievedSourceParent;
|
|
323
|
+
}
|
|
324
|
+
return oModifier.removeAggregation(oTargetParent, sTargetAggregation, oMovedElement);
|
|
325
|
+
})
|
|
326
|
+
.then(function() {
|
|
327
|
+
return oModifier.insertAggregation(oSourceParent, sSourceAggregation, oMovedElement, iInsertIndex, oView);
|
|
328
|
+
});
|
|
329
|
+
}.bind(this);
|
|
330
|
+
aPromises.push(fnPromise);
|
|
331
|
+
}, this);
|
|
332
|
+
return FlUtils.execPromiseQueueSequentially(aPromises, true, true);
|
|
333
|
+
}.bind(this))
|
|
334
|
+
.then(function() {
|
|
335
|
+
oChange.resetRevertData();
|
|
336
|
+
});
|
|
338
337
|
};
|
|
339
338
|
|
|
340
339
|
/**
|
|
@@ -355,42 +354,42 @@ function(
|
|
|
355
354
|
var oAppComponent = mPropertyBag.appComponent;
|
|
356
355
|
|
|
357
356
|
return fnCheckCompleteChangeContentConditions(mSpecificChangeInfo)
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
357
|
+
.then(fnGetSpecificChangeInfo.bind(this, oModifier, mSpecificChangeInfo, oAppComponent))
|
|
358
|
+
.then(function(mSpecificChangeInfo) {
|
|
359
|
+
var oContent = {
|
|
360
|
+
movedElements: [],
|
|
361
|
+
source: {
|
|
362
|
+
selector: mSpecificChangeInfo.source.selector
|
|
363
|
+
},
|
|
364
|
+
target: {
|
|
365
|
+
selector: mSpecificChangeInfo.target.selector
|
|
366
|
+
}
|
|
367
|
+
};
|
|
369
368
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
});
|
|
388
|
-
aPromises.push(oPromise);
|
|
389
|
-
});
|
|
390
|
-
return Promise.all(aPromises).then(function() {
|
|
391
|
-
oChange.setContent(oContent);
|
|
369
|
+
var aPromises = [];
|
|
370
|
+
mSpecificChangeInfo.movedElements.forEach(function(mElement) {
|
|
371
|
+
var oPromise = Promise.resolve()
|
|
372
|
+
.then(function() {
|
|
373
|
+
return mElement.element || oModifier.bySelector(mElement.id, oAppComponent);
|
|
374
|
+
})
|
|
375
|
+
.then(function(oElement) {
|
|
376
|
+
oContent.movedElements.push({
|
|
377
|
+
selector: oModifier.getSelector(oElement, oAppComponent),
|
|
378
|
+
sourceIndex: mElement.sourceIndex,
|
|
379
|
+
targetIndex: mElement.targetIndex
|
|
380
|
+
});
|
|
381
|
+
oChange.addDependentControl(mSpecificChangeInfo.source.id, MoveControls.SOURCE_ALIAS, mPropertyBag);
|
|
382
|
+
oChange.addDependentControl(mSpecificChangeInfo.target.id, MoveControls.TARGET_ALIAS, mPropertyBag);
|
|
383
|
+
oChange.addDependentControl(mSpecificChangeInfo.movedElements.map(function(element) {
|
|
384
|
+
return element.id;
|
|
385
|
+
}), MoveControls.MOVED_ELEMENTS_ALIAS, mPropertyBag);
|
|
392
386
|
});
|
|
387
|
+
aPromises.push(oPromise);
|
|
388
|
+
});
|
|
389
|
+
return Promise.all(aPromises).then(function() {
|
|
390
|
+
oChange.setContent(oContent);
|
|
393
391
|
});
|
|
392
|
+
});
|
|
394
393
|
};
|
|
395
394
|
|
|
396
395
|
/**
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.fl.changeHandler.MoveElements
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.116.0
|
|
22
22
|
* @experimental Since 1.34.0
|
|
23
23
|
*/
|
|
24
24
|
var MoveElements = { };
|
|
@@ -61,24 +61,24 @@ sap.ui.define([
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
return Promise.resolve()
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
.then(function() {
|
|
65
|
+
return oModifier.bySelector(mMovedElement.selector || mMovedElement.id, oAppComponent, oView);
|
|
66
|
+
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
function fnHandleMovedElement(mMovedElement, oModifier, oAppComponent, oView, oSourceParent, oTargetParent, sSourceAggregation, sTargetAggregation) {
|
|
70
70
|
var oMovedElement;
|
|
71
71
|
return fnGetElementControlOrThrowError(mMovedElement, oModifier, oAppComponent, oView)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
.then(function(oRetrievedMovedElement) {
|
|
73
|
+
oMovedElement = oRetrievedMovedElement;
|
|
74
|
+
if (!oMovedElement) {
|
|
75
|
+
Log.warning("Element to move not found");
|
|
76
|
+
return Promise.reject();
|
|
77
|
+
}
|
|
78
|
+
return Promise.resolve()
|
|
79
|
+
.then(oModifier.removeAggregation.bind(oModifier, oSourceParent, sSourceAggregation, oMovedElement))
|
|
80
|
+
.then(oModifier.insertAggregation.bind(oModifier, oTargetParent, sTargetAggregation, oMovedElement, mMovedElement.targetIndex, oView));
|
|
81
|
+
});
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -106,35 +106,35 @@ sap.ui.define([
|
|
|
106
106
|
var oTargetParent;
|
|
107
107
|
|
|
108
108
|
return fnCheckConditions(oChange, oModifier, oView, oAppComponent)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
129
|
-
return FlUtils.execPromiseQueueSequentially(aPromises, true, true);
|
|
109
|
+
.then(function() {
|
|
110
|
+
sSourceAggregation = oChange.getSelector().aggregation;
|
|
111
|
+
sTargetAggregation = oChangeContent.target.selector.aggregation;
|
|
112
|
+
return oModifier.bySelector(oChangeContent.target.selector, oAppComponent, oView);
|
|
113
|
+
})
|
|
114
|
+
.then(function(oRetrievedTargetParent) {
|
|
115
|
+
oTargetParent = oRetrievedTargetParent;
|
|
116
|
+
var aPromises = [];
|
|
117
|
+
oChangeContent.movedElements.forEach(function(mMovedElement) {
|
|
118
|
+
aPromises.push(fnHandleMovedElement.bind(
|
|
119
|
+
null,
|
|
120
|
+
mMovedElement,
|
|
121
|
+
oModifier,
|
|
122
|
+
oAppComponent,
|
|
123
|
+
oView,
|
|
124
|
+
oSourceParent,
|
|
125
|
+
oTargetParent,
|
|
126
|
+
sSourceAggregation,
|
|
127
|
+
sTargetAggregation));
|
|
130
128
|
});
|
|
129
|
+
return FlUtils.execPromiseQueueSequentially(aPromises, true, true);
|
|
130
|
+
});
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* @deprecated
|
|
135
135
|
*/
|
|
136
136
|
MoveElements.completeChangeContent = function() {
|
|
137
|
-
throw new Error(
|
|
137
|
+
throw new Error("Using deprecated change handler. Please consider using 'MoveControls' instead");
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -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.116.0
|
|
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.
|
|
@@ -53,13 +53,13 @@ sap.ui.define([
|
|
|
53
53
|
// }
|
|
54
54
|
|
|
55
55
|
return Promise.resolve()
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
61
|
-
oModifier.setPropertyBinding(oControl, sPropertyName, vPropertyValue);
|
|
56
|
+
.then(oModifier.getPropertyBindingOrProperty.bind(oModifier, oControl, sPropertyName))
|
|
57
|
+
.then(function(vOriginalValue) {
|
|
58
|
+
oChange.setRevertData({
|
|
59
|
+
originalValue: vOriginalValue
|
|
62
60
|
});
|
|
61
|
+
oModifier.setPropertyBinding(oControl, sPropertyName, vPropertyValue);
|
|
62
|
+
});
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -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.116.0
|
|
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.
|
|
@@ -71,13 +71,13 @@ sap.ui.define([
|
|
|
71
71
|
// }
|
|
72
72
|
|
|
73
73
|
return Promise.resolve()
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
79
|
-
changeProperty(oControl, sPropertyName, vPropertyValue, oModifier);
|
|
74
|
+
.then(oModifier.getPropertyBindingOrProperty.bind(oModifier, oControl, sPropertyName))
|
|
75
|
+
.then(function(oOriginalValue) {
|
|
76
|
+
oChange.setRevertData({
|
|
77
|
+
originalValue: oOriginalValue
|
|
80
78
|
});
|
|
79
|
+
changeProperty(oControl, sPropertyName, vPropertyValue, oModifier);
|
|
80
|
+
});
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
/**
|