@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
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
) {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
|
-
function editIFrame
|
|
17
|
+
function editIFrame(oIFrame/* , mPropertyBag */) {
|
|
18
18
|
var oAddIFrameDialog = new AddIFrameDialog();
|
|
19
19
|
var oInitialSettings = oIFrame.get_settings();
|
|
20
20
|
var mRenameInfo = oIFrame.getRenameInfo();
|
|
@@ -29,73 +29,73 @@ sap.ui.define([
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return AddIFrameDialog.buildUrlBuilderParametersFor(oIFrame)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
.then(function(mURLParameters) {
|
|
33
|
+
mDialogSettings = {
|
|
34
|
+
parameters: mURLParameters,
|
|
35
|
+
frameUrl: oInitialSettings.url,
|
|
36
|
+
frameWidth: oInitialSettings.width,
|
|
37
|
+
frameHeight: oInitialSettings.height,
|
|
38
|
+
title: oInitialSettings.title,
|
|
39
|
+
asContainer: !!oInitialSettings.title,
|
|
40
|
+
updateMode: true
|
|
41
|
+
};
|
|
42
|
+
return oAddIFrameDialog.open(mDialogSettings);
|
|
43
|
+
})
|
|
44
|
+
.then(function(mSettings) {
|
|
45
|
+
if (!mSettings) {
|
|
46
|
+
return []; // No change
|
|
47
|
+
}
|
|
48
|
+
var aChanges = [];
|
|
49
|
+
var bContentChanged = false;
|
|
50
|
+
var oNewContent = {
|
|
51
|
+
url: oInitialSettings.url,
|
|
52
|
+
height: oInitialSettings.height,
|
|
53
|
+
width: oInitialSettings.width
|
|
54
|
+
};
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
if (mSettings.frameHeight + mSettings.frameHeightUnit !== oInitialSettings.height) {
|
|
57
|
+
bContentChanged = true;
|
|
58
|
+
oNewContent.height = mSettings.frameHeight + mSettings.frameHeightUnit;
|
|
59
|
+
}
|
|
60
|
+
if (mSettings.frameWidth + mSettings.frameWidthUnit !== oInitialSettings.width) {
|
|
61
|
+
bContentChanged = true;
|
|
62
|
+
oNewContent.width = mSettings.frameWidth + mSettings.frameWidthUnit;
|
|
63
|
+
}
|
|
64
|
+
if (mSettings.frameUrl !== oInitialSettings.url) {
|
|
65
|
+
bContentChanged = true;
|
|
66
|
+
oNewContent.url = mSettings.frameUrl;
|
|
67
|
+
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
if (bContentChanged) {
|
|
70
|
+
aChanges.push({
|
|
71
|
+
selectorControl: oIFrame,
|
|
72
|
+
changeSpecificData: {
|
|
73
|
+
changeType: "updateIFrame",
|
|
74
|
+
content: oNewContent
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
79
|
+
// If the title changes a rename change must be created
|
|
80
|
+
if (mSettings.title !== oInitialSettings.title) {
|
|
81
|
+
var mRenameChange = {
|
|
82
|
+
selectorControl: Core.byId(mRenameInfo.selectorControlId),
|
|
83
|
+
changeSpecificData: {
|
|
84
|
+
changeType: "rename",
|
|
85
|
+
content: {
|
|
86
|
+
value: mSettings.title
|
|
88
87
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
aChanges.push(mRenameChange);
|
|
91
|
+
}
|
|
92
|
+
return aChanges;
|
|
93
|
+
});
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
return {
|
|
97
97
|
actions: {
|
|
98
|
-
settings: function
|
|
98
|
+
settings: function() {
|
|
99
99
|
return {
|
|
100
100
|
icon: "sap-icon://write-new",
|
|
101
101
|
name: "CTX_EDIT_IFRAME",
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
flUtils
|
|
14
14
|
) {
|
|
15
15
|
"use strict";
|
|
16
|
-
var fnSetControlAttributes = function
|
|
16
|
+
var fnSetControlAttributes = function(oVariantManagement, bDesignTimeMode) {
|
|
17
17
|
var oAppComponent = flUtils.getAppComponentForControl(oVariantManagement);
|
|
18
18
|
var sControlId = oVariantManagement.getId();
|
|
19
19
|
var oModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
@@ -39,9 +39,6 @@ sap.ui.define([
|
|
|
39
39
|
showSetAsDefault: {
|
|
40
40
|
ignore: false
|
|
41
41
|
},
|
|
42
|
-
manualVariantKey: {
|
|
43
|
-
ignore: true
|
|
44
|
-
},
|
|
45
42
|
inErrorState: {
|
|
46
43
|
ignore: false
|
|
47
44
|
},
|
|
@@ -98,7 +95,7 @@ sap.ui.define([
|
|
|
98
95
|
var iDuplicateCount = oModel._getVariantTitleCount(sNewText, sVariantManagementReference) || 0;
|
|
99
96
|
return iDuplicateCount === 0;
|
|
100
97
|
},
|
|
101
|
-
errorMessage: sap.ui.getCore().getLibraryResourceBundle("sap.
|
|
98
|
+
errorMessage: sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("VARIANT_MANAGEMENT_ERROR_DUPLICATE")
|
|
102
99
|
}
|
|
103
100
|
]
|
|
104
101
|
};
|
|
@@ -47,7 +47,6 @@ sap.ui.define([
|
|
|
47
47
|
return oConnectorSpecificPropertyBag;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
50
|
function _shouldAllContextsParameterBeSet(sFlexReference) {
|
|
52
51
|
var oFlexInfoSession = FlexInfoSession.getByReference(sFlexReference);
|
|
53
52
|
// a sign that we are in the RTA mode and allContexts query parameter should be set for flex/data request
|
|
@@ -59,13 +58,13 @@ sap.ui.define([
|
|
|
59
58
|
*
|
|
60
59
|
* @namespace sap.ui.fl.initial._internal.Storage
|
|
61
60
|
* @since 1.67
|
|
62
|
-
* @version 1.
|
|
61
|
+
* @version 1.117.0
|
|
63
62
|
* @private
|
|
64
63
|
* @ui5-restricted sap.ui.fl
|
|
65
64
|
*/
|
|
66
65
|
|
|
67
66
|
function _loadFlexDataFromConnectors(mPropertyBag, aConnectors) {
|
|
68
|
-
var aConnectorPromises = aConnectors.map(function
|
|
67
|
+
var aConnectorPromises = aConnectors.map(function(oConnectorConfig) {
|
|
69
68
|
var oConnectorSpecificPropertyBag = Object.assign({}, mPropertyBag, {
|
|
70
69
|
url: oConnectorConfig.url,
|
|
71
70
|
path: oConnectorConfig.path
|
|
@@ -74,11 +73,11 @@ sap.ui.define([
|
|
|
74
73
|
oConnectorSpecificPropertyBag = _addDraftLayerToResponsibleConnectorsPropertyBag(oConnectorSpecificPropertyBag, oConnectorConfig, mPropertyBag);
|
|
75
74
|
|
|
76
75
|
return oConnectorConfig.loadConnectorModule.loadFlexData(oConnectorSpecificPropertyBag)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
.then(function(oResponse) {
|
|
77
|
+
// ensure an object with the corresponding properties
|
|
78
|
+
return oResponse || StorageUtils.getEmptyFlexDataResponse();
|
|
79
|
+
})
|
|
80
|
+
.catch(StorageUtils.logAndResolveDefault.bind(undefined, StorageUtils.getEmptyFlexDataResponse(), oConnectorConfig, "loadFlexData"));
|
|
82
81
|
});
|
|
83
82
|
|
|
84
83
|
return Promise.all(aConnectorPromises);
|
|
@@ -87,7 +86,7 @@ sap.ui.define([
|
|
|
87
86
|
function _flattenResponses(aResponses) {
|
|
88
87
|
var aFlattenedResponses = [];
|
|
89
88
|
|
|
90
|
-
aResponses.forEach(function
|
|
89
|
+
aResponses.forEach(function(oResponse) {
|
|
91
90
|
if (Array.isArray(oResponse)) {
|
|
92
91
|
aFlattenedResponses = aFlattenedResponses.concat(oResponse);
|
|
93
92
|
} else {
|
|
@@ -99,17 +98,17 @@ sap.ui.define([
|
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
function _disassembleVariantSectionsIfNecessary(aResponses) {
|
|
102
|
-
return aResponses.map(function
|
|
101
|
+
return aResponses.map(function(oResponse) {
|
|
103
102
|
return storageResultDisassemble(oResponse);
|
|
104
103
|
});
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
function _flattenAndMergeResultPromise(aResponses) {
|
|
108
107
|
return Promise.resolve(aResponses)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
.then(_flattenResponses)
|
|
109
|
+
.then(_disassembleVariantSectionsIfNecessary)
|
|
110
|
+
.then(_flattenResponses)
|
|
111
|
+
.then(StorageResultMerger.merge);
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
function _loadFlexDataFromStaticFileConnector(mPropertyBag) {
|
|
@@ -121,25 +120,25 @@ sap.ui.define([
|
|
|
121
120
|
/**
|
|
122
121
|
* Provides the flex bundle data for a given application based on the application reference and its version.
|
|
123
122
|
*
|
|
124
|
-
* @param {
|
|
123
|
+
* @param {object} mPropertyBag properties needed by the connectors
|
|
125
124
|
* @param {string} mPropertyBag.reference reference of the application for which the flex data is requested
|
|
126
125
|
* @param {object} mPropertyBag.partialFlexData contains partial FlexState
|
|
127
126
|
* @param {string} [mPropertyBag.componentName] componentName of the application which may differ from the reference in case of an app variant
|
|
128
127
|
* @returns {Promise<object>} Resolves with the responses from all configured connectors merged into one object
|
|
129
128
|
*/
|
|
130
|
-
Storage.completeFlexData = function
|
|
129
|
+
Storage.completeFlexData = function(mPropertyBag) {
|
|
131
130
|
if (!mPropertyBag || !mPropertyBag.reference) {
|
|
132
131
|
return Promise.reject("No reference was provided");
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
return Promise.all([_loadFlexDataFromStaticFileConnector(mPropertyBag), mPropertyBag.partialFlexData])
|
|
136
|
-
|
|
135
|
+
.then(_flattenAndMergeResultPromise);
|
|
137
136
|
};
|
|
138
137
|
|
|
139
138
|
/**
|
|
140
139
|
* Provides the flex data for a given application based on the configured connectors, the application reference and its version.
|
|
141
140
|
*
|
|
142
|
-
* @param {
|
|
141
|
+
* @param {object} mPropertyBag properties needed by the connectors
|
|
143
142
|
* @param {string} mPropertyBag.reference reference of the application for which the flex data is requested
|
|
144
143
|
* @param {string} [mPropertyBag.componentName] componentName of the application which may differ from the reference in case of an app variant
|
|
145
144
|
* @param {string} [mPropertyBag.cacheKey] cacheKey which can be used to etag / cachebuster the request
|
|
@@ -148,14 +147,14 @@ sap.ui.define([
|
|
|
148
147
|
* @param {string} [mPropertyBag.adaptationId] - Context-based adaptation to be loaded
|
|
149
148
|
* @returns {Promise<object>} Resolves with the responses from all configured connectors merged into one object
|
|
150
149
|
*/
|
|
151
|
-
Storage.loadFlexData = function
|
|
150
|
+
Storage.loadFlexData = function(mPropertyBag) {
|
|
152
151
|
if (!mPropertyBag || !mPropertyBag.reference) {
|
|
153
152
|
return Promise.reject("No reference was provided");
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
return StorageUtils.getLoadConnectors()
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
.then(_loadFlexDataFromConnectors.bind(this, mPropertyBag))
|
|
157
|
+
.then(_flattenAndMergeResultPromise);
|
|
159
158
|
};
|
|
160
159
|
|
|
161
160
|
return Storage;
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @ui5-restricted sap.ui.fl.Cache, sap.ui.fl.apply._internal.flexState.FlexState
|
|
26
26
|
*/
|
|
27
27
|
function concatFlexObjects(aResponses, sPath) {
|
|
28
|
-
var aFlexObjects = aResponses.reduce(function
|
|
28
|
+
var aFlexObjects = aResponses.reduce(function(aFlexObjects, oResponse) {
|
|
29
29
|
if (ObjectPath.get(sPath, oResponse)) {
|
|
30
30
|
return aFlexObjects.concat(ObjectPath.get(sPath, oResponse));
|
|
31
31
|
}
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
}, []);
|
|
34
34
|
|
|
35
35
|
var aFlexObjectIds = [];
|
|
36
|
-
return aFlexObjects.filter(function
|
|
36
|
+
return aFlexObjects.filter(function(oFlexObject) {
|
|
37
37
|
var sFileName = oFlexObject.fileName;
|
|
38
38
|
var bObjectAlreadyAdded = aFlexObjectIds.indexOf(sFileName) !== -1;
|
|
39
39
|
if (bObjectAlreadyAdded) {
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* @ui5-restricted sap.ui.fl.Cache
|
|
56
56
|
*/
|
|
57
57
|
function concatUi2personalization(aResponses) {
|
|
58
|
-
return aResponses.reduce(function
|
|
58
|
+
return aResponses.reduce(function(oUi2Section, oResponse) {
|
|
59
59
|
return merge({}, oUi2Section, oResponse.ui2personalization);
|
|
60
60
|
}, {});
|
|
61
61
|
}
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
* @ui5-restricted sap.ui.fl.Cache
|
|
71
71
|
*/
|
|
72
72
|
function _concatEtag(aResponses) {
|
|
73
|
-
return aResponses.reduce(function
|
|
73
|
+
return aResponses.reduce(function(sCacheKey, oResponse) {
|
|
74
74
|
// eslint-disable-next-line no-return-assign
|
|
75
75
|
return oResponse.cacheKey ? sCacheKey += oResponse.cacheKey : sCacheKey;
|
|
76
76
|
}, "") || null;
|
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ui/fl/LayerUtils",
|
|
12
12
|
"sap/base/util/isEmptyObject",
|
|
13
13
|
"sap/ui/core/Configuration"
|
|
14
|
-
], function
|
|
14
|
+
], function(
|
|
15
15
|
encodeURLParameters,
|
|
16
16
|
Log,
|
|
17
17
|
Layer,
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
*
|
|
28
28
|
* @namespace sap.ui.fl.initial._internal.StorageUtils
|
|
29
29
|
* @since 1.74
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.117.0
|
|
31
31
|
* @private
|
|
32
32
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage, sap.ui.fl.write._internal.Storage,
|
|
33
33
|
* sap.ui.fl.initial._internal.connectors.ObjectStorageConnector, sap.ui.fl.initial._internal.connectors.ObjectPathConnector
|
|
@@ -73,7 +73,7 @@ sap.ui.define([
|
|
|
73
73
|
if (!aLayers) {
|
|
74
74
|
aValidLayers = aConnectorLayers;
|
|
75
75
|
} else {
|
|
76
|
-
aValidLayers = aLayers.filter(function
|
|
76
|
+
aValidLayers = aLayers.filter(function(sLayer) {
|
|
77
77
|
return aConnectorLayers.indexOf(sLayer) !== -1 || aConnectorLayers[0] === "ALL";
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ sap.ui.define([
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
function _getConnectorConfigurations(sNameSpace, bLoadConnectors, mConnectors) {
|
|
84
|
-
return mConnectors.map(function
|
|
84
|
+
return mConnectors.map(function(mConnectorConfiguration) {
|
|
85
85
|
var sConnector = mConnectorConfiguration.connector;
|
|
86
86
|
var sConnectorModuleName;
|
|
87
87
|
|
|
@@ -103,9 +103,9 @@ sap.ui.define([
|
|
|
103
103
|
function _requireConnectorsByConfiguration(sNameSpace, bLoadConnectors, mConnectors) {
|
|
104
104
|
var aConnectors = _getConnectorConfigurations(sNameSpace, bLoadConnectors, mConnectors);
|
|
105
105
|
|
|
106
|
-
return new Promise(function
|
|
107
|
-
sap.ui.require(aConnectors, function
|
|
108
|
-
Array.from(arguments).forEach(function
|
|
106
|
+
return new Promise(function(resolve) {
|
|
107
|
+
sap.ui.require(aConnectors, function() {
|
|
108
|
+
Array.from(arguments).forEach(function(oConnector, iIndex) {
|
|
109
109
|
if (!mConnectors[iIndex].layers) {
|
|
110
110
|
mConnectors[iIndex].layers = oConnector.layers;
|
|
111
111
|
} else {
|
|
@@ -131,7 +131,7 @@ sap.ui.define([
|
|
|
131
131
|
* @param {boolean} bLoadConnectors Flag to determine if the loading scenario is used and the StaticFileConnector should be included
|
|
132
132
|
* @returns {Promise<map[]>} Resolving with a list of maps for all configured connectors and their requested modules
|
|
133
133
|
*/
|
|
134
|
-
getConnectors: function
|
|
134
|
+
getConnectors: function(sNameSpace, bLoadConnectors) {
|
|
135
135
|
var aConfiguredConnectors = Configuration.getFlexibilityServices();
|
|
136
136
|
var mConnectors = [];
|
|
137
137
|
if (bLoadConnectors) {
|
|
@@ -149,17 +149,16 @@ sap.ui.define([
|
|
|
149
149
|
*
|
|
150
150
|
* @returns {Promise<map[]>} Resolving with a list of maps for all configured initial connectors and their requested modules
|
|
151
151
|
*/
|
|
152
|
-
getLoadConnectors: function
|
|
152
|
+
getLoadConnectors: function() {
|
|
153
153
|
return this.getConnectors(INITIAL_CONNECTOR_NAME_SPACE, true);
|
|
154
154
|
},
|
|
155
155
|
|
|
156
|
-
|
|
157
156
|
/**
|
|
158
157
|
* Provides only the static file connector.
|
|
159
158
|
*
|
|
160
159
|
* @returns {Promise<map[]>} Resolving with a list of maps static file connector and its requested modules
|
|
161
160
|
*/
|
|
162
|
-
getStaticFileConnector: function
|
|
161
|
+
getStaticFileConnector: function() {
|
|
163
162
|
return _requireConnectorsByConfiguration(INITIAL_CONNECTOR_NAME_SPACE, true, [STATIC_FILE_CONNECTOR_CONFIGURATION]);
|
|
164
163
|
},
|
|
165
164
|
|
|
@@ -172,7 +171,7 @@ sap.ui.define([
|
|
|
172
171
|
* @param {string} sErrorMessage Error messages retrieved from the endpoint
|
|
173
172
|
* @returns {object} oResponse Response from the endpoint
|
|
174
173
|
*/
|
|
175
|
-
logAndResolveDefault: function
|
|
174
|
+
logAndResolveDefault: function(oResponse, oConnectorConfig, sFunctionName, sErrorMessage) {
|
|
176
175
|
Log.error("Connector (" + oConnectorConfig.connector + ") failed call '" + sFunctionName + "': "
|
|
177
176
|
+ sErrorMessage + "\nApplication startup continues without data from this storage.");
|
|
178
177
|
return oResponse;
|
|
@@ -184,13 +183,13 @@ sap.ui.define([
|
|
|
184
183
|
* @param {object} mGroupedFlexObjects Grouped flexibility objects
|
|
185
184
|
* @returns {array} Array of non-empty responses sorted by layer
|
|
186
185
|
*/
|
|
187
|
-
filterAndSortResponses: function
|
|
186
|
+
filterAndSortResponses: function(mGroupedFlexObjects) {
|
|
188
187
|
var aResponses = [];
|
|
189
|
-
Object.keys(mGroupedFlexObjects).forEach(function
|
|
188
|
+
Object.keys(mGroupedFlexObjects).forEach(function(sLayer) {
|
|
190
189
|
aResponses.push(mGroupedFlexObjects[sLayer]);
|
|
191
190
|
});
|
|
192
191
|
|
|
193
|
-
aResponses = aResponses.filter(function
|
|
192
|
+
aResponses = aResponses.filter(function(oResponse) {
|
|
194
193
|
return oResponse.changes.length > 0
|
|
195
194
|
|| oResponse.appDescriptorChanges.length > 0
|
|
196
195
|
|| oResponse.variants.length > 0
|
|
@@ -203,7 +202,7 @@ sap.ui.define([
|
|
|
203
202
|
|| oResponse.comp.standardVariants.length > 0;
|
|
204
203
|
});
|
|
205
204
|
|
|
206
|
-
aResponses.sort(function
|
|
205
|
+
aResponses.sort(function(a, b) {
|
|
207
206
|
return a.index - b.index;
|
|
208
207
|
});
|
|
209
208
|
|
|
@@ -222,18 +221,18 @@ sap.ui.define([
|
|
|
222
221
|
* @param {array} aFlexObjects Flexibility objects
|
|
223
222
|
* @returns {object} Map of grouped flexibility objects per layer
|
|
224
223
|
*/
|
|
225
|
-
getGroupedFlexObjects: function
|
|
224
|
+
getGroupedFlexObjects: function(aFlexObjects) {
|
|
226
225
|
this.sortFlexObjects(aFlexObjects);
|
|
227
226
|
var mGroupedFlexObjects = {};
|
|
228
227
|
|
|
229
228
|
// build empty groups
|
|
230
|
-
Object.keys(Layer).forEach(function
|
|
229
|
+
Object.keys(Layer).forEach(function(sLayer) {
|
|
231
230
|
mGroupedFlexObjects[sLayer] = this.getEmptyFlexDataResponse();
|
|
232
231
|
mGroupedFlexObjects[sLayer].index = LayerUtils.getLayerIndex(sLayer);
|
|
233
232
|
}.bind(this));
|
|
234
233
|
|
|
235
234
|
// fill groups
|
|
236
|
-
aFlexObjects.forEach(function
|
|
235
|
+
aFlexObjects.forEach(function(oFlexObject) {
|
|
237
236
|
var sLayer = oFlexObject.layer;
|
|
238
237
|
|
|
239
238
|
if (oFlexObject.fileType === "ctrl_variant" && oFlexObject.variantManagementReference) {
|
|
@@ -280,7 +279,7 @@ sap.ui.define([
|
|
|
280
279
|
* @ui5-restricted sap.ui.fl.apply_internal.flexState.FlexState, sap.ui.fl.initial._internal.connectors.ObjectPathConnector,
|
|
281
280
|
* sap.ui.fl.apply_internal
|
|
282
281
|
*/
|
|
283
|
-
getEmptyFlexDataResponse: function
|
|
282
|
+
getEmptyFlexDataResponse: function() {
|
|
284
283
|
return Object.assign({}, {
|
|
285
284
|
appDescriptorChanges: [],
|
|
286
285
|
changes: [],
|
|
@@ -305,7 +304,7 @@ sap.ui.define([
|
|
|
305
304
|
* @returns {boolean} Indicated if storage response contains flex objects
|
|
306
305
|
* @ui5-restricted sap.ui.fl
|
|
307
306
|
*/
|
|
308
|
-
isStorageResponseFilled: function
|
|
307
|
+
isStorageResponseFilled: function(oResponse) {
|
|
309
308
|
return Object.keys(oResponse || {}).some(function(sKey) {
|
|
310
309
|
if (Array.isArray(oResponse[sKey])) {
|
|
311
310
|
return oResponse[sKey].length !== 0;
|
|
@@ -54,10 +54,10 @@ sap.ui.define([
|
|
|
54
54
|
function addRegistrationPromise(sKey, oPromise) {
|
|
55
55
|
mRegistrationPromises[sKey] = oPromise;
|
|
56
56
|
oPromise
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
.catch(function() {})
|
|
58
|
+
.then(function() {
|
|
59
|
+
delete mRegistrationPromises[sKey];
|
|
60
|
+
});
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
function registerFlexChangeHandlers(oFlChangeHandlers) {
|
|
@@ -84,13 +84,13 @@ sap.ui.define([
|
|
|
84
84
|
* @alias sap.ui.fl.registry.ChangeHandlerRegistration
|
|
85
85
|
*
|
|
86
86
|
* @author SAP SE
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.117.0
|
|
88
88
|
* @private
|
|
89
89
|
* @ui5-restricted sap.ui.fl
|
|
90
90
|
*
|
|
91
91
|
* @returns {Promise} Returns an empty promise when all changeHandlers from all libraries are registered.
|
|
92
92
|
*/
|
|
93
|
-
getChangeHandlersOfLoadedLibsAndRegisterOnNewLoadedLibs: function
|
|
93
|
+
getChangeHandlersOfLoadedLibsAndRegisterOnNewLoadedLibs: function() {
|
|
94
94
|
var oAlreadyLoadedLibraries = Core.getLoadedLibraries();
|
|
95
95
|
Core.attachLibraryChanged(handleLibraryRegistrationAfterFlexLibraryIsLoaded);
|
|
96
96
|
var aPromises = [];
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
return InitialUtils.sendRequest(sDataUrl, "GET", {
|
|
45
45
|
initialConnector: this,
|
|
46
46
|
xsrfToken: this.xsrfToken}
|
|
47
|
-
).then(function
|
|
47
|
+
).then(function(oResult) {
|
|
48
48
|
var oResponse = oResult.response;
|
|
49
49
|
if (oResult.etag) {
|
|
50
50
|
oResponse.cacheKey = oResult.etag;
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* @returns {Promise<object>} Promise resolving with the JSON parsed server response of the flex data request
|
|
66
66
|
*/
|
|
67
67
|
loadFlexData: function(mPropertyBag) {
|
|
68
|
-
return this.sendRequest(mPropertyBag).then(function
|
|
68
|
+
return this.sendRequest(mPropertyBag).then(function(oResponse) {
|
|
69
69
|
oResponse.changes = oResponse.changes.concat(oResponse.compVariants || []);
|
|
70
70
|
return oResponse;
|
|
71
71
|
});
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
},
|
|
38
38
|
isLanguageInfoRequired: true,
|
|
39
39
|
loadFlexData: function(mPropertyBag) {
|
|
40
|
-
return BackendConnector.sendRequest.call(KeyUserConnector, mPropertyBag).then(function
|
|
40
|
+
return BackendConnector.sendRequest.call(KeyUserConnector, mPropertyBag).then(function(oResult) {
|
|
41
41
|
oResult.contents.map(function(oContent, iIndex, oResult) {
|
|
42
42
|
oResult[iIndex].changes = (oContent.changes || []).concat(oContent.compVariants);
|
|
43
43
|
});
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @returns {Promise} Returns a Promise resolved empty after the script was included
|
|
48
48
|
* @private
|
|
49
49
|
*/
|
|
50
|
-
_loadModules: function
|
|
50
|
+
_loadModules: function(sFlexModulesUri) {
|
|
51
51
|
return new Promise(function(resolve, reject) {
|
|
52
52
|
includeScript(sFlexModulesUri, undefined, resolve, reject);
|
|
53
53
|
});
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
* @private
|
|
61
61
|
* @ui5-restricted sap.ui.fl.write._internal.connectors.LrepConnector
|
|
62
62
|
*/
|
|
63
|
-
_addClientInfo: function
|
|
63
|
+
_addClientInfo: function(mParameters) {
|
|
64
64
|
var sClient = FlexUtils.getUrlParameter("sap-client");
|
|
65
65
|
if (!mParameters && sClient) {
|
|
66
66
|
mParameters = {};
|
|
@@ -114,7 +114,7 @@ sap.ui.define([
|
|
|
114
114
|
xsrfToken: this.xsrfToken,
|
|
115
115
|
siteId: mPropertyBag.siteId,
|
|
116
116
|
sAppDescriptorId: sAppDescriptorId
|
|
117
|
-
}).then(function
|
|
117
|
+
}).then(function(oResult) {
|
|
118
118
|
var oResponse = oResult.response;
|
|
119
119
|
if (oResult.etag) {
|
|
120
120
|
oResponse.cacheKey = oResult.etag;
|
|
@@ -133,7 +133,7 @@ sap.ui.define([
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
var sModulesUrl = Utils.getUrl(ROUTES.MODULES, mPropertyBag, mParameters);
|
|
136
|
-
return this._loadModules(sModulesUrl).then(function
|
|
136
|
+
return this._loadModules(sModulesUrl).then(function() {
|
|
137
137
|
return oResponse;
|
|
138
138
|
});
|
|
139
139
|
}.bind(this));
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
try {
|
|
26
26
|
return LoaderExtensions.loadResource(sBundleResourcePath);
|
|
27
27
|
} catch (e) {
|
|
28
|
-
//JSON parse error of bundle file --> log error
|
|
28
|
+
// JSON parse error of bundle file --> log error
|
|
29
29
|
if (e.name.includes("SyntaxError")) {
|
|
30
30
|
Log.error(e);
|
|
31
31
|
}
|
|
@@ -49,10 +49,10 @@ sap.ui.define([
|
|
|
49
49
|
*
|
|
50
50
|
* @param {object} mPropertyBag Properties needed by the connector
|
|
51
51
|
* @param {string} mPropertyBag.reference Reference of the application
|
|
52
|
-
* @param {string} [
|
|
52
|
+
* @param {string} [mPropertyBag.componentName] Component name of the current application which may differ in case of an app variant
|
|
53
53
|
* @returns {Promise<Object>} Resolving with an object containing a data contained in the bundle
|
|
54
54
|
*/
|
|
55
|
-
loadFlexData: function
|
|
55
|
+
loadFlexData: function(mPropertyBag) {
|
|
56
56
|
var sComponentName = mPropertyBag.componentName;
|
|
57
57
|
|
|
58
58
|
if (!sComponentName) {
|