@openui5/sap.ui.fl 1.105.1 → 1.107.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 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +7 -1
- package/src/sap/ui/fl/Change.js +125 -36
- package/src/sap/ui/fl/ChangePersistence.js +61 -33
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnector.js +7 -5
- 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 +7 -8
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +16 -13
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +6 -7
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -3
- 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 +14 -6
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +6 -4
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +11 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +1 -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 +12 -8
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +11 -14
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +4 -4
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +5 -3
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +25 -3
- 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 +3 -2
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +6 -3
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +3 -3
- package/src/sap/ui/fl/changeHandler/BaseRename.js +3 -3
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +8 -6
- 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 +6 -6
- 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 +14 -3
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +16 -0
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +2 -2
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +3 -3
- package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +2 -2
- package/src/sap/ui/fl/changeHandler/condenser/Classification.js +6 -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 +7 -5
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +4 -4
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +2 -4
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +5 -3
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +31 -10
- 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 +51 -47
- package/src/sap/ui/fl/library.support.js +1 -1
- package/src/sap/ui/fl/messagebundle.properties +4 -1
- package/src/sap/ui/fl/messagebundle_ar.properties +1 -1
- package/src/sap/ui/fl/messagebundle_bg.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ca.properties +1 -1
- package/src/sap/ui/fl/messagebundle_cs.properties +1 -1
- package/src/sap/ui/fl/messagebundle_cy.properties +1 -1
- package/src/sap/ui/fl/messagebundle_da.properties +1 -1
- package/src/sap/ui/fl/messagebundle_de.properties +1 -1
- package/src/sap/ui/fl/messagebundle_el.properties +1 -1
- package/src/sap/ui/fl/messagebundle_en.properties +1 -1
- package/src/sap/ui/fl/messagebundle_en_GB.properties +1 -1
- package/src/sap/ui/fl/messagebundle_es.properties +1 -1
- package/src/sap/ui/fl/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/fl/messagebundle_et.properties +1 -1
- package/src/sap/ui/fl/messagebundle_fi.properties +1 -1
- package/src/sap/ui/fl/messagebundle_fr.properties +1 -1
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +1 -1
- package/src/sap/ui/fl/messagebundle_hi.properties +1 -1
- package/src/sap/ui/fl/messagebundle_hr.properties +1 -1
- package/src/sap/ui/fl/messagebundle_hu.properties +1 -1
- package/src/sap/ui/fl/messagebundle_id.properties +1 -1
- package/src/sap/ui/fl/messagebundle_it.properties +1 -1
- package/src/sap/ui/fl/messagebundle_iw.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ja.properties +1 -1
- package/src/sap/ui/fl/messagebundle_kk.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ko.properties +1 -1
- package/src/sap/ui/fl/messagebundle_lt.properties +1 -1
- package/src/sap/ui/fl/messagebundle_lv.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ms.properties +1 -1
- package/src/sap/ui/fl/messagebundle_nl.properties +1 -1
- package/src/sap/ui/fl/messagebundle_no.properties +1 -1
- package/src/sap/ui/fl/messagebundle_pl.properties +1 -1
- package/src/sap/ui/fl/messagebundle_pt.properties +1 -1
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
- package/src/sap/ui/fl/messagebundle_ru.properties +1 -1
- package/src/sap/ui/fl/messagebundle_sh.properties +1 -1
- package/src/sap/ui/fl/messagebundle_sk.properties +1 -1
- package/src/sap/ui/fl/messagebundle_sl.properties +1 -1
- package/src/sap/ui/fl/messagebundle_sv.properties +1 -1
- package/src/sap/ui/fl/messagebundle_th.properties +1 -1
- package/src/sap/ui/fl/messagebundle_tr.properties +1 -1
- package/src/sap/ui/fl/messagebundle_uk.properties +1 -1
- package/src/sap/ui/fl/messagebundle_vi.properties +1 -1
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +1 -1
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +17 -3
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +10 -6
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +11 -7
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +10 -6
- 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 +5 -4
- 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 +5 -4
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +7 -6
- 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/VariantManagement.js +6 -2
- package/src/sap/ui/fl/variants/VariantModel.js +19 -8
- package/src/sap/ui/fl/variants/context/Component.js +13 -0
- package/src/sap/ui/fl/write/_internal/Storage.js +79 -34
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +13 -4
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +6 -6
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +6 -6
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +6 -6
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +75 -14
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +10 -7
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +4 -4
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +5 -5
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +32 -0
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +5 -8
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +20 -9
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +6 -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 +6 -28
- package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +2 -2
- 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 +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 +5 -3
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +6 -12
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +12 -7
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -7
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -2
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +16 -5
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +61 -0
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +19 -1
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +3 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +140 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +5 -0
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.107.0
|
|
70
70
|
* @experimental Since 1.25.0
|
|
71
71
|
* @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
|
|
72
72
|
* @param {string} mComponent.name - Name of the component this instance is responsible for
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
/**
|
|
138
138
|
* Verifies whether a change fulfils the preconditions.
|
|
139
139
|
*
|
|
140
|
-
* All changes need to have a
|
|
140
|
+
* All changes need to have a fileType;
|
|
141
141
|
* only changes whose <code>fileType</code> is 'change' and whose <code>changeType</code> is different from 'defaultVariant' are valid;
|
|
142
142
|
*
|
|
143
143
|
* @param {object} oChangeOrChangeContent Change instance or content of the change
|
|
@@ -145,14 +145,30 @@ sap.ui.define([
|
|
|
145
145
|
* @returns {boolean} <code>true</code> if all the preconditions are fulfilled
|
|
146
146
|
*/
|
|
147
147
|
function preconditionsFulfilled(oChangeOrChangeContent) {
|
|
148
|
-
var
|
|
148
|
+
var sFileType;
|
|
149
|
+
var sVariantManagementReference;
|
|
150
|
+
var sVariantReference;
|
|
151
|
+
var sSelectorId;
|
|
152
|
+
|
|
153
|
+
if (oChangeOrChangeContent instanceof Change) {
|
|
154
|
+
var oChange = oChangeOrChangeContent;
|
|
155
|
+
sFileType = oChange.getFileType();
|
|
156
|
+
sVariantReference = oChange.getVariantReference();
|
|
157
|
+
sSelectorId = oChange.getSelector() && oChange.getSelector().id;
|
|
158
|
+
} else {
|
|
159
|
+
var oChangeContent = oChangeOrChangeContent;
|
|
160
|
+
sFileType = oChangeContent.fileType;
|
|
161
|
+
sVariantManagementReference = oChangeContent.variantManagementReference;
|
|
162
|
+
sVariantReference = oChangeContent.variantReference;
|
|
163
|
+
sSelectorId = oChangeContent.selector && oChangeContent.selector.id;
|
|
164
|
+
}
|
|
149
165
|
|
|
150
166
|
var bControlVariantChange = false;
|
|
151
|
-
if ((
|
|
152
|
-
bControlVariantChange =
|
|
167
|
+
if ((sFileType === "ctrl_variant") || (sFileType === "ctrl_variant_change") || (sFileType === "ctrl_variant_management_change")) {
|
|
168
|
+
bControlVariantChange = sVariantManagementReference || sVariantReference || sSelectorId;
|
|
153
169
|
}
|
|
154
170
|
|
|
155
|
-
return
|
|
171
|
+
return sFileType === "change" || bControlVariantChange;
|
|
156
172
|
}
|
|
157
173
|
|
|
158
174
|
/**
|
|
@@ -298,15 +314,15 @@ sap.ui.define([
|
|
|
298
314
|
};
|
|
299
315
|
|
|
300
316
|
/**
|
|
301
|
-
* Checks the current dependencies map for any unresolved dependencies belonging to the given control
|
|
302
|
-
*
|
|
317
|
+
* Checks the current dependencies map for any open (unresolved) dependencies belonging to the given control
|
|
318
|
+
* and returns the IDs of the open dependent changes.
|
|
303
319
|
*
|
|
304
320
|
* @param {object} oSelector selector of the control
|
|
305
321
|
* @param {sap.ui.core.Component} oAppComponent - Application component instance that is currently loading
|
|
306
|
-
* @returns {
|
|
322
|
+
* @returns {sap.ui.fl.Change[]} Array of all open dependent changes for the control
|
|
307
323
|
*/
|
|
308
|
-
ChangePersistence.prototype.
|
|
309
|
-
return DependencyHandler.
|
|
324
|
+
ChangePersistence.prototype.getOpenDependentChangesForControl = function(oSelector, oAppComponent) {
|
|
325
|
+
return DependencyHandler.getOpenDependentChangesForControl(this._mChanges, JsControlTreeModifier.getControlIdBySelector(oSelector, oAppComponent), oAppComponent);
|
|
310
326
|
};
|
|
311
327
|
|
|
312
328
|
function getInitalDependencyClone(oChange) {
|
|
@@ -561,7 +577,7 @@ sap.ui.define([
|
|
|
561
577
|
if (bAlreadyDeletedViaCondense) {
|
|
562
578
|
this.removeChange(oChange);
|
|
563
579
|
// Remove also from Cache if the persisted change is still there (e.g. navigate away and back to the app)
|
|
564
|
-
Cache.deleteChange(this._mComponent, oChange.
|
|
580
|
+
Cache.deleteChange(this._mComponent, oChange.convertToFileContent());
|
|
565
581
|
} else {
|
|
566
582
|
this.deleteChange(oChange);
|
|
567
583
|
}
|
|
@@ -579,16 +595,20 @@ sap.ui.define([
|
|
|
579
595
|
return aUniqueProperties.length === 1;
|
|
580
596
|
}
|
|
581
597
|
|
|
582
|
-
function
|
|
598
|
+
function canGivenChangesBeCondensed(oAppComponent, aChanges, bCondenseAnyLayer) {
|
|
583
599
|
var bCondenserEnabled = false;
|
|
584
600
|
|
|
585
601
|
if (!oAppComponent || aChanges.length < 2 || !checkIfOnlyOne(aChanges, "getLayer")) {
|
|
586
602
|
return false;
|
|
587
603
|
}
|
|
588
604
|
|
|
589
|
-
|
|
590
|
-
if ([Layer.CUSTOMER, Layer.USER].includes(sLayer)) {
|
|
605
|
+
if (bCondenseAnyLayer) {
|
|
591
606
|
bCondenserEnabled = true;
|
|
607
|
+
} else {
|
|
608
|
+
var sLayer = aChanges[0].getLayer();
|
|
609
|
+
if ([Layer.CUSTOMER, Layer.USER].includes(sLayer)) {
|
|
610
|
+
bCondenserEnabled = true;
|
|
611
|
+
}
|
|
592
612
|
}
|
|
593
613
|
|
|
594
614
|
var oUriParameters = UriParameters.fromURL(window.location.href);
|
|
@@ -613,11 +633,10 @@ sap.ui.define([
|
|
|
613
633
|
this._deleteNotSavedChanges(aAllChanges, aCondensedChanges, bAlreadyDeletedViaCondense);
|
|
614
634
|
}
|
|
615
635
|
|
|
616
|
-
function getAllRelevantChangesForCondensing(aDirtyChanges, aDraftFilenames) {
|
|
617
|
-
if (!aDirtyChanges.length) {
|
|
636
|
+
function getAllRelevantChangesForCondensing(aDirtyChanges, aDraftFilenames, bCondenseAnyLayer, sLayer) {
|
|
637
|
+
if (!aDirtyChanges.length && !bCondenseAnyLayer) {
|
|
618
638
|
return [];
|
|
619
639
|
}
|
|
620
|
-
var sLayer = aDirtyChanges[0].getLayer();
|
|
621
640
|
var aPersistedAndSameLayerChanges = this._mChanges.aChanges.filter(function(oChange) {
|
|
622
641
|
if (sLayer === Layer.CUSTOMER && aDraftFilenames) {
|
|
623
642
|
return oChange.getState() === Change.states.PERSISTED && aDraftFilenames.includes(oChange.getId());
|
|
@@ -627,6 +646,15 @@ sap.ui.define([
|
|
|
627
646
|
return aPersistedAndSameLayerChanges.concat(aDirtyChanges);
|
|
628
647
|
}
|
|
629
648
|
|
|
649
|
+
function canSingleRequestBeUsed(aDirtyChanges) {
|
|
650
|
+
if (aDirtyChanges.length) {
|
|
651
|
+
var aRequests = getRequests(aDirtyChanges);
|
|
652
|
+
var aStates = getStates(aDirtyChanges);
|
|
653
|
+
return aStates.length === 1 && aRequests.length === 1 && aStates[0] === Change.states.NEW;
|
|
654
|
+
}
|
|
655
|
+
return true;
|
|
656
|
+
}
|
|
657
|
+
|
|
630
658
|
/**
|
|
631
659
|
* Saves the passed or all dirty changes by calling the appropriate back-end method (create for new changes, deleteChange for deleted changes);
|
|
632
660
|
* to ensure the correct order, the methods are called sequentially;
|
|
@@ -639,35 +667,35 @@ sap.ui.define([
|
|
|
639
667
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
640
668
|
* @param {sap.ui.fl.Change} [aChanges] - If passed only those changes are saved
|
|
641
669
|
* @param {string} sParentVersion - Parent version
|
|
642
|
-
* @param {string[]} [aDraftFilenames] -
|
|
670
|
+
* @param {string[]} [aDraftFilenames] - Filenames from persisted changes draft version
|
|
671
|
+
* @param {boolean} [bCondenseAnyLayer] - This will enable condensing regardless of the current layer
|
|
672
|
+
* @param {string} [sLayer] - Layer for which the changes should be saved
|
|
643
673
|
* @returns {Promise} Resolving after all changes have been saved
|
|
644
674
|
*/
|
|
645
|
-
ChangePersistence.prototype.saveDirtyChanges = function(oAppComponent, bSkipUpdateCache, aChanges, sParentVersion, aDraftFilenames) {
|
|
675
|
+
ChangePersistence.prototype.saveDirtyChanges = function(oAppComponent, bSkipUpdateCache, aChanges, sParentVersion, aDraftFilenames, bCondenseAnyLayer, sLayer) {
|
|
646
676
|
var aDirtyChanges = aChanges || this._aDirtyChanges;
|
|
647
|
-
var
|
|
677
|
+
var sCurrentLayer = aDirtyChanges.length && aDirtyChanges[0].getLayer() || sLayer;
|
|
678
|
+
var aRelevantChangesForCondensing = getAllRelevantChangesForCondensing.call(this, aDirtyChanges, aDraftFilenames, bCondenseAnyLayer, sCurrentLayer);
|
|
648
679
|
var bIsCondensingEnabled = (
|
|
649
680
|
isBackendCondensingEnabled(aRelevantChangesForCondensing)
|
|
650
|
-
&&
|
|
681
|
+
&& canGivenChangesBeCondensed(oAppComponent, aRelevantChangesForCondensing, bCondenseAnyLayer)
|
|
651
682
|
);
|
|
652
683
|
var aAllChanges = bIsCondensingEnabled ? aRelevantChangesForCondensing : aDirtyChanges;
|
|
653
684
|
var aChangesClone = aAllChanges.slice(0);
|
|
654
|
-
var aDirtyChangesClone = aDirtyChanges.slice(0);
|
|
655
685
|
var aRequests = getRequests(aDirtyChanges);
|
|
656
|
-
var aStates = getStates(aDirtyChanges);
|
|
657
686
|
|
|
658
|
-
if (
|
|
687
|
+
if (canSingleRequestBeUsed(aDirtyChanges)) {
|
|
659
688
|
var oCondensedChangesPromise = Promise.resolve(aChangesClone);
|
|
660
|
-
if (
|
|
689
|
+
if (canGivenChangesBeCondensed(oAppComponent, aChangesClone, bCondenseAnyLayer)) {
|
|
661
690
|
oCondensedChangesPromise = Condenser.condense(oAppComponent, aChangesClone);
|
|
662
691
|
}
|
|
663
692
|
return oCondensedChangesPromise.then(function(aCondensedChanges) {
|
|
664
693
|
var sRequest = aRequests[0];
|
|
665
|
-
var sLayer = aDirtyChanges[0].getLayer();
|
|
666
694
|
if (bIsCondensingEnabled) {
|
|
667
695
|
return Storage.condense({
|
|
668
696
|
allChanges: aAllChanges,
|
|
669
697
|
condensedChanges: aCondensedChanges,
|
|
670
|
-
layer:
|
|
698
|
+
layer: sCurrentLayer,
|
|
671
699
|
transport: sRequest,
|
|
672
700
|
isLegacyVariant: false,
|
|
673
701
|
parentVersion: sParentVersion
|
|
@@ -678,7 +706,7 @@ sap.ui.define([
|
|
|
678
706
|
}
|
|
679
707
|
if (aCondensedChanges.length) {
|
|
680
708
|
return Storage.write({
|
|
681
|
-
layer:
|
|
709
|
+
layer: sCurrentLayer,
|
|
682
710
|
flexObjects: prepareDirtyChanges(aCondensedChanges),
|
|
683
711
|
transport: sRequest,
|
|
684
712
|
isLegacyVariant: false,
|
|
@@ -692,7 +720,7 @@ sap.ui.define([
|
|
|
692
720
|
}.bind(this));
|
|
693
721
|
}
|
|
694
722
|
|
|
695
|
-
return this.saveSequenceOfDirtyChanges(
|
|
723
|
+
return this.saveSequenceOfDirtyChanges(aDirtyChanges, bSkipUpdateCache, sParentVersion);
|
|
696
724
|
};
|
|
697
725
|
|
|
698
726
|
/**
|
|
@@ -732,13 +760,13 @@ sap.ui.define([
|
|
|
732
760
|
}
|
|
733
761
|
return Storage.write({
|
|
734
762
|
layer: oDirtyChange.getLayer(),
|
|
735
|
-
flexObjects: [oDirtyChange.
|
|
763
|
+
flexObjects: [oDirtyChange.convertToFileContent()],
|
|
736
764
|
transport: oDirtyChange.getRequest(),
|
|
737
765
|
parentVersion: sParentVersion
|
|
738
766
|
});
|
|
739
767
|
case Change.states.DELETED:
|
|
740
768
|
return Storage.remove({
|
|
741
|
-
flexObject: oDirtyChange.
|
|
769
|
+
flexObject: oDirtyChange.convertToFileContent(),
|
|
742
770
|
layer: oDirtyChange.getLayer(),
|
|
743
771
|
transport: oDirtyChange.getRequest(),
|
|
744
772
|
parentVersion: sParentVersion
|
|
@@ -967,7 +995,7 @@ sap.ui.define([
|
|
|
967
995
|
return false;
|
|
968
996
|
}
|
|
969
997
|
|
|
970
|
-
if (sGenerator && oChange.
|
|
998
|
+
if (sGenerator && oChange.getSupportInformation().generator !== sGenerator) {
|
|
971
999
|
return false;
|
|
972
1000
|
}
|
|
973
1001
|
|
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/Cache",
|
|
9
9
|
"sap/ui/fl/write/_internal/connectors/ObjectPathConnector",
|
|
10
|
-
"sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils"
|
|
10
|
+
"sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils",
|
|
11
|
+
"sap/ui/core/Configuration"
|
|
11
12
|
], function(
|
|
12
13
|
Cache,
|
|
13
14
|
ObjectPathConnector,
|
|
14
|
-
ObjectStorageUtils
|
|
15
|
+
ObjectStorageUtils,
|
|
16
|
+
Configuration
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -40,7 +42,7 @@ sap.ui.define([
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
FakeLrepConnector.setFlexibilityServicesAndClearCache = function(sStorageConnectorName, sInitialComponentJsonPath) {
|
|
43
|
-
this._oFlexibilityServices =
|
|
45
|
+
this._oFlexibilityServices = Configuration.getFlexibilityServices();
|
|
44
46
|
|
|
45
47
|
var aConnectorConfig = [];
|
|
46
48
|
if (sInitialComponentJsonPath) {
|
|
@@ -48,7 +50,7 @@ sap.ui.define([
|
|
|
48
50
|
aConnectorConfig.push({connector: "ObjectPathConnector"});
|
|
49
51
|
}
|
|
50
52
|
aConnectorConfig.push({connector: sStorageConnectorName});
|
|
51
|
-
|
|
53
|
+
Configuration.setFlexibilityServices(aConnectorConfig);
|
|
52
54
|
Cache.clearEntries();
|
|
53
55
|
};
|
|
54
56
|
|
|
@@ -61,7 +63,7 @@ sap.ui.define([
|
|
|
61
63
|
|
|
62
64
|
// only reset the flexibility Services in case they were changes by the FakeConnector before
|
|
63
65
|
if (this._oFlexibilityServices) {
|
|
64
|
-
|
|
66
|
+
Configuration.setFlexibilityServices(this._oFlexibilityServices);
|
|
65
67
|
delete this._oFlexibilityServices;
|
|
66
68
|
}
|
|
67
69
|
};
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
|
|
9
|
-
"sap/ui/fl/write/api/Version",
|
|
10
9
|
"sap/ui/fl/Utils",
|
|
11
10
|
"sap/ui/fl/Layer",
|
|
12
11
|
"sap/ui/fl/Change",
|
|
@@ -21,7 +20,6 @@ sap.ui.define([
|
|
|
21
20
|
"sap/base/Log"
|
|
22
21
|
], function(
|
|
23
22
|
ChangeHandlerStorage,
|
|
24
|
-
Version,
|
|
25
23
|
Utils,
|
|
26
24
|
Layer,
|
|
27
25
|
Change,
|
|
@@ -86,7 +84,7 @@ sap.ui.define([
|
|
|
86
84
|
* @alias sap.ui.fl.FlexController
|
|
87
85
|
* @experimental Since 1.27.0
|
|
88
86
|
* @author SAP SE
|
|
89
|
-
* @version 1.
|
|
87
|
+
* @version 1.107.0
|
|
90
88
|
*/
|
|
91
89
|
var FlexController = function(sComponentName) {
|
|
92
90
|
this._oChangePersistence = undefined;
|
|
@@ -465,10 +463,11 @@ sap.ui.define([
|
|
|
465
463
|
* @param {boolean} [bDraft=false] - Indicates if changes should be written as a draft
|
|
466
464
|
* @param {string} [sLayer] - Layer for which the changes should be saved
|
|
467
465
|
* @param {boolean} [bRemoveOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
466
|
+
* @param {boolean} [bCondenseAnyLayer] - This will enable condensing regardless of the current layer
|
|
468
467
|
* @returns {Promise} resolving with an array of responses or rejecting with the first error
|
|
469
468
|
* @public
|
|
470
469
|
*/
|
|
471
|
-
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft, sLayer, bRemoveOtherLayerChanges) {
|
|
470
|
+
FlexController.prototype.saveAll = function(oAppComponent, bSkipUpdateCache, bDraft, sLayer, bRemoveOtherLayerChanges, bCondenseAnyLayer) {
|
|
472
471
|
var sParentVersion;
|
|
473
472
|
var aDraftFilenames;
|
|
474
473
|
if (bDraft) {
|
|
@@ -480,7 +479,7 @@ sap.ui.define([
|
|
|
480
479
|
aDraftFilenames = oVersionModel.getProperty("/draftFilenames");
|
|
481
480
|
}
|
|
482
481
|
return this._removeOtherLayerChanges(oAppComponent, sLayer, bRemoveOtherLayerChanges)
|
|
483
|
-
.then(this._oChangePersistence.saveDirtyChanges.bind(this._oChangePersistence, oAppComponent, bSkipUpdateCache, undefined, sParentVersion, aDraftFilenames))
|
|
482
|
+
.then(this._oChangePersistence.saveDirtyChanges.bind(this._oChangePersistence, oAppComponent, bSkipUpdateCache, undefined, sParentVersion, aDraftFilenames, bCondenseAnyLayer, sLayer))
|
|
484
483
|
.then(function(oResult) {
|
|
485
484
|
if (bDraft && oResult && oResult.response) {
|
|
486
485
|
var vChangeDefinition = oResult.response;
|
|
@@ -546,10 +545,10 @@ sap.ui.define([
|
|
|
546
545
|
*
|
|
547
546
|
* @param {object} oSelector selector of the control
|
|
548
547
|
* @param {sap.ui.core.Component} oComponent - component instance that is currently loading
|
|
549
|
-
* @returns {
|
|
548
|
+
* @returns {sap.ui.fl.Change[]} Array of all open dependent changes for the control
|
|
550
549
|
*/
|
|
551
|
-
FlexController.prototype.
|
|
552
|
-
return this._oChangePersistence.
|
|
550
|
+
FlexController.prototype.getOpenDependentChangesForControl = function(oSelector, oComponent) {
|
|
551
|
+
return this._oChangePersistence.getOpenDependentChangesForControl(oSelector, oComponent);
|
|
553
552
|
};
|
|
554
553
|
|
|
555
554
|
/**
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/strings/formatMessage",
|
|
9
|
+
"sap/base/util/ObjectPath",
|
|
9
10
|
"sap/base/util/isPlainObject",
|
|
10
11
|
"sap/base/util/uid",
|
|
11
12
|
"sap/base/util/UriParameters",
|
|
@@ -16,9 +17,11 @@ sap.ui.define([
|
|
|
16
17
|
"sap/ui/core/Component",
|
|
17
18
|
"sap/ui/fl/Scenario",
|
|
18
19
|
"sap/ui/thirdparty/hasher",
|
|
19
|
-
"sap/ui/
|
|
20
|
+
"sap/ui/core/mvc/View",
|
|
21
|
+
"sap/ui/core/Configuration"
|
|
20
22
|
], function(
|
|
21
23
|
formatMessage,
|
|
24
|
+
ObjectPath,
|
|
22
25
|
isPlainObject,
|
|
23
26
|
uid,
|
|
24
27
|
UriParameters,
|
|
@@ -29,7 +32,8 @@ sap.ui.define([
|
|
|
29
32
|
Component,
|
|
30
33
|
Scenario,
|
|
31
34
|
hasher,
|
|
32
|
-
|
|
35
|
+
View,
|
|
36
|
+
Configuration
|
|
33
37
|
) {
|
|
34
38
|
"use strict";
|
|
35
39
|
|
|
@@ -39,7 +43,7 @@ sap.ui.define([
|
|
|
39
43
|
* @namespace
|
|
40
44
|
* @alias sap.ui.fl.Utils
|
|
41
45
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
46
|
+
* @version 1.107.0
|
|
43
47
|
*
|
|
44
48
|
* @private
|
|
45
49
|
* @ui5-restricted sap.ui.fl, sap.ui.rta
|
|
@@ -346,7 +350,7 @@ sap.ui.define([
|
|
|
346
350
|
* @ui5-restricted sap.ui.fl
|
|
347
351
|
*/
|
|
348
352
|
getViewForControl: function(oControl) {
|
|
349
|
-
return Utils.getFirstAncestorOfControlWithControlType(oControl,
|
|
353
|
+
return Utils.getFirstAncestorOfControlWithControlType(oControl, View);
|
|
350
354
|
},
|
|
351
355
|
|
|
352
356
|
getFirstAncestorOfControlWithControlType: function(oControl, controlType) {
|
|
@@ -410,7 +414,7 @@ sap.ui.define([
|
|
|
410
414
|
},
|
|
411
415
|
|
|
412
416
|
getLrepUrl: function() {
|
|
413
|
-
var aFlexibilityServices =
|
|
417
|
+
var aFlexibilityServices = Configuration.getFlexibilityServices();
|
|
414
418
|
var oLrepConfiguration = aFlexibilityServices.find(function(oServiceConfig) {
|
|
415
419
|
return oServiceConfig.connector === "LrepConnector";
|
|
416
420
|
});
|
|
@@ -427,7 +431,7 @@ sap.ui.define([
|
|
|
427
431
|
* @ui5-restricted sap.ui.fl
|
|
428
432
|
*/
|
|
429
433
|
getCurrentLanguage: function() {
|
|
430
|
-
var sLanguage =
|
|
434
|
+
var sLanguage = Configuration.getLanguage();
|
|
431
435
|
return Utils.convertBrowserLanguageToISO639_1(sLanguage);
|
|
432
436
|
},
|
|
433
437
|
|
|
@@ -486,11 +490,9 @@ sap.ui.define([
|
|
|
486
490
|
asciiToString: function(ascii) {
|
|
487
491
|
var asciiArray = ascii.split(",");
|
|
488
492
|
var parsedString = "";
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
});
|
|
493
|
-
|
|
493
|
+
for (var i = 0; i < asciiArray.length; i++) {
|
|
494
|
+
parsedString += String.fromCharCode(asciiArray[i]);
|
|
495
|
+
}
|
|
494
496
|
return parsedString;
|
|
495
497
|
},
|
|
496
498
|
|
|
@@ -569,7 +571,8 @@ sap.ui.define([
|
|
|
569
571
|
* @returns {object|undefined} Returns UShell container object if available or undefined
|
|
570
572
|
*/
|
|
571
573
|
getUshellContainer: function() {
|
|
572
|
-
|
|
574
|
+
// TODO wait until FLP does offer anything
|
|
575
|
+
return ObjectPath.get("sap.ushell.Container");
|
|
573
576
|
},
|
|
574
577
|
|
|
575
578
|
createDefaultFileName: function(sNameAddition) {
|
|
@@ -790,7 +793,7 @@ sap.ui.define([
|
|
|
790
793
|
}
|
|
791
794
|
})
|
|
792
795
|
.catch(function(e) {
|
|
793
|
-
var sErrorMessage = "Error during execPromiseQueueSequentially processing
|
|
796
|
+
var sErrorMessage = "Error during execPromiseQueueSequentially processing occurred";
|
|
794
797
|
sErrorMessage += e ? ": " + e.message : "";
|
|
795
798
|
Log.error(sErrorMessage, e);
|
|
796
799
|
|
|
@@ -140,7 +140,7 @@ sap.ui.define([
|
|
|
140
140
|
|
|
141
141
|
function _checkPreconditions(oChange, mPropertyBag) {
|
|
142
142
|
var sErrorMessage;
|
|
143
|
-
if (_isXmlModifier(mPropertyBag) && oChange.
|
|
143
|
+
if (_isXmlModifier(mPropertyBag) && oChange.getJsOnly()) {
|
|
144
144
|
// change is not capable of xml modifier
|
|
145
145
|
// the change status has to be reset to initial
|
|
146
146
|
sErrorMessage = "Change cannot be applied in XML. Retrying in JS.";
|
|
@@ -184,8 +184,8 @@ sap.ui.define([
|
|
|
184
184
|
|
|
185
185
|
var sChangeId = oChange.getId();
|
|
186
186
|
var sLogMessage = "Change ''{0}'' could not be applied.";
|
|
187
|
-
var
|
|
188
|
-
var sCustomDataIdentifier = FlexCustomData.getCustomDataIdentifier(false,
|
|
187
|
+
var bErrorOccurred = oError instanceof Error;
|
|
188
|
+
var sCustomDataIdentifier = FlexCustomData.getCustomDataIdentifier(false, bErrorOccurred, bXmlModifier);
|
|
189
189
|
switch (sCustomDataIdentifier) {
|
|
190
190
|
case FlexCustomData.notApplicableChangesCustomDataKey:
|
|
191
191
|
FlUtils.formatAndLogMessage("info", [sLogMessage, oError.message], [sChangeId]);
|
|
@@ -212,10 +212,9 @@ sap.ui.define([
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
function _logApplyChangeError(oError, oChange) {
|
|
215
|
-
var
|
|
216
|
-
var
|
|
217
|
-
var
|
|
218
|
-
var fullQualifiedName = oDefinition.namespace + oDefinition.fileName + "." + oDefinition.fileType;
|
|
215
|
+
var sChangeType = oChange.getChangeType();
|
|
216
|
+
var sTargetControlId = oChange.getSelector().id;
|
|
217
|
+
var fullQualifiedName = oChange.getNamespace() + oChange.getId() + "." + oChange.getFileType();
|
|
219
218
|
|
|
220
219
|
var sWarningMessage = "A flexibility change could not be applied.";
|
|
221
220
|
sWarningMessage += "\nThe displayed UI might not be displayed as intedend.";
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
*
|
|
21
21
|
* @namespace sap.ui.fl.apply._internal.changes.Utils
|
|
22
22
|
* @since 1.70
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.107.0
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
|
|
26
26
|
*/
|
|
@@ -49,11 +49,10 @@ sap.ui.define([
|
|
|
49
49
|
*/
|
|
50
50
|
getControlIfTemplateAffected: function (oChange, oControl, mPropertyBag) {
|
|
51
51
|
var oModifier = mPropertyBag.modifier;
|
|
52
|
-
var oChangeDefinition = oChange.getDefinition();
|
|
53
52
|
var mControl = {
|
|
54
53
|
originalControl: oControl
|
|
55
54
|
};
|
|
56
|
-
var oOriginalDependentSelector =
|
|
55
|
+
var oOriginalDependentSelector = oChange.getOriginalSelector();
|
|
57
56
|
if (oChange.getContent().boundAggregation && oOriginalDependentSelector) {
|
|
58
57
|
mControl.control = oModifier.bySelector(oOriginalDependentSelector, mPropertyBag.appComponent, mPropertyBag.view);
|
|
59
58
|
mControl.controlType = oModifier.getControlType(mControl.control);
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.AddAnnotationsToOData
|
|
140
140
|
* @experimental
|
|
141
141
|
* @since 1.87
|
|
142
|
-
* @version 1.
|
|
142
|
+
* @version 1.107.0
|
|
143
143
|
* @private
|
|
144
144
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
145
145
|
*/
|