@openui5/sap.ui.fl 1.96.2 → 1.97.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 +1 -1
- package/THIRDPARTY.txt +2 -1
- 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/ChangePersistence.js +6 -4
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/EventHistory.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/FlexControllerFactory.js +9 -5
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
- package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
- package/src/sap/ui/fl/Utils.js +8 -8
- package/src/sap/ui/fl/Variant.js +1 -1
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +10 -11
- 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/Applier.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/controlVariants/URLHandler.js +263 -263
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +39 -9
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +3 -33
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -16
- 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/appDescriptorChanges/prepareAppDescriptorMap.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/compVariants/prepareCompVariantsMap.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +13 -11
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +86 -6
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +58 -9
- 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 +16 -10
- 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/StorageResultMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -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 +9 -9
- 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/registry/Settings.js +15 -16
- package/src/sap/ui/fl/support/Flexibility.js +83 -72
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +12 -12
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +8 -8
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +9 -9
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +3 -3
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +51 -52
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +129 -125
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -2
- 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 +2 -4
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +1 -1
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +12 -2
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -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 +3 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -23
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/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 +4 -3
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +5 -4
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +5 -7
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -5
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -2
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +117 -13
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -0
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +7 -3
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
- package/ui5.yaml +132 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @namespace
|
|
42
42
|
* @alias sap.ui.fl.write._internal.condenser.Condenser
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.97.0
|
|
45
45
|
*/
|
|
46
46
|
var Condenser = {};
|
|
47
47
|
|
|
@@ -511,9 +511,10 @@ sap.ui.define([
|
|
|
511
511
|
var bSuccess = true;
|
|
512
512
|
var aCondenserInfos = getCondenserInfos(mReducedChanges, []);
|
|
513
513
|
sortCondenserInfosByInitialOrder(aChanges, aCondenserInfos);
|
|
514
|
+
var aReducedIndexRelatedChanges;
|
|
514
515
|
try {
|
|
515
516
|
Measurement.start("Condenser_sort", "sort index related changes - CondenserClass", ["sap.ui.fl", "Condenser"]);
|
|
516
|
-
|
|
517
|
+
aReducedIndexRelatedChanges = UIReconstruction.sortIndexRelatedChanges(mUIReconstructions, aCondenserInfos);
|
|
517
518
|
} catch (oError) {
|
|
518
519
|
// an error here has to be treated similar to if there were some unclassified changes
|
|
519
520
|
// TODO: could be improved to only add all the changes of that specific container
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
*
|
|
75
75
|
* @namespace sap.ui.fl.write._internal.connectors.BackendConnector
|
|
76
76
|
* @since 1.72
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.97.0
|
|
78
78
|
* @private
|
|
79
79
|
* @ui5-restricted sap.ui.fl.write._internal.connectors
|
|
80
80
|
*/
|
|
@@ -179,7 +179,7 @@ sap.ui.define([
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Called to get the flex features.
|
|
182
|
-
*
|
|
182
|
+
* @param {object} mPropertyBag - Property bag
|
|
183
183
|
* @returns {Promise<object>} Promise resolves with an object containing the flex features
|
|
184
184
|
*/
|
|
185
185
|
loadFeatures: function (mPropertyBag) {
|
|
@@ -22,37 +22,16 @@ sap.ui.define([
|
|
|
22
22
|
var PREFIX = "/flex/keyuser";
|
|
23
23
|
var API_VERSION = "/v1";
|
|
24
24
|
|
|
25
|
-
function _enhancePropertyBagWithTokenInfo(mPropertyBag) {
|
|
26
|
-
mPropertyBag.initialConnector = InitialConnector;
|
|
27
|
-
mPropertyBag.xsrfToken = InitialConnector.xsrfToken;
|
|
28
|
-
mPropertyBag.tokenUrl = KeyUserConnector.ROUTES.TOKEN;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _enhancePropertyBagForDraftActivation(mPropertyBag) {
|
|
32
|
-
var oPayload = {
|
|
33
|
-
title: mPropertyBag.title
|
|
34
|
-
};
|
|
35
|
-
mPropertyBag.payload = JSON.stringify(oPayload);
|
|
36
|
-
mPropertyBag.dataType = "json";
|
|
37
|
-
mPropertyBag.contentType = "application/json; charset=utf-8";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function renameVersionNumberProperty(oVersion) {
|
|
41
|
-
oVersion.version = oVersion.versionNumber;
|
|
42
|
-
delete oVersion.versionNumber;
|
|
43
|
-
return oVersion;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
25
|
/**
|
|
47
26
|
* Connector for saving and deleting data from SAPUI5 Flexibility KeyUser service.
|
|
48
27
|
*
|
|
49
28
|
* @namespace sap.ui.fl.write._internal.connectors.KeyUserConnector
|
|
50
29
|
* @since 1.70
|
|
51
|
-
* @version 1.
|
|
30
|
+
* @version 1.97.0
|
|
52
31
|
* @private
|
|
53
32
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
54
33
|
*/
|
|
55
|
-
|
|
34
|
+
var KeyUserConnector = merge({}, BackendConnector, /** @lends sap.ui.fl.write._internal.connectors.KeyUserConnector */ {
|
|
56
35
|
layers: InitialConnector.layers,
|
|
57
36
|
|
|
58
37
|
ROUTES: {
|
|
@@ -75,6 +54,27 @@ sap.ui.define([
|
|
|
75
54
|
}
|
|
76
55
|
});
|
|
77
56
|
|
|
57
|
+
function _enhancePropertyBagWithTokenInfo(mPropertyBag) {
|
|
58
|
+
mPropertyBag.initialConnector = InitialConnector;
|
|
59
|
+
mPropertyBag.xsrfToken = InitialConnector.xsrfToken;
|
|
60
|
+
mPropertyBag.tokenUrl = KeyUserConnector.ROUTES.TOKEN;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function _enhancePropertyBagForDraftActivation(mPropertyBag) {
|
|
64
|
+
var oPayload = {
|
|
65
|
+
title: mPropertyBag.title
|
|
66
|
+
};
|
|
67
|
+
mPropertyBag.payload = JSON.stringify(oPayload);
|
|
68
|
+
mPropertyBag.dataType = "json";
|
|
69
|
+
mPropertyBag.contentType = "application/json; charset=utf-8";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function renameVersionNumberProperty(oVersion) {
|
|
73
|
+
oVersion.version = oVersion.versionNumber;
|
|
74
|
+
delete oVersion.versionNumber;
|
|
75
|
+
return oVersion;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
78
|
KeyUserConnector.versions = {
|
|
79
79
|
load: function (mPropertyBag) {
|
|
80
80
|
_enhancePropertyBagWithTokenInfo(mPropertyBag);
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @class
|
|
18
18
|
* @namespace sap.ui.fl.write._internal.fieldExtensibility.ABAPExtensibilityVariant
|
|
19
19
|
* @since 1.87
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.97.0
|
|
21
21
|
* @public
|
|
22
22
|
* @param {sap.ui.base.ManagedObject} oControl - Control to add extensions
|
|
23
23
|
*/
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @namespace sap.ui.fl.write._internal.fieldExtensibility.ABAPExtensibilityVariantFactory
|
|
118
118
|
* @experimental Since 1.87.0
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.
|
|
120
|
+
* @version 1.97.0
|
|
121
121
|
*/
|
|
122
122
|
var ABAPExtensibilityVariantFactory = {};
|
|
123
123
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/base/ManagedObject",
|
|
10
10
|
"sap/ui/core/Fragment",
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
* @extends sap.ui.base.ManagedObject
|
|
81
81
|
* @alias sap.ui.fl.write._internal.fieldExtensibility.cap.dialog.CustomFieldCAPDialog
|
|
82
82
|
* @author SAP SE
|
|
83
|
-
* @version 1.
|
|
83
|
+
* @version 1.97.0
|
|
84
84
|
* @since 1.93
|
|
85
85
|
* @experimental Since 1.93
|
|
86
86
|
* @private
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
/**
|
|
33
33
|
* @namespace sap.ui.fl.apply._internal.flexState.FlexObjectState
|
|
34
34
|
* @since 1.83
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.97.0
|
|
36
36
|
* @private
|
|
37
37
|
* @ui5-restricted sap.ui.fl
|
|
38
38
|
*/
|
|
@@ -114,7 +114,7 @@ sap.ui.define([
|
|
|
114
114
|
* @param {object} mPropertyBag - Object with parameters as properties
|
|
115
115
|
* @param {sap.ui.fl.Control} mPropertyBag.control - Retrieves the associated flex persistence
|
|
116
116
|
* @param {boolean} mPropertyBag.invalidateCache - Flag if the cache should be invalidated
|
|
117
|
-
* @param {boolean} mPropertyBag.includeCtrlVariants - Flag if control variant
|
|
117
|
+
* @param {boolean} mPropertyBag.includeCtrlVariants - Flag if control variant changes should be included
|
|
118
118
|
* @param {boolean} mPropertyBag.includeDirtyChanges - Flag if dirty UI changes should be included
|
|
119
119
|
* @returns {Promise<sap.ui.fl.Change[]>} Flex objects, containing changes, compVariants & changes as well as ctrl_variant and changes
|
|
120
120
|
*/
|
|
@@ -135,9 +135,10 @@ sap.ui.define([
|
|
|
135
135
|
* @param {string} [mPropertyBag.siteId] - ID of the site belonging to the current running component
|
|
136
136
|
* @param {string} [mPropertyBag.layer] - Specifies a single layer for loading change; if this parameter is set, the max layer filtering is not applied
|
|
137
137
|
* @param {boolean} [mPropertyBag.ignoreMaxLayerParameter] - Indicates that changes are to be loaded without layer filtering
|
|
138
|
-
* @param {boolean} [mPropertyBag.
|
|
138
|
+
* @param {boolean} [mPropertyBag.includeCtrlVariants] - Indicates that control variants are to be included
|
|
139
139
|
* @param {string} [mPropertyBag.cacheKey] - Key to validate the cache entry stored on client side
|
|
140
140
|
* @param {boolean} [mPropertyBag.invalidateCache] - Indicates whether the cache is to be invalidated
|
|
141
|
+
* @returns {Promise<sap.ui.fl.Change[]>} Flex objects, containing changes, compVariants & changes as well as ctrl_variant and changes
|
|
141
142
|
*/
|
|
142
143
|
FlexObjectState.saveFlexObjects = function(mPropertyBag) {
|
|
143
144
|
var oAppComponent = ChangesController.getAppComponentForSelector(mPropertyBag.selector);
|
|
@@ -220,7 +220,7 @@ sap.ui.define([
|
|
|
220
220
|
*
|
|
221
221
|
* @namespace sap.ui.fl.write._internal.flexState.compVariants.CompVariantState
|
|
222
222
|
* @since 1.83
|
|
223
|
-
* @version 1.
|
|
223
|
+
* @version 1.97.0
|
|
224
224
|
* @private
|
|
225
225
|
* @ui5-restricted sap.ui.fl
|
|
226
226
|
*/
|
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
oChangeParameter.support.generator = oChangeParameter.support.generator || "CompVariantState." + sChangeType;
|
|
268
268
|
oChangeParameter.support.sapui5Version = sap.ui.version;
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
oChange = new UpdatableChange(oChangeParameter);
|
|
271
271
|
mCompVariantsMap.defaultVariants.push(oChange);
|
|
272
272
|
mCompVariantsMap.byId[oChange.getId()] = oChange;
|
|
273
273
|
oChange.addRevertInfo(new RevertData({
|
|
@@ -628,6 +628,7 @@ sap.ui.define([
|
|
|
628
628
|
var oVariantRevertData = oVariant.getRevertInfo().pop();
|
|
629
629
|
oVariant.removeRevertInfo(oVariantRevertData);
|
|
630
630
|
var oRevertDataContent = oVariantRevertData.getContent();
|
|
631
|
+
var oChange;
|
|
631
632
|
|
|
632
633
|
switch (oVariantRevertData.getType()) {
|
|
633
634
|
case CompVariantState.operationType.ContentUpdate:
|
|
@@ -644,7 +645,7 @@ sap.ui.define([
|
|
|
644
645
|
));
|
|
645
646
|
break;
|
|
646
647
|
case CompVariantState.operationType.NewChange:
|
|
647
|
-
|
|
648
|
+
oChange = oVariantRevertData.getChange();
|
|
648
649
|
oVariant.removeChange(oChange);
|
|
649
650
|
removeChange(oChange);
|
|
650
651
|
revertVariantChange(
|
|
@@ -661,7 +662,7 @@ sap.ui.define([
|
|
|
661
662
|
));
|
|
662
663
|
break;
|
|
663
664
|
case CompVariantState.operationType.UpdateVariantViaChangeUpdate:
|
|
664
|
-
|
|
665
|
+
oChange = oVariantRevertData.getChange();
|
|
665
666
|
revertVariantChange(
|
|
666
667
|
oVariant,
|
|
667
668
|
Object.assign(
|
|
@@ -15,8 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
"sap/m/MessageToast",
|
|
16
16
|
"sap/ui/core/ListItem",
|
|
17
17
|
"sap/ui/fl/write/_internal/transport/Transports"
|
|
18
|
-
],
|
|
19
|
-
function(
|
|
18
|
+
], function(
|
|
20
19
|
List,
|
|
21
20
|
InputListItem,
|
|
22
21
|
Button,
|
|
@@ -113,11 +112,6 @@ function(
|
|
|
113
112
|
}.bind(this));
|
|
114
113
|
};
|
|
115
114
|
|
|
116
|
-
/**
|
|
117
|
-
* Creates the content list and places its content.
|
|
118
|
-
*
|
|
119
|
-
* @private
|
|
120
|
-
*/
|
|
121
115
|
TransportDialog.prototype._createContentList = function() {
|
|
122
116
|
this._oPackageListItem = new InputListItem({
|
|
123
117
|
label: this._oResources.getText("TRANSPORT_DIALOG_PACKAGE"),
|
|
@@ -433,6 +427,7 @@ function(
|
|
|
433
427
|
* An ABAP package that can be used as default for the ABAP package selection.
|
|
434
428
|
* The property can only be set once and afterwards it cannot be changed.
|
|
435
429
|
* @param {string} sPackage - ABAP package that can be used as default for the ABAP package selection
|
|
430
|
+
* @returns {sap.ui.fl.write._internal.transport.TransportDialog} The <code>this</code> object
|
|
436
431
|
*
|
|
437
432
|
* @public
|
|
438
433
|
*/
|
|
@@ -461,6 +456,7 @@ function(
|
|
|
461
456
|
/**
|
|
462
457
|
* The set of ABAP transport requests that can be selected by a user.
|
|
463
458
|
* @param {array} aSelection - Set of ABAP transport requests that can be selected by a user
|
|
459
|
+
* @returns {sap.ui.fl.write._internal.transport.TransportDialog} The <code>this</code> object
|
|
464
460
|
*
|
|
465
461
|
* @public
|
|
466
462
|
*/
|
|
@@ -501,6 +497,7 @@ function(
|
|
|
501
497
|
* The LREP object for which as transport request has to be selected.
|
|
502
498
|
* The property can only be set once and afterwards it cannot be changed.
|
|
503
499
|
* @param {object} oObject - LREP object for which a transport request has to be selected. The object has the attributes name, namespace, and type
|
|
500
|
+
* @returns {sap.ui.fl.write._internal.transport.TransportDialog} The <code>this</code> object
|
|
504
501
|
*
|
|
505
502
|
* @public
|
|
506
503
|
*/
|
|
@@ -515,6 +512,7 @@ function(
|
|
|
515
512
|
/**
|
|
516
513
|
* Flag indicating whether the selection of an ABAP package is to be hidden or not.
|
|
517
514
|
* @param {boolean} bHide - If set to <code>true</code>, the package selection is hidden
|
|
515
|
+
* @returns {sap.ui.fl.write._internal.transport.TransportDialog} The <code>this</code> object
|
|
518
516
|
*
|
|
519
517
|
* @public
|
|
520
518
|
*/
|
|
@@ -25,13 +25,11 @@ sap.ui.define([
|
|
|
25
25
|
/**
|
|
26
26
|
* @private
|
|
27
27
|
* @alias sap.ui.fl.write._internal.transport.TransportSelection
|
|
28
|
-
* @constructor
|
|
29
28
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
29
|
+
* @version 1.97.0
|
|
31
30
|
* @since 1.74.0
|
|
32
31
|
* Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
|
|
33
32
|
* of the SmartVariant control.
|
|
34
|
-
* @returns {sap.ui.fl.write._internal.transport.TransportSelection} New instance of <code>sap.ui.fl.write._internal.transport.TransportSelection</code>
|
|
35
33
|
*/
|
|
36
34
|
var TransportSelection = function() {};
|
|
37
35
|
|
|
@@ -51,6 +49,7 @@ sap.ui.define([
|
|
|
51
49
|
* @param {function} fError - Callback to be invoked when an error occurred during selection of a transport request
|
|
52
50
|
* @param {boolean} bCompactMode - Flag indicating whether the transport dialog should be opened in compact mode
|
|
53
51
|
* @param {object} oControl - Control instance
|
|
52
|
+
* @param {string} sStyleClass - CSS style class that should be added to any dialogs
|
|
54
53
|
* @public
|
|
55
54
|
*/
|
|
56
55
|
TransportSelection.prototype.selectTransport = function(oObjectInfo, fOkay, fError, bCompactMode, oControl, sStyleClass) {
|
|
@@ -157,6 +156,7 @@ sap.ui.define([
|
|
|
157
156
|
* @param {function} fOkay - Callback to be invoked when a transport request has successfully been selected
|
|
158
157
|
* @param {function} fError - Callback to be invoked when an error occurred during selection of a transport request
|
|
159
158
|
* @param {boolean} bCompactMode - Flag indicating whether the transport dialog should be opened in compact mode
|
|
159
|
+
* @param {string} sStyleClass - CSS style class that should be added to any dialogs
|
|
160
160
|
* @returns {sap.ui.fl.write._internal.transport.TransportDialog} Dialog
|
|
161
161
|
* @private
|
|
162
162
|
*/
|
|
@@ -202,7 +202,7 @@ sap.ui.define([
|
|
|
202
202
|
/**
|
|
203
203
|
* Returns whether the dialog to select a transport should be started.
|
|
204
204
|
*
|
|
205
|
-
* @param {object} oTransports- Available transports
|
|
205
|
+
* @param {object} oTransports - Available transports
|
|
206
206
|
* @param {boolean} bATOActive - Indicates whether the system is using ATO_NOTIFICATION or not
|
|
207
207
|
* @returns {boolean} <code>true</code> if the LREP object is already locked in one of the transports, <code>false</code> otherwise
|
|
208
208
|
* @private
|
|
@@ -303,7 +303,8 @@ sap.ui.define([
|
|
|
303
303
|
* Opens the transport selection dialog
|
|
304
304
|
*
|
|
305
305
|
* @param {sap.ui.fl.Change} [oChange] - Change for which the transport information should be retrieved
|
|
306
|
-
* @param {object} oControl- Object of the root control for the transport dialog
|
|
306
|
+
* @param {object} oControl - Object of the root control for the transport dialog
|
|
307
|
+
* @param {string} sStyleClass - CSS style class that should be added to any dialogs
|
|
307
308
|
* @returns {Promise} Promise that resolves
|
|
308
309
|
* @public
|
|
309
310
|
*/
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
|
-
/*global Promise */
|
|
7
6
|
|
|
8
7
|
sap.ui.define([
|
|
9
8
|
"sap/ui/fl/initial/_internal/connectors/LrepConnector",
|
|
@@ -28,7 +27,7 @@ sap.ui.define([
|
|
|
28
27
|
* Entity that handles ABAP transport related information.
|
|
29
28
|
* @alias sap.ui.fl.write._internal.transport.Transports
|
|
30
29
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
30
|
+
* @version 1.97.0
|
|
32
31
|
* @since 1.74.0
|
|
33
32
|
* @private
|
|
34
33
|
* @ui5-restricted sap.ui.fl.write._internal.transport
|