@openui5/sap.ui.fl 1.97.1 → 1.99.1
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 +25 -30
- package/THIRDPARTY.txt +14 -21
- 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 +11 -225
- package/src/sap/ui/fl/ChangePersistence.js +33 -35
- package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
- 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 +49 -22
- package/src/sap/ui/fl/FlexControllerFactory.js +6 -4
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +39 -313
- package/src/sap/ui/fl/Variant.js +5 -119
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
- 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 +3 -2
- 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/controlVariants/URLHandler.js +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -10
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +31 -4
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -3
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +21 -22
- 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 +17 -30
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +6 -0
- package/src/sap/ui/fl/{PreprocessorImpl.js → apply/_internal/preprocessors/ControllerExtension.js} +43 -50
- 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} +10 -8
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
- 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/designtime/variants/VariantManagement.designtime.js +9 -2
- 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/BackendConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +16 -6
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +4 -3
- 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 +12 -12
- package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +52 -3
- package/src/sap/ui/fl/support/Flexibility.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +34 -0
- package/src/sap/ui/fl/support/api/SupportAPI.js +31 -0
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
- 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/apps/uiFlexibilityDiagnostics/helper/Extractor.js +3 -14
- 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 +7 -1
- package/src/sap/ui/fl/variants/VariantModel.js +32 -75
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +6 -2
- package/src/sap/ui/fl/write/_internal/Storage.js +47 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +17 -18
- 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 +24 -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 +3 -3
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +60 -6
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +59 -5
- 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 +4 -4
- 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 +18 -4
- 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 +139 -39
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +8 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +40 -2
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +4 -4
- package/src/sap/ui/fl/write/api/TranslationAPI.js +123 -0
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +43 -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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -21,8 +21,15 @@ sap.ui.define([
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
if (bDesignTimeMode) {
|
|
25
|
+
oModel.waitForVMControlInit(sVariantManagementReference).then(function() {
|
|
26
|
+
oModel.setModelPropertiesForControl(sVariantManagementReference, bDesignTimeMode, oVariantManagement);
|
|
27
|
+
oModel.checkUpdate(true);
|
|
28
|
+
});
|
|
29
|
+
} else {
|
|
30
|
+
oModel.setModelPropertiesForControl(sVariantManagementReference, bDesignTimeMode, oVariantManagement);
|
|
31
|
+
oModel.checkUpdate(true);
|
|
32
|
+
}
|
|
26
33
|
};
|
|
27
34
|
return {
|
|
28
35
|
annotations: {},
|
|
@@ -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.1
|
|
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.1
|
|
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;
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @param {object} mPropertyBag Further properties
|
|
32
32
|
* @param {string} mPropertyBag.url Configured url for the connector
|
|
33
33
|
* @param {string} mPropertyBag.reference Flexibility reference
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {string} [mPropertyBag.version] Version of the adaptation to be loaded
|
|
35
35
|
* @returns {Promise<object>} Promise resolving with the JSON parsed server response of the flex data request
|
|
36
36
|
*/
|
|
37
37
|
loadFlexData: function(mPropertyBag) {
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/initial/_internal/connectors/Utils",
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
|
-
"sap/ui/dom/includeScript"
|
|
10
|
+
"sap/ui/dom/includeScript",
|
|
11
|
+
"sap/base/util/restricted/_pick"
|
|
11
12
|
], function(
|
|
12
13
|
Utils,
|
|
13
14
|
FlexUtils,
|
|
14
|
-
includeScript
|
|
15
|
+
includeScript,
|
|
16
|
+
_pick
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -78,6 +80,9 @@ sap.ui.define([
|
|
|
78
80
|
* @param {object} [mPropertyBag.appDescriptor] Manifest that belongs to actual component
|
|
79
81
|
* @param {string} [mPropertyBag.siteId] <code>sideId</code> that belongs to actual component
|
|
80
82
|
* @param {string} [mPropertyBag.cacheKey] Cache buster token
|
|
83
|
+
* @param {object} [mPropertyBag.preview] Preview data provided within the asyn hints
|
|
84
|
+
* @param {string} [mPropertyBag.preview.reference] Reference of the base application for building the preview request
|
|
85
|
+
* @param {sap.ui.fl.Layer} [mPropertyBag.preview.maxLayer] Limit to which layer the preview data has to be requested
|
|
81
86
|
* @param {boolean} [mPropertyBag.allContexts] Includes also restricted context
|
|
82
87
|
* @returns {Promise<object>} Promise resolving with the JSON parsed server response of the flex data request
|
|
83
88
|
* or resolves with undefined in case cache bustering determines that no data is present
|
|
@@ -87,16 +92,21 @@ sap.ui.define([
|
|
|
87
92
|
return Promise.resolve();
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
var mParameters =
|
|
91
|
-
if (mPropertyBag.allContexts) {
|
|
92
|
-
mParameters["allContexts"] = mPropertyBag.allContexts;
|
|
93
|
-
}
|
|
95
|
+
var mParameters = _pick(mPropertyBag, ["version", "allContexts"]);
|
|
94
96
|
this._addClientInfo(mParameters);
|
|
95
97
|
Utils.addLanguageInfo(mParameters);
|
|
96
98
|
var sAppDescriptorId;
|
|
97
99
|
if (mPropertyBag.appDescriptor && mPropertyBag.appDescriptor["sap.app"]) {
|
|
98
100
|
sAppDescriptorId = mPropertyBag.appDescriptor["sap.app"].id;
|
|
99
101
|
}
|
|
102
|
+
|
|
103
|
+
if (mPropertyBag.preview) {
|
|
104
|
+
// IDE may show a preview where only references in a lower app variant hierarchy are known by the back end
|
|
105
|
+
mPropertyBag.reference = mPropertyBag.preview.reference;
|
|
106
|
+
// higher layers are served by other connectors
|
|
107
|
+
mParameters.upToLayerType = mPropertyBag.preview.maxLayer;
|
|
108
|
+
}
|
|
109
|
+
|
|
100
110
|
var sDataUrl = Utils.getUrl(ROUTES.DATA, mPropertyBag, mParameters);
|
|
101
111
|
return Utils.sendRequest(sDataUrl, "GET", {
|
|
102
112
|
xsrfToken: this.xsrfToken,
|
|
@@ -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.1
|
|
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
|
*/
|
|
@@ -160,8 +160,9 @@ sap.ui.define([
|
|
|
160
160
|
xhr.response = xhr.responseText;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
oResult.response = xhr.response;
|
|
164
|
+
if (typeof oResult.response === "string" && xhr.getResponseHeader("content-type") && (xhr.getResponseHeader("content-type").indexOf("json") > 0)) {
|
|
165
|
+
oResult.response = JSON.parse(oResult.response);
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
oResult.status = xhr.status;
|
|
@@ -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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1
|
|
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.1",
|
|
150
150
|
controls: [
|
|
151
151
|
"sap.ui.fl.variants.VariantManagement",
|
|
152
152
|
"sap.ui.fl.util.IFrame"
|
|
@@ -188,8 +188,8 @@ sap.ui.define([
|
|
|
188
188
|
* @enum {string}
|
|
189
189
|
*/
|
|
190
190
|
sap.ui.fl.Versions = {
|
|
191
|
-
Original: -1,
|
|
192
|
-
Draft: 0,
|
|
191
|
+
Original: "-1",
|
|
192
|
+
Draft: "0",
|
|
193
193
|
UrlParameter: "sap-ui-fl-version"
|
|
194
194
|
};
|
|
195
195
|
|
|
@@ -63,7 +63,7 @@ VARIANT_MANAGEMENT_SEL_VARIANT=Imaginea {0}. Pentru a selecta imaginea, ap\u0103
|
|
|
63
63
|
|
|
64
64
|
VARIANT_MANAGEMENT_SEL_VARIANT_MOD=Imagine modificat\u0103 {0}. Pentru a selecta imaginea, ap\u0103sa\u021Bi bara de distan\u021Bare.
|
|
65
65
|
|
|
66
|
-
VARIANT_MANAGEMENT_VARIANTS=
|
|
66
|
+
VARIANT_MANAGEMENT_VARIANTS=Imaginile mele
|
|
67
67
|
|
|
68
68
|
VARIANT_MANAGEMENT_ERROR_DUPLICATE=Numele imaginii exist\u0103 deja. Introduce\u021Bi un alt nume.
|
|
69
69
|
|
|
@@ -312,9 +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
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Checks whether the current system is defined as a productive system and transport mechanism of changes is also available or not.
|
|
327
|
+
*
|
|
328
|
+
* @returns {boolean} <code>true</code> if transport of changes is available
|
|
329
|
+
*/
|
|
330
|
+
Settings.prototype.isProductiveSystemWithTransports = function() {
|
|
331
|
+
return this.isProductiveSystem() && this.isSystemWithTransports();
|
|
332
|
+
};
|
|
333
|
+
|
|
315
334
|
/**
|
|
316
335
|
* Getter for the system ID of the connected back end.
|
|
317
|
-
*
|
|
336
|
+
* This is taken from the <code>system</code> property of the flex settings. Only filled for an ABAP back end.
|
|
318
337
|
*
|
|
319
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)
|
|
320
339
|
*/
|
|
@@ -324,7 +343,7 @@ sap.ui.define([
|
|
|
324
343
|
|
|
325
344
|
/**
|
|
326
345
|
* Getter for the client of the connected back end.
|
|
327
|
-
*
|
|
346
|
+
* This is taken from the <code>client</code> property of the flex settings. Only filled for an ABAP back end.
|
|
328
347
|
*
|
|
329
348
|
* @returns {string} Client of the connected backend or undefined (when property <code>system</code> does not exist in the flex settings file)
|
|
330
349
|
*/
|
|
@@ -332,9 +351,39 @@ sap.ui.define([
|
|
|
332
351
|
return this._oSettings.client;
|
|
333
352
|
};
|
|
334
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
|
+
|
|
335
384
|
/**
|
|
336
385
|
* Getter for the id of the current user.
|
|
337
|
-
*
|
|
386
|
+
* This is taken from the <code>userId</code> property of the flex settings. Only filled when UShell is available.
|
|
338
387
|
*
|
|
339
388
|
* @returns {string} User ID of the current user. Undefined if UShell is not available.
|
|
340
389
|
*/
|
|
@@ -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.99.1
|
|
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
|
+
});
|