@openui5/sap.ui.fl 1.96.2 → 1.98.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/.reuse/dep5 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +2 -2
- package/src/sap/ui/fl/Cache.js +2 -2
- package/src/sap/ui/fl/Change.js +5 -219
- package/src/sap/ui/fl/ChangePersistence.js +28 -28
- package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
- package/src/sap/ui/fl/EventHistory.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
- package/src/sap/ui/fl/FlexController.js +37 -19
- package/src/sap/ui/fl/FlexControllerFactory.js +14 -8
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +2 -2
- package/src/sap/ui/fl/PreprocessorImpl.js +7 -5
- package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
- package/src/sap/ui/fl/Utils.js +35 -309
- package/src/sap/ui/fl/Variant.js +2 -116
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +15 -14
- package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +3 -3
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +4 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +267 -265
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +40 -10
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +16 -11
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +16 -17
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +22 -23
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +3 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +23 -25
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +8 -2
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +87 -7
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +2 -2
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +72 -10
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/fl/changeHandler/Base.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
- package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
- package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +17 -11
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
- package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +1 -1
- package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +10 -3
- package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +2 -2
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -2
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +2 -2
- 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 +17 -7
- package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +5 -6
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
- package/src/sap/ui/fl/library.js +12 -12
- package/src/sap/ui/fl/library.support.js +1 -1
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
- package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +26 -17
- package/src/sap/ui/fl/requireAsync.js +1 -1
- package/src/sap/ui/fl/support/Flexibility.js +84 -73
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
- package/src/sap/ui/fl/support/api/SupportAPI.js +28 -0
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +14 -14
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +9 -9
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +10 -10
- 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 +52 -53
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +130 -126
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -3
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +4 -15
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +2 -2
- package/src/sap/ui/fl/themes/base/library.source.less +1 -1
- package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -5
- package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +2 -2
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
- package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +2 -2
- package/src/sap/ui/fl/variants/VariantManagement.js +3 -2
- package/src/sap/ui/fl/variants/VariantModel.js +6 -46
- package/src/sap/ui/fl/variants/context/Component.js +1 -1
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +13 -3
- package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +34 -2
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
- package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +25 -2
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -3
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Utils.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/LastOneWins.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +5 -5
- package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +50 -26
- package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -3
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
- package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +5 -5
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +3 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +22 -7
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +6 -5
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +6 -8
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +7 -6
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -3
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +125 -14
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +6 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +8 -4
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +43 -4
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +5 -5
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +3 -1
- package/src/sap/ui/fl/write/api/TranslationAPI.js +102 -0
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +3 -2
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +31 -1
- package/ui5.yaml +132 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -13,25 +13,35 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ui/model/json/JSONModel",
|
|
14
14
|
"sap/ui/fl/FlexController",
|
|
15
15
|
"sap/ui/fl/ChangePersistenceFactory",
|
|
16
|
-
"sap/ui/fl/Utils",
|
|
17
16
|
"sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
|
|
18
17
|
"sap/ui/core/mvc/XMLView",
|
|
19
18
|
"sap/ui/core/Component"
|
|
20
|
-
], function
|
|
19
|
+
], function(
|
|
20
|
+
each,
|
|
21
|
+
Plugin,
|
|
22
|
+
Support,
|
|
23
|
+
JsControlTreeModifier,
|
|
24
|
+
JSONModel,
|
|
25
|
+
FlexController,
|
|
26
|
+
ChangePersistenceFactory,
|
|
27
|
+
Extractor,
|
|
28
|
+
XMLView,
|
|
29
|
+
CoreComponent
|
|
30
|
+
) {
|
|
21
31
|
"use strict";
|
|
22
32
|
|
|
23
33
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
* Creates an instance of <code>sap.ui.fl.support.Flexibility</code>.
|
|
35
|
+
* @class This class represents the plugin for the support tool functionality of UI5.
|
|
36
|
+
* This class is internal and all its functions must not be used by an application
|
|
37
|
+
*
|
|
38
|
+
* @abstract
|
|
39
|
+
* @extends sap.ui.core.support.Plugin
|
|
40
|
+
* @version 1.98.0
|
|
41
|
+
* @private
|
|
42
|
+
* @ui5-restricted
|
|
43
|
+
* @constructor
|
|
44
|
+
*/
|
|
35
45
|
var Flexibility = Plugin.extend("sap.ui.fl.support.Flexibility", {
|
|
36
46
|
constructor: function (oSupportStub) {
|
|
37
47
|
Plugin.apply(this, ["sapUiSupportFlexibility", "Flexibility", oSupportStub]);
|
|
@@ -54,11 +64,11 @@ sap.ui.define([
|
|
|
54
64
|
Flexibility.prototype.sDelimiter = ";";
|
|
55
65
|
|
|
56
66
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
* Creation of the support plugin.
|
|
68
|
+
* On the tool plugin site a rendering as well as a model creation for later data receiving is created.
|
|
69
|
+
*
|
|
70
|
+
* @param {sap.ui.core.support.Support} oSupportStub - Support instance created within the support window instantiation
|
|
71
|
+
*/
|
|
62
72
|
Flexibility.prototype.init = function (oSupportStub) {
|
|
63
73
|
Plugin.prototype.init.apply(this, arguments);
|
|
64
74
|
|
|
@@ -86,13 +96,15 @@ sap.ui.define([
|
|
|
86
96
|
};
|
|
87
97
|
|
|
88
98
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
* Rendering of the tool plugin side of the UI.
|
|
100
|
+
* This creates a plain html-rendered header as well as a view containing the hierarchy of the flexibility data:
|
|
101
|
+
* <ul>
|
|
102
|
+
* <li>hierarchical list of controls and their changes</li>
|
|
103
|
+
* <li>details view with information to selected changes</li>
|
|
104
|
+
* </ul>
|
|
105
|
+
*
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
96
108
|
Flexibility.prototype._renderToolPlugin = function () {
|
|
97
109
|
var _doPlainRendering = function () {
|
|
98
110
|
var rm = sap.ui.getCore().createRenderManager();
|
|
@@ -122,18 +134,18 @@ sap.ui.define([
|
|
|
122
134
|
};
|
|
123
135
|
|
|
124
136
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
* Requests the data from the application side support plugin.
|
|
138
|
+
*
|
|
139
|
+
* @private
|
|
140
|
+
* @restricted sap.ui.fl.support
|
|
141
|
+
*/
|
|
130
142
|
Flexibility.prototype.onRefresh = function () {
|
|
131
143
|
Support.getStub().sendEvent(this.getId() + "GetApps", {});
|
|
132
144
|
};
|
|
133
145
|
|
|
134
146
|
/**
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
* Collects a list of apps.
|
|
148
|
+
*/
|
|
137
149
|
Flexibility.prototype.onsapUiSupportFlexibilityGetApps = function () {
|
|
138
150
|
var aApps = [];
|
|
139
151
|
|
|
@@ -153,7 +165,7 @@ sap.ui.define([
|
|
|
153
165
|
|
|
154
166
|
/**
|
|
155
167
|
* Parses all registered components and extracts <code>sap.ui5/appVariantHierarchy</code>.
|
|
156
|
-
* @param {string} sReference
|
|
168
|
+
* @param {string} sReference - Flex reference
|
|
157
169
|
* @returns {string} Joined app variant hierarchy and its app version
|
|
158
170
|
*/
|
|
159
171
|
Flexibility.prototype.getAppVariantHierarchy = function (sReference) {
|
|
@@ -173,11 +185,10 @@ sap.ui.define([
|
|
|
173
185
|
};
|
|
174
186
|
|
|
175
187
|
/**
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
*/
|
|
188
|
+
* Collects data of changes.
|
|
189
|
+
*
|
|
190
|
+
* @param {sap.ui.base.Event} oEvent - Event sent from the tool side plugin to request changes
|
|
191
|
+
*/
|
|
181
192
|
Flexibility.prototype.onsapUiSupportFlexibilityGetChangesMaps = function (oEvent) {
|
|
182
193
|
var sAppKey = oEvent.mParameters.appKey;
|
|
183
194
|
var aAppParameters = sAppKey.split(this.sDelimiter);
|
|
@@ -186,20 +197,20 @@ sap.ui.define([
|
|
|
186
197
|
};
|
|
187
198
|
|
|
188
199
|
/**
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
200
|
+
* Handler on tool plugin side; passes the received data from the application plugin tool to a model.
|
|
201
|
+
*
|
|
202
|
+
* @param {sap.ui.base.Event} oEvent - Event sent from the application side plugin with the applications
|
|
203
|
+
*/
|
|
193
204
|
Flexibility.prototype.onsapUiSupportFlexibilitySetApps = function (oEvent) {
|
|
194
205
|
var mApps = oEvent.getParameters();
|
|
195
206
|
this.oAppModel.setData(mApps);
|
|
196
207
|
};
|
|
197
208
|
|
|
198
209
|
/**
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
210
|
+
* Handler on tool plugin side; passes the received data from the application plugin tool to a model.
|
|
211
|
+
*
|
|
212
|
+
* @param {sap.ui.base.Event} oEvent - Event sent from the application side plugin with the changes
|
|
213
|
+
*/
|
|
203
214
|
Flexibility.prototype.onsapUiSupportFlexibilitySetChangesMaps = function (oEvent) {
|
|
204
215
|
var mCacheEntries = oEvent.getParameters();
|
|
205
216
|
this.oChangesModel.setData(mCacheEntries);
|
|
@@ -212,14 +223,21 @@ sap.ui.define([
|
|
|
212
223
|
};
|
|
213
224
|
|
|
214
225
|
/**
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
226
|
+
* Collects data of changes.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} sAppName - Name of the application
|
|
229
|
+
*
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
221
232
|
Flexibility.prototype._getChangesMapForApp = function (sAppName) {
|
|
222
|
-
|
|
233
|
+
var mChangedControls = {};
|
|
234
|
+
var mChanges = {};
|
|
235
|
+
var aTreeNodes = [];
|
|
236
|
+
var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(sAppName);
|
|
237
|
+
var mChangeFromPersistence = oChangePersistence._mChanges.mChanges;
|
|
238
|
+
var mDependencies = oChangePersistence._mChangesInitial.mDependencies;
|
|
239
|
+
|
|
240
|
+
function collectChangesData(mChanges, sControlId) {
|
|
223
241
|
mChangedControls[sControlId] = [];
|
|
224
242
|
var aChangesForControl = mChangeFromPersistence[sControlId];
|
|
225
243
|
var oControl = sap.ui.getCore().byId(sControlId);
|
|
@@ -238,10 +256,10 @@ sap.ui.define([
|
|
|
238
256
|
}
|
|
239
257
|
}
|
|
240
258
|
|
|
241
|
-
mChangedControls[sControlId] = aChangesForControl.map(
|
|
259
|
+
mChangedControls[sControlId] = aChangesForControl.map(collectDataForSingleChange.bind(this, oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges));
|
|
242
260
|
}
|
|
243
261
|
|
|
244
|
-
function
|
|
262
|
+
function collectDataForSingleChange(oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges, oChange) {
|
|
245
263
|
var oChangeDetails = {
|
|
246
264
|
id: oChange.getId(),
|
|
247
265
|
changeType: oChange.getChangeType(),
|
|
@@ -285,7 +303,7 @@ sap.ui.define([
|
|
|
285
303
|
return oChangeDetails;
|
|
286
304
|
}
|
|
287
305
|
|
|
288
|
-
function
|
|
306
|
+
function setIsInSubTreeInformation(oChangeDetails, sKey, oDependency) {
|
|
289
307
|
var aChangeIds = oDependency.dependencies;
|
|
290
308
|
if (aChangeIds.indexOf(oChangeDetails.id) !== -1) {
|
|
291
309
|
var bSameSelector = JSON.stringify(mChanges[sKey].selector) === JSON.stringify(oChangeDetails.selector);
|
|
@@ -293,9 +311,9 @@ sap.ui.define([
|
|
|
293
311
|
}
|
|
294
312
|
}
|
|
295
313
|
|
|
296
|
-
function
|
|
314
|
+
function setDependentChangeRelatedInformation(sControlId, mChangesOnControl) {
|
|
297
315
|
mChangesOnControl.forEach(function (oChangeDetails) {
|
|
298
|
-
jQuery.each(mDependencies,
|
|
316
|
+
jQuery.each(mDependencies, setIsInSubTreeInformation.bind(this, oChangeDetails));
|
|
299
317
|
|
|
300
318
|
oChangeDetails.allDependendingControlsPresent = oChangeDetails.dependentControls.every(function (mControl) {
|
|
301
319
|
return mControl.controlPresent;
|
|
@@ -327,7 +345,7 @@ sap.ui.define([
|
|
|
327
345
|
});
|
|
328
346
|
}
|
|
329
347
|
|
|
330
|
-
function
|
|
348
|
+
function fnCreateChangesNode(aChangesDetails) {
|
|
331
349
|
aChangesDetails = aChangesDetails.filter(function (oChange) {
|
|
332
350
|
return !aChangesDetails.some(function (oChangeInSameHierarchy) {
|
|
333
351
|
return oChangeInSameHierarchy.dependentChanges.some(function (oDependentChange) {
|
|
@@ -340,28 +358,21 @@ sap.ui.define([
|
|
|
340
358
|
return {
|
|
341
359
|
id: oChange.id,
|
|
342
360
|
text: oChange.changeType,
|
|
343
|
-
nodes: oChange.dependentChanges ?
|
|
361
|
+
nodes: oChange.dependentChanges ? fnCreateChangesNode(oChange.dependentChanges) : []
|
|
344
362
|
};
|
|
345
363
|
});
|
|
346
364
|
}
|
|
347
365
|
|
|
348
|
-
function
|
|
366
|
+
function createRootNodes(sControlId, aChangesDetails) {
|
|
349
367
|
aTreeNodes.push({
|
|
350
368
|
text: sControlId,
|
|
351
|
-
nodes:
|
|
369
|
+
nodes: fnCreateChangesNode(aChangesDetails)
|
|
352
370
|
});
|
|
353
371
|
}
|
|
354
372
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(sAppName);
|
|
359
|
-
var mChangeFromPersistence = oChangePersistence._mChanges.mChanges;
|
|
360
|
-
var mDependencies = oChangePersistence._mChangesInitial.mDependencies;
|
|
361
|
-
|
|
362
|
-
Object.keys(mChangeFromPersistence).forEach(_collectChangesData.bind(this, mChanges));
|
|
363
|
-
jQuery.each(mChangedControls, _setDependentChangeRelatedInformation);
|
|
364
|
-
jQuery.each(mChangedControls, _createRootNodes);
|
|
373
|
+
Object.keys(mChangeFromPersistence).forEach(collectChangesData.bind(this, mChanges));
|
|
374
|
+
jQuery.each(mChangedControls, setDependentChangeRelatedInformation);
|
|
375
|
+
jQuery.each(mChangedControls, createRootNodes);
|
|
365
376
|
|
|
366
377
|
this._oStub.sendEvent(this.getId() + "SetChangesMaps", {
|
|
367
378
|
changes: mChanges,
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Component",
|
|
9
|
+
"sap/ui/fl/ChangePersistenceFactory",
|
|
10
|
+
"sap/ui/fl/apply/_internal/changes/FlexCustomData",
|
|
11
|
+
"sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
|
|
12
|
+
"sap/ui/fl/Utils"
|
|
13
|
+
], function(
|
|
14
|
+
Component,
|
|
15
|
+
ChangePersistenceFactory,
|
|
16
|
+
FlexCustomData,
|
|
17
|
+
Extractor,
|
|
18
|
+
Utils
|
|
19
|
+
) {
|
|
20
|
+
"use strict";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Provides an object with the changes for the current application as well as
|
|
24
|
+
* further information. I.e. if the changes were applied and their dependencies.
|
|
25
|
+
*
|
|
26
|
+
* @namespace sap.ui.fl.support._internal.getChangeDependencies
|
|
27
|
+
* @since 1.98
|
|
28
|
+
* @version 1.98.0
|
|
29
|
+
* @private
|
|
30
|
+
* @ui5-restricted sap.ui.fl.support.api.SupportAPI
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
return function () {
|
|
34
|
+
return Utils.getUShellService("AppLifeCycle").then(function (oAppLifeCycleService) {
|
|
35
|
+
var oCurrentAppContainerObject;
|
|
36
|
+
|
|
37
|
+
if (oAppLifeCycleService) {
|
|
38
|
+
oCurrentAppContainerObject = oAppLifeCycleService.getCurrentApplication().componentInstance;
|
|
39
|
+
} else {
|
|
40
|
+
var aApplications = Component.registry.filter(function (oComponent) {
|
|
41
|
+
return oComponent.getManifestObject().getRawJson()["sap.app"].type === "application";
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
if (aApplications.length === 1) {
|
|
45
|
+
oCurrentAppContainerObject = aApplications[0];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (oCurrentAppContainerObject) {
|
|
50
|
+
var oAppComponent = oCurrentAppContainerObject.oContainer.getComponentInstance();
|
|
51
|
+
var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForControl(oAppComponent);
|
|
52
|
+
|
|
53
|
+
return Extractor.extractData(oChangePersistence);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {};
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/support/_internal/getChangeDependencies"
|
|
9
|
+
], function(
|
|
10
|
+
getChangeDependencies
|
|
11
|
+
) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Provides an API for support tools
|
|
16
|
+
*
|
|
17
|
+
* @namespace sap.ui.fl.support.api.SupportAPI
|
|
18
|
+
* @since 1.98
|
|
19
|
+
* @version 1.98.0
|
|
20
|
+
* @private
|
|
21
|
+
* @ui5-restricted ui5 support tools
|
|
22
|
+
*/
|
|
23
|
+
var SupportAPI = /** @lends sap.ui.fl.support.api.SupportAPI */{
|
|
24
|
+
getChangeDependencies: getChangeDependencies
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return SupportAPI;
|
|
28
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.98.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
|
|
@@ -68,8 +68,8 @@ sap.ui.define([
|
|
|
68
68
|
/**
|
|
69
69
|
* Handler if a route was matched;
|
|
70
70
|
* Obtains information about layer, namespace, filename, and file type from the route's arguments, and then requests content from Layered Repository.
|
|
71
|
-
* @param {
|
|
72
|
-
* @returns {Promise}
|
|
71
|
+
* @param {object} oRouteMatch - Route object which is specified in the router and matched via regexp
|
|
72
|
+
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
73
73
|
* @private
|
|
74
74
|
*/
|
|
75
75
|
_onRouteMatched: function (oRouteMatch) {
|
|
@@ -101,11 +101,11 @@ sap.ui.define([
|
|
|
101
101
|
/**
|
|
102
102
|
* Handler if content data was received;
|
|
103
103
|
* Formats the received data into the correct file type and requests the file metadata.
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @returns {Promise}
|
|
104
|
+
* @param {object} oModelData - Model data of current page
|
|
105
|
+
* @param {object} oPage - Current page used to set display busy mode on/off
|
|
106
|
+
* @param {object} sContentSuffix - Content suffix for sending the metadata request
|
|
107
|
+
* @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
|
|
108
|
+
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
109
109
|
* @private
|
|
110
110
|
*/
|
|
111
111
|
_onContentReceived: function (oModelData, oPage, sContentSuffix, oData) {
|
|
@@ -127,9 +127,9 @@ sap.ui.define([
|
|
|
127
127
|
/**
|
|
128
128
|
* Handler if content metadata was received;
|
|
129
129
|
* Sets the received data to the current content model, updates the icon tab bar, and releases the busy mode of the current page.
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {
|
|
132
|
-
* @param {
|
|
130
|
+
* @param {object} oModelData - Model data of current page
|
|
131
|
+
* @param {object} oPage - Current page used to set display busy mode on/off
|
|
132
|
+
* @param {object} oMetadata - Metadata which is received from <code>LRepConnector</code> "getContent" promise
|
|
133
133
|
* @private
|
|
134
134
|
*/
|
|
135
135
|
_onContentMetadataReceived: function (oModelData, oPage, oMetadata) {
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
this.oSelectedContentModel.setData(oModelData);
|
|
138
138
|
var oCore = sap.ui.getCore();
|
|
139
139
|
var sIconTabBarId = this.getView().createId("contentDetailsIconTabBar");
|
|
140
|
-
var oIconTabBar = oCore.
|
|
140
|
+
var oIconTabBar = oCore.byId(sIconTabBarId);
|
|
141
141
|
if (oIconTabBar) {
|
|
142
142
|
var oFirstIconTabBarItem = oIconTabBar.getItems()[0];
|
|
143
143
|
if (oIconTabBar.getSelectedKey() !== oFirstIconTabBarItem.getId()) {
|
|
@@ -282,7 +282,7 @@ sap.ui.define([
|
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
284
|
* Handler if a deletion was confirmed.
|
|
285
|
-
* @returns {Promise}
|
|
285
|
+
* @returns {Promise} <code>LRepConnector</code> "deleteFile" promise
|
|
286
286
|
* @private
|
|
287
287
|
*/
|
|
288
288
|
_deleteFile: function (sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer) {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.98.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
/**
|
|
68
68
|
* Handler if a route was matched;
|
|
69
69
|
* Obtains information about layer, namespace, filename, and file type from the route's arguments, and then requests content from Layered Repository.
|
|
70
|
-
* @param {
|
|
70
|
+
* @param {object} oRouteMatch - Route object which is specified in the router and matched via regexp
|
|
71
71
|
* @returns {Promise} - <code>LRepConnector</code> "getContent" promise
|
|
72
72
|
* @private
|
|
73
73
|
*/
|
|
@@ -101,11 +101,11 @@ sap.ui.define([
|
|
|
101
101
|
/**
|
|
102
102
|
* Handler if content data was received;
|
|
103
103
|
* Formats the received data into the correct file type and requests the file metadata.
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @returns {Promise}
|
|
104
|
+
* @param {object} oModelData - Model data of current page
|
|
105
|
+
* @param {object} oPage - Current page used to set display busy mode on/off
|
|
106
|
+
* @param {object} sContentSuffix - Content suffix to send metadata request
|
|
107
|
+
* @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
|
|
108
|
+
* @returns {Promise} <code>LRepConnector</code> "getContent" promise
|
|
109
109
|
* @private
|
|
110
110
|
*/
|
|
111
111
|
_onContentReceived: function (oModelData, oPage, sContentSuffix, oData) {
|
|
@@ -202,7 +202,7 @@ sap.ui.define([
|
|
|
202
202
|
/**
|
|
203
203
|
* Send request to back end to saved file.
|
|
204
204
|
* After the file has been successfully saved, navigates to "Display" mode of the content.
|
|
205
|
-
* @returns {Promise}
|
|
205
|
+
* @returns {Promise} <code>LRepConnector</code> "saveFiles" promise
|
|
206
206
|
* @private
|
|
207
207
|
*/
|
|
208
208
|
_saveFile: function (sLayer, sNameSpace, sFileName, sFileType, sData, sTransportId, sPackageName) {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
31
31
|
* @experimental Since 1.45
|
|
32
32
|
*/
|
|
33
33
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
/**
|
|
49
49
|
* Handler if a route was matched;
|
|
50
50
|
* Checks if the matched route is current route and then requests content from Layered Repository.
|
|
51
|
-
* @param {
|
|
51
|
+
* @param {object} oRouteMatch - Route object specified in the router which was matched via regexp
|
|
52
52
|
* @private
|
|
53
53
|
*/
|
|
54
54
|
_onRouteMatched: function (oRouteMatch) {
|
|
@@ -73,8 +73,8 @@ sap.ui.define([
|
|
|
73
73
|
/**
|
|
74
74
|
* Handler if content data was received;
|
|
75
75
|
* Sets the received data to the current content model.
|
|
76
|
-
* @param {
|
|
77
|
-
* @param {
|
|
76
|
+
* @param {object} oPage - Page instance
|
|
77
|
+
* @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
|
|
78
78
|
* @private
|
|
79
79
|
*/
|
|
80
80
|
_onContentReceived: function (oPage, oData) {
|
|
@@ -87,7 +87,7 @@ sap.ui.define([
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Searches for a specific namespace inside layer.
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {object} oEvent - <code>liveChange</code> event of search field
|
|
91
91
|
* @public
|
|
92
92
|
*/
|
|
93
93
|
onSearch: function (oEvent) {
|
|
@@ -98,7 +98,7 @@ sap.ui.define([
|
|
|
98
98
|
/**
|
|
99
99
|
* Filters the binding of the master list;
|
|
100
100
|
* This function is also called once navigation to the page to clear the filters or input search entry.
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {string} sQuery - Entered string within the search field
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
filterListByQuery: function (sQuery) {
|
|
@@ -123,7 +123,7 @@ sap.ui.define([
|
|
|
123
123
|
/**
|
|
124
124
|
* Handles the selection of a layer entry in the master page;
|
|
125
125
|
* Gathers the selected namespace and the current layer, then navigates to the target.
|
|
126
|
-
* @param {
|
|
126
|
+
* @param {object} oEvent - Press event of master components list
|
|
127
127
|
* @public
|
|
128
128
|
*/
|
|
129
129
|
onContentSelected: function (oEvent) {
|
|
@@ -173,7 +173,7 @@ sap.ui.define([
|
|
|
173
173
|
/**
|
|
174
174
|
* Formatter to shorten namespaces with multiple hierarchies;
|
|
175
175
|
* If the hierarchy has more than two levels only the first and last levels are shown.
|
|
176
|
-
* @returns {
|
|
176
|
+
* @returns {string} - Shortened namespace for display
|
|
177
177
|
* @private
|
|
178
178
|
*/
|
|
179
179
|
_shortenNamespace: function () {
|
|
@@ -193,7 +193,7 @@ sap.ui.define([
|
|
|
193
193
|
/**
|
|
194
194
|
* Handler for displaying errors;
|
|
195
195
|
* Calls the "ErrorUtils" helper class for error handling.
|
|
196
|
-
* @param oEvent -
|
|
196
|
+
* @param {object} oEvent - Press event on the error button
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
199
|
handleMessagePopoverPress: function (oEvent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -16,13 +16,13 @@ sap.ui.define([
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.Layers
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.98.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
|
|
23
23
|
/**
|
|
24
24
|
* Handler for triggering the navigation to a selected layer.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {object} oEvent - Event object
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
onLayerSelected: function (oEvent) {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Handler for displaying the stored error messages.
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {object} oEvent - Event object
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
handleMessagePopoverPress: function (oEvent) {
|