@openui5/sap.ui.fl 1.115.1 → 1.117.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 +30 -33
- package/src/sap/ui/fl/ChangePersistence.js +139 -84
- 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 +82 -210
- package/src/sap/ui/fl/FlexControllerFactory.js +12 -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 +45 -88
- 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 +130 -94
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +10 -4
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +7 -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 +18 -16
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +11 -9
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +4 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +9 -7
- 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 +4 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +4 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +4 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +4 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -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 +7 -7
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +13 -11
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +4 -4
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +4 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +5 -5
- 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 +16 -8
- 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 +206 -64
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +27 -17
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +16 -10
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +23 -7
- 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 +20 -23
- 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 +6 -6
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +15 -5
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +10 -4
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +6 -8
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -6
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +3 -5
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +22 -22
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +43 -36
- 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 +20 -21
- 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 +3 -3
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +22 -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 +9 -9
- 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 -47
- package/src/sap/ui/fl/variants/VariantModel.js +236 -146
- 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 +163 -161
- package/src/sap/ui/fl/write/_internal/Storage.js +51 -53
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +4 -4
- package/src/sap/ui/fl/write/_internal/Versions.js +105 -97
- 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 +40 -10
- 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 +33 -35
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +81 -59
- 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 +12 -15
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +222 -185
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +546 -110
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +122 -68
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +19 -4
- 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 +32 -33
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +119 -73
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +8 -8
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +18 -21
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +14 -13
- package/src/sap/ui/fl/write/api/TranslationAPI.js +13 -17
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +5 -7
- 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
- package/ui5.yaml +1 -2
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +0 -49
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"sap/ui/core/BusyIndicator",
|
|
17
17
|
"sap/base/Log",
|
|
18
18
|
"sap/m/MessageBox"
|
|
19
|
-
], function
|
|
19
|
+
], function(
|
|
20
20
|
merge,
|
|
21
21
|
Layer,
|
|
22
22
|
BackendConnector,
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
*
|
|
39
39
|
* @namespace sap.ui.fl.write._internal.connectors.KeyUserConnector
|
|
40
40
|
* @since 1.70
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.117.0
|
|
42
42
|
* @private
|
|
43
43
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
44
44
|
*/
|
|
@@ -65,24 +65,24 @@ sap.ui.define([
|
|
|
65
65
|
CONTEXTS: PREFIX + InitialConnector.API_VERSION + "/contexts/"
|
|
66
66
|
},
|
|
67
67
|
isLanguageInfoRequired: true,
|
|
68
|
-
loadFeatures: function
|
|
69
|
-
return BackendConnector.loadFeatures.call(KeyUserConnector, mPropertyBag).then(function
|
|
68
|
+
loadFeatures: function(mPropertyBag) {
|
|
69
|
+
return BackendConnector.loadFeatures.call(KeyUserConnector, mPropertyBag).then(function(oFeatures) {
|
|
70
70
|
oFeatures.isContextSharingEnabled = true;
|
|
71
71
|
return oFeatures;
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
|
|
75
|
-
getContexts: function
|
|
75
|
+
getContexts: function(mPropertyBag) {
|
|
76
76
|
var aParameters = ["type", "$skip", "$filter"];
|
|
77
77
|
var mParameters = _pick(mPropertyBag, aParameters);
|
|
78
78
|
|
|
79
79
|
var sContextsUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.CONTEXTS, mPropertyBag, mParameters);
|
|
80
|
-
return InitialUtils.sendRequest(sContextsUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
80
|
+
return InitialUtils.sendRequest(sContextsUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
81
81
|
return oResult.response;
|
|
82
82
|
});
|
|
83
83
|
},
|
|
84
84
|
|
|
85
|
-
loadContextDescriptions: function
|
|
85
|
+
loadContextDescriptions: function(mPropertyBag) {
|
|
86
86
|
var mParameters = {};
|
|
87
87
|
InitialUtils.addLanguageInfo(mParameters);
|
|
88
88
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
mPropertyBag.payload = JSON.stringify(mPropertyBag.flexObjects);
|
|
91
91
|
mPropertyBag.dataType = "json";
|
|
92
92
|
mPropertyBag.contentType = "application/json; charset=utf-8";
|
|
93
|
-
return WriteUtils.sendRequest(sContextsUrl, "POST", mPropertyBag).then(function
|
|
93
|
+
return WriteUtils.sendRequest(sContextsUrl, "POST", mPropertyBag).then(function(oResult) {
|
|
94
94
|
return oResult.response;
|
|
95
95
|
});
|
|
96
96
|
},
|
|
@@ -101,11 +101,11 @@ sap.ui.define([
|
|
|
101
101
|
* @returns {Promise<boolean>} Promise resolves with true
|
|
102
102
|
* @deprecated
|
|
103
103
|
*/
|
|
104
|
-
isContextSharingEnabled: function
|
|
104
|
+
isContextSharingEnabled: function() {
|
|
105
105
|
return Promise.resolve(true);
|
|
106
106
|
},
|
|
107
107
|
|
|
108
|
-
getFlexInfo: function
|
|
108
|
+
getFlexInfo: function(mPropertyBag) {
|
|
109
109
|
return FlexInfoSession.get(mPropertyBag.selector) || {};
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -131,37 +131,37 @@ sap.ui.define([
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
KeyUserConnector.versions = {
|
|
134
|
-
load: function
|
|
134
|
+
load: function(mPropertyBag) {
|
|
135
135
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
136
136
|
var mParameters = {};
|
|
137
137
|
InitialUtils.addLanguageInfo(mParameters);
|
|
138
138
|
mParameters.limit = mPropertyBag.limit;
|
|
139
139
|
var sVersionsUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.VERSIONS.GET, mPropertyBag, mParameters);
|
|
140
|
-
return InitialUtils.sendRequest(sVersionsUrl, "GET", mPropertyBag).then(function
|
|
141
|
-
return oResult.response.versions.map(function
|
|
140
|
+
return InitialUtils.sendRequest(sVersionsUrl, "GET", mPropertyBag).then(function(oResult) {
|
|
141
|
+
return oResult.response.versions.map(function(oVersion) {
|
|
142
142
|
return renameVersionNumberProperty(oVersion);
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
},
|
|
146
|
-
activate: function
|
|
146
|
+
activate: function(mPropertyBag) {
|
|
147
147
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
148
148
|
_enhancePropertyBagForDraftActivation(mPropertyBag);
|
|
149
149
|
var mParameters = {version: mPropertyBag.version};
|
|
150
150
|
InitialUtils.addLanguageInfo(mParameters);
|
|
151
151
|
var sVersionsUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.VERSIONS.ACTIVATE, mPropertyBag, mParameters);
|
|
152
|
-
return WriteUtils.sendRequest(sVersionsUrl, "POST", mPropertyBag).then(function
|
|
152
|
+
return WriteUtils.sendRequest(sVersionsUrl, "POST", mPropertyBag).then(function(oResult) {
|
|
153
153
|
var oVersion = oResult.response;
|
|
154
154
|
return renameVersionNumberProperty(oVersion);
|
|
155
155
|
});
|
|
156
156
|
},
|
|
157
|
-
discardDraft: function
|
|
157
|
+
discardDraft: function(mPropertyBag) {
|
|
158
158
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
159
159
|
var sVersionsUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.VERSIONS.DISCARD, mPropertyBag);
|
|
160
160
|
return WriteUtils.sendRequest(sVersionsUrl, "DELETE", mPropertyBag);
|
|
161
161
|
},
|
|
162
|
-
publish: function
|
|
162
|
+
publish: function(mPropertyBag) {
|
|
163
163
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.fl");
|
|
164
|
-
var fnHandleAllErrors = function
|
|
164
|
+
var fnHandleAllErrors = function(oError) {
|
|
165
165
|
BusyIndicator.hide();
|
|
166
166
|
var sMessage = oResourceBundle.getText("MSG_CF_PUBLISH_ERROR", oError ? [oError.message || oError] : undefined);
|
|
167
167
|
var sTitle = oResourceBundle.getText("HEADER_TRANSPORT_ERROR");
|
|
@@ -177,15 +177,15 @@ sap.ui.define([
|
|
|
177
177
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
178
178
|
var mParameters = {version: mPropertyBag.version};
|
|
179
179
|
var sVersionsUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.VERSIONS.PUBLISH, mPropertyBag, mParameters);
|
|
180
|
-
return WriteUtils.sendRequest(sVersionsUrl, "POST", mPropertyBag).then(function
|
|
180
|
+
return WriteUtils.sendRequest(sVersionsUrl, "POST", mPropertyBag).then(function() {
|
|
181
181
|
BusyIndicator.hide();
|
|
182
182
|
return oResourceBundle.getText("MSG_CF_PUBLISH_SUCCESS");
|
|
183
|
-
})
|
|
183
|
+
}).catch(fnHandleAllErrors);
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
KeyUserConnector.translation = {
|
|
188
|
-
getTexts: function
|
|
188
|
+
getTexts: function(mPropertyBag) {
|
|
189
189
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
190
190
|
var mParameters = _pick(mPropertyBag, ["sourceLanguage", "targetLanguage"]);
|
|
191
191
|
var sTranslationUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.TRANSLATION.DOWNLOAD, mPropertyBag, mParameters);
|
|
@@ -194,7 +194,7 @@ sap.ui.define([
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
|
|
197
|
-
getSourceLanguages: function
|
|
197
|
+
getSourceLanguages: function(mPropertyBag) {
|
|
198
198
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
199
199
|
var mParameters = {};
|
|
200
200
|
var sTranslationUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.TRANSLATION.GET_SOURCELANGUAGE, mPropertyBag, mParameters);
|
|
@@ -203,14 +203,13 @@ sap.ui.define([
|
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
205
|
|
|
206
|
-
postTranslationTexts: function
|
|
206
|
+
postTranslationTexts: function(mPropertyBag) {
|
|
207
207
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
208
208
|
var sTranslationUrl = InitialUtils.getUrl(KeyUserConnector.ROUTES.TRANSLATION.UPLOAD, mPropertyBag, {});
|
|
209
209
|
return InitialUtils.sendRequest(sTranslationUrl, "POST", mPropertyBag);
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
|
|
214
213
|
KeyUserConnector.initialConnector = InitialConnector;
|
|
215
214
|
return KeyUserConnector;
|
|
216
215
|
});
|
|
@@ -104,7 +104,7 @@ sap.ui.define([
|
|
|
104
104
|
}
|
|
105
105
|
InitialUtils.addSAPLogonLanguageInfo(mParameters);
|
|
106
106
|
InitialConnector._addClientInfo(mParameters);
|
|
107
|
-
//single update --> fileName needs to be in the url
|
|
107
|
+
// single update --> fileName needs to be in the url
|
|
108
108
|
if (mPropertyBag.flexObject && !mPropertyBag.isAppVariant) {
|
|
109
109
|
mPropertyBag.fileName = mPropertyBag.flexObject.fileName;
|
|
110
110
|
}
|
|
@@ -144,7 +144,7 @@ sap.ui.define([
|
|
|
144
144
|
var oTransportInfo = _prepareAppVariantSpecificChange(mPropertyBag.appVariant);
|
|
145
145
|
oTransportSelectionPromise = new TransportSelection().openTransportSelection(oTransportInfo);
|
|
146
146
|
}
|
|
147
|
-
return oTransportSelectionPromise.then(function
|
|
147
|
+
return oTransportSelectionPromise.then(function(oTransportInfo) {
|
|
148
148
|
if (oTransportInfo === "cancel") {
|
|
149
149
|
return Promise.reject("cancel");
|
|
150
150
|
}
|
|
@@ -166,7 +166,7 @@ sap.ui.define([
|
|
|
166
166
|
*
|
|
167
167
|
* @namespace sap.ui.fl.write._internal.connectors.LrepConnector
|
|
168
168
|
* @since 1.67
|
|
169
|
-
* @version 1.
|
|
169
|
+
* @version 1.117.0
|
|
170
170
|
* @private
|
|
171
171
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
172
172
|
*/
|
|
@@ -187,18 +187,18 @@ sap.ui.define([
|
|
|
187
187
|
* @param {string} [mPropertyBag.changeTypes] Change types of the changes which should be reset (comma-separated list)
|
|
188
188
|
* @returns {Promise} Promise resolves as soon as the reset has completed
|
|
189
189
|
*/
|
|
190
|
-
reset: function
|
|
191
|
-
BusyIndicator.show(0); //Reset takes a long time with app descriptor changes, so a BusyIndicator is needed.
|
|
190
|
+
reset: function(mPropertyBag) {
|
|
191
|
+
BusyIndicator.show(0); // Reset takes a long time with app descriptor changes, so a BusyIndicator is needed.
|
|
192
192
|
var aChanges = [];
|
|
193
|
-
var oTransportSelectionPromise = Promise.resolve(); //By default, no transport needed for USER layer
|
|
193
|
+
var oTransportSelectionPromise = Promise.resolve(); // By default, no transport needed for USER layer
|
|
194
194
|
|
|
195
195
|
if (mPropertyBag.layer !== Layer.USER) {
|
|
196
196
|
aChanges = mPropertyBag.changes;
|
|
197
|
-
oTransportSelectionPromise = Settings.getInstance().then(function
|
|
197
|
+
oTransportSelectionPromise = Settings.getInstance().then(function(oSettings) {
|
|
198
198
|
if (!oSettings.isProductiveSystem()) {
|
|
199
|
-
return new TransportSelection().setTransports(aChanges, Component.get(mPropertyBag.reference)).then(function
|
|
200
|
-
//Make sure we include one request in case of mixed changes (local and transported)
|
|
201
|
-
aChanges.some(function
|
|
199
|
+
return new TransportSelection().setTransports(aChanges, Component.get(mPropertyBag.reference)).then(function() {
|
|
200
|
+
// Make sure we include one request in case of mixed changes (local and transported)
|
|
201
|
+
aChanges.some(function(oChange) {
|
|
202
202
|
if (oChange.getRequest()) {
|
|
203
203
|
mPropertyBag.changelist = oChange.getRequest();
|
|
204
204
|
return true;
|
|
@@ -210,8 +210,8 @@ sap.ui.define([
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
return oTransportSelectionPromise.then(function
|
|
214
|
-
BusyIndicator.show(0); //Re-display the busy indicator in case it was hide by transport selection
|
|
213
|
+
return oTransportSelectionPromise.then(function() {
|
|
214
|
+
BusyIndicator.show(0); // Re-display the busy indicator in case it was hide by transport selection
|
|
215
215
|
var aParameters = ["reference", "layer", "changelist", "generator"];
|
|
216
216
|
var mParameters = _pick(mPropertyBag, aParameters);
|
|
217
217
|
|
|
@@ -231,23 +231,22 @@ sap.ui.define([
|
|
|
231
231
|
InitialConnector,
|
|
232
232
|
sTokenUrl
|
|
233
233
|
);
|
|
234
|
-
return WriteUtils.sendRequest(sResetUrl, "DELETE", oRequestOption).then(function
|
|
234
|
+
return WriteUtils.sendRequest(sResetUrl, "DELETE", oRequestOption).then(function(oResponse) {
|
|
235
235
|
if (oResponse && oResponse.response) {
|
|
236
|
-
oResponse.response.forEach(function
|
|
236
|
+
oResponse.response.forEach(function(oContentId) {
|
|
237
237
|
oContentId.fileName = oContentId.name;
|
|
238
238
|
delete oContentId.name;
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
BusyIndicator.hide();
|
|
242
242
|
return oResponse;
|
|
243
|
-
}).catch(function
|
|
243
|
+
}).catch(function(oError) {
|
|
244
244
|
BusyIndicator.hide();
|
|
245
245
|
return Promise.reject(oError);
|
|
246
246
|
});
|
|
247
247
|
});
|
|
248
248
|
},
|
|
249
249
|
|
|
250
|
-
|
|
251
250
|
/**
|
|
252
251
|
* Publish flexibility files for a given application and layer.
|
|
253
252
|
*
|
|
@@ -265,10 +264,10 @@ sap.ui.define([
|
|
|
265
264
|
* - <sMessage> when all the artifacts are successfully transported fl will return the message to show
|
|
266
265
|
* - "Error" in case of a problem
|
|
267
266
|
*/
|
|
268
|
-
publish: function
|
|
267
|
+
publish: function(mPropertyBag) {
|
|
269
268
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.fl");
|
|
270
269
|
|
|
271
|
-
var fnHandleAllErrors = function
|
|
270
|
+
var fnHandleAllErrors = function(oError) {
|
|
272
271
|
BusyIndicator.hide();
|
|
273
272
|
var sMessage = oResourceBundle.getText("MSG_TRANSPORT_ERROR", oError ? [oError.message || oError] : undefined);
|
|
274
273
|
var sTitle = oResourceBundle.getText("HEADER_TRANSPORT_ERROR");
|
|
@@ -283,7 +282,7 @@ sap.ui.define([
|
|
|
283
282
|
|
|
284
283
|
var oTransportSelection = new TransportSelection();
|
|
285
284
|
return oTransportSelection.openTransportSelection(null, mPropertyBag.transportDialogSettings.rootControl, mPropertyBag.transportDialogSettings.styleClass)
|
|
286
|
-
.then(function
|
|
285
|
+
.then(function(oTransportInfo) {
|
|
287
286
|
if (oTransportSelection.checkTransportInfo(oTransportInfo)) {
|
|
288
287
|
BusyIndicator.show(0);
|
|
289
288
|
var oContentParameters = {
|
|
@@ -295,7 +294,7 @@ sap.ui.define([
|
|
|
295
294
|
mPropertyBag.localChanges,
|
|
296
295
|
mPropertyBag.appVariantDescriptors,
|
|
297
296
|
oContentParameters
|
|
298
|
-
).then(function
|
|
297
|
+
).then(function() {
|
|
299
298
|
BusyIndicator.hide();
|
|
300
299
|
if (oTransportInfo.transport === "ATO_NOTIFICATION") {
|
|
301
300
|
return oResourceBundle.getText("MSG_ATO_NOTIFICATION");
|
|
@@ -304,7 +303,7 @@ sap.ui.define([
|
|
|
304
303
|
});
|
|
305
304
|
}
|
|
306
305
|
return "Cancel";
|
|
307
|
-
})
|
|
306
|
+
}).catch(fnHandleAllErrors);
|
|
308
307
|
},
|
|
309
308
|
|
|
310
309
|
/**
|
|
@@ -318,14 +317,14 @@ sap.ui.define([
|
|
|
318
317
|
* @param {string} mPropertyBag.url Configured url for the connector
|
|
319
318
|
* @returns {Promise} Promise resolves as soon as flex info has been retrieved
|
|
320
319
|
*/
|
|
321
|
-
getFlexInfo: function
|
|
320
|
+
getFlexInfo: function(mPropertyBag) {
|
|
322
321
|
var aParameters = ["layer"];
|
|
323
322
|
var mParameters = _pick(mPropertyBag, aParameters);
|
|
324
323
|
|
|
325
324
|
InitialConnector._addClientInfo(mParameters);
|
|
326
325
|
|
|
327
326
|
var sDataUrl = InitialUtils.getUrl(ROUTES.FLEX_INFO, mPropertyBag, mParameters);
|
|
328
|
-
return InitialUtils.sendRequest(sDataUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
327
|
+
return InitialUtils.sendRequest(sDataUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
329
328
|
return oResult.response;
|
|
330
329
|
});
|
|
331
330
|
},
|
|
@@ -339,14 +338,14 @@ sap.ui.define([
|
|
|
339
338
|
* @param {string} [mPropertyBag.$filter] Filters full raw data
|
|
340
339
|
* @returns {Promise<object>} Promise resolves as soon as context has been retrieved
|
|
341
340
|
*/
|
|
342
|
-
getContexts: function
|
|
341
|
+
getContexts: function(mPropertyBag) {
|
|
343
342
|
var aParameters = ["type", "$skip", "$filter"];
|
|
344
343
|
var mParameters = _pick(mPropertyBag, aParameters);
|
|
345
344
|
|
|
346
345
|
InitialConnector._addClientInfo(mParameters);
|
|
347
346
|
|
|
348
347
|
var sContextsUrl = InitialUtils.getUrl(ROUTES.CONTEXTS, mPropertyBag, mParameters);
|
|
349
|
-
return InitialUtils.sendRequest(sContextsUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
348
|
+
return InitialUtils.sendRequest(sContextsUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
350
349
|
return oResult.response;
|
|
351
350
|
});
|
|
352
351
|
},
|
|
@@ -358,10 +357,10 @@ sap.ui.define([
|
|
|
358
357
|
* @param {string} mPropertyBag.flexObjects Payload for the post request
|
|
359
358
|
* @returns {Promise<object>} Promise resolves as soon as context descriptions have been retrieved
|
|
360
359
|
*/
|
|
361
|
-
loadContextDescriptions: function
|
|
360
|
+
loadContextDescriptions: function(mPropertyBag) {
|
|
362
361
|
mPropertyBag.method = "POST";
|
|
363
362
|
mPropertyBag.isContextSharing = true;
|
|
364
|
-
return _doWrite(mPropertyBag).then(function
|
|
363
|
+
return _doWrite(mPropertyBag).then(function(oResult) {
|
|
365
364
|
return oResult.response;
|
|
366
365
|
});
|
|
367
366
|
},
|
|
@@ -372,7 +371,7 @@ sap.ui.define([
|
|
|
372
371
|
* @returns {Promise<boolean>} Promise resolves with true
|
|
373
372
|
* @deprecated
|
|
374
373
|
*/
|
|
375
|
-
isContextSharingEnabled: function
|
|
374
|
+
isContextSharingEnabled: function() {
|
|
376
375
|
return Promise.resolve(true);
|
|
377
376
|
},
|
|
378
377
|
|
|
@@ -383,7 +382,7 @@ sap.ui.define([
|
|
|
383
382
|
* @param {string} mPropertyBag.url Configured url for the connector
|
|
384
383
|
* @returns {Promise<object>} Promise resolves with an object containing the flex features
|
|
385
384
|
*/
|
|
386
|
-
loadFeatures: function
|
|
385
|
+
loadFeatures: function(mPropertyBag) {
|
|
387
386
|
if (InitialConnector.settings) {
|
|
388
387
|
return Promise.resolve(InitialConnector.settings);
|
|
389
388
|
}
|
|
@@ -392,7 +391,7 @@ sap.ui.define([
|
|
|
392
391
|
InitialConnector._addClientInfo(mParameters);
|
|
393
392
|
|
|
394
393
|
var sFeaturesUrl = InitialUtils.getUrl(ROUTES.SETTINGS, mPropertyBag, mParameters);
|
|
395
|
-
return InitialUtils.sendRequest(sFeaturesUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
394
|
+
return InitialUtils.sendRequest(sFeaturesUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
396
395
|
oResult.response.isVariantAdaptationEnabled = !!oResult.response.isPublicLayerAvailable;
|
|
397
396
|
oResult.response.isContextSharingEnabled = true;
|
|
398
397
|
oResult.response.isLocalResetEnabled = true;
|
|
@@ -411,7 +410,7 @@ sap.ui.define([
|
|
|
411
410
|
* @param {boolean} [mPropertyBag.isLegacyVariant] Whether the new flex data has file type .variant or not
|
|
412
411
|
* @returns {Promise} Promise resolves as soon as the writing was completed
|
|
413
412
|
*/
|
|
414
|
-
write: function
|
|
413
|
+
write: function(mPropertyBag) {
|
|
415
414
|
mPropertyBag.method = "POST";
|
|
416
415
|
return _doWrite(mPropertyBag);
|
|
417
416
|
},
|
|
@@ -427,7 +426,7 @@ sap.ui.define([
|
|
|
427
426
|
* @param {boolean} [mPropertyBag.isLegacyVariant] Whether the new flex data has file type .variant or not
|
|
428
427
|
* @returns {Promise} Promise resolves as soon as the writing was completed
|
|
429
428
|
*/
|
|
430
|
-
condense: function
|
|
429
|
+
condense: function(mPropertyBag) {
|
|
431
430
|
mPropertyBag.method = "POST";
|
|
432
431
|
mPropertyBag.isCondensingEnabled = true;
|
|
433
432
|
return _doWrite(mPropertyBag);
|
|
@@ -442,7 +441,7 @@ sap.ui.define([
|
|
|
442
441
|
* @param {string} [mPropertyBag.transport] The transport ID
|
|
443
442
|
* @returns {Promise} Resolves as soon as the writing is completed without data
|
|
444
443
|
*/
|
|
445
|
-
update: function
|
|
444
|
+
update: function(mPropertyBag) {
|
|
446
445
|
if (mPropertyBag.flexObject.fileType === "variant") {
|
|
447
446
|
mPropertyBag.isLegacyVariant = true;
|
|
448
447
|
}
|
|
@@ -460,7 +459,7 @@ sap.ui.define([
|
|
|
460
459
|
* @param {string} [mPropertyBag.url] Configured url for the connector
|
|
461
460
|
* @returns {Promise} Resolves as soon as the deletion is completed without data
|
|
462
461
|
*/
|
|
463
|
-
remove: function
|
|
462
|
+
remove: function(mPropertyBag) {
|
|
464
463
|
var mParameters = {
|
|
465
464
|
namespace: mPropertyBag.flexObject.namespace,
|
|
466
465
|
layer: mPropertyBag.flexObject.layer
|
|
@@ -475,7 +474,7 @@ sap.ui.define([
|
|
|
475
474
|
mPropertyBag.fileName = mPropertyBag.flexObject.fileName;
|
|
476
475
|
var sRoute = mPropertyBag.flexObject.fileType === "variant" ? ROUTES.VARIANTS : ROUTES.CHANGES;
|
|
477
476
|
var sDeleteUrl = InitialUtils.getUrl(sRoute, mPropertyBag, mParameters);
|
|
478
|
-
//decode url before sending to ABAP back end which does not expect encoded special character such as "/" in the namespace
|
|
477
|
+
// decode url before sending to ABAP back end which does not expect encoded special character such as "/" in the namespace
|
|
479
478
|
sDeleteUrl = decodeURIComponent(sDeleteUrl);
|
|
480
479
|
delete mPropertyBag.fileName;
|
|
481
480
|
var sTokenUrl = InitialUtils.getUrl(ROUTES.TOKEN, mPropertyBag);
|
|
@@ -489,13 +488,13 @@ sap.ui.define([
|
|
|
489
488
|
return WriteUtils.sendRequest(sDeleteUrl, "DELETE", oRequestOption);
|
|
490
489
|
},
|
|
491
490
|
appVariant: {
|
|
492
|
-
getManifirstSupport: function
|
|
491
|
+
getManifirstSupport: function(mPropertyBag) {
|
|
493
492
|
var sManifirstUrl = ROUTES.MANI_FIRST_SUPPORTED + "/?id=" + mPropertyBag.appId;
|
|
494
|
-
return InitialUtils.sendRequest(sManifirstUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
493
|
+
return InitialUtils.sendRequest(sManifirstUrl, "GET", {initialConnector: InitialConnector}).then(function(oResponse) {
|
|
495
494
|
return oResponse.response;
|
|
496
495
|
});
|
|
497
496
|
},
|
|
498
|
-
getManifest: function
|
|
497
|
+
getManifest: function(mPropertyBag) {
|
|
499
498
|
var sAppVariantManifestUrl = mPropertyBag.appVarUrl;
|
|
500
499
|
var oRequestOption = WriteUtils.getRequestOptions(
|
|
501
500
|
InitialConnector,
|
|
@@ -505,7 +504,7 @@ sap.ui.define([
|
|
|
505
504
|
);
|
|
506
505
|
return WriteUtils.sendRequest(sAppVariantManifestUrl, "GET", oRequestOption);
|
|
507
506
|
},
|
|
508
|
-
load: function
|
|
507
|
+
load: function(mPropertyBag) {
|
|
509
508
|
var sAppVariantUrl = InitialUtils.getUrl(ROUTES.APPVARIANTS, mPropertyBag);
|
|
510
509
|
var oRequestOption = WriteUtils.getRequestOptions(
|
|
511
510
|
InitialConnector,
|
|
@@ -515,12 +514,12 @@ sap.ui.define([
|
|
|
515
514
|
);
|
|
516
515
|
return WriteUtils.sendRequest(sAppVariantUrl, "GET", oRequestOption);
|
|
517
516
|
},
|
|
518
|
-
create: function
|
|
517
|
+
create: function(mPropertyBag) {
|
|
519
518
|
mPropertyBag.method = "POST";
|
|
520
519
|
mPropertyBag.isAppVariant = true;
|
|
521
520
|
return _doWrite(mPropertyBag);
|
|
522
521
|
},
|
|
523
|
-
assignCatalogs: function
|
|
522
|
+
assignCatalogs: function(mPropertyBag) {
|
|
524
523
|
var mParameters = {};
|
|
525
524
|
mParameters.action = mPropertyBag.action;
|
|
526
525
|
delete mPropertyBag.action;
|
|
@@ -539,7 +538,7 @@ sap.ui.define([
|
|
|
539
538
|
);
|
|
540
539
|
return WriteUtils.sendRequest(sCatalogAssignmentUrl, "POST", oRequestOption);
|
|
541
540
|
},
|
|
542
|
-
unassignCatalogs: function
|
|
541
|
+
unassignCatalogs: function(mPropertyBag) {
|
|
543
542
|
var mParameters = {};
|
|
544
543
|
mParameters.action = mPropertyBag.action;
|
|
545
544
|
delete mPropertyBag.action;
|
|
@@ -556,8 +555,8 @@ sap.ui.define([
|
|
|
556
555
|
);
|
|
557
556
|
return WriteUtils.sendRequest(sCatalogUnAssignmentUrl, "POST", oRequestOption);
|
|
558
557
|
},
|
|
559
|
-
update: function
|
|
560
|
-
return _selectTransportForAppVariant(mPropertyBag).then(function
|
|
558
|
+
update: function(mPropertyBag) {
|
|
559
|
+
return _selectTransportForAppVariant(mPropertyBag).then(function(sTransport) {
|
|
561
560
|
if (sTransport) {
|
|
562
561
|
mPropertyBag.transport = sTransport;
|
|
563
562
|
}
|
|
@@ -567,8 +566,8 @@ sap.ui.define([
|
|
|
567
566
|
return _doWrite(mPropertyBag);
|
|
568
567
|
});
|
|
569
568
|
},
|
|
570
|
-
remove: function
|
|
571
|
-
return _selectTransportForAppVariant(mPropertyBag).then(function
|
|
569
|
+
remove: function(mPropertyBag) {
|
|
570
|
+
return _selectTransportForAppVariant(mPropertyBag).then(function(sTransport) {
|
|
572
571
|
var mParameters = {};
|
|
573
572
|
if (sTransport) {
|
|
574
573
|
mParameters.changelist = sTransport;
|
|
@@ -587,7 +586,7 @@ sap.ui.define([
|
|
|
587
586
|
return WriteUtils.sendRequest(sDeleteUrl, "DELETE", oRequestOption);
|
|
588
587
|
});
|
|
589
588
|
},
|
|
590
|
-
list: function
|
|
589
|
+
list: function(mPropertyBag) {
|
|
591
590
|
var mParameters = {};
|
|
592
591
|
|
|
593
592
|
mParameters.layer = mPropertyBag.layer;
|
|
@@ -630,7 +629,7 @@ sap.ui.define([
|
|
|
630
629
|
InitialConnector._addClientInfo(mParameters);
|
|
631
630
|
mPropertyBag.reference = mPropertyBag.appId + ADAPTATIONS_SEGMENTATION;
|
|
632
631
|
var sDataUrl = InitialUtils.getUrl(ROUTES.CONTEXT_BASED_ADAPTATION, mPropertyBag, mParameters);
|
|
633
|
-
return InitialUtils.sendRequest(sDataUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
632
|
+
return InitialUtils.sendRequest(sDataUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
634
633
|
return oResult.response;
|
|
635
634
|
});
|
|
636
635
|
},
|
|
@@ -642,7 +641,7 @@ sap.ui.define([
|
|
|
642
641
|
}
|
|
643
642
|
},
|
|
644
643
|
ui2Personalization: {
|
|
645
|
-
create: function
|
|
644
|
+
create: function(mPropertyBag) {
|
|
646
645
|
mPropertyBag.initialConnector = this.initialConnector;
|
|
647
646
|
var sPrefix = Utils.getLrepUrl();
|
|
648
647
|
var oRequestOptions = WriteUtils.getRequestOptions(
|
|
@@ -654,7 +653,7 @@ sap.ui.define([
|
|
|
654
653
|
var sUrl = sPrefix + ROUTES.UI2PERSONALIZATION;
|
|
655
654
|
return WriteUtils.sendRequest(sUrl, "PUT", oRequestOptions);
|
|
656
655
|
},
|
|
657
|
-
remove: function
|
|
656
|
+
remove: function(mPropertyBag) {
|
|
658
657
|
mPropertyBag.initialConnector = this.initialConnector;
|
|
659
658
|
var sUrl = InitialUtils.getUrl(ROUTES.UI2PERSONALIZATION, {
|
|
660
659
|
url: Utils.getLrepUrl()
|
|
@@ -667,7 +666,7 @@ sap.ui.define([
|
|
|
667
666
|
}
|
|
668
667
|
},
|
|
669
668
|
versions: {
|
|
670
|
-
load: function
|
|
669
|
+
load: function(mPropertyBag) {
|
|
671
670
|
var oRequestOption = WriteUtils.getRequestOptions(
|
|
672
671
|
InitialConnector,
|
|
673
672
|
InitialUtils.getUrl(ROUTES.TOKEN, mPropertyBag)
|
|
@@ -676,13 +675,13 @@ sap.ui.define([
|
|
|
676
675
|
InitialUtils.addSAPLogonLanguageInfo(mParameters);
|
|
677
676
|
mParameters.limit = mPropertyBag.limit;
|
|
678
677
|
var sVersionsUrl = InitialUtils.getUrl(ROUTES.VERSIONS.GET, mPropertyBag, mParameters);
|
|
679
|
-
return WriteUtils.sendRequest(sVersionsUrl, "GET", oRequestOption).then(function
|
|
680
|
-
return oResult.response.versions.map(function
|
|
678
|
+
return WriteUtils.sendRequest(sVersionsUrl, "GET", oRequestOption).then(function(oResult) {
|
|
679
|
+
return oResult.response.versions.map(function(oVersion) {
|
|
681
680
|
return renameVersionNumberProperty(oVersion);
|
|
682
681
|
});
|
|
683
682
|
});
|
|
684
683
|
},
|
|
685
|
-
activate: function
|
|
684
|
+
activate: function(mPropertyBag) {
|
|
686
685
|
var oRequestOption = WriteUtils.getRequestOptions(
|
|
687
686
|
InitialConnector,
|
|
688
687
|
InitialUtils.getUrl(ROUTES.TOKEN, mPropertyBag),
|
|
@@ -693,12 +692,12 @@ sap.ui.define([
|
|
|
693
692
|
var mParameters = {version: mPropertyBag.version};
|
|
694
693
|
InitialUtils.addSAPLogonLanguageInfo(mParameters);
|
|
695
694
|
var sVersionsUrl = InitialUtils.getUrl(ROUTES.VERSIONS.ACTIVATE, mPropertyBag, mParameters);
|
|
696
|
-
return WriteUtils.sendRequest(sVersionsUrl, "POST", oRequestOption).then(function
|
|
695
|
+
return WriteUtils.sendRequest(sVersionsUrl, "POST", oRequestOption).then(function(oResult) {
|
|
697
696
|
var oVersion = oResult.response;
|
|
698
697
|
return renameVersionNumberProperty(oVersion);
|
|
699
698
|
});
|
|
700
699
|
},
|
|
701
|
-
discardDraft: function
|
|
700
|
+
discardDraft: function(mPropertyBag) {
|
|
702
701
|
var oRequestOption = WriteUtils.getRequestOptions(
|
|
703
702
|
InitialConnector,
|
|
704
703
|
InitialUtils.getUrl(ROUTES.TOKEN, mPropertyBag)
|
|
@@ -706,10 +705,10 @@ sap.ui.define([
|
|
|
706
705
|
var sVersionsUrl = InitialUtils.getUrl(ROUTES.VERSIONS.DISCARD, mPropertyBag);
|
|
707
706
|
return WriteUtils.sendRequest(sVersionsUrl, "DELETE", oRequestOption);
|
|
708
707
|
},
|
|
709
|
-
publish: function
|
|
708
|
+
publish: function(mPropertyBag) {
|
|
710
709
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.fl");
|
|
711
710
|
|
|
712
|
-
var fnHandleAllErrors = function
|
|
711
|
+
var fnHandleAllErrors = function(oError) {
|
|
713
712
|
BusyIndicator.hide();
|
|
714
713
|
var sMessage = oResourceBundle.getText("MSG_TRANSPORT_ERROR", oError ? [oError.message || oError] : undefined);
|
|
715
714
|
var sTitle = oResourceBundle.getText("HEADER_TRANSPORT_ERROR");
|
|
@@ -724,7 +723,7 @@ sap.ui.define([
|
|
|
724
723
|
|
|
725
724
|
var oTransportSelection = new TransportSelection();
|
|
726
725
|
return oTransportSelection.openTransportSelection(null, mPropertyBag.rootControl, mPropertyBag.styleClass, false)
|
|
727
|
-
.then(function
|
|
726
|
+
.then(function(oTransportInfo) {
|
|
728
727
|
if (oTransportSelection.checkTransportInfo(oTransportInfo)) {
|
|
729
728
|
BusyIndicator.show(0);
|
|
730
729
|
|
|
@@ -756,7 +755,7 @@ sap.ui.define([
|
|
|
756
755
|
"application/json; charset=utf-8", "json"
|
|
757
756
|
);
|
|
758
757
|
return WriteUtils.sendRequest(sUrl, "POST", oRequestOption)
|
|
759
|
-
.then(function
|
|
758
|
+
.then(function() {
|
|
760
759
|
BusyIndicator.hide();
|
|
761
760
|
if (oTransportInfo.transport === "ATO_NOTIFICATION") {
|
|
762
761
|
return oResourceBundle.getText("MSG_ATO_NOTIFICATION");
|
|
@@ -765,7 +764,7 @@ sap.ui.define([
|
|
|
765
764
|
});
|
|
766
765
|
}
|
|
767
766
|
return "Cancel";
|
|
768
|
-
})
|
|
767
|
+
}).catch(fnHandleAllErrors);
|
|
769
768
|
}
|
|
770
769
|
}
|
|
771
770
|
});
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @namespace sap.ui.fl.write._internal.connectors.NeoLrepConnector
|
|
27
27
|
* @since 1.81
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.117.0
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
31
31
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
*
|
|
39
39
|
* @returns {Promise<boolean>} Promise resolves with false
|
|
40
40
|
*/
|
|
41
|
-
isContextSharingEnabled: function
|
|
41
|
+
isContextSharingEnabled: function() {
|
|
42
42
|
return Promise.resolve(false);
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
@@ -69,14 +69,14 @@ sap.ui.define([
|
|
|
69
69
|
return Promise.reject("contextBasedAdaptation.load is not implemented");
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
loadFeatures: function
|
|
72
|
+
loadFeatures: function(mPropertyBag) {
|
|
73
73
|
if (InitialConnector.settings) {
|
|
74
74
|
return Promise.resolve(InitialConnector.settings);
|
|
75
75
|
}
|
|
76
76
|
var mParameters = {};
|
|
77
77
|
|
|
78
78
|
var sFeaturesUrl = InitialUtils.getUrl(ROUTES.SETTINGS, mPropertyBag, mParameters);
|
|
79
|
-
return InitialUtils.sendRequest(sFeaturesUrl, "GET", {initialConnector: InitialConnector}).then(function
|
|
79
|
+
return InitialUtils.sendRequest(sFeaturesUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
|
|
80
80
|
oResult.response.isContextSharingEnabled = false;
|
|
81
81
|
return oResult.response;
|
|
82
82
|
});
|
|
@@ -24,38 +24,38 @@ sap.ui.define([
|
|
|
24
24
|
*
|
|
25
25
|
* @namespace sap.ui.fl.write._internal.connectors.ObjectPathConnector
|
|
26
26
|
* @since 1.73
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.117.0
|
|
28
28
|
* @private
|
|
29
29
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
30
30
|
*/
|
|
31
31
|
return merge({}, BaseConnector, /** @lends sap.ui.fl.write._internal.connectors.ObjectPathConnector */ {
|
|
32
32
|
layers: [],
|
|
33
|
-
setJsonPath: function
|
|
33
|
+
setJsonPath: function(sInitialJsonPath) {
|
|
34
34
|
sJsonPath = sInitialJsonPath;
|
|
35
35
|
},
|
|
36
36
|
|
|
37
|
-
loadFlexData: function
|
|
37
|
+
loadFlexData: function(mPropertyBag) {
|
|
38
38
|
var sPath = sJsonPath || mPropertyBag.path;
|
|
39
39
|
if (sPath) {
|
|
40
40
|
return LoaderExtensions.loadResource({
|
|
41
41
|
dataType: "json",
|
|
42
42
|
url: sPath,
|
|
43
43
|
async: true
|
|
44
|
-
}).then(function
|
|
44
|
+
}).then(function(oResponse) {
|
|
45
45
|
return Object.assign(StorageUtils.getEmptyFlexDataResponse(), oResponse);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
return Promise.resolve();
|
|
49
49
|
},
|
|
50
50
|
|
|
51
|
-
loadFeatures: function
|
|
51
|
+
loadFeatures: function(mPropertyBag) {
|
|
52
52
|
var sPath = sJsonPath || mPropertyBag.path;
|
|
53
53
|
if (sPath) {
|
|
54
54
|
return LoaderExtensions.loadResource({
|
|
55
55
|
dataType: "json",
|
|
56
56
|
url: sPath,
|
|
57
57
|
async: true
|
|
58
|
-
}).then(function
|
|
58
|
+
}).then(function(sFlexReference, oResponse) {
|
|
59
59
|
oResponse.componentClassName = sFlexReference;
|
|
60
60
|
return oResponse.settings || {};
|
|
61
61
|
}.bind(null, mPropertyBag.flexReference));
|