@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
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"sap/m/library",
|
|
17
17
|
"sap/ui/model/json/JSONModel",
|
|
18
18
|
"sap/ui/core/UIComponent"
|
|
19
|
-
], function
|
|
19
|
+
], function(
|
|
20
20
|
Controller,
|
|
21
21
|
Dialog,
|
|
22
22
|
Text,
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @constructor
|
|
41
41
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.116.0
|
|
44
44
|
* @experimental Since 1.45
|
|
45
45
|
*/
|
|
46
46
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
* Handles data binding and route matching.
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
|
-
onInit: function
|
|
56
|
+
onInit: function() {
|
|
57
57
|
this._initAndBindSelectedContentModel();
|
|
58
58
|
var oRouter = UIComponent.getRouterFor(this);
|
|
59
59
|
oRouter.getRoute("ContentDetails").attachMatched(this._onRouteMatched, this);
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
* Creates and binds the model for the selected content.
|
|
65
65
|
* @private
|
|
66
66
|
*/
|
|
67
|
-
_initAndBindSelectedContentModel: function
|
|
67
|
+
_initAndBindSelectedContentModel: function() {
|
|
68
68
|
this.oSelectedContentModel = new JSONModel();
|
|
69
69
|
this.getView().setModel(this.oSelectedContentModel, "selectedContent");
|
|
70
70
|
},
|
|
@@ -76,7 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
77
77
|
* @private
|
|
78
78
|
*/
|
|
79
|
-
_onRouteMatched: function
|
|
79
|
+
_onRouteMatched: function(oRouteMatch) {
|
|
80
80
|
var that = this;
|
|
81
81
|
var mRouteArguments = oRouteMatch.getParameter("arguments");
|
|
82
82
|
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
|
|
97
97
|
return LRepConnector.getContent(oModelData.layer, sContentSuffix, null, null, true).then(
|
|
98
98
|
that._onContentReceived.bind(that, oModelData, oPage, sContentSuffix),
|
|
99
|
-
function
|
|
99
|
+
function() {
|
|
100
100
|
oPage.setBusy(false);
|
|
101
101
|
}
|
|
102
102
|
);
|
|
@@ -112,14 +112,14 @@ sap.ui.define([
|
|
|
112
112
|
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
113
113
|
* @private
|
|
114
114
|
*/
|
|
115
|
-
_onContentReceived: function
|
|
115
|
+
_onContentReceived: function(oModelData, oPage, sContentSuffix, oData) {
|
|
116
116
|
var that = this;
|
|
117
117
|
oModelData.data = DataUtils.formatData(oData, oModelData.fileType);
|
|
118
118
|
|
|
119
119
|
if (oModelData.fileType) {
|
|
120
120
|
return LRepConnector.getContent(oModelData.layer, sContentSuffix, true).then(
|
|
121
121
|
that._onContentMetadataReceived.bind(that, oModelData, oPage),
|
|
122
|
-
function
|
|
122
|
+
function() {
|
|
123
123
|
oPage.setBusy(false);
|
|
124
124
|
}
|
|
125
125
|
);
|
|
@@ -136,10 +136,10 @@ sap.ui.define([
|
|
|
136
136
|
* @param {object} oMetadata - Metadata which is received from <code>LRepConnector</code> "getContent" promise
|
|
137
137
|
* @private
|
|
138
138
|
*/
|
|
139
|
-
_onContentMetadataReceived: function
|
|
139
|
+
_onContentMetadataReceived: function(oModelData, oPage, oMetadata) {
|
|
140
140
|
oModelData.metadata = oMetadata;
|
|
141
141
|
this.oSelectedContentModel.setData(oModelData);
|
|
142
|
-
oModelData.metadata.some(function
|
|
142
|
+
oModelData.metadata.some(function(oMetadata) {
|
|
143
143
|
if (oMetadata.name === "layer") {
|
|
144
144
|
if (oMetadata.value === "CUSTOMER") {
|
|
145
145
|
this.getView().byId("activeVersionCheckBox").setVisible(true);
|
|
@@ -165,7 +165,7 @@ sap.ui.define([
|
|
|
165
165
|
* Navigates to Edit mode of content.
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
|
-
onEditClicked: function
|
|
168
|
+
onEditClicked: function() {
|
|
169
169
|
var oSelectedContentModel = this.getView().getModel("selectedContent");
|
|
170
170
|
var oContentData = oSelectedContentModel.getData();
|
|
171
171
|
var oRouter = UIComponent.getRouterFor(this);
|
|
@@ -183,7 +183,7 @@ sap.ui.define([
|
|
|
183
183
|
* The function displays a confirmation dialog. On confirmation, the deletion of the displayed content is triggered.
|
|
184
184
|
* @public
|
|
185
185
|
*/
|
|
186
|
-
onDeleteClicked: function
|
|
186
|
+
onDeleteClicked: function() {
|
|
187
187
|
var that = this;
|
|
188
188
|
|
|
189
189
|
var oDialog = new Dialog({
|
|
@@ -193,18 +193,18 @@ sap.ui.define([
|
|
|
193
193
|
beginButton: new Button({
|
|
194
194
|
text: "{i18n>confirm}",
|
|
195
195
|
type: ButtonType.Reject,
|
|
196
|
-
press: function
|
|
196
|
+
press: function() {
|
|
197
197
|
oDialog.close();
|
|
198
198
|
that._selectTransportAndDeleteFile();
|
|
199
199
|
}
|
|
200
200
|
}),
|
|
201
201
|
endButton: new Button({
|
|
202
202
|
text: "{i18n>cancel}",
|
|
203
|
-
press: function
|
|
203
|
+
press: function() {
|
|
204
204
|
oDialog.close();
|
|
205
205
|
}
|
|
206
206
|
}),
|
|
207
|
-
afterClose: function
|
|
207
|
+
afterClose: function() {
|
|
208
208
|
oDialog.destroy();
|
|
209
209
|
}
|
|
210
210
|
});
|
|
@@ -218,7 +218,7 @@ sap.ui.define([
|
|
|
218
218
|
* Select correct transport id (through a dialog if necessary) and trigger deletion of file.
|
|
219
219
|
* @private
|
|
220
220
|
*/
|
|
221
|
-
_selectTransportAndDeleteFile: function
|
|
221
|
+
_selectTransportAndDeleteFile: function() {
|
|
222
222
|
var that = this;
|
|
223
223
|
var oSelectedContentModel = this.getView().getModel("selectedContent");
|
|
224
224
|
var bOnActivatedVersion = this.getView().byId("activeVersionCheckBox").getSelected();
|
|
@@ -229,13 +229,13 @@ sap.ui.define([
|
|
|
229
229
|
var sPackageFromContent;
|
|
230
230
|
var sTransportId;
|
|
231
231
|
|
|
232
|
-
oContentData.metadata.some(function
|
|
232
|
+
oContentData.metadata.some(function(mMetadata) {
|
|
233
233
|
if (mMetadata.name === "layer") {
|
|
234
234
|
sContentLayer = mMetadata.value;
|
|
235
235
|
return true;
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
oContentData.metadata.some(function
|
|
238
|
+
oContentData.metadata.some(function(mMetadata) {
|
|
239
239
|
if (mMetadata.name === "transportId") {
|
|
240
240
|
sTransportIdFromContent = mMetadata.value;
|
|
241
241
|
return true;
|
|
@@ -244,7 +244,7 @@ sap.ui.define([
|
|
|
244
244
|
try {
|
|
245
245
|
sPackageFromContent = JSON.parse(oContentData.data).packageName;
|
|
246
246
|
} catch (e) {
|
|
247
|
-
//when content is not in JSON format, package is undefined but does not break the code.
|
|
247
|
+
// when content is not in JSON format, package is undefined but does not break the code.
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
var sNamespace = oContentData.namespace;
|
|
@@ -255,15 +255,15 @@ sap.ui.define([
|
|
|
255
255
|
(sContentLayer === "LOAD") ||
|
|
256
256
|
(sContentLayer === "VENDOR_LOAD") ||
|
|
257
257
|
(!sTransportIdFromContent && (!sPackageFromContent || sPackageFromContent === "$TMP"))) {
|
|
258
|
-
//USER, LOAD (and VENDOR_LOAD) layers together with non-ABAP and local ABAP content do not need transport
|
|
258
|
+
// USER, LOAD (and VENDOR_LOAD) layers together with non-ABAP and local ABAP content do not need transport
|
|
259
259
|
sTransportId = undefined;
|
|
260
260
|
that._deleteFile(sContentLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer, bOnActivatedVersion);
|
|
261
261
|
} else if (sTransportIdFromContent === "ATO_NOTIFICATION") {
|
|
262
|
-
//ATO_NOTIFICATION content
|
|
262
|
+
// ATO_NOTIFICATION content
|
|
263
263
|
sTransportId = sTransportIdFromContent;
|
|
264
264
|
that._deleteFile(sContentLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer, bOnActivatedVersion);
|
|
265
265
|
} else {
|
|
266
|
-
//Bring up an simple transport input dialog
|
|
266
|
+
// Bring up an simple transport input dialog
|
|
267
267
|
var oTransportInput = new Input({placeholder: "Transport ID or ATO_NOTIFICATION" });
|
|
268
268
|
var oDialog = new Dialog({
|
|
269
269
|
title: "{i18n>transportInput}",
|
|
@@ -274,7 +274,7 @@ sap.ui.define([
|
|
|
274
274
|
beginButton: new Button({
|
|
275
275
|
text: "{i18n>confirm}",
|
|
276
276
|
type: ButtonType.Accept,
|
|
277
|
-
press: function
|
|
277
|
+
press: function() {
|
|
278
278
|
sTransportId = oTransportInput.getValue();
|
|
279
279
|
oDialog.close();
|
|
280
280
|
that._deleteFile(sContentLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer);
|
|
@@ -282,11 +282,11 @@ sap.ui.define([
|
|
|
282
282
|
}),
|
|
283
283
|
endButton: new Button({
|
|
284
284
|
text: "{i18n>cancel}",
|
|
285
|
-
press: function
|
|
285
|
+
press: function() {
|
|
286
286
|
oDialog.close();
|
|
287
287
|
}
|
|
288
288
|
}),
|
|
289
|
-
afterClose: function
|
|
289
|
+
afterClose: function() {
|
|
290
290
|
oDialog.destroy();
|
|
291
291
|
}
|
|
292
292
|
});
|
|
@@ -300,8 +300,8 @@ sap.ui.define([
|
|
|
300
300
|
* @returns {Promise} <code>LRepConnector</code> "deleteFile" promise
|
|
301
301
|
* @private
|
|
302
302
|
*/
|
|
303
|
-
_deleteFile: function
|
|
304
|
-
return LRepConnector.deleteFile(sLayer, sNamespace, sFileName, sFileType, sTransportId, bSupport).then(function
|
|
303
|
+
_deleteFile: function(sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer, bSupport) {
|
|
304
|
+
return LRepConnector.deleteFile(sLayer, sNamespace, sFileName, sFileType, sTransportId, bSupport).then(function() {
|
|
305
305
|
var oRouter = UIComponent.getRouterFor(this);
|
|
306
306
|
oRouter.navTo("LayerContentMaster", {
|
|
307
307
|
layer: sSelectedLayer,
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js
CHANGED
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"sap/m/library",
|
|
17
17
|
"sap/ui/model/json/JSONModel",
|
|
18
18
|
"sap/ui/core/UIComponent"
|
|
19
|
-
], function
|
|
19
|
+
], function(
|
|
20
20
|
Controller,
|
|
21
21
|
LRepConnector,
|
|
22
22
|
DataUtils,
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @constructor
|
|
41
41
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.116.0
|
|
44
44
|
* @experimental Since 1.45
|
|
45
45
|
*/
|
|
46
46
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
* Handles data binding and route matching.
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
|
-
onInit: function
|
|
56
|
+
onInit: function() {
|
|
57
57
|
this._initAndBindSelectedContentModel();
|
|
58
58
|
var oRouter = UIComponent.getRouterFor(this);
|
|
59
59
|
oRouter.getRoute("ContentDetailsEdit").attachMatched(this._onRouteMatched, this);
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* Creates and binds of the model for the selected content.
|
|
64
64
|
* @private
|
|
65
65
|
*/
|
|
66
|
-
_initAndBindSelectedContentModel: function
|
|
66
|
+
_initAndBindSelectedContentModel: function() {
|
|
67
67
|
this.oSelectedContentModel = new JSONModel();
|
|
68
68
|
this.getView().setModel(this.oSelectedContentModel, "selectedContent");
|
|
69
69
|
},
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* @returns {Promise} - <code>LRepConnector</code> "getContent" promise
|
|
76
76
|
* @private
|
|
77
77
|
*/
|
|
78
|
-
_onRouteMatched: function
|
|
78
|
+
_onRouteMatched: function(oRouteMatch) {
|
|
79
79
|
var that = this;
|
|
80
80
|
var mRouteArguments = oRouteMatch.getParameter("arguments");
|
|
81
81
|
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
|
|
97
97
|
return LRepConnector.getContent(oModelData.layer, sContentSuffix, null, null, true).then(
|
|
98
98
|
that._onContentReceived.bind(that, oModelData, oPage, sContentSuffix),
|
|
99
|
-
function
|
|
99
|
+
function() {
|
|
100
100
|
oPage.setBusy(false);
|
|
101
101
|
}
|
|
102
102
|
);
|
|
@@ -112,13 +112,13 @@ sap.ui.define([
|
|
|
112
112
|
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
113
113
|
* @private
|
|
114
114
|
*/
|
|
115
|
-
_onContentReceived: function
|
|
115
|
+
_onContentReceived: function(oModelData, oPage, sContentSuffix, oData) {
|
|
116
116
|
return LRepConnector.getContent(oModelData.layer, sContentSuffix, true).then(
|
|
117
|
-
function
|
|
117
|
+
function(oMetadata) {
|
|
118
118
|
oModelData.data = DataUtils.formatData(oData, oModelData.fileType);
|
|
119
119
|
oModelData.metadata = oMetadata;
|
|
120
120
|
this.oSelectedContentModel.setData(oModelData);
|
|
121
|
-
oModelData.metadata.some(function
|
|
121
|
+
oModelData.metadata.some(function(oMetadata) {
|
|
122
122
|
if (oMetadata.name === "layer") {
|
|
123
123
|
if (oMetadata.value === "CUSTOMER") {
|
|
124
124
|
this.getView().byId("activeVersionCheckBox").setVisible(true);
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
}
|
|
130
130
|
}.bind(this));
|
|
131
131
|
oPage.setBusy(false);
|
|
132
|
-
}.bind(this), function
|
|
132
|
+
}.bind(this), function() {
|
|
133
133
|
oPage.setBusy(false);
|
|
134
134
|
}
|
|
135
135
|
);
|
|
@@ -140,7 +140,7 @@ sap.ui.define([
|
|
|
140
140
|
* Checks the current layer, namespace, filename, and file type and select correct transport id (through a dialog if necessary) and trigger save request of file.
|
|
141
141
|
* @public
|
|
142
142
|
*/
|
|
143
|
-
onSave: function
|
|
143
|
+
onSave: function() {
|
|
144
144
|
var that = this;
|
|
145
145
|
var oSelectedContentModel = this.getView().getModel("selectedContent");
|
|
146
146
|
var bOnActivatedVersion = this.getView().byId("activeVersionCheckBox").getSelected();
|
|
@@ -150,13 +150,13 @@ sap.ui.define([
|
|
|
150
150
|
var sPackageFromContent;
|
|
151
151
|
var sTransportId;
|
|
152
152
|
var sPackageName;
|
|
153
|
-
oContentData.metadata.some(function
|
|
153
|
+
oContentData.metadata.some(function(oMetadata) {
|
|
154
154
|
if (oMetadata.name === "layer") {
|
|
155
155
|
sLayer = oMetadata.value;
|
|
156
156
|
return true;
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
oContentData.metadata.some(function
|
|
159
|
+
oContentData.metadata.some(function(mMetadata) {
|
|
160
160
|
if (mMetadata.name === "transportId") {
|
|
161
161
|
sTransportIdFromContent = mMetadata.value;
|
|
162
162
|
return true;
|
|
@@ -165,7 +165,7 @@ sap.ui.define([
|
|
|
165
165
|
try {
|
|
166
166
|
sPackageFromContent = JSON.parse(oContentData.data).packageName;
|
|
167
167
|
} catch (e) {
|
|
168
|
-
//when content is not in JSON format (Ex: js or code_ext file), package is undefined but does not break the code.
|
|
168
|
+
// when content is not in JSON format (Ex: js or code_ext file), package is undefined but does not break the code.
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
if ((sLayer === Layer.USER) ||
|
|
@@ -191,7 +191,7 @@ sap.ui.define([
|
|
|
191
191
|
beginButton: new Button({
|
|
192
192
|
text: "{i18n>confirm}",
|
|
193
193
|
type: ButtonType.Reject,
|
|
194
|
-
press: function
|
|
194
|
+
press: function() {
|
|
195
195
|
sPackageName = oPackageInput.getValue();
|
|
196
196
|
sTransportId = oTransportInput.getValue();
|
|
197
197
|
oDialog.close();
|
|
@@ -200,11 +200,11 @@ sap.ui.define([
|
|
|
200
200
|
}),
|
|
201
201
|
endButton: new Button({
|
|
202
202
|
text: "{i18n>cancel}",
|
|
203
|
-
press: function
|
|
203
|
+
press: function() {
|
|
204
204
|
oDialog.close();
|
|
205
205
|
}
|
|
206
206
|
}),
|
|
207
|
-
afterClose: function
|
|
207
|
+
afterClose: function() {
|
|
208
208
|
oDialog.destroy();
|
|
209
209
|
}
|
|
210
210
|
});
|
|
@@ -219,7 +219,7 @@ sap.ui.define([
|
|
|
219
219
|
* @returns {Promise} <code>LRepConnector</code> "saveFiles" promise
|
|
220
220
|
* @private
|
|
221
221
|
*/
|
|
222
|
-
_saveFile: function
|
|
222
|
+
_saveFile: function(sLayer, sNameSpace, sFileName, sFileType, sData, sTransportId, sPackageName, bSupport) {
|
|
223
223
|
return LRepConnector.saveFile(sLayer, sNameSpace, sFileName, sFileType, sData, sTransportId, sPackageName, bSupport).then(this._navToDisplayMode.bind(this));
|
|
224
224
|
},
|
|
225
225
|
|
|
@@ -228,7 +228,7 @@ sap.ui.define([
|
|
|
228
228
|
* Navigates back to "Display" mode of the content.
|
|
229
229
|
* @public
|
|
230
230
|
*/
|
|
231
|
-
onCancel: function
|
|
231
|
+
onCancel: function() {
|
|
232
232
|
this._navToDisplayMode();
|
|
233
233
|
},
|
|
234
234
|
|
|
@@ -237,7 +237,7 @@ sap.ui.define([
|
|
|
237
237
|
* Gathers layer, namespace, filename, and file type information and navigates to "ContentDetailsFlip" target.
|
|
238
238
|
* @private
|
|
239
239
|
*/
|
|
240
|
-
_navToDisplayMode: function
|
|
240
|
+
_navToDisplayMode: function() {
|
|
241
241
|
var oSelectedContentModel = this.getView().getModel("selectedContent");
|
|
242
242
|
var oContentData = oSelectedContentModel.getData();
|
|
243
243
|
var oRouter = UIComponent.getRouterFor(this);
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
CHANGED
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ui/model/FilterOperator",
|
|
12
12
|
"sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector",
|
|
13
13
|
"sap/ui/fl/support/apps/contentbrowser/utils/DataUtils"
|
|
14
|
-
], function
|
|
14
|
+
], function(
|
|
15
15
|
Controller,
|
|
16
16
|
UIComponent,
|
|
17
17
|
Filter,
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @constructor
|
|
28
28
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.116.0
|
|
31
31
|
* @experimental Since 1.45
|
|
32
32
|
*/
|
|
33
33
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* Handles data binding and route matching.
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
|
-
onInit: function
|
|
43
|
+
onInit: function() {
|
|
44
44
|
var oRouter = UIComponent.getRouterFor(this);
|
|
45
45
|
oRouter.getRoute("LayerContentMaster").attachMatched(this._onRouteMatched, this);
|
|
46
46
|
},
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
* @param {object} oRouteMatch - Route object specified in the router which was matched via regexp
|
|
52
52
|
* @private
|
|
53
53
|
*/
|
|
54
|
-
_onRouteMatched: function
|
|
54
|
+
_onRouteMatched: function(oRouteMatch) {
|
|
55
55
|
var that = this;
|
|
56
56
|
var mRouteArguments = oRouteMatch.getParameter("arguments");
|
|
57
57
|
this.sLayer = mRouteArguments.layer;
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
that._onContentReceived.bind(that, oPage),
|
|
66
66
|
function() {
|
|
67
67
|
oPage.setBusy(false);
|
|
68
|
-
}).then(function
|
|
68
|
+
}).then(function() {
|
|
69
69
|
LRepConnector.requestPending = false;
|
|
70
70
|
});
|
|
71
71
|
},
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
* @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
|
|
78
78
|
* @private
|
|
79
79
|
*/
|
|
80
|
-
_onContentReceived: function
|
|
80
|
+
_onContentReceived: function(oPage, oData) {
|
|
81
81
|
var oContentModel = this.getView().getModel("content");
|
|
82
82
|
oContentModel.setData(oData);
|
|
83
83
|
oPage.setBusy(false);
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
* @param {object} oEvent - <code>liveChange</code> event of search field
|
|
91
91
|
* @public
|
|
92
92
|
*/
|
|
93
|
-
onSearch: function
|
|
93
|
+
onSearch: function(oEvent) {
|
|
94
94
|
var sQuery = oEvent.getSource().getValue();
|
|
95
95
|
this.filterListByQuery(sQuery);
|
|
96
96
|
},
|
|
@@ -101,7 +101,7 @@ sap.ui.define([
|
|
|
101
101
|
* @param {string} sQuery - Entered string within the search field
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
|
-
filterListByQuery: function
|
|
104
|
+
filterListByQuery: function(sQuery) {
|
|
105
105
|
// add filter for search
|
|
106
106
|
var aFilters = [];
|
|
107
107
|
if (sQuery && sQuery.length > 0) {
|
|
@@ -126,7 +126,7 @@ sap.ui.define([
|
|
|
126
126
|
* @param {object} oEvent - Press event of master components list
|
|
127
127
|
* @public
|
|
128
128
|
*/
|
|
129
|
-
onContentSelected: function
|
|
129
|
+
onContentSelected: function(oEvent) {
|
|
130
130
|
var sSource = oEvent.getSource();
|
|
131
131
|
var sContentBindingPath = sSource.getBindingContextPath().substring(1);
|
|
132
132
|
var sContentModelData = this.getView().getModel("content").getData();
|
|
@@ -135,7 +135,7 @@ sap.ui.define([
|
|
|
135
135
|
var sContentFileType = sContentModelData[sContentBindingPath].fileType;
|
|
136
136
|
var oRouter = UIComponent.getRouterFor(this);
|
|
137
137
|
|
|
138
|
-
this.sNamespace = (this.sNamespace ? this.sNamespace :
|
|
138
|
+
this.sNamespace = (this.sNamespace ? this.sNamespace : "/");
|
|
139
139
|
|
|
140
140
|
if (sContentFileType) {
|
|
141
141
|
// show details to a file
|
|
@@ -148,7 +148,7 @@ sap.ui.define([
|
|
|
148
148
|
oRouter.navTo("ContentDetails", mRouteParameters);
|
|
149
149
|
} else {
|
|
150
150
|
// navigation to a namespace
|
|
151
|
-
this.sNamespace += sContentName +
|
|
151
|
+
this.sNamespace += sContentName + "/";
|
|
152
152
|
oRouter.navTo("LayerContentMaster", {layer: this.sLayer, namespace: encodeURIComponent(this.sNamespace)});
|
|
153
153
|
}
|
|
154
154
|
},
|
|
@@ -158,7 +158,7 @@ sap.ui.define([
|
|
|
158
158
|
* Calculates the parent namespace, then navigates to the target.
|
|
159
159
|
* @public
|
|
160
160
|
*/
|
|
161
|
-
navBack: function
|
|
161
|
+
navBack: function() {
|
|
162
162
|
var oRouter = UIComponent.getRouterFor(this);
|
|
163
163
|
if (!this.sNamespace || this.sNamespace === "/") {
|
|
164
164
|
oRouter.navTo("Layers");
|
|
@@ -176,12 +176,12 @@ sap.ui.define([
|
|
|
176
176
|
* @returns {string} - Shortened namespace for display
|
|
177
177
|
* @private
|
|
178
178
|
*/
|
|
179
|
-
_shortenNamespace: function
|
|
180
|
-
if (!this.sNamespace || this.sNamespace ===
|
|
179
|
+
_shortenNamespace: function() {
|
|
180
|
+
if (!this.sNamespace || this.sNamespace === "/") {
|
|
181
181
|
return "[" + this.sLayer + "] /";
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
var aSplittedNamespace = this.sNamespace.split(
|
|
184
|
+
var aSplittedNamespace = this.sNamespace.split("/");
|
|
185
185
|
var sNamespaceDepth = aSplittedNamespace.length;
|
|
186
186
|
if (sNamespaceDepth > 2) {
|
|
187
187
|
return "[" + this.sLayer + "] .../" + aSplittedNamespace[sNamespaceDepth - 2];
|
|
@@ -196,9 +196,9 @@ sap.ui.define([
|
|
|
196
196
|
* @param {object} oEvent - Press event on the error button
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
handleMessagePopoverPress: function
|
|
199
|
+
handleMessagePopoverPress: function(oEvent) {
|
|
200
200
|
var sSource = oEvent.getSource();
|
|
201
|
-
sap.ui.require(["sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils"], function
|
|
201
|
+
sap.ui.require(["sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils"], function(ErrorUtils) {
|
|
202
202
|
ErrorUtils.handleMessagePopoverPress(sSource);
|
|
203
203
|
});
|
|
204
204
|
}
|
|
@@ -8,7 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/core/mvc/Controller",
|
|
9
9
|
"sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils",
|
|
10
10
|
"sap/ui/core/UIComponent"
|
|
11
|
-
], function
|
|
11
|
+
], function(Controller, ErrorUtils, UIComponent) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @constructor
|
|
18
18
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.Layers
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.116.0
|
|
21
21
|
* @experimental Since 1.45
|
|
22
22
|
*/
|
|
23
23
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @param {object} oEvent - Event object
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
onLayerSelected: function
|
|
29
|
+
onLayerSelected: function(oEvent) {
|
|
30
30
|
var oSource = oEvent.getSource();
|
|
31
31
|
var sLayerBindingPath = oSource.getBindingContextPath().substring(1);
|
|
32
32
|
var oLayerModelData = this.getView().getModel("layers").getData();
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @param {object} oEvent - Event object
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
|
-
handleMessagePopoverPress: function
|
|
44
|
+
handleMessagePopoverPress: function(oEvent) {
|
|
45
45
|
var oSource = oEvent.getSource();
|
|
46
46
|
ErrorUtils.handleMessagePopoverPress(oSource);
|
|
47
47
|
}
|