@openui5/sap.ui.fl 1.98.0 → 1.99.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/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/Change.js +7 -7
- package/src/sap/ui/fl/ChangePersistence.js +15 -15
- package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +17 -8
- package/src/sap/ui/fl/FlexControllerFactory.js +2 -2
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +13 -13
- package/src/sap/ui/fl/Variant.js +5 -5
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- 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 +1 -1
- 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/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 -1
- 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 +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +7 -10
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +8 -17
- package/src/sap/ui/fl/{PreprocessorImpl.js → apply/_internal/preprocessors/ControllerExtension.js} +38 -47
- package/src/sap/ui/fl/{EventHistory.js → apply/_internal/preprocessors/EventHistory.js} +7 -7
- package/src/sap/ui/fl/{RegistrationDelegator.js → apply/_internal/preprocessors/RegistrationDelegator.js} +40 -42
- package/src/sap/ui/fl/{XmlPreprocessorImpl.js → apply/_internal/preprocessors/XmlPreprocessor.js} +6 -6
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +9 -9
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +10 -10
- package/src/sap/ui/fl/registry/Settings.js +44 -5
- package/src/sap/ui/fl/support/Flexibility.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +34 -0
- package/src/sap/ui/fl/support/api/SupportAPI.js +5 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +4 -4
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +5 -0
- package/src/sap/ui/fl/variants/VariantModel.js +28 -31
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +6 -2
- package/src/sap/ui/fl/write/_internal/Storage.js +15 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +33 -3
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -4
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +5 -5
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +125 -32
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +4 -1
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/TranslationAPI.js +23 -2
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +13 -0
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
*
|
|
23
23
|
* @alias sap.ui.fl.changeHandler.BaseAddXml
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.99.0
|
|
26
26
|
* @since 1.75
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental Since 1.75. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @alias sap.ui.fl.changeHandler.PropertyBindingChange
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.99.0
|
|
20
20
|
* @since 1.38
|
|
21
21
|
* @private
|
|
22
22
|
* @experimental Since 1.38. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @alias sap.ui.fl.changeHandler.PropertyChange
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.99.0
|
|
24
24
|
* @since 1.36
|
|
25
25
|
* @private
|
|
26
26
|
* @experimental Since 1.36. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @name sap.ui.fl.descriptorRelated
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.99.0
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.ui.rta, smart business
|
|
27
27
|
*/
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @namespace
|
|
32
32
|
* @name sap.ui.fl.descriptorRelated.api
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.99.0
|
|
35
35
|
* @private
|
|
36
36
|
* @ui5-restricted sap.ui.rta, smart business
|
|
37
37
|
*/
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @constructor
|
|
46
46
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChange
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.99.0
|
|
49
49
|
* @private
|
|
50
50
|
* @ui5-restricted sap.ui.rta, smart business
|
|
51
51
|
*/
|
|
@@ -128,7 +128,7 @@ sap.ui.define([
|
|
|
128
128
|
* @constructor
|
|
129
129
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChangeFactory
|
|
130
130
|
* @author SAP SE
|
|
131
|
-
* @version 1.
|
|
131
|
+
* @version 1.99.0
|
|
132
132
|
* @private
|
|
133
133
|
* @ui5-restricted sap.ui.rta, smart business
|
|
134
134
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @namespace
|
|
39
39
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorInlineChangeFactory
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.99.0
|
|
42
42
|
* @private
|
|
43
43
|
* @deprecated Since version 1.76
|
|
44
44
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorVariantFactory
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.99.0
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @namespace sap.ui.fl.initial._internal.StorageUtils
|
|
27
27
|
* @since 1.74
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.99.0
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage, sap.ui.fl.write._internal.Storage,
|
|
31
31
|
* sap.ui.fl.initial._internal.connectors.ObjectStorageConnector, sap.ui.fl.initial._internal.connectors.ObjectPathConnector
|
|
@@ -18,16 +18,16 @@ sap.ui.define([
|
|
|
18
18
|
/**
|
|
19
19
|
* Object to define a change on a specific control type with it's permissions
|
|
20
20
|
* @constructor
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
24
|
-
* @param {
|
|
21
|
+
* @param {object} mParam - Parameter description below
|
|
22
|
+
* @param {object} mParam.changeTypeMetadata - Change type metadata this registry item is describing
|
|
23
|
+
* @param {string} mParam.changeTypeMetadata.name - Semantic name to identify the change type
|
|
24
|
+
* @param {string} mParam.changeTypeMetadata.changeHandler - Full qualified name of the function which is executed when a change for this change type is merged or applied
|
|
25
25
|
* @param {sap.ui.fl.Layer[]} mParam.changeTypeMetadata.layers - Layer permissions
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {string} mParam.controlType - Control type this registry item is assigned to
|
|
27
27
|
* @alias sap.ui.fl.registry.ChangeRegistryItem
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.99.0
|
|
31
31
|
* @private
|
|
32
32
|
* @ui5-restricted sap.ui.fl
|
|
33
33
|
* @experimental Since 1.27.0
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
/**
|
|
57
57
|
* Get the name of a change type
|
|
58
58
|
*
|
|
59
|
-
* @returns {
|
|
59
|
+
* @returns {string} Returns the name of the change type of the item
|
|
60
60
|
*/
|
|
61
61
|
ChangeRegistryItem.prototype.getChangeTypeName = function() {
|
|
62
62
|
return this._changeType;
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
/**
|
|
66
66
|
* Get the control type
|
|
67
67
|
*
|
|
68
|
-
* @returns {
|
|
68
|
+
* @returns {string} Returns the control type the item is assigned to
|
|
69
69
|
*/
|
|
70
70
|
ChangeRegistryItem.prototype.getControlType = function() {
|
|
71
71
|
return this._controlType;
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
/**
|
|
75
75
|
* Get the control type
|
|
76
76
|
*
|
|
77
|
-
* @returns {
|
|
77
|
+
* @returns {string} Returns the control type the item is assigned to
|
|
78
78
|
*/
|
|
79
79
|
ChangeRegistryItem.prototype.getLayers = function() {
|
|
80
80
|
return this._layers;
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @namespace sap.ui.fl.initial._internal.connectors.Utils
|
|
18
18
|
* @since 1.70
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.99.0
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted sap.ui.fl.initial._internal.connectors, sap.ui.fl.write._internal.connectors, sap.ui.fl.write._internal.transport
|
|
22
22
|
*/
|
|
@@ -50,7 +50,7 @@ function(
|
|
|
50
50
|
/**
|
|
51
51
|
* @namespace sap.ui.fl.initial._internal.StorageResultDisassemble
|
|
52
52
|
* @since 1.70
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.99.0
|
|
54
54
|
* @private
|
|
55
55
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage
|
|
56
56
|
* Disassembles a response with a variant section into one or more plain responses.
|
package/src/sap/ui/fl/library.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/RegistrationDelegator",
|
|
8
|
+
"sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator",
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
10
|
"sap/ui/fl/Layer",
|
|
11
11
|
"sap/ui/core/library", // library dependency
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* changes or other flex objects that need processing. If there is nothing to
|
|
25
25
|
* process, any further flex processing is stopped to avoid runtime impact for end users.
|
|
26
26
|
*
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.99.0
|
|
28
28
|
* @since 1.44
|
|
29
29
|
* @namespace
|
|
30
30
|
* @name sap.ui.fl.initial
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* The <code>sap.ui.fl.initial.api</code> namespace contains public APIs that can be used
|
|
36
36
|
* during app startup, e.g. to inherit classes to create their own logic for retrieving data for flexibility.
|
|
37
37
|
*
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.99.0
|
|
39
39
|
* @namespace
|
|
40
40
|
* @name sap.ui.fl.initial.api
|
|
41
41
|
* @public
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* start a UI5 app for an end user with changes. Be aware that only the <code>api</code>
|
|
47
47
|
* sub-namespace contains public and stable APIs.
|
|
48
48
|
*
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.99.0
|
|
50
50
|
* @namespace
|
|
51
51
|
* @name sap.ui.fl.apply
|
|
52
52
|
* @public
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* The <code>sap.ui.fl.apply.api</code> namespace contains public APIs that can be used
|
|
57
57
|
* during app startup, e.g. to wait for changes to be applied or to access the current variant.
|
|
58
58
|
*
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.99.0
|
|
60
60
|
* @namespace
|
|
61
61
|
* @name sap.ui.fl.apply.api
|
|
62
62
|
* @public
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* by personalization dialogs or 'tools' like key user adaptation will be part of this namespace.
|
|
69
69
|
* Be aware that only the <code>api</code> sub-namespace contains public and stable APIs.
|
|
70
70
|
*
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.99.0
|
|
72
72
|
* @namespace
|
|
73
73
|
* @name sap.ui.fl.write
|
|
74
74
|
* @public
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
/**
|
|
78
78
|
* The <code>sap.ui.fl.write.api</code> namespace contains public APIs to work with flex objects.
|
|
79
79
|
*
|
|
80
|
-
* @version 1.
|
|
80
|
+
* @version 1.99.0
|
|
81
81
|
* @namespace
|
|
82
82
|
* @name sap.ui.fl.write.api
|
|
83
83
|
* @public
|
|
@@ -87,7 +87,7 @@ sap.ui.define([
|
|
|
87
87
|
* The <code>sap.ui.fl.interfaces</code> namespace contains only interface jsdoc descriptions.
|
|
88
88
|
* It does not contain running code.
|
|
89
89
|
*
|
|
90
|
-
* @version 1.
|
|
90
|
+
* @version 1.99.0
|
|
91
91
|
* @namespace
|
|
92
92
|
* @name sap.ui.fl.interfaces
|
|
93
93
|
* @public
|
|
@@ -140,13 +140,13 @@ sap.ui.define([
|
|
|
140
140
|
* @namespace
|
|
141
141
|
* @name sap.ui.fl
|
|
142
142
|
* @author SAP SE
|
|
143
|
-
* @version 1.
|
|
143
|
+
* @version 1.99.0
|
|
144
144
|
* @private
|
|
145
145
|
* @ui5-restricted UI5 controls, tools creating flexibility changes
|
|
146
146
|
*/
|
|
147
147
|
sap.ui.getCore().initLibrary({
|
|
148
148
|
name: "sap.ui.fl",
|
|
149
|
-
version: "1.
|
|
149
|
+
version: "1.99.0",
|
|
150
150
|
controls: [
|
|
151
151
|
"sap.ui.fl.variants.VariantManagement",
|
|
152
152
|
"sap.ui.fl.util.IFrame"
|
|
@@ -312,19 +312,28 @@ sap.ui.define([
|
|
|
312
312
|
return this._getBooleanProperty("isCondensingEnabled");
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Checks whether change transport mechanism is available for the current system or not.
|
|
317
|
+
*
|
|
318
|
+
* @returns {boolean} <code>true</code> if transport of changes is available
|
|
319
|
+
*/
|
|
320
|
+
Settings.prototype.isSystemWithTransports = function() {
|
|
321
|
+
// Currently, transport mechanism is only available in ABAP stack which can be identified by system and client ids
|
|
322
|
+
return !!(this._oSettings.system && this._oSettings.client);
|
|
323
|
+
};
|
|
324
|
+
|
|
315
325
|
/**
|
|
316
326
|
* Checks whether the current system is defined as a productive system and transport mechanism of changes is also available or not.
|
|
317
327
|
*
|
|
318
328
|
* @returns {boolean} <code>true</code> if transport of changes is available
|
|
319
329
|
*/
|
|
320
330
|
Settings.prototype.isProductiveSystemWithTransports = function() {
|
|
321
|
-
|
|
322
|
-
return this._getBooleanProperty("isProductiveSystem") && !!(this._oSettings.system && this._oSettings.client);
|
|
331
|
+
return this.isProductiveSystem() && this.isSystemWithTransports();
|
|
323
332
|
};
|
|
324
333
|
|
|
325
334
|
/**
|
|
326
335
|
* Getter for the system ID of the connected back end.
|
|
327
|
-
*
|
|
336
|
+
* This is taken from the <code>system</code> property of the flex settings. Only filled for an ABAP back end.
|
|
328
337
|
*
|
|
329
338
|
* @returns {string} System ID of the connected back end or undefined (when property <code>system</code> does not exist in the flex settings file)
|
|
330
339
|
*/
|
|
@@ -334,7 +343,7 @@ sap.ui.define([
|
|
|
334
343
|
|
|
335
344
|
/**
|
|
336
345
|
* Getter for the client of the connected back end.
|
|
337
|
-
*
|
|
346
|
+
* This is taken from the <code>client</code> property of the flex settings. Only filled for an ABAP back end.
|
|
338
347
|
*
|
|
339
348
|
* @returns {string} Client of the connected backend or undefined (when property <code>system</code> does not exist in the flex settings file)
|
|
340
349
|
*/
|
|
@@ -342,9 +351,39 @@ sap.ui.define([
|
|
|
342
351
|
return this._oSettings.client;
|
|
343
352
|
};
|
|
344
353
|
|
|
354
|
+
// Used for stubbing in tests
|
|
355
|
+
Settings.prototype._getHostname = function () {
|
|
356
|
+
return document.location.hostname;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Detects whether the system is a customer system.
|
|
361
|
+
* This is taken from the <code>systemType</code> property of the flex settings (only filled for an ABAP back end)
|
|
362
|
+
* or the hostname.
|
|
363
|
+
*
|
|
364
|
+
* @returns {boolean} <code>true</code> if it is a customer system
|
|
365
|
+
*/
|
|
366
|
+
Settings.prototype.isCustomerSystem = function () {
|
|
367
|
+
var sSystemType = this._oSettings.systemType;
|
|
368
|
+
var bIsCustomerSystem = {
|
|
369
|
+
CUSTOMER: true,
|
|
370
|
+
SAP: false
|
|
371
|
+
}[sSystemType];
|
|
372
|
+
var sHostname = this._getHostname();
|
|
373
|
+
|
|
374
|
+
return bIsCustomerSystem !== undefined
|
|
375
|
+
? bIsCustomerSystem
|
|
376
|
+
// Fallback if back end has no info, guess based on hostname
|
|
377
|
+
: !(
|
|
378
|
+
sHostname.endsWith(".sap" + ".corp") // Prevent SEC-236 violation
|
|
379
|
+
|| sHostname === "localhost"
|
|
380
|
+
|| sHostname === "127.0.0.1"
|
|
381
|
+
);
|
|
382
|
+
};
|
|
383
|
+
|
|
345
384
|
/**
|
|
346
385
|
* Getter for the id of the current user.
|
|
347
|
-
*
|
|
386
|
+
* This is taken from the <code>userId</code> property of the flex settings. Only filled when UShell is available.
|
|
348
387
|
*
|
|
349
388
|
* @returns {string} User ID of the current user. Undefined if UShell is not available.
|
|
350
389
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
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/registry/Settings"
|
|
9
|
+
], function(
|
|
10
|
+
Settings
|
|
11
|
+
) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Provides an object with the flex Settings.
|
|
16
|
+
*
|
|
17
|
+
* @namespace sap.ui.fl.support._internal.getFlexSettings
|
|
18
|
+
* @since 1.99
|
|
19
|
+
* @version 1.99.0
|
|
20
|
+
* @private
|
|
21
|
+
* @ui5-restricted sap.ui.fl.support.api.SupportAPI
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
return function () {
|
|
25
|
+
return Settings.getInstance().then(function (oSettings) {
|
|
26
|
+
return Object.keys(oSettings._oSettings).map(function(sKey) {
|
|
27
|
+
return {
|
|
28
|
+
key: sKey,
|
|
29
|
+
value: oSettings._oSettings[sKey]
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
});
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/support/_internal/getFlexSettings",
|
|
8
9
|
"sap/ui/fl/support/_internal/getChangeDependencies"
|
|
9
10
|
], function(
|
|
11
|
+
getFlexSettings,
|
|
10
12
|
getChangeDependencies
|
|
11
13
|
) {
|
|
12
14
|
"use strict";
|
|
@@ -16,12 +18,13 @@ sap.ui.define([
|
|
|
16
18
|
*
|
|
17
19
|
* @namespace sap.ui.fl.support.api.SupportAPI
|
|
18
20
|
* @since 1.98
|
|
19
|
-
* @version 1.
|
|
21
|
+
* @version 1.99.0
|
|
20
22
|
* @private
|
|
21
23
|
* @ui5-restricted ui5 support tools
|
|
22
24
|
*/
|
|
23
25
|
var SupportAPI = /** @lends sap.ui.fl.support.api.SupportAPI */{
|
|
24
|
-
getChangeDependencies: getChangeDependencies
|
|
26
|
+
getChangeDependencies: getChangeDependencies,
|
|
27
|
+
getFlexSettings: getFlexSettings
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
return SupportAPI;
|
|
@@ -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.99.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js
CHANGED
|
@@ -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.99.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
CHANGED
|
@@ -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.99.0
|
|
31
31
|
* @experimental Since 1.45
|
|
32
32
|
*/
|
|
33
33
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
|
|
@@ -16,7 +16,7 @@ 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.99.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
|
|
@@ -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.99.0
|
|
17
17
|
* @experimental Since 1.45
|
|
18
18
|
*/
|
|
19
19
|
var LrepConnector = {};
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @constructor
|
|
20
20
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.99.0
|
|
23
23
|
* @experimental Since 1.45
|
|
24
24
|
*/
|
|
25
25
|
var DataUtils = {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* Pretty printer for specific file types.
|
|
38
38
|
*
|
|
39
39
|
* @param {Object} oData - Data to be formatted
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {string} sFileType - File type of data
|
|
41
41
|
* @returns {Object} Data after formatting
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
@@ -101,8 +101,8 @@ sap.ui.define([
|
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Removes leading and trailing slashes from a string.
|
|
104
|
-
* @param {
|
|
105
|
-
* @returns {
|
|
104
|
+
* @param {string} sNamespace - Input string
|
|
105
|
+
* @returns {string} String after removing leading and trailing slashes
|
|
106
106
|
* @public
|
|
107
107
|
*/
|
|
108
108
|
cleanLeadingAndTrailingSlashes: function (sNamespace) {
|
|
@@ -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.99.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
var ErrorUtils = {};
|
|
@@ -61,9 +61,9 @@ function (MessagePopoverItem, MessagePopover) {
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Displays error message.
|
|
64
|
-
* @param {
|
|
65
|
-
* @param {
|
|
66
|
-
* @param {
|
|
64
|
+
* @param {string} sType - message type
|
|
65
|
+
* @param {string} sTitle - message title
|
|
66
|
+
* @param {string} sDescription - message description
|
|
67
67
|
* @public
|
|
68
68
|
*/
|
|
69
69
|
ErrorUtils.displayError = function (sType, sTitle, sDescription) {
|