@openui5/sap.ui.fl 1.115.1 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +33 -2
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +29 -29
- package/src/sap/ui/fl/ChangePersistence.js +69 -71
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnector.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +5 -5
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +157 -130
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +11 -11
- package/src/sap/ui/fl/Utils.js +16 -17
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +41 -38
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +114 -94
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +19 -19
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +4 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +15 -15
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +8 -8
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +6 -6
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +3 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +4 -6
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +10 -10
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -4
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +4 -5
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +29 -29
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +44 -44
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -14
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +3 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +6 -5
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +12 -4
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +23 -5
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +183 -64
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +27 -17
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +50 -50
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +27 -13
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +55 -37
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +12 -12
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +5 -5
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +6 -6
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +4 -4
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +10 -4
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -6
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +21 -21
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +34 -34
- package/src/sap/ui/fl/changeHandler/Base.js +7 -7
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +107 -107
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +45 -45
- package/src/sap/ui/fl/changeHandler/BaseRename.js +26 -26
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +15 -16
- package/src/sap/ui/fl/changeHandler/MoveControls.js +190 -191
- package/src/sap/ui/fl/changeHandler/MoveElements.js +36 -36
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/StashControl.js +35 -35
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +7 -7
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +21 -21
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +39 -39
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +5 -5
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +12 -12
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +7 -9
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +12 -12
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +60 -60
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +2 -5
- package/src/sap/ui/fl/initial/_internal/Storage.js +18 -19
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +4 -4
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +20 -21
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +6 -6
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +4 -4
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +18 -18
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +4 -4
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +7 -9
- package/src/sap/ui/fl/library.js +44 -45
- package/src/sap/ui/fl/library.support.js +59 -59
- package/src/sap/ui/fl/messagebundle.properties +4 -119
- package/src/sap/ui/fl/messagebundle_ar.properties +2 -79
- package/src/sap/ui/fl/messagebundle_bg.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ca.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cs.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cy.properties +2 -79
- package/src/sap/ui/fl/messagebundle_da.properties +2 -79
- package/src/sap/ui/fl/messagebundle_de.properties +2 -79
- package/src/sap/ui/fl/messagebundle_el.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -79
- package/src/sap/ui/fl/messagebundle_et.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hu.properties +2 -79
- package/src/sap/ui/fl/messagebundle_id.properties +2 -79
- package/src/sap/ui/fl/messagebundle_it.properties +2 -79
- package/src/sap/ui/fl/messagebundle_iw.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ja.properties +2 -79
- package/src/sap/ui/fl/messagebundle_kk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ko.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ms.properties +2 -79
- package/src/sap/ui/fl/messagebundle_nl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_no.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ro.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ru.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sh.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_th.properties +2 -79
- package/src/sap/ui/fl/messagebundle_tr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_uk.properties +3 -80
- package/src/sap/ui/fl/messagebundle_vi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -79
- package/src/sap/ui/fl/registry/Settings.js +41 -43
- package/src/sap/ui/fl/requireAsync.js +7 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +8 -8
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +22 -22
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +3 -3
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +3 -5
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +27 -27
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +20 -20
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +17 -17
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +34 -34
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +10 -10
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -2
- package/src/sap/ui/fl/util/IFrame.js +18 -18
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +7 -7
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +2 -2
- package/src/sap/ui/fl/util/getContainerUserInfo.js +25 -25
- package/src/sap/ui/fl/util/resolveBinding.js +3 -3
- package/src/sap/ui/fl/variants/VariantManagement.js +8 -32
- package/src/sap/ui/fl/variants/VariantModel.js +182 -124
- package/src/sap/ui/fl/variants/context/Component.js +1 -2
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -5
- package/src/sap/ui/fl/write/_internal/SaveAs.js +143 -143
- package/src/sap/ui/fl/write/_internal/Storage.js +46 -49
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +4 -4
- package/src/sap/ui/fl/write/_internal/Versions.js +104 -94
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +9 -9
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +7 -7
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +3 -5
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +15 -10
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +10 -10
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -24
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -61
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +4 -4
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +6 -6
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +14 -14
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +3 -3
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +15 -7
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +3 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +3 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +4 -4
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +26 -26
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +78 -57
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +12 -13
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +12 -12
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +7 -7
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +7 -7
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +9 -9
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +546 -110
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +109 -67
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +3 -3
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +19 -20
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +19 -19
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +59 -54
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +8 -8
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +6 -6
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +14 -13
- package/src/sap/ui/fl/write/api/TranslationAPI.js +13 -13
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +14 -14
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +7 -7
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +17 -17
|
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
13
13
|
* @constructor
|
|
14
14
|
* @alias sap.ui.fl.support.apps.contentbrowser.lrepConnector.LRepConnector
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.116.0
|
|
17
17
|
* @experimental Since 1.45
|
|
18
18
|
*/
|
|
19
19
|
var LrepConnector = {};
|
|
@@ -33,10 +33,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
33
33
|
* @returns {Promise} Promise of GET content request to the back end
|
|
34
34
|
* @public
|
|
35
35
|
*/
|
|
36
|
-
LrepConnector.getContent = function
|
|
36
|
+
LrepConnector.getContent = function(sLayer, sContentSuffix, bReadContextMetadata, bReadRuntimeContext, bRequestAsText) {
|
|
37
37
|
var that = this;
|
|
38
38
|
|
|
39
|
-
var oGetContentPromise = new Promise(function
|
|
39
|
+
var oGetContentPromise = new Promise(function(fnResolve, fnReject) {
|
|
40
40
|
sContentSuffix = encodeURI(sContentSuffix);
|
|
41
41
|
var sLayerSuffix = that._getLayerSuffix(sLayer);
|
|
42
42
|
var sContextSuffix = that._getContextSuffix(sLayerSuffix, bReadRuntimeContext, bReadContextMetadata);
|
|
@@ -62,8 +62,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
62
62
|
* @returns {Promise} Promise of the SAVE content request to the back end
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
|
-
LrepConnector.saveFile = function
|
|
66
|
-
return new Promise(function
|
|
65
|
+
LrepConnector.saveFile = function(sLayer, sNamespace, sFilename, sFileType, sContent, sTransportId, sPackageName, bSupport) {
|
|
66
|
+
return new Promise(function(fnResolve, fnReject) {
|
|
67
67
|
if (!sLayer || sNamespace === undefined || !sFilename || !sFileType) {
|
|
68
68
|
fnReject();
|
|
69
69
|
}
|
|
@@ -93,8 +93,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
93
93
|
* @returns {Promise} Promise of DELETE content request to the back end
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
|
-
LrepConnector.deleteFile = function
|
|
97
|
-
return new Promise(function
|
|
96
|
+
LrepConnector.deleteFile = function(sLayer, sNamespace, sFileName, sFileType, sTransportId, bSupport) {
|
|
97
|
+
return new Promise(function(fnResolve, fnReject) {
|
|
98
98
|
if (!sLayer || sNamespace === undefined || !sFileName || !sFileType) {
|
|
99
99
|
fnReject();
|
|
100
100
|
}
|
|
@@ -117,9 +117,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
117
117
|
* @returns {Promise} Promise of the GET token HEAD request to back end
|
|
118
118
|
* @private
|
|
119
119
|
*/
|
|
120
|
-
LrepConnector._getXcsrfToken = function
|
|
120
|
+
LrepConnector._getXcsrfToken = function() {
|
|
121
121
|
var that = this;
|
|
122
|
-
return new Promise(function
|
|
122
|
+
return new Promise(function(sResolve, fnReject) {
|
|
123
123
|
if (that._sXcsrfToken) {
|
|
124
124
|
sResolve(that._sXcsrfToken);
|
|
125
125
|
}
|
|
@@ -127,18 +127,18 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
127
127
|
jQuery.ajax({
|
|
128
128
|
url: LrepConnector.sGetXcsrfTokenUrl,
|
|
129
129
|
type: "HEAD",
|
|
130
|
-
beforeSend: function
|
|
130
|
+
beforeSend: function(oRequest) {
|
|
131
131
|
oRequest.setRequestHeader("X-CSRF-Token", "fetch");
|
|
132
132
|
var client = Utils.getClient();
|
|
133
133
|
if (client) {
|
|
134
134
|
oRequest.setRequestHeader("sap-client", client);
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
-
success: function
|
|
137
|
+
success: function(sData, sMsg, oJqXHR) {
|
|
138
138
|
that._sXcsrfToken = oJqXHR.getResponseHeader("x-csrf-token");
|
|
139
139
|
sResolve(that._sXcsrfToken);
|
|
140
140
|
},
|
|
141
|
-
error: function
|
|
141
|
+
error: function(jqXHR, sTextStatus, sErrorThrown) {
|
|
142
142
|
LrepConnector._reportError(jqXHR, sTextStatus, sErrorThrown);
|
|
143
143
|
fnReject(sErrorThrown);
|
|
144
144
|
}
|
|
@@ -153,7 +153,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
153
153
|
* @returns {string} Correct layer suffix
|
|
154
154
|
* @private
|
|
155
155
|
*/
|
|
156
|
-
LrepConnector._getLayerSuffix = function
|
|
156
|
+
LrepConnector._getLayerSuffix = function(sLayer) {
|
|
157
157
|
if (sLayer === "All") {
|
|
158
158
|
return "";
|
|
159
159
|
}
|
|
@@ -166,7 +166,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
166
166
|
* @returns {string} Correct changelist suffix
|
|
167
167
|
* @private
|
|
168
168
|
*/
|
|
169
|
-
LrepConnector._getChangeListSuffix = function
|
|
169
|
+
LrepConnector._getChangeListSuffix = function(sChangeList) {
|
|
170
170
|
return sChangeList ? "&changelist=" + sChangeList : "";
|
|
171
171
|
};
|
|
172
172
|
|
|
@@ -176,7 +176,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
176
176
|
* @returns {string} Correct package suffix
|
|
177
177
|
* @private
|
|
178
178
|
*/
|
|
179
|
-
LrepConnector._getPackageSuffix = function
|
|
179
|
+
LrepConnector._getPackageSuffix = function(sPackage) {
|
|
180
180
|
return sPackage ? "&package=" + sPackage : "";
|
|
181
181
|
};
|
|
182
182
|
|
|
@@ -189,7 +189,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
189
189
|
* @returns {string} Correct context suffix for URL request
|
|
190
190
|
* @private
|
|
191
191
|
*/
|
|
192
|
-
LrepConnector._getContextSuffix = function
|
|
192
|
+
LrepConnector._getContextSuffix = function(sLayerSuffix, bReadRuntimeContext, bReadContextMetadata) {
|
|
193
193
|
var sReadRuntimeContextSuffix = "";
|
|
194
194
|
if (!bReadRuntimeContext) {
|
|
195
195
|
sReadRuntimeContextSuffix += (sLayerSuffix ? "&" : "?");
|
|
@@ -210,8 +210,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
210
210
|
* @param {object} oErrorThrown - Object that contains the error description
|
|
211
211
|
* @private
|
|
212
212
|
*/
|
|
213
|
-
LrepConnector._reportError = function
|
|
214
|
-
sap.ui.require(["sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils"], function
|
|
213
|
+
LrepConnector._reportError = function(oJqXHR, sTextStatus, oErrorThrown) {
|
|
214
|
+
sap.ui.require(["sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils"], function(ErrorUtils) {
|
|
215
215
|
ErrorUtils.displayError("Error", oJqXHR.status, sTextStatus + ": " + oErrorThrown);
|
|
216
216
|
});
|
|
217
217
|
};
|
|
@@ -225,19 +225,19 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
225
225
|
* @param {boolean} bRequestAsText - Sends ajax request with data type as plain text
|
|
226
226
|
* @private
|
|
227
227
|
*/
|
|
228
|
-
LrepConnector._sendContentRequest = function
|
|
228
|
+
LrepConnector._sendContentRequest = function(sUrl, fnResolve, fnReject, bRequestAsText) {
|
|
229
229
|
var oRequest = {
|
|
230
230
|
url: sUrl,
|
|
231
231
|
type: "GET",
|
|
232
|
-
success: function
|
|
232
|
+
success: function(oData) {
|
|
233
233
|
fnResolve(oData);
|
|
234
234
|
},
|
|
235
|
-
error: function
|
|
235
|
+
error: function(oJqXHR, sTextStatus, oErrorThrown) {
|
|
236
236
|
LrepConnector._reportError(oJqXHR, sTextStatus, oErrorThrown);
|
|
237
237
|
fnReject(oErrorThrown);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
//code extension content should be treated as plain text to avoid parser error.
|
|
240
|
+
// code extension content should be treated as plain text to avoid parser error.
|
|
241
241
|
if (bRequestAsText) {
|
|
242
242
|
oRequest.dataType = "text";
|
|
243
243
|
}
|
|
@@ -253,9 +253,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
253
253
|
* @param {function} fnReject - Callback function if request was rejected
|
|
254
254
|
* @private
|
|
255
255
|
*/
|
|
256
|
-
LrepConnector._getTokenAndSendPutRequest = function
|
|
256
|
+
LrepConnector._getTokenAndSendPutRequest = function(sUrl, oData, fnResolve, fnReject) {
|
|
257
257
|
var that = this;
|
|
258
|
-
LrepConnector._getXcsrfToken().then(function
|
|
258
|
+
LrepConnector._getXcsrfToken().then(function(oXcsrfToken) {
|
|
259
259
|
that._sendPutRequest(oXcsrfToken, sUrl, oData, fnResolve, fnReject);
|
|
260
260
|
});
|
|
261
261
|
};
|
|
@@ -270,20 +270,20 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
270
270
|
* @param {function} fnReject - Callback function if request was rejected
|
|
271
271
|
* @private
|
|
272
272
|
*/
|
|
273
|
-
LrepConnector._sendPutRequest = function
|
|
273
|
+
LrepConnector._sendPutRequest = function(oXcsrfToken, sUrl, oData, fnResolve, fnReject) {
|
|
274
274
|
jQuery.ajax({
|
|
275
275
|
url: sUrl,
|
|
276
276
|
contentType: "text/plain",
|
|
277
277
|
dataType: "text",
|
|
278
278
|
data: oData,
|
|
279
|
-
beforeSend: function
|
|
279
|
+
beforeSend: function(oRequest) {
|
|
280
280
|
oRequest.setRequestHeader("X-CSRF-Token", oXcsrfToken);
|
|
281
281
|
},
|
|
282
282
|
type: "PUT",
|
|
283
|
-
success: function
|
|
283
|
+
success: function() {
|
|
284
284
|
fnResolve();
|
|
285
285
|
},
|
|
286
|
-
error: function
|
|
286
|
+
error: function(oJqXHR, sTextStatus, oErrorThrown) {
|
|
287
287
|
LrepConnector._reportError(oJqXHR, sTextStatus, oErrorThrown);
|
|
288
288
|
fnReject(oErrorThrown);
|
|
289
289
|
}
|
|
@@ -298,9 +298,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
298
298
|
* @param {function} fnReject - Callback function if request was rejected
|
|
299
299
|
* @private
|
|
300
300
|
*/
|
|
301
|
-
LrepConnector._getTokenAndSendDeletionRequest = function
|
|
301
|
+
LrepConnector._getTokenAndSendDeletionRequest = function(sUrl, fnResolve, fnReject) {
|
|
302
302
|
var that = this;
|
|
303
|
-
this._getXcsrfToken().then(function
|
|
303
|
+
this._getXcsrfToken().then(function(sXcsrfToken) {
|
|
304
304
|
that._sendDeletionRequest(sXcsrfToken, sUrl, fnResolve, fnReject);
|
|
305
305
|
});
|
|
306
306
|
};
|
|
@@ -314,17 +314,17 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
314
314
|
* @param {function} fnReject - Callback function if request was rejected
|
|
315
315
|
* @private
|
|
316
316
|
*/
|
|
317
|
-
LrepConnector._sendDeletionRequest = function
|
|
317
|
+
LrepConnector._sendDeletionRequest = function(oXcsrfToken, sUrl, fnResolve, fnReject) {
|
|
318
318
|
jQuery.ajax({
|
|
319
319
|
url: sUrl,
|
|
320
|
-
beforeSend: function
|
|
320
|
+
beforeSend: function(oRequest) {
|
|
321
321
|
oRequest.setRequestHeader("X-CSRF-Token", oXcsrfToken);
|
|
322
322
|
},
|
|
323
323
|
type: "DELETE",
|
|
324
|
-
success: function
|
|
324
|
+
success: function(oData) {
|
|
325
325
|
fnResolve(oData);
|
|
326
326
|
},
|
|
327
|
-
error: function
|
|
327
|
+
error: function(oJqXHR, sTextStatus, oErrorThrown) {
|
|
328
328
|
LrepConnector._reportError(oJqXHR, sTextStatus, oErrorThrown);
|
|
329
329
|
fnReject(oErrorThrown);
|
|
330
330
|
}
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @constructor
|
|
26
26
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.116.0
|
|
29
29
|
* @experimental Since 1.45
|
|
30
30
|
*/
|
|
31
31
|
var DataUtils = {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @returns {Object} Data after formatting
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
|
-
formatData: function
|
|
40
|
+
formatData: function(oData, sFileType) {
|
|
41
41
|
// code extension and properties files do not need formation
|
|
42
42
|
if ((sFileType === "js") || (sFileType === "properties")) {
|
|
43
43
|
return oData;
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
// other files should be formatted to JSON
|
|
46
46
|
try {
|
|
47
47
|
oData = JSON.parse(oData);
|
|
48
|
-
return JSON.stringify(oData, null,
|
|
48
|
+
return JSON.stringify(oData, null, "\t");
|
|
49
49
|
} catch (oError) {
|
|
50
50
|
var ErrorUtils = sap.ui.require("sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils");
|
|
51
51
|
ErrorUtils.displayError("Error", oError.name, oError.message);
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @returns {sap.m.GroupHeaderListItem} New GroupHeaderListItem
|
|
60
60
|
* @public
|
|
61
61
|
*/
|
|
62
|
-
getGroupHeader: function
|
|
62
|
+
getGroupHeader: function(oGroup) {
|
|
63
63
|
var sTitle = "{i18n>systemData}";
|
|
64
64
|
|
|
65
65
|
if (oGroup.key === "custom") {
|
|
@@ -78,12 +78,12 @@ sap.ui.define([
|
|
|
78
78
|
* @returns {boolean} <code>true</code> if the item is not excluded
|
|
79
79
|
* @public
|
|
80
80
|
*/
|
|
81
|
-
isNotExcluded: function
|
|
81
|
+
isNotExcluded: function(oContentItem) {
|
|
82
82
|
var bNotExcluded = true;
|
|
83
|
-
aExcludeList.forEach(function
|
|
83
|
+
aExcludeList.forEach(function(mExcludeListElement) {
|
|
84
84
|
var bAllPropertiesMatched = true;
|
|
85
85
|
|
|
86
|
-
Object.entries(mExcludeListElement).forEach(function
|
|
86
|
+
Object.entries(mExcludeListElement).forEach(function(aEntry) {
|
|
87
87
|
var sProperty = aEntry[0];
|
|
88
88
|
var sValue = aEntry[1];
|
|
89
89
|
bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] === sValue;
|
|
@@ -103,7 +103,7 @@ sap.ui.define([
|
|
|
103
103
|
* @returns {string} String after removing leading and trailing slashes
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
cleanLeadingAndTrailingSlashes: function
|
|
106
|
+
cleanLeadingAndTrailingSlashes: function(sNamespace) {
|
|
107
107
|
if (!sNamespace) {
|
|
108
108
|
return "";
|
|
109
109
|
}
|
|
@@ -127,7 +127,7 @@ sap.ui.define([
|
|
|
127
127
|
* @returns {string} Item title after formatting
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
formatItemTitle: function
|
|
130
|
+
formatItemTitle: function(mModelData) {
|
|
131
131
|
return mModelData.namespace + mModelData.fileName + "." + mModelData.fileType;
|
|
132
132
|
},
|
|
133
133
|
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
* @returns {boolean} <code>true</code> if the passed suffix is the last part of the passed string
|
|
140
140
|
* @public
|
|
141
141
|
*/
|
|
142
|
-
endsStringWith: function
|
|
142
|
+
endsStringWith: function(sString, sSuffix) {
|
|
143
143
|
return sString.indexOf(sSuffix, sString.length - sSuffix.length) !== -1;
|
|
144
144
|
}
|
|
145
145
|
};
|
|
@@ -8,7 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/m/MessageItem",
|
|
9
9
|
"sap/m/MessagePopover",
|
|
10
10
|
"sap/ui/model/json/JSONModel"],
|
|
11
|
-
function
|
|
11
|
+
function(MessageItem, MessagePopover, JSONModel) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -17,7 +17,7 @@ function (MessageItem, MessagePopover, JSONModel) {
|
|
|
17
17
|
* @constructor
|
|
18
18
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.ErrorUtils
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.116.0
|
|
21
21
|
* @experimental Since 1.45
|
|
22
22
|
*/
|
|
23
23
|
var ErrorUtils = {};
|
|
@@ -45,7 +45,7 @@ function (MessageItem, MessagePopover, JSONModel) {
|
|
|
45
45
|
* @param {Object} oModel - input model
|
|
46
46
|
* @public
|
|
47
47
|
*/
|
|
48
|
-
ErrorUtils.setMessagesModel = function
|
|
48
|
+
ErrorUtils.setMessagesModel = function(oComponent, oModel) {
|
|
49
49
|
ErrorUtils._masterComponent = oComponent;
|
|
50
50
|
ErrorUtils._messagesModel = oModel;
|
|
51
51
|
ErrorUtils._messagePopover.setModel(ErrorUtils._messagesModel, "messages");
|
|
@@ -56,7 +56,7 @@ function (MessageItem, MessagePopover, JSONModel) {
|
|
|
56
56
|
* @param {Object} oSource - input source
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
|
-
ErrorUtils.handleMessagePopoverPress = function
|
|
59
|
+
ErrorUtils.handleMessagePopoverPress = function(oSource) {
|
|
60
60
|
ErrorUtils._messagePopover.openBy(oSource);
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -67,7 +67,7 @@ function (MessageItem, MessagePopover, JSONModel) {
|
|
|
67
67
|
* @param {string} sDescription - message description
|
|
68
68
|
* @public
|
|
69
69
|
*/
|
|
70
|
-
ErrorUtils.displayError = function
|
|
70
|
+
ErrorUtils.displayError = function(sType, sTitle, sDescription) {
|
|
71
71
|
if (ErrorUtils._messagesModel) {
|
|
72
72
|
var sMessages = ErrorUtils._messagesModel.getData();
|
|
73
73
|
sMessages.push({
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @alias sap.ui.fl.transport.TransportSelection
|
|
18
18
|
* @constructor
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.116.0
|
|
21
21
|
* @since 1.38.0
|
|
22
22
|
* Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
|
|
23
23
|
* of the SmartVariant control.
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
|
|
16
16
|
function checkChange(oEntityPropertyChange, aSupportedProperties, aSupportedOperations) {
|
|
17
17
|
if (Array.isArray(oEntityPropertyChange)) {
|
|
18
|
-
oEntityPropertyChange.forEach(function
|
|
18
|
+
oEntityPropertyChange.forEach(function(change) {
|
|
19
19
|
formatEntityCheck(change, aSupportedProperties, aSupportedOperations);
|
|
20
20
|
});
|
|
21
21
|
} else {
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
* @ui5-restricted sap.ui.fl, sap.suite.ui.generic.template
|
|
91
91
|
*/
|
|
92
92
|
function checkEntityPropertyChange(oChange, aSupportedProperties, aSupportedOperations) {
|
|
93
|
-
var id = Object.keys(oChange).filter(function
|
|
93
|
+
var id = Object.keys(oChange).filter(function(key) {
|
|
94
94
|
return key.endsWith("Id");
|
|
95
95
|
}).shift();
|
|
96
96
|
if (!oChange[id]) {
|
|
@@ -29,9 +29,9 @@ sap.ui.define([
|
|
|
29
29
|
) {
|
|
30
30
|
"use strict";
|
|
31
31
|
|
|
32
|
-
function unbind
|
|
32
|
+
function unbind(vValue) {
|
|
33
33
|
if (vValue.parts && vValue.formatter) {
|
|
34
|
-
return vValue.formatter.apply(null, vValue.parts.map(function
|
|
34
|
+
return vValue.formatter.apply(null, vValue.parts.map(function(oPart) {
|
|
35
35
|
if (oPart.model) {
|
|
36
36
|
return "{" + oPart.model + ">" + oPart.path + "}";
|
|
37
37
|
}
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
* @extends sap.ui.core.Control
|
|
54
54
|
*
|
|
55
55
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
56
|
+
* @version 1.116.0
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @private
|
|
@@ -105,18 +105,18 @@ sap.ui.define([
|
|
|
105
105
|
designtime: "sap/ui/fl/designtime/util/IFrame.designtime"
|
|
106
106
|
},
|
|
107
107
|
|
|
108
|
-
init: function
|
|
108
|
+
init: function() {
|
|
109
109
|
if (Control.prototype.init) {
|
|
110
110
|
Control.prototype.init.apply(this, arguments);
|
|
111
111
|
}
|
|
112
112
|
this._oInitializePromise = getContainerUserInfo()
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
.then(function(oUserInfo) {
|
|
114
|
+
this._oUserModel = new JSONModel(oUserInfo);
|
|
115
|
+
this.setModel(this._oUserModel, "$user");
|
|
116
|
+
}.bind(this));
|
|
117
117
|
},
|
|
118
118
|
|
|
119
|
-
waitForInit: function
|
|
119
|
+
waitForInit: function() {
|
|
120
120
|
return this._oInitializePromise ? this._oInitializePromise : Promise.reject();
|
|
121
121
|
},
|
|
122
122
|
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
|
|
140
140
|
this.setProperty("url", "");
|
|
141
141
|
|
|
142
|
-
this._oSetUrlPromise = new CancelablePromise(function
|
|
142
|
+
this._oSetUrlPromise = new CancelablePromise(function(fnResolve, fnReject, onCancel) {
|
|
143
143
|
onCancel.shouldReject = false;
|
|
144
144
|
// Use a timeout here to avoid issues with browser caching in Chrome
|
|
145
145
|
// that seem to lead to a mismatch between IFrame content and src,
|
|
@@ -156,7 +156,7 @@ sap.ui.define([
|
|
|
156
156
|
return this;
|
|
157
157
|
},
|
|
158
158
|
|
|
159
|
-
applySettings: function
|
|
159
|
+
applySettings: function(mSettings) {
|
|
160
160
|
Control.prototype.applySettings.apply(this, arguments);
|
|
161
161
|
if (mSettings) {
|
|
162
162
|
var mMergedSettings = this.getProperty("_settings") || {};
|
|
@@ -164,18 +164,18 @@ sap.ui.define([
|
|
|
164
164
|
extend(mMergedSettings, mSettings._settings);
|
|
165
165
|
} else {
|
|
166
166
|
Object.keys(mSettings)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
.filter(function(sPropertyName) {
|
|
168
|
+
return !!mSettings[sPropertyName];
|
|
169
|
+
})
|
|
170
|
+
.forEach(function(sPropertyName) {
|
|
171
|
+
mMergedSettings[sPropertyName] = unbind(mSettings[sPropertyName]);
|
|
172
|
+
});
|
|
173
173
|
}
|
|
174
174
|
this.setProperty("_settings", mMergedSettings);
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
|
|
178
|
-
exit: function
|
|
178
|
+
exit: function() {
|
|
179
179
|
if (this._oUserModel) {
|
|
180
180
|
this._oUserModel.destroy();
|
|
181
181
|
delete this._oUserModel;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Element",
|
|
9
9
|
"sap/ui/model/base/ManagedObjectModel"
|
|
10
|
-
], function
|
|
10
|
+
], function(
|
|
11
11
|
Element,
|
|
12
12
|
ManagedObjectModel
|
|
13
13
|
) {
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.116.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
constructor: function
|
|
62
|
+
constructor: function() {
|
|
63
63
|
Element.apply(this, arguments);
|
|
64
64
|
|
|
65
65
|
this._oManagedObjectModel = new ManagedObjectModel(
|
|
@@ -67,15 +67,15 @@ sap.ui.define([
|
|
|
67
67
|
this.getData()
|
|
68
68
|
);
|
|
69
69
|
|
|
70
|
-
["data", "name", "object"].forEach(function
|
|
71
|
-
this["set" + capitalize(sName)] = function
|
|
70
|
+
["data", "name", "object"].forEach(function(sName) {
|
|
71
|
+
this["set" + capitalize(sName)] = function() {
|
|
72
72
|
throw new Error("sap.ui.fl.util.ManagedObjectModel: Can't change the value of `" + sName + "` after the object is initialized. Please recreate the object with correct values in the constructor.");
|
|
73
73
|
};
|
|
74
74
|
}, this);
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
ManagedObjectModelFantomas.prototype.setParent = function
|
|
78
|
+
ManagedObjectModelFantomas.prototype.setParent = function(oNewParent) {
|
|
79
79
|
var oOldParent = this.getParent();
|
|
80
80
|
|
|
81
81
|
if (oOldParent) {
|
|
@@ -89,7 +89,7 @@ sap.ui.define([
|
|
|
89
89
|
Element.prototype.setParent.apply(this, arguments);
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
ManagedObjectModelFantomas.prototype.exit = function
|
|
92
|
+
ManagedObjectModelFantomas.prototype.exit = function() {
|
|
93
93
|
this._oManagedObjectModel.destroy();
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -32,9 +32,9 @@ sap.ui.define([
|
|
|
32
32
|
* @param {string} oRootPath - root context where the propertyPath starts
|
|
33
33
|
* @ui5-restricted sap.ui.fl, sap.suite.ui.generic.template
|
|
34
34
|
*/
|
|
35
|
-
return function
|
|
35
|
+
return function(vChanges, oRootPath) {
|
|
36
36
|
if (Array.isArray(vChanges)) {
|
|
37
|
-
vChanges.forEach(function
|
|
37
|
+
vChanges.forEach(function(oEntityProp) {
|
|
38
38
|
setPropValueByPath(oEntityProp, oRootPath);
|
|
39
39
|
});
|
|
40
40
|
} else {
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
|
-
function emptify
|
|
16
|
+
function emptify(vValue) {
|
|
17
17
|
if (!vValue) {
|
|
18
18
|
return "";
|
|
19
19
|
}
|
|
@@ -26,33 +26,33 @@ sap.ui.define([
|
|
|
26
26
|
* @return {Promise<object>} Resolving to dictionary listing current user properties or empty object if no user or error
|
|
27
27
|
* @ui5-restricted sap.ui.fl
|
|
28
28
|
*/
|
|
29
|
-
return function
|
|
29
|
+
return function() {
|
|
30
30
|
var oUShellContainer = Utils.getUshellContainer();
|
|
31
31
|
if (oUShellContainer) {
|
|
32
32
|
return Utils.getUShellService("UserInfo")
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
.then(function(oUserInfoService) {
|
|
34
|
+
if (!oUserInfoService) {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
var oUserInfo = oUserInfoService.getUser();
|
|
38
|
+
if (!oUserInfo) {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
var sEmail = emptify(oUserInfo.getEmail());
|
|
42
|
+
var sDomain;
|
|
43
|
+
if (sEmail) {
|
|
44
|
+
sDomain = emptify(/@(.*)/.exec(sEmail)[1]);
|
|
45
|
+
} else {
|
|
46
|
+
sDomain = "";
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
fullName: emptify(oUserInfo.getFullName()),
|
|
50
|
+
firstName: emptify(oUserInfo.getFirstName()),
|
|
51
|
+
lastName: emptify(oUserInfo.getLastName()),
|
|
52
|
+
email: sEmail,
|
|
53
|
+
domain: sDomain
|
|
54
|
+
};
|
|
55
|
+
})
|
|
56
56
|
.catch(function(vError) {
|
|
57
57
|
Log.error("Unexpected exception when reading shell user info: " + vError.toString());
|
|
58
58
|
return {};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/base/ManagedObject",
|
|
8
8
|
"sap/ui/fl/Utils"
|
|
9
|
-
], function
|
|
9
|
+
], function(
|
|
10
10
|
ManagedObject,
|
|
11
11
|
FlUtils
|
|
12
12
|
) {
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
*
|
|
35
35
|
* @function
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.116.0
|
|
38
38
|
* @alias sap.ui.fl.util.resolveBinding
|
|
39
39
|
* @experimental
|
|
40
40
|
* @since 1.91
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
var oHelperControl = new HelperControl();
|
|
60
60
|
|
|
61
61
|
var aParts = oBindingInfo.parts || [oBindingInfo];
|
|
62
|
-
aParts.forEach(function
|
|
62
|
+
aParts.forEach(function(oBindingPart) {
|
|
63
63
|
var sModelName = oBindingPart.model;
|
|
64
64
|
if (sModelName) {
|
|
65
65
|
oHelperControl.setModel(oReferenceControl.getModel(sModelName), sModelName);
|