@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,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.98.0
|
|
17
17
|
* @experimental Since 1.45
|
|
18
18
|
*/
|
|
19
19
|
var LrepConnector = {};
|
|
@@ -25,11 +25,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
25
25
|
/**
|
|
26
26
|
* Gets content from the layered repository.
|
|
27
27
|
*
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
30
|
-
* @param {boolean} bReadContextMetadata -
|
|
31
|
-
* @param {boolean} bReadRuntimeContext -
|
|
32
|
-
* @param {boolean} bRequestAsText -
|
|
28
|
+
* @param {string} sLayer - Determines the layer for obtaining the content
|
|
29
|
+
* @param {string} sContentSuffix - Namespace plus filename and file type of content
|
|
30
|
+
* @param {boolean} bReadContextMetadata - Read content plus metadata information
|
|
31
|
+
* @param {boolean} bReadRuntimeContext - Gets the content in runtime instead of design time
|
|
32
|
+
* @param {boolean} bRequestAsText - Gets content data as plain text
|
|
33
33
|
* @returns {Promise} Promise of GET content request to the back end
|
|
34
34
|
* @public
|
|
35
35
|
*/
|
|
@@ -51,13 +51,13 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
51
51
|
/**
|
|
52
52
|
* Saves a file to the layered repository.
|
|
53
53
|
*
|
|
54
|
-
* @param {
|
|
55
|
-
* @param {
|
|
56
|
-
* @param {
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
54
|
+
* @param {string} sLayer - Determines the layer for saving the content
|
|
55
|
+
* @param {string} sNamespace - Namespace of the file
|
|
56
|
+
* @param {string} sFilename - Name of the file
|
|
57
|
+
* @param {string} sFileType - Type of the file
|
|
58
|
+
* @param {string} sContent - Content of the file saved to the layered repository
|
|
59
|
+
* @param {string} sTransportId - ID of an ABAP transport or ATO_NOTIFICATION
|
|
60
|
+
* @param {string} sPackageName - Name of an ABAP package
|
|
61
61
|
* @returns {Promise} Promise of the SAVE content request to the back end
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
@@ -80,11 +80,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
80
80
|
/**
|
|
81
81
|
* Deletes a file from the layered repository.
|
|
82
82
|
*
|
|
83
|
-
* @param {
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {
|
|
87
|
-
* @param
|
|
83
|
+
* @param {string} sLayer - Determines the layer for deleting the content
|
|
84
|
+
* @param {string} sNamespace - Namespace of the file
|
|
85
|
+
* @param {string} sFileName - Name of the file
|
|
86
|
+
* @param {string} sFileType - Type of the file
|
|
87
|
+
* @param {string} sTransportId - ID of the ABAP transport or ATO_NOTIFICATION
|
|
88
88
|
* @returns {Promise} Promise of DELETE content request to the back end
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
@@ -141,8 +141,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
141
141
|
/**
|
|
142
142
|
* Get layer suffix for request URL;
|
|
143
143
|
* If all layers are selected, the layer suffix is empty.
|
|
144
|
-
* @param {
|
|
145
|
-
* @returns {
|
|
144
|
+
* @param {string} sLayer - Normal layer plus 'All'
|
|
145
|
+
* @returns {string} Correct layer suffix
|
|
146
146
|
* @private
|
|
147
147
|
*/
|
|
148
148
|
LrepConnector._getLayerSuffix = function (sLayer) {
|
|
@@ -154,8 +154,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* Get changelist suffix for request URL;
|
|
157
|
-
* @param {
|
|
158
|
-
* @returns {
|
|
157
|
+
* @param {string} sChangeList - Transport ID
|
|
158
|
+
* @returns {string} Correct changelist suffix
|
|
159
159
|
* @private
|
|
160
160
|
*/
|
|
161
161
|
LrepConnector._getChangeListSuffix = function (sChangeList) {
|
|
@@ -164,8 +164,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Get package suffix for request URL;
|
|
167
|
-
* @param {
|
|
168
|
-
* @returns {
|
|
167
|
+
* @param {string} sPackage - Package name
|
|
168
|
+
* @returns {string} Correct package suffix
|
|
169
169
|
* @private
|
|
170
170
|
*/
|
|
171
171
|
LrepConnector._getPackageSuffix = function (sPackage) {
|
|
@@ -175,10 +175,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
175
175
|
/**
|
|
176
176
|
* Get context suffix for request URL.
|
|
177
177
|
*
|
|
178
|
-
* @param {
|
|
179
|
-
* @param {boolean} bReadRuntimeContext -
|
|
180
|
-
* @param {boolean} bReadContextMetadata -
|
|
181
|
-
* @returns {
|
|
178
|
+
* @param {string} sLayerSuffix - Layer suffix based on selected layer
|
|
179
|
+
* @param {boolean} bReadRuntimeContext - Gets content in runtime instead of design time
|
|
180
|
+
* @param {boolean} bReadContextMetadata - Reads content plus metadata information
|
|
181
|
+
* @returns {string} Correct context suffix for URL request
|
|
182
182
|
* @private
|
|
183
183
|
*/
|
|
184
184
|
LrepConnector._getContextSuffix = function (sLayerSuffix, bReadRuntimeContext, bReadContextMetadata) {
|
|
@@ -197,9 +197,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
197
197
|
/**
|
|
198
198
|
* Reports an error during back-end request.
|
|
199
199
|
*
|
|
200
|
-
* @param {
|
|
201
|
-
* @param {
|
|
202
|
-
* @param {
|
|
200
|
+
* @param {object} oJqXHR - <code>jqXHR</code> object which is returned from ajax request
|
|
201
|
+
* @param {string} sTextStatus - Status text of the error
|
|
202
|
+
* @param {object} oErrorThrown - Object that contains the error description
|
|
203
203
|
* @private
|
|
204
204
|
*/
|
|
205
205
|
LrepConnector._reportError = function (oJqXHR, sTextStatus, oErrorThrown) {
|
|
@@ -211,10 +211,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
211
211
|
/**
|
|
212
212
|
* Sends a GET content request to the back end.
|
|
213
213
|
*
|
|
214
|
-
* @param {
|
|
215
|
-
* @param {
|
|
216
|
-
* @param {
|
|
217
|
-
* @param {boolean} bRequestAsText -
|
|
214
|
+
* @param {string} sUrl - Request URL
|
|
215
|
+
* @param {function} fnResolve - Callback function if request was resolved
|
|
216
|
+
* @param {function} fnReject - Callback function if request was rejected
|
|
217
|
+
* @param {boolean} bRequestAsText - Sends ajax request with data type as plain text
|
|
218
218
|
* @private
|
|
219
219
|
*/
|
|
220
220
|
LrepConnector._sendContentRequest = function (sUrl, fnResolve, fnReject, bRequestAsText) {
|
|
@@ -239,11 +239,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
239
239
|
/**
|
|
240
240
|
* Gets the token and sends an updating request.
|
|
241
241
|
*
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {
|
|
244
|
-
* @param {
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {Function} fnReject - callback function if request was rejected
|
|
242
|
+
* @param {string} sUrl - Request URL
|
|
243
|
+
* @param {object} oData - Data for PUT request
|
|
244
|
+
* @param {function} fnResolve - Callback function if request was resolved
|
|
245
|
+
* @param {function} fnReject - Callback function if request was rejected
|
|
247
246
|
* @private
|
|
248
247
|
*/
|
|
249
248
|
LrepConnector._getTokenAndSendPutRequest = function (sUrl, oData, fnResolve, fnReject) {
|
|
@@ -256,11 +255,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
256
255
|
/**
|
|
257
256
|
* Sends PUT content request to the back end.
|
|
258
257
|
*
|
|
259
|
-
* @param {
|
|
260
|
-
* @param {
|
|
261
|
-
* @param {
|
|
262
|
-
* @param {
|
|
263
|
-
* @param {
|
|
258
|
+
* @param {object} oXcsrfToken - Token object
|
|
259
|
+
* @param {string} sUrl - Request URL
|
|
260
|
+
* @param {object} oData - Data of PUT request
|
|
261
|
+
* @param {function} fnResolve - Callback function if request was resolved
|
|
262
|
+
* @param {function} fnReject - Callback function if request was rejected
|
|
264
263
|
* @private
|
|
265
264
|
*/
|
|
266
265
|
LrepConnector._sendPutRequest = function (oXcsrfToken, sUrl, oData, fnResolve, fnReject) {
|
|
@@ -286,9 +285,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
286
285
|
/**
|
|
287
286
|
* Gets token and sends DELETE content request to the back end.
|
|
288
287
|
*
|
|
289
|
-
* @param {
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {
|
|
288
|
+
* @param {string} sUrl - Request URL
|
|
289
|
+
* @param {function} fnResolve - Callback function if request was resolved
|
|
290
|
+
* @param {function} fnReject - Callback function if request was rejected
|
|
292
291
|
* @private
|
|
293
292
|
*/
|
|
294
293
|
LrepConnector._getTokenAndSendDeletionRequest = function (sUrl, fnResolve, fnReject) {
|
|
@@ -301,10 +300,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
301
300
|
/**
|
|
302
301
|
* Sends DELETE request to the back end.
|
|
303
302
|
*
|
|
304
|
-
* @param {
|
|
305
|
-
* @param {
|
|
306
|
-
* @param {
|
|
307
|
-
* @param {
|
|
303
|
+
* @param {object} oXcsrfToken - Token object
|
|
304
|
+
* @param {string} sUrl - Request URL
|
|
305
|
+
* @param {function} fnResolve - Callback function if request was resolved
|
|
306
|
+
* @param {function} fnReject - Callback function if request was rejected
|
|
308
307
|
* @private
|
|
309
308
|
*/
|
|
310
309
|
LrepConnector._sendDeletionRequest = function (oXcsrfToken, sUrl, fnResolve, fnReject) {
|
|
@@ -1,146 +1,150 @@
|
|
|
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
|
|
|
7
|
-
sap.ui.define([
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/m/GroupHeaderListItem",
|
|
9
|
+
"sap/ui/thirdparty/jquery"
|
|
10
|
+
], function(
|
|
11
|
+
GroupHeaderListItem,
|
|
12
|
+
jQuery
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Provides data utility functions for the Content Browser.
|
|
18
|
+
*
|
|
19
|
+
* @constructor
|
|
20
|
+
* @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
|
|
21
|
+
* @author SAP SE
|
|
22
|
+
* @version 1.98.0
|
|
23
|
+
* @experimental Since 1.45
|
|
24
|
+
*/
|
|
25
|
+
var DataUtils = {
|
|
26
|
+
aExcludeList: [{
|
|
27
|
+
category: "NS",
|
|
28
|
+
name: "LREP_HOME_CONTENT",
|
|
29
|
+
ns: "UIF/"
|
|
30
|
+
}, {
|
|
31
|
+
category: "NS",
|
|
32
|
+
name: "virtual~",
|
|
33
|
+
ns: "/"
|
|
34
|
+
}],
|
|
10
35
|
|
|
11
36
|
/**
|
|
12
|
-
*
|
|
37
|
+
* Pretty printer for specific file types.
|
|
13
38
|
*
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @experimental Since 1.45
|
|
39
|
+
* @param {Object} oData - Data to be formatted
|
|
40
|
+
* @param {String} sFileType - File type of data
|
|
41
|
+
* @returns {Object} Data after formatting
|
|
42
|
+
* @public
|
|
19
43
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* @param {String} sFileType - file type of data
|
|
36
|
-
* @returns {Object} oData - data after formatting
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
|
-
formatData: function (oData, sFileType) {
|
|
40
|
-
// code extension and properties files do not need formation
|
|
41
|
-
if ((sFileType === "js") || (sFileType === "properties")) {
|
|
42
|
-
return oData;
|
|
43
|
-
}
|
|
44
|
-
// other files should be formatted to JSON
|
|
45
|
-
try {
|
|
46
|
-
oData = JSON.parse(oData);
|
|
47
|
-
return JSON.stringify(oData, null, '\t');
|
|
48
|
-
} catch (oError) {
|
|
49
|
-
var ErrorUtils = sap.ui.require("sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils");
|
|
50
|
-
ErrorUtils.displayError("Error", oError.name, oError.message);
|
|
51
|
-
return oData;
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Factory for creating list group header objects for the metadata list.
|
|
57
|
-
* @param {Object} oGroup - group data passed from the lists model binding
|
|
58
|
-
* @returns {sap.m.GroupHeaderListItem}
|
|
59
|
-
* @public
|
|
60
|
-
*/
|
|
61
|
-
getGroupHeader: function (oGroup) {
|
|
62
|
-
var sTitle = "{i18n>systemData}";
|
|
44
|
+
formatData: function (oData, sFileType) {
|
|
45
|
+
// code extension and properties files do not need formation
|
|
46
|
+
if ((sFileType === "js") || (sFileType === "properties")) {
|
|
47
|
+
return oData;
|
|
48
|
+
}
|
|
49
|
+
// other files should be formatted to JSON
|
|
50
|
+
try {
|
|
51
|
+
oData = JSON.parse(oData);
|
|
52
|
+
return JSON.stringify(oData, null, '\t');
|
|
53
|
+
} catch (oError) {
|
|
54
|
+
var ErrorUtils = sap.ui.require("sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils");
|
|
55
|
+
ErrorUtils.displayError("Error", oError.name, oError.message);
|
|
56
|
+
return oData;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Factory for creating list group header objects for the metadata list.
|
|
62
|
+
* @param {Object} oGroup - Group data passed from the lists model binding
|
|
63
|
+
* @returns {sap.m.GroupHeaderListItem} New GroupHeaderListItem
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
getGroupHeader: function (oGroup) {
|
|
67
|
+
var sTitle = "{i18n>systemData}";
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
},
|
|
69
|
+
if (oGroup.key === "custom") {
|
|
70
|
+
sTitle = "{i18n>externalReferences}";
|
|
71
|
+
}
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*/
|
|
80
|
-
isNotExcluded: function (oContentItem) {
|
|
81
|
-
var bNotExcluded = true;
|
|
82
|
-
jQuery.each(this.aExcludeList, function (index, mExcludeListElement) {
|
|
83
|
-
var bAllPropertiesMatched = true;
|
|
73
|
+
return new GroupHeaderListItem({
|
|
74
|
+
title: sTitle,
|
|
75
|
+
upperCase: false
|
|
76
|
+
});
|
|
77
|
+
},
|
|
84
78
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Verifies if item content is not in the exclude list.
|
|
81
|
+
* @param {Object} oContentItem - Content item needs to be verified
|
|
82
|
+
* @returns {boolean} <code>true</code> if the item is not excluded
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
isNotExcluded: function (oContentItem) {
|
|
86
|
+
var bNotExcluded = true;
|
|
87
|
+
jQuery.each(this.aExcludeList, function (index, mExcludeListElement) {
|
|
88
|
+
var bAllPropertiesMatched = true;
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return false; // break each
|
|
92
|
-
}
|
|
90
|
+
jQuery.each(mExcludeListElement, function (sProperty, sValue) {
|
|
91
|
+
bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] === sValue;
|
|
93
92
|
});
|
|
94
|
-
return bNotExcluded;
|
|
95
|
-
},
|
|
96
93
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* @returns {String} - string after removing leading and trailing slashes
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
cleanLeadingAndTrailingSlashes: function (sNamespace) {
|
|
104
|
-
if (!sNamespace) {
|
|
105
|
-
return "";
|
|
94
|
+
if (bAllPropertiesMatched) {
|
|
95
|
+
bNotExcluded = false;
|
|
96
|
+
return false; // break each
|
|
106
97
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
if (sNamespace[sNamespace.length - 1] === "/") {
|
|
112
|
-
var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
|
|
113
|
-
return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
|
|
114
|
-
}
|
|
115
|
-
return sNamespace;
|
|
116
|
-
},
|
|
98
|
+
});
|
|
99
|
+
return bNotExcluded;
|
|
100
|
+
},
|
|
117
101
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* @param {string} sSuffix - suffix
|
|
136
|
-
* @returns {boolean} <code>true</code> if the passed suffix is the last part of the passed string
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
endsStringWith: function (sString, sSuffix) {
|
|
140
|
-
return sString.indexOf(sSuffix, sString.length - sSuffix.length) !== -1;
|
|
102
|
+
/**
|
|
103
|
+
* Removes leading and trailing slashes from a string.
|
|
104
|
+
* @param {String} sNamespace - Input string
|
|
105
|
+
* @returns {String} String after removing leading and trailing slashes
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
cleanLeadingAndTrailingSlashes: function (sNamespace) {
|
|
109
|
+
if (!sNamespace) {
|
|
110
|
+
return "";
|
|
111
|
+
}
|
|
112
|
+
if (sNamespace[0] === "/") {
|
|
113
|
+
var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
|
|
114
|
+
return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
|
|
115
|
+
}
|
|
116
|
+
if (sNamespace[sNamespace.length - 1] === "/") {
|
|
117
|
+
var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
|
|
118
|
+
return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
|
|
141
119
|
}
|
|
142
|
-
|
|
120
|
+
return sNamespace;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Title formatter: combines the items namespace, filename and type.
|
|
125
|
+
* @param {object} mModelData - Object with model data
|
|
126
|
+
* @param {string} mModelData.namespace - Namespace
|
|
127
|
+
* @param {string} mModelData.fileName - Filename
|
|
128
|
+
* @param {string} mModelData.fileType - Filetype
|
|
129
|
+
* @returns {string} Item title after formatting
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
formatItemTitle: function (mModelData) {
|
|
133
|
+
return mModelData.namespace + mModelData.fileName + "." + mModelData.fileType;
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Helper function to determine if a file ends with a specified suffix.
|
|
138
|
+
*
|
|
139
|
+
* @param {string} sString - String that has to be checked
|
|
140
|
+
* @param {string} sSuffix - Suffix
|
|
141
|
+
* @returns {boolean} <code>true</code> if the passed suffix is the last part of the passed string
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
endsStringWith: function (sString, sSuffix) {
|
|
145
|
+
return sString.indexOf(sSuffix, sString.length - sSuffix.length) !== -1;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
143
148
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
);
|
|
149
|
+
return DataUtils;
|
|
150
|
+
}, true);
|
|
@@ -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,7 +16,7 @@ function (MessagePopoverItem, MessagePopover) {
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.ErrorUtils
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.98.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
var ErrorUtils = {};
|
|
@@ -1,11 +1,9 @@
|
|
|
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
|
|
|
7
|
-
/* global FileReader */
|
|
8
|
-
|
|
9
7
|
sap.ui.define([
|
|
10
8
|
"sap/ui/core/mvc/Controller",
|
|
11
9
|
"sap/ui/model/json/JSONModel",
|
|
@@ -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
|
|
|
@@ -8,9 +8,9 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/core/util/File",
|
|
9
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
10
|
"sap/m/MessageBox",
|
|
11
|
-
"sap/ui/fl/
|
|
11
|
+
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
12
12
|
"sap/ui/thirdparty/jquery"
|
|
13
|
-
], function(File, JsControlTreeModifier, MessageBox,
|
|
13
|
+
], function(File, JsControlTreeModifier, MessageBox, ManifestUtils, jQuery) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
var Extractor = {};
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
var oComponentContainer = sap.ui.getCore().byId(oComponentContainerDomRef.id);
|
|
56
56
|
var oAppComponent = oComponentContainer && oComponentContainer.getComponentInstance();
|
|
57
57
|
|
|
58
|
-
if (oAppComponent &&
|
|
58
|
+
if (oAppComponent && ManifestUtils.getFlexReferenceForControl(oAppComponent) === sComponentName) {
|
|
59
59
|
oCorrectAppComponent = oAppComponent;
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
@@ -152,16 +152,5 @@ sap.ui.define([
|
|
|
152
152
|
}.bind(this));
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
Extractor.createDownloadFile = function (oExport) {
|
|
156
|
-
try {
|
|
157
|
-
var sExportString = JSON.stringify(oExport);
|
|
158
|
-
File.save(sExportString, "flexibilityDataExtraction", "json");
|
|
159
|
-
} catch (e) {
|
|
160
|
-
MessageBox.error(
|
|
161
|
-
"The export of the flexibility data was not successful.\n" + e.message
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
155
|
return Extractor;
|
|
167
156
|
});
|
|
@@ -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,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.Flexibility
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.98.0
|
|
20
20
|
* @experimental Since 1.52
|
|
21
21
|
*/
|
|
22
22
|
return Controller.extend("sap.ui.fl.support.diagnostics.Flexibility", {
|
|
@@ -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
|
|
|
@@ -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.98.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.
|
|
@@ -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
|
|
|
@@ -90,10 +90,8 @@ sap.ui.define([
|
|
|
90
90
|
throw new Error("Id " + sId + " must not start with reserved " + layer_prefixes[sKey]);
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
} else {
|
|
94
|
-
|
|
95
|
-
throw new Error("Id " + sId + " must start with " + sPrefix);
|
|
96
|
-
}
|
|
93
|
+
} else if (!sId.startsWith(sPrefix)) {
|
|
94
|
+
throw new Error("Id " + sId + " must start with " + sPrefix);
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
97
|
|