@openui5/sap.ui.fl 1.90.3 → 1.90.7
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 +14 -0
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.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 +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/Variant.js +1 -1
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +1 -1
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +14 -5
- 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/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 +13 -1
- 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 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +2 -0
- 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/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 +9 -9
- package/src/sap/ui/fl/registry/ChangeRegistry.js +1 -1
- package/src/sap/ui/fl/registry/ChangeRegistryItem.js +1 -1
- package/src/sap/ui/fl/registry/SimpleChanges.js +1 -1
- package/src/sap/ui/fl/support/Flexibility.js +1 -1
- 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 +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- 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/IFrame.js +29 -2
- 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/variants/VariantModel.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +2 -2
- 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 +12 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -23
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +13 -2
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -1
- 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/flexState/FlexObjectState.js +16 -10
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +11 -4
- 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/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -0
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @namespace
|
|
43
43
|
* @alias sap.ui.fl.write._internal.condenser.Condenser
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.90.
|
|
45
|
+
* @version 1.90.7
|
|
46
46
|
*/
|
|
47
47
|
var Condenser = {};
|
|
48
48
|
|
|
@@ -66,7 +66,10 @@ sap.ui.define([
|
|
|
66
66
|
* @returns {boolean} <code>true</code> if the 'move' subtype has been added to the data structure before 'create' subtype
|
|
67
67
|
*/
|
|
68
68
|
function isCreateAfterMoveSubtype(mSubtypes, oCondenserInfo) {
|
|
69
|
-
|
|
69
|
+
var aMoveSubType = mSubtypes[sap.ui.fl.condenser.Classification.Move];
|
|
70
|
+
return oCondenserInfo.classification === sap.ui.fl.condenser.Classification.Create
|
|
71
|
+
&& aMoveSubType
|
|
72
|
+
&& aMoveSubType[aMoveSubType.length - 1].targetContainer === oCondenserInfo.targetContainer;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
/**
|
|
@@ -376,6 +379,12 @@ sap.ui.define([
|
|
|
376
379
|
});
|
|
377
380
|
}
|
|
378
381
|
|
|
382
|
+
function sortCondenserInfosByInitialOrder(aChanges, aCondenserInfos) {
|
|
383
|
+
aCondenserInfos.sort(function(a, b) {
|
|
384
|
+
return aChanges.indexOf(a.change) - aChanges.indexOf(b.change);
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
379
388
|
function addAllIndexRelatedChanges(aReducedChanges, aIndexRelatedChanges) {
|
|
380
389
|
var aReducedChangeIds = aReducedChanges.map(function(oChange) {
|
|
381
390
|
return oChange.getId();
|
|
@@ -475,6 +484,7 @@ sap.ui.define([
|
|
|
475
484
|
Measurement.start("Condenser_handleIndexRelatedChanges", "handle index related changes - CondenserClass", ["sap.ui.fl", "Condenser"]);
|
|
476
485
|
|
|
477
486
|
var aCondenserInfos = getCondenserInfos(mReducedChanges, []);
|
|
487
|
+
sortCondenserInfosByInitialOrder(aChanges, aCondenserInfos);
|
|
478
488
|
|
|
479
489
|
Measurement.start("Condenser_sort", "sort index related changes - CondenserClass", ["sap.ui.fl", "Condenser"]);
|
|
480
490
|
var aReducedIndexRelatedChanges = UIReconstruction.sortIndexRelatedChanges(mUIReconstructions, aCondenserInfos);
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @namespace
|
|
29
29
|
* @alias sap.ui.fl.write._internal.condenser.UIReconstruction
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.90.
|
|
31
|
+
* @version 1.90.7
|
|
32
32
|
*/
|
|
33
33
|
var UIReconstruction = {};
|
|
34
34
|
|
|
@@ -147,22 +147,6 @@ sap.ui.define([
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
/**
|
|
151
|
-
* Shifts the index-related change from the source index to the target index.
|
|
152
|
-
*
|
|
153
|
-
* @param {Map} mUIReconstructions - Map of UI reconstructions that holds key-value pairs. A key is a selector ID of the container. A value is a nested map which contains initial and target UI reconstructions
|
|
154
|
-
* @param {Object} oCondenserInfo - Instance of condenser info object
|
|
155
|
-
*/
|
|
156
|
-
function shiftToTargetIndex(mUIReconstructions, oCondenserInfo) {
|
|
157
|
-
var sContainerKey = oCondenserInfo.targetContainer;
|
|
158
|
-
var sAffectedControlId = oCondenserInfo.affectedControl;
|
|
159
|
-
var iTargetIndex = oCondenserInfo.getTargetIndex(oCondenserInfo.change);
|
|
160
|
-
var aContainerElements = mUIReconstructions[sContainerKey][oCondenserInfo.targetAggregation];
|
|
161
|
-
Utils.extendArrayWithPlaceholders(aContainerElements, undefined, iTargetIndex);
|
|
162
|
-
var iSourceIndex = aContainerElements.indexOf(sAffectedControlId);
|
|
163
|
-
shiftElement(aContainerElements, iSourceIndex, iTargetIndex);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
150
|
/**
|
|
167
151
|
* Verifies whether the passed arrays are equal.
|
|
168
152
|
*
|
|
@@ -214,12 +198,6 @@ sap.ui.define([
|
|
|
214
198
|
INDEX_RELATED[oCondenserInfo.classification].simulate(mUIAggregationState[sAggregationName], oCondenserInfo, aInitialUIElementIds);
|
|
215
199
|
});
|
|
216
200
|
|
|
217
|
-
aCondenserInfos.forEach(function(oCondenserInfo) {
|
|
218
|
-
if (oCondenserInfo.classification === sap.ui.fl.condenser.Classification.Move) {
|
|
219
|
-
shiftToTargetIndex(mUISimulatedStates, oCondenserInfo);
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
|
|
223
201
|
var aSortedUIElementIds = mUISimulatedStates[sContainerKey][sAggregationName];
|
|
224
202
|
if (isEqual(aTargetUIElementIds, aSortedUIElementIds)) {
|
|
225
203
|
return true;
|
|
@@ -49,8 +49,19 @@ sap.ui.define([
|
|
|
49
49
|
*/
|
|
50
50
|
simulate: function(aContainerElements, oCondenserInfo, aInitialUIElementIds) {
|
|
51
51
|
var sAffectedControlId = oCondenserInfo.affectedControl;
|
|
52
|
-
var
|
|
53
|
-
|
|
52
|
+
var iInitialSourceIndex = aInitialUIElementIds.indexOf(sAffectedControlId);
|
|
53
|
+
// the move itself should not extend the array, just replace the placeholder
|
|
54
|
+
CondenserUtils.extendElementsArray(aContainerElements, iInitialSourceIndex, undefined, sAffectedControlId);
|
|
55
|
+
|
|
56
|
+
var iCurrentSourceIndex = aContainerElements.indexOf(sAffectedControlId);
|
|
57
|
+
var iTargetIndex = oCondenserInfo.getTargetIndex(oCondenserInfo.change);
|
|
58
|
+
|
|
59
|
+
// if the move was done from a different container the element can't be found
|
|
60
|
+
if (iInitialSourceIndex === -1) {
|
|
61
|
+
aContainerElements.splice(iTargetIndex, 0, sAffectedControlId);
|
|
62
|
+
} else {
|
|
63
|
+
aContainerElements.splice(iTargetIndex, 0, aContainerElements.splice(iCurrentSourceIndex, 1)[0]);
|
|
64
|
+
}
|
|
54
65
|
}
|
|
55
66
|
};
|
|
56
67
|
});
|
|
@@ -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.90.
|
|
20
|
+
* @version 1.90.7
|
|
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.90.
|
|
120
|
+
* @version 1.90.7
|
|
121
121
|
*/
|
|
122
122
|
var ABAPExtensibilityVariantFactory = {};
|
|
123
123
|
|
|
@@ -10,6 +10,7 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
11
11
|
"sap/ui/fl/apply/_internal/ChangesController",
|
|
12
12
|
"sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState",
|
|
13
|
+
"sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger",
|
|
13
14
|
"sap/ui/fl/ChangePersistenceFactory",
|
|
14
15
|
"sap/ui/fl/LayerUtils",
|
|
15
16
|
"sap/ui/fl/apply/_internal/flexState/compVariants/Utils",
|
|
@@ -20,6 +21,7 @@ sap.ui.define([
|
|
|
20
21
|
ManifestUtils,
|
|
21
22
|
ChangesController,
|
|
22
23
|
CompVariantState,
|
|
24
|
+
CompVariantMerger,
|
|
23
25
|
ChangePersistenceFactory,
|
|
24
26
|
LayerUtils,
|
|
25
27
|
CompVariantsUtils,
|
|
@@ -30,7 +32,7 @@ sap.ui.define([
|
|
|
30
32
|
/**
|
|
31
33
|
* @namespace sap.ui.fl.apply._internal.flexState.FlexObjectState
|
|
32
34
|
* @since 1.83
|
|
33
|
-
* @version 1.90.
|
|
35
|
+
* @version 1.90.7
|
|
34
36
|
* @private
|
|
35
37
|
* @ui5-restricted sap.ui.fl
|
|
36
38
|
*/
|
|
@@ -50,6 +52,17 @@ sap.ui.define([
|
|
|
50
52
|
function getCompVariantEntities(mPropertyBag) {
|
|
51
53
|
var mCompEntities = FlexState.getCompVariantsMap(mPropertyBag.reference);
|
|
52
54
|
var aEntities = [];
|
|
55
|
+
//Enhance CompVariantsMap with external data and standard variant after FlexState has been cleared and reinitialized
|
|
56
|
+
if (mPropertyBag.invalidateCache) {
|
|
57
|
+
var oDataToRestore = FlexState.getInitialNonFlCompVariantData(mPropertyBag.reference);
|
|
58
|
+
if (oDataToRestore) {
|
|
59
|
+
Object.keys(oDataToRestore).forEach(function(sPersistencyKey) {
|
|
60
|
+
mCompEntities._initialize(sPersistencyKey, oDataToRestore[sPersistencyKey].variants);
|
|
61
|
+
CompVariantMerger.merge(sPersistencyKey, mCompEntities[sPersistencyKey], oDataToRestore[sPersistencyKey].standardVariant);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
53
66
|
for (var sPersistencyKey in mCompEntities) {
|
|
54
67
|
var mCompVariantsOfPersistencyKey = mCompEntities[sPersistencyKey];
|
|
55
68
|
for (var sId in mCompVariantsOfPersistencyKey.byId) {
|
|
@@ -108,15 +121,8 @@ sap.ui.define([
|
|
|
108
121
|
FlexObjectState.getFlexObjects = function (mPropertyBag) {
|
|
109
122
|
return initFlexStateAndSetReference(mPropertyBag)
|
|
110
123
|
.then(function () {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return Promise.all([
|
|
115
|
-
aCompVariantEntities,
|
|
116
|
-
aChangePersistenceEntities
|
|
117
|
-
]).then(function (aEntities) {
|
|
118
|
-
return aEntities[0] // compVariant entities (changes of type defaultVariant / standardVariant, variant)
|
|
119
|
-
.concat(aEntities[1]); // ChangePersistence entities (change, ctrl_variant, ctrl_variant_change, ctrl_variant_management_change)
|
|
124
|
+
return getChangePersistenceEntities(mPropertyBag).then(function (aChangePersistenceEntities) {
|
|
125
|
+
return getCompVariantEntities(mPropertyBag).concat(aChangePersistenceEntities);
|
|
120
126
|
});
|
|
121
127
|
});
|
|
122
128
|
};
|
|
@@ -261,7 +261,7 @@ sap.ui.define([
|
|
|
261
261
|
*
|
|
262
262
|
* @namespace sap.ui.fl.write._internal.flexState.compVariants.CompVariantState
|
|
263
263
|
* @since 1.83
|
|
264
|
-
* @version 1.90.
|
|
264
|
+
* @version 1.90.7
|
|
265
265
|
* @private
|
|
266
266
|
* @ui5-restricted sap.ui.fl
|
|
267
267
|
*/
|
|
@@ -442,6 +442,7 @@ sap.ui.define([
|
|
|
442
442
|
* @param {string} mPropertyBag.persistencyKey - Key of the variant management
|
|
443
443
|
* @param {string} mPropertyBag.id - ID of the variant
|
|
444
444
|
* @param {string} [mPropertyBag.packageName] - ID of the package in which the update should be transported - only valid for sap-ui-layer=VENDOR use case
|
|
445
|
+
* @param {string} [mPropertyBag.transportId] - ID of the transport in which the update should be transported
|
|
445
446
|
* @param {object} [mPropertyBag.revert=false] - Flag if the update is a revert operation
|
|
446
447
|
* @param {object} [mPropertyBag.name] - Title of the variant
|
|
447
448
|
* @param {object} [mPropertyBag.content] - Content of the new change
|
|
@@ -456,7 +457,7 @@ sap.ui.define([
|
|
|
456
457
|
CompVariantState.updateVariant = function (mPropertyBag) {
|
|
457
458
|
function variantCanBeUpdated(oVariant, sLayer) {
|
|
458
459
|
var bSameLayer = oVariant.getLayer() === sLayer;
|
|
459
|
-
var sPackageName = oVariant.
|
|
460
|
+
var sPackageName = oVariant.getPackage();
|
|
460
461
|
var bNotTransported = !sPackageName || sPackageName === "$TMP";
|
|
461
462
|
// in case changes were already done within the layer, no update of the variant can be done to safeguard the execution order
|
|
462
463
|
var bIsChangedOnLayer = oVariant.getChanges().some(function (oChange) {
|
|
@@ -487,8 +488,8 @@ sap.ui.define([
|
|
|
487
488
|
if (mPropertyBag.name) {
|
|
488
489
|
oVariant.storeName(mPropertyBag.name);
|
|
489
490
|
}
|
|
490
|
-
if (mPropertyBag.
|
|
491
|
-
oVariant.setRequest(mPropertyBag.
|
|
491
|
+
if (mPropertyBag.transportId) {
|
|
492
|
+
oVariant.setRequest(mPropertyBag.transportId);
|
|
492
493
|
}
|
|
493
494
|
oVariant.storeContent(mPropertyBag.content || oVariant.getContent());
|
|
494
495
|
}
|
|
@@ -529,6 +530,9 @@ sap.ui.define([
|
|
|
529
530
|
};
|
|
530
531
|
}
|
|
531
532
|
oChange.setContent(oChangeContent);
|
|
533
|
+
if (mPropertyBag.transportId) {
|
|
534
|
+
oChange.setRequest(mPropertyBag.transportId);
|
|
535
|
+
}
|
|
532
536
|
CompVariantMerger.applyChangeOnVariant(oVariant, oChange);
|
|
533
537
|
storeRevertDataInVariant(mPropertyBag, oVariant, CompVariantState.operationType.UpdateVariantViaChangeUpdate, oChange);
|
|
534
538
|
}
|
|
@@ -563,6 +567,9 @@ sap.ui.define([
|
|
|
563
567
|
}
|
|
564
568
|
|
|
565
569
|
var oChange = new Change(oChangeDefinition);
|
|
570
|
+
if (mPropertyBag.transportId) {
|
|
571
|
+
oChange.setRequest(mPropertyBag.transportId);
|
|
572
|
+
}
|
|
566
573
|
addChange(oChange);
|
|
567
574
|
storeRevertDataInVariant(mPropertyBag, oVariant, CompVariantState.operationType.NewChange, oChange);
|
|
568
575
|
CompVariantMerger.applyChangeOnVariant(oVariant, oChange);
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @alias sap.ui.fl.write._internal.transport.TransportSelection
|
|
28
28
|
* @constructor
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.90.
|
|
30
|
+
* @version 1.90.7
|
|
31
31
|
* @since 1.74.0
|
|
32
32
|
* 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
33
|
* of the SmartVariant control.
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* Entity that handles ABAP transport related information.
|
|
29
29
|
* @alias sap.ui.fl.write._internal.transport.Transports
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.90.
|
|
31
|
+
* @version 1.90.7
|
|
32
32
|
* @since 1.74.0
|
|
33
33
|
* @private
|
|
34
34
|
* @ui5-restricted sap.ui.fl.write._internal.transport
|
|
@@ -84,6 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* sap.ui.comp.smartchart.SmartChart} mPropertyBag.control - Variant management control for which the variant should be updated
|
|
85
85
|
* @param {string} mPropertyBag.id - ID of the variant
|
|
86
86
|
* @param {string} [mPropertyBag.packageName] - ID of the package in which the update should be transported - only valid for sap-ui-layer=VENDOR use case
|
|
87
|
+
* @param {string} [mPropertyBag.transportId] - ID of the transport in which the update should be assigned
|
|
87
88
|
* @param {object} [mPropertyBag.name] - Title of the variant
|
|
88
89
|
* @param {object} [mPropertyBag.content] - Content of the new change
|
|
89
90
|
* @param {object} [mPropertyBag.favorite] - Flag if the variant should be flagged as a favorite
|