@openui5/sap.ui.fl 1.115.1 → 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
|
@@ -9,7 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
"sap/ui/fl/write/_internal/Storage",
|
|
10
10
|
"sap/ui/fl/Layer",
|
|
11
11
|
"sap/base/util/restricted/_isEqual"
|
|
12
|
-
], function
|
|
12
|
+
], function(
|
|
13
13
|
Controller,
|
|
14
14
|
Fragment,
|
|
15
15
|
WriteStorage,
|
|
@@ -18,7 +18,6 @@ sap.ui.define([
|
|
|
18
18
|
) {
|
|
19
19
|
"use strict";
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
function buildQueryParameterMap(mConfig) {
|
|
23
22
|
var mDefaultValues = {layer: Layer.CUSTOMER, type: "role"};
|
|
24
23
|
return Object.assign({}, mDefaultValues, mConfig);
|
|
@@ -60,7 +59,6 @@ sap.ui.define([
|
|
|
60
59
|
return {id: oItem.getTitle(), description: oItem.getDescription()};
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
|
|
64
62
|
return Controller.extend("sap.ui.fl.variants.context.controller.ContextVisibility", {
|
|
65
63
|
onInit: function() {
|
|
66
64
|
this.oSelectedContextsModel = this.getView().getModel("selectedContexts");
|
|
@@ -106,7 +104,6 @@ sap.ui.define([
|
|
|
106
104
|
return sDescription.length === 0 ? this.oI18n.getText("NO_DESCRIPTION") : sDescription;
|
|
107
105
|
},
|
|
108
106
|
|
|
109
|
-
|
|
110
107
|
/**
|
|
111
108
|
* Checks if all data is loaded from back end.
|
|
112
109
|
* If not, it retrieves the next chunk from the back end and then updates the model.
|
|
@@ -156,7 +153,7 @@ sap.ui.define([
|
|
|
156
153
|
if (!this._oDialog) {
|
|
157
154
|
this._oDialog = loadFragment.call(this);
|
|
158
155
|
}
|
|
159
|
-
return this._oDialog.then(function
|
|
156
|
+
return this._oDialog.then(function(oDialog) {
|
|
160
157
|
return this._addContexts(oDialog);
|
|
161
158
|
}.bind(this));
|
|
162
159
|
},
|
|
@@ -49,8 +49,8 @@ sap.ui.define([
|
|
|
49
49
|
if (
|
|
50
50
|
mPropertyBag.isForSmartBusiness
|
|
51
51
|
&& (
|
|
52
|
-
mPropertyBag.package !==
|
|
53
|
-
&& mPropertyBag.package !==
|
|
52
|
+
mPropertyBag.package !== "$TMP"
|
|
53
|
+
&& mPropertyBag.package !== ""
|
|
54
54
|
)
|
|
55
55
|
&& !mPropertyBag.transport
|
|
56
56
|
&& !oSettings.isAtoEnabled()
|
|
@@ -126,7 +126,7 @@ sap.ui.define([
|
|
|
126
126
|
function _inlineDescriptorChanges(aAllInlineChanges, oAppVariant) {
|
|
127
127
|
var aAllDescrChanges = [];
|
|
128
128
|
aAllInlineChanges.forEach(function(oInlineChange) {
|
|
129
|
-
//Replace the hosting key with the new reference
|
|
129
|
+
// Replace the hosting key with the new reference
|
|
130
130
|
oInlineChange.replaceHostingIdForTextKey(oAppVariant.getId(), oAppVariant.getReference(), oInlineChange.getContent(), oInlineChange.getTexts());
|
|
131
131
|
aAllDescrChanges.push(oAppVariant.addDescriptorInlineChange(oInlineChange));
|
|
132
132
|
});
|
|
@@ -173,11 +173,11 @@ sap.ui.define([
|
|
|
173
173
|
mPropertyBag.layer = oAppVariant.getDefinition().layer;
|
|
174
174
|
|
|
175
175
|
return _validatePackageAndPrepareTransportInfo(mPropertyBag)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
.then(function(oTransportInfo) {
|
|
177
|
+
return _setTransportAndPackageInfoForAppVariant(oAppVariant, oTransportInfo);
|
|
178
|
+
}).then(function() {
|
|
179
|
+
return oAppVariant;
|
|
180
|
+
});
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
var SaveAs = {
|
|
@@ -186,167 +186,167 @@ sap.ui.define([
|
|
|
186
186
|
var oAppVariantResultClosure;
|
|
187
187
|
|
|
188
188
|
return AppVariantFactory.prepareCreate(mPropertyBag)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
return _getInlineChangesFromDescrChanges(aDescrChanges);
|
|
207
|
-
})
|
|
208
|
-
.then(function(aAllInlineChanges) {
|
|
209
|
-
return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
|
|
210
|
-
})
|
|
211
|
-
.then(function() {
|
|
212
|
-
// Save the app variant to backend
|
|
213
|
-
return oAppVariantClosure.submit()
|
|
214
|
-
.catch(function(oError) {
|
|
215
|
-
oError.messageKey = "MSG_SAVE_APP_VARIANT_FAILED";
|
|
216
|
-
throw oError;
|
|
217
|
-
});
|
|
218
|
-
})
|
|
219
|
-
.then(function(oResult) {
|
|
220
|
-
oAppVariantResultClosure = merge({}, oResult);
|
|
221
|
-
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
222
|
-
|
|
223
|
-
var oFlexController = ChangesController.getFlexControllerInstance(mPropertyBag.selector);
|
|
224
|
-
|
|
225
|
-
var aUIChanges = _getDirtyChanges(mPropertyBag.selector); //after removing descr changes, all remaining dirty changes are UI changes
|
|
226
|
-
if (aUIChanges.length) {
|
|
227
|
-
// Save the dirty UI changes to backend => firing PersistenceWriteApi.save
|
|
228
|
-
return oFlexController.saveAll(ChangesController.getAppComponentForSelector(mPropertyBag.selector), true)
|
|
229
|
-
.catch(function(oError) {
|
|
230
|
-
// Delete the inconsistent app variant if the UI changes failed to save
|
|
231
|
-
return this.deleteAppVariant({
|
|
232
|
-
id: mPropertyBag.id
|
|
233
|
-
})
|
|
234
|
-
.then(function() {
|
|
235
|
-
oError.messageKey = "MSG_COPY_UNSAVED_CHANGES_FAILED";
|
|
236
|
-
throw oError;
|
|
237
|
-
});
|
|
238
|
-
}.bind(this));
|
|
189
|
+
.then(function(oAppVariant) {
|
|
190
|
+
oAppVariantClosure = merge({}, oAppVariant);
|
|
191
|
+
return _validatePackageAndPrepareTransportInfo(mPropertyBag);
|
|
192
|
+
})
|
|
193
|
+
.then(function(oTransportInfo) {
|
|
194
|
+
return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
|
|
195
|
+
})
|
|
196
|
+
.then(function() {
|
|
197
|
+
var aDescrChanges = [];
|
|
198
|
+
_getDirtyChanges(mPropertyBag.selector).forEach(function(oChange) {
|
|
199
|
+
// UI and Descriptor changes need to be separated here so as to perform different operations on changes
|
|
200
|
+
if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
|
|
201
|
+
aDescrChanges.push(oChange);
|
|
202
|
+
} else {
|
|
203
|
+
_moveChangesToNewFlexReference(oChange, oAppVariantClosure);
|
|
239
204
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
205
|
+
});
|
|
206
|
+
return _getInlineChangesFromDescrChanges(aDescrChanges);
|
|
207
|
+
})
|
|
208
|
+
.then(function(aAllInlineChanges) {
|
|
209
|
+
return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
|
|
210
|
+
})
|
|
211
|
+
.then(function() {
|
|
212
|
+
// Save the app variant to backend
|
|
213
|
+
return oAppVariantClosure.submit()
|
|
246
214
|
.catch(function(oError) {
|
|
247
|
-
|
|
248
|
-
if (
|
|
249
|
-
_getDirtyDescrChanges(mPropertyBag.selector).length
|
|
250
|
-
) {
|
|
251
|
-
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
Log.error("the app variant could not be created.", oError.message || oError);
|
|
215
|
+
oError.messageKey = "MSG_SAVE_APP_VARIANT_FAILED";
|
|
255
216
|
throw oError;
|
|
256
217
|
});
|
|
218
|
+
})
|
|
219
|
+
.then(function(oResult) {
|
|
220
|
+
oAppVariantResultClosure = merge({}, oResult);
|
|
221
|
+
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
222
|
+
|
|
223
|
+
var oFlexController = ChangesController.getFlexControllerInstance(mPropertyBag.selector);
|
|
224
|
+
|
|
225
|
+
var aUIChanges = _getDirtyChanges(mPropertyBag.selector); // after removing descr changes, all remaining dirty changes are UI changes
|
|
226
|
+
if (aUIChanges.length) {
|
|
227
|
+
// Save the dirty UI changes to backend => firing PersistenceWriteApi.save
|
|
228
|
+
return oFlexController.saveAll(ChangesController.getAppComponentForSelector(mPropertyBag.selector), true)
|
|
229
|
+
.catch(function(oError) {
|
|
230
|
+
// Delete the inconsistent app variant if the UI changes failed to save
|
|
231
|
+
return this.deleteAppVariant({
|
|
232
|
+
id: mPropertyBag.id
|
|
233
|
+
})
|
|
234
|
+
.then(function() {
|
|
235
|
+
oError.messageKey = "MSG_COPY_UNSAVED_CHANGES_FAILED";
|
|
236
|
+
throw oError;
|
|
237
|
+
});
|
|
238
|
+
}.bind(this));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return Promise.resolve();
|
|
242
|
+
}.bind(this))
|
|
243
|
+
.then(function() {
|
|
244
|
+
return oAppVariantResultClosure;
|
|
245
|
+
})
|
|
246
|
+
.catch(function(oError) {
|
|
247
|
+
// If promise gets rejected before making a submit call, then app descriptor changes have to be removed from persistence
|
|
248
|
+
if (
|
|
249
|
+
_getDirtyDescrChanges(mPropertyBag.selector).length
|
|
250
|
+
) {
|
|
251
|
+
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
Log.error("the app variant could not be created.", oError.message || oError);
|
|
255
|
+
throw oError;
|
|
256
|
+
});
|
|
257
257
|
},
|
|
258
258
|
updateAppVariant: function(mPropertyBag) {
|
|
259
259
|
var oAppVariantClosure;
|
|
260
260
|
var oAppVariantResultClosure;
|
|
261
261
|
|
|
262
262
|
return AppVariantFactory.prepareUpdate(_omit(mPropertyBag, "selector"))
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
263
|
+
.catch(function(oError) {
|
|
264
|
+
oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
|
|
265
|
+
throw oError;
|
|
266
|
+
})
|
|
267
|
+
.then(function(oAppVariant) {
|
|
268
|
+
if (!oAppVariant) {
|
|
269
|
+
throw new Error("App variant with ID: " + mPropertyBag.id + "does not exist");
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
oAppVariantClosure = merge({}, oAppVariant);
|
|
273
|
+
mPropertyBag.package = oAppVariantClosure.getPackage();
|
|
274
|
+
mPropertyBag.layer = oAppVariantClosure.getDefinition().layer;
|
|
275
|
+
|
|
276
|
+
return _validatePackageAndPrepareTransportInfo(mPropertyBag);
|
|
277
|
+
})
|
|
278
|
+
.then(function(oTransportInfo) {
|
|
279
|
+
return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
|
|
280
|
+
})
|
|
281
|
+
.then(function() {
|
|
282
|
+
var aDescrChanges = [];
|
|
283
|
+
_getDirtyDescrChanges(mPropertyBag.selector).forEach(function(oChange) {
|
|
284
|
+
if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
|
|
285
|
+
aDescrChanges.push(oChange);
|
|
270
286
|
}
|
|
287
|
+
});
|
|
271
288
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
})
|
|
281
|
-
.then(function() {
|
|
282
|
-
var aDescrChanges = [];
|
|
283
|
-
_getDirtyDescrChanges(mPropertyBag.selector).forEach(function(oChange) {
|
|
284
|
-
if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
|
|
285
|
-
aDescrChanges.push(oChange);
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
return _getInlineChangesFromDescrChanges(aDescrChanges);
|
|
290
|
-
})
|
|
291
|
-
.then(function(aAllInlineChanges) {
|
|
292
|
-
return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
|
|
293
|
-
})
|
|
294
|
-
.then(function() {
|
|
295
|
-
// Updates the app variant saved in backend
|
|
296
|
-
return oAppVariantClosure.submit()
|
|
297
|
-
.catch(function(oError) {
|
|
298
|
-
if (mPropertyBag.isForSmartBusiness) {
|
|
299
|
-
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
300
|
-
throw oError;
|
|
301
|
-
}
|
|
302
|
-
oError.messageKey = "MSG_UPDATE_APP_VARIANT_FAILED";
|
|
303
|
-
throw oError;
|
|
304
|
-
});
|
|
305
|
-
}).then(function(oResult) {
|
|
306
|
-
oAppVariantResultClosure = merge({}, oResult);
|
|
307
|
-
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
308
|
-
return oAppVariantResultClosure;
|
|
309
|
-
})
|
|
289
|
+
return _getInlineChangesFromDescrChanges(aDescrChanges);
|
|
290
|
+
})
|
|
291
|
+
.then(function(aAllInlineChanges) {
|
|
292
|
+
return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
|
|
293
|
+
})
|
|
294
|
+
.then(function() {
|
|
295
|
+
// Updates the app variant saved in backend
|
|
296
|
+
return oAppVariantClosure.submit()
|
|
310
297
|
.catch(function(oError) {
|
|
311
|
-
|
|
312
|
-
if (
|
|
313
|
-
_getDirtyDescrChanges(mPropertyBag.selector).length
|
|
314
|
-
) {
|
|
298
|
+
if (mPropertyBag.isForSmartBusiness) {
|
|
315
299
|
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
300
|
+
throw oError;
|
|
316
301
|
}
|
|
317
|
-
|
|
318
|
-
Log.error("the app variant could not be updated.", oError.message || oError);
|
|
302
|
+
oError.messageKey = "MSG_UPDATE_APP_VARIANT_FAILED";
|
|
319
303
|
throw oError;
|
|
320
304
|
});
|
|
305
|
+
}).then(function(oResult) {
|
|
306
|
+
oAppVariantResultClosure = merge({}, oResult);
|
|
307
|
+
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
308
|
+
return oAppVariantResultClosure;
|
|
309
|
+
})
|
|
310
|
+
.catch(function(oError) {
|
|
311
|
+
// If promise gets rejected before making a submit call, then also app descriptor changes have to be removed from persistence
|
|
312
|
+
if (
|
|
313
|
+
_getDirtyDescrChanges(mPropertyBag.selector).length
|
|
314
|
+
) {
|
|
315
|
+
_deleteDescrChangesFromPersistence(mPropertyBag.selector);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
Log.error("the app variant could not be updated.", oError.message || oError);
|
|
319
|
+
throw oError;
|
|
320
|
+
});
|
|
321
321
|
},
|
|
322
322
|
deleteAppVariant: function(mPropertyBag) {
|
|
323
323
|
return AppVariantFactory.prepareDelete(_omit(mPropertyBag, "selector"))
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
.catch(function(oError) {
|
|
336
|
-
if (oError === "cancel") {
|
|
337
|
-
return Promise.reject("cancel");
|
|
338
|
-
}
|
|
339
|
-
oError.messageKey = "MSG_DELETE_APP_VARIANT_FAILED";
|
|
340
|
-
throw oError;
|
|
341
|
-
});
|
|
342
|
-
})
|
|
324
|
+
.catch(function(oError) {
|
|
325
|
+
oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
|
|
326
|
+
throw oError;
|
|
327
|
+
})
|
|
328
|
+
.then(function(oAppVariant) {
|
|
329
|
+
return ((mPropertyBag.isForSmartBusiness)
|
|
330
|
+
? Promise.resolve(oAppVariant)
|
|
331
|
+
: _addPackageAndTransport(oAppVariant, mPropertyBag));
|
|
332
|
+
})
|
|
333
|
+
.then(function(oAppVariant) {
|
|
334
|
+
return oAppVariant.submit()
|
|
343
335
|
.catch(function(oError) {
|
|
344
336
|
if (oError === "cancel") {
|
|
345
337
|
return Promise.reject("cancel");
|
|
346
338
|
}
|
|
347
|
-
|
|
339
|
+
oError.messageKey = "MSG_DELETE_APP_VARIANT_FAILED";
|
|
348
340
|
throw oError;
|
|
349
341
|
});
|
|
342
|
+
})
|
|
343
|
+
.catch(function(oError) {
|
|
344
|
+
if (oError === "cancel") {
|
|
345
|
+
return Promise.reject("cancel");
|
|
346
|
+
}
|
|
347
|
+
Log.error("the app variant could not be deleted.", oError.message || oError);
|
|
348
|
+
throw oError;
|
|
349
|
+
});
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
return SaveAs;
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @namespace sap.ui.fl.write._internal.Storage
|
|
24
24
|
* @since 1.67
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.116.0
|
|
26
26
|
* @private
|
|
27
27
|
* @ui5-restricted sap.ui.fl
|
|
28
28
|
*/
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function findConnectorConfigForLayer(sLayer, aConnectors) {
|
|
42
|
-
var aFilteredConnectors = aConnectors.filter(function
|
|
42
|
+
var aFilteredConnectors = aConnectors.filter(function(oConnector) {
|
|
43
43
|
return oConnector.layers.indexOf("ALL") !== -1 || oConnector.layers.indexOf(sLayer) !== -1;
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -57,18 +57,18 @@ sap.ui.define([
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function _sendLoadFeaturesToConnector(aConnectors) {
|
|
60
|
-
var aConnectorPromises = aConnectors.map(function
|
|
60
|
+
var aConnectorPromises = aConnectors.map(function(oConnectorConfig) {
|
|
61
61
|
return oConnectorConfig.writeConnectorModule.loadFeatures({url: oConnectorConfig.url})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
layers: oConnectorConfig.layers
|
|
66
|
-
};
|
|
67
|
-
})
|
|
68
|
-
.catch(StorageUtils.logAndResolveDefault.bind(null, {
|
|
69
|
-
features: {},
|
|
62
|
+
.then(function(oFeatures) {
|
|
63
|
+
return {
|
|
64
|
+
features: oFeatures,
|
|
70
65
|
layers: oConnectorConfig.layers
|
|
71
|
-
}
|
|
66
|
+
};
|
|
67
|
+
})
|
|
68
|
+
.catch(StorageUtils.logAndResolveDefault.bind(null, {
|
|
69
|
+
features: {},
|
|
70
|
+
layers: oConnectorConfig.layers
|
|
71
|
+
}, oConnectorConfig, "loadFeatures"));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
return Promise.all(aConnectorPromises);
|
|
@@ -85,22 +85,22 @@ sap.ui.define([
|
|
|
85
85
|
return Promise.reject("No layer was provided");
|
|
86
86
|
}
|
|
87
87
|
return _getWriteConnectors()
|
|
88
|
-
|
|
88
|
+
.then(findConnectorConfigForLayer.bind(this, sLayer));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
function _validateDraftScenario(mPropertyBag) {
|
|
92
92
|
if (mPropertyBag.draft) {
|
|
93
|
-
return new Promise(function
|
|
93
|
+
return new Promise(function(resolve, reject) {
|
|
94
94
|
// no loop of classes included since loadFeatures is not using executeActionsByName
|
|
95
|
-
sap.ui.require(["sap/ui/fl/write/api/FeaturesAPI"], function
|
|
95
|
+
sap.ui.require(["sap/ui/fl/write/api/FeaturesAPI"], function(FeaturesAPI) {
|
|
96
96
|
FeaturesAPI.isVersioningEnabled(mPropertyBag.layer)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
.then(function(bDraftEnabled) {
|
|
98
|
+
if (bDraftEnabled) {
|
|
99
|
+
resolve();
|
|
100
|
+
} else {
|
|
101
|
+
reject("Draft is not supported for the given layer: " + mPropertyBag.layer);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -215,12 +215,12 @@ sap.ui.define([
|
|
|
215
215
|
|
|
216
216
|
function _executeActionByName(sActionName, mPropertyBag) {
|
|
217
217
|
return _validateDraftScenario(mPropertyBag)
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
.then(_getConnectorConfigByLayer.bind(undefined, mPropertyBag.layer))
|
|
219
|
+
.then(function(oConnectorConfig) {
|
|
220
|
+
mPropertyBag.url = oConnectorConfig.url;
|
|
221
|
+
var oConnector = ObjectPath.get(sActionName, oConnectorConfig.writeConnectorModule);
|
|
222
|
+
return oConnector.call(oConnectorConfig.writeConnectorModule, mPropertyBag);
|
|
223
|
+
});
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
var Storage = {};
|
|
@@ -392,8 +392,8 @@ sap.ui.define([
|
|
|
392
392
|
*/
|
|
393
393
|
Storage.loadFeatures = function() {
|
|
394
394
|
return _getWriteConnectors()
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
.then(_sendLoadFeaturesToConnector)
|
|
396
|
+
.then(StorageFeaturesMerger.mergeResults);
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
/**
|
|
@@ -420,26 +420,23 @@ sap.ui.define([
|
|
|
420
420
|
Storage.contextBasedAdaptation = {
|
|
421
421
|
create: function(mPropertyBag) {
|
|
422
422
|
return _getWriteConnectors()
|
|
423
|
-
|
|
423
|
+
.then(_executeActionByName.bind(undefined, "contextBasedAdaptation.create", mPropertyBag));
|
|
424
424
|
},
|
|
425
425
|
reorder: function(mPropertyBag) {
|
|
426
426
|
return _getWriteConnectors()
|
|
427
|
-
|
|
427
|
+
.then(_executeActionByName.bind(undefined, "contextBasedAdaptation.reorder", mPropertyBag));
|
|
428
428
|
},
|
|
429
429
|
update: function(mPropertyBag) {
|
|
430
430
|
return _getWriteConnectors()
|
|
431
|
-
|
|
431
|
+
.then(_executeActionByName.bind(undefined, "contextBasedAdaptation.update", mPropertyBag));
|
|
432
432
|
},
|
|
433
433
|
load: function(mPropertyBag) {
|
|
434
434
|
return _getWriteConnectors()
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
writeChange: function(mPropertyBag) {
|
|
438
|
-
return Storage.write(mPropertyBag);
|
|
435
|
+
.then(_executeActionByName.bind(undefined, "contextBasedAdaptation.load", mPropertyBag));
|
|
439
436
|
},
|
|
440
437
|
remove: function(mPropertyBag) {
|
|
441
438
|
return _getWriteConnectors()
|
|
442
|
-
|
|
439
|
+
.then(_executeActionByName.bind(undefined, "contextBasedAdaptation.remove", mPropertyBag));
|
|
443
440
|
}
|
|
444
441
|
};
|
|
445
442
|
|
|
@@ -454,9 +451,9 @@ sap.ui.define([
|
|
|
454
451
|
* @returns {Promise<sap.ui.fl.Version[]>} Promise resolving with a list of versions if available;
|
|
455
452
|
* rejects if an error occurs or the layer does not support draft handling
|
|
456
453
|
*/
|
|
457
|
-
load: function
|
|
454
|
+
load: function(mPropertyBag) {
|
|
458
455
|
return _getWriteConnectors()
|
|
459
|
-
|
|
456
|
+
.then(_executeActionByName.bind(undefined, "versions.load", mPropertyBag));
|
|
460
457
|
},
|
|
461
458
|
|
|
462
459
|
/**
|
|
@@ -469,9 +466,9 @@ sap.ui.define([
|
|
|
469
466
|
* @returns {Promise<sap.ui.fl.Version>} Promise resolving with the activated version;
|
|
470
467
|
* rejects if an error occurs or the layer does not support draft handling
|
|
471
468
|
*/
|
|
472
|
-
activate: function
|
|
469
|
+
activate: function(mPropertyBag) {
|
|
473
470
|
return _getWriteConnectors()
|
|
474
|
-
|
|
471
|
+
.then(_executeActionByName.bind(undefined, "versions.activate", mPropertyBag));
|
|
475
472
|
},
|
|
476
473
|
|
|
477
474
|
/**
|
|
@@ -483,12 +480,12 @@ sap.ui.define([
|
|
|
483
480
|
* @returns {Promise} Promise resolving after the draft is discarded;
|
|
484
481
|
* rejects if an error occurs or the layer does not support draft handling
|
|
485
482
|
*/
|
|
486
|
-
discardDraft: function
|
|
483
|
+
discardDraft: function(mPropertyBag) {
|
|
487
484
|
return _getWriteConnectors()
|
|
488
|
-
|
|
485
|
+
.then(_executeActionByName.bind(undefined, "versions.discardDraft", mPropertyBag));
|
|
489
486
|
},
|
|
490
487
|
|
|
491
|
-
publish: function
|
|
488
|
+
publish: function(mPropertyBag) {
|
|
492
489
|
return _getWriteConnectors()
|
|
493
490
|
.then(_executeActionByName.bind(undefined, "versions.publish", mPropertyBag));
|
|
494
491
|
}
|
|
@@ -504,10 +501,10 @@ sap.ui.define([
|
|
|
504
501
|
* @returns {Promise} Resolving after the languages are retrieved;
|
|
505
502
|
* rejects if an error occurs
|
|
506
503
|
*/
|
|
507
|
-
getSourceLanguages: function
|
|
504
|
+
getSourceLanguages: function(mPropertyBag) {
|
|
508
505
|
// TODO: cache the request & invalidate it in case of a writing operation
|
|
509
506
|
return _getWriteConnectors()
|
|
510
|
-
|
|
507
|
+
.then(_executeActionByName.bind(undefined, "translation.getSourceLanguages", mPropertyBag));
|
|
511
508
|
},
|
|
512
509
|
|
|
513
510
|
/**
|
|
@@ -521,7 +518,7 @@ sap.ui.define([
|
|
|
521
518
|
* @returns {Promise} Resolving after the languages are retrieved;
|
|
522
519
|
* rejects if an error occurs
|
|
523
520
|
*/
|
|
524
|
-
getTexts: function
|
|
521
|
+
getTexts: function(mPropertyBag) {
|
|
525
522
|
return _getWriteConnectors()
|
|
526
523
|
.then(_executeActionByName.bind(undefined, "translation.getTexts", mPropertyBag));
|
|
527
524
|
},
|
|
@@ -535,7 +532,7 @@ sap.ui.define([
|
|
|
535
532
|
* @returns {Promise} Resolves after the file was uploaded;
|
|
536
533
|
* rejects if an error occurs or the parameter is missing
|
|
537
534
|
*/
|
|
538
|
-
postTranslationTexts: function
|
|
535
|
+
postTranslationTexts: function(mPropertyBag) {
|
|
539
536
|
return _getWriteConnectors()
|
|
540
537
|
.then(_executeActionByName.bind(undefined, "translation.postTranslationTexts", mPropertyBag));
|
|
541
538
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/merge"
|
|
9
|
-
], function
|
|
9
|
+
], function(
|
|
10
10
|
merge
|
|
11
11
|
) {
|
|
12
12
|
"use strict";
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @namespace sap.ui.fl.write._internal.StorageFeaturesMerger
|
|
18
18
|
* @since 1.70
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.116.0
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
22
22
|
*/
|
|
@@ -63,8 +63,8 @@ sap.ui.define([
|
|
|
63
63
|
mergeResults: function(aResponses) {
|
|
64
64
|
var oResult = DEFAULT_FEATURES;
|
|
65
65
|
|
|
66
|
-
aResponses.forEach(function
|
|
67
|
-
Object.keys(oResponse.features).forEach(function
|
|
66
|
+
aResponses.forEach(function(oResponse) {
|
|
67
|
+
Object.keys(oResponse.features).forEach(function(sKey) {
|
|
68
68
|
if (sKey !== "isVersioningEnabled") {
|
|
69
69
|
oResult[sKey] = oResponse.features[sKey];
|
|
70
70
|
}
|