@openui5/sap.ui.fl 1.120.6 → 1.121.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 +23 -21
- package/THIRDPARTY.txt +6 -43
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +38 -133
- package/src/sap/ui/fl/ChangePersistenceFactory.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 +28 -15
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +5 -5
- package/src/sap/ui/fl/Utils.js +15 -18
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +19 -20
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +6 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +9 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.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 +2 -2
- 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 +17 -11
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +7 -19
- package/src/sap/ui/fl/{write → apply}/_internal/extensionPoint/Registry.js +2 -2
- 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 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +13 -7
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +3 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +8 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +47 -0
- package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +124 -34
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +118 -45
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +25 -9
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +17 -3
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +21 -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 +108 -104
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +93 -34
- package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +195 -0
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +7 -6
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +6 -6
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +89 -11
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +20 -28
- 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 +1 -1
- 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/{write → apply}/api/ExtensionPointRegistryAPI.js +3 -3
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +49 -8
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +7 -6
- 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 +2 -2
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +4 -4
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.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/util/IFrame.designtime.js +3 -91
- package/src/sap/ui/fl/designtime/util/editIFrame.js +94 -0
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/FlexInfoSession.js +2 -23
- package/src/sap/ui/fl/initial/_internal/Storage.js +106 -39
- package/src/sap/ui/fl/{write → initial}/_internal/StorageFeaturesMerger.js +10 -7
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +14 -8
- 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/connectors/BackendConnector.js +26 -4
- package/src/sap/ui/fl/initial/_internal/connectors/BtpServiceConnector.js +44 -0
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +8 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +48 -2
- package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +25 -4
- package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +12 -1
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +14 -4
- 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/initial/api/Version.js +0 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +22 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +48 -43
- package/src/sap/ui/fl/messagebundle.properties +3 -0
- package/src/sap/ui/fl/messagebundle_bg.properties +1 -1
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +39 -39
- package/src/sap/ui/fl/messagebundle_hu.properties +1 -1
- package/src/sap/ui/fl/messagebundle_it.properties +1 -1
- package/src/sap/ui/fl/messagebundle_lv.properties +1 -1
- package/src/sap/ui/fl/messagebundle_mk.properties +2 -2
- package/src/sap/ui/fl/messagebundle_no.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +12 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +40 -20
- package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +93 -0
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +4 -4
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +5 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +34 -19
- package/src/sap/ui/fl/util/IFrame.js +67 -20
- 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 +88 -49
- package/src/sap/ui/fl/variants/VariantModel.js +19 -6
- package/src/sap/ui/fl/write/_internal/Storage.js +5 -34
- package/src/sap/ui/fl/write/_internal/Versions.js +62 -63
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -16
- package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +55 -0
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +3 -9
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -26
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +3 -20
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +5 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -15
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +11 -4
- 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 +7 -7
- 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 +22 -3
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +36 -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/ChangesWriteAPI.js +1 -3
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +2 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -2
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +36 -7
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +88 -105
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +25 -2
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -0
- package/src/sap/ui/fl/write/api/VersionsAPI.js +0 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +241 -28
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +2 -10
- package/ui5.yaml +37 -76
- package/LICENSES/BSD-2-Clause.txt +0 -22
- package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +0 -26
- /package/src/sap/ui/fl/descriptorRelated/{internal/Utils.js → Utils.js} +0 -0
|
@@ -5,27 +5,29 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/base/util/includes",
|
|
9
8
|
"sap/base/Log",
|
|
10
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
11
10
|
"sap/ui/fl/apply/_internal/controlVariants/Utils",
|
|
12
11
|
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
13
12
|
"sap/ui/fl/initial/_internal/FlexConfiguration",
|
|
13
|
+
"sap/ui/fl/initial/_internal/FlexInfoSession",
|
|
14
14
|
"sap/ui/fl/ChangePersistenceFactory",
|
|
15
15
|
"sap/ui/fl/FlexControllerFactory",
|
|
16
16
|
"sap/ui/fl/Layer",
|
|
17
|
-
"sap/ui/fl/Utils"
|
|
17
|
+
"sap/ui/fl/Utils",
|
|
18
|
+
"sap/ui/VersionInfo"
|
|
18
19
|
], function(
|
|
19
|
-
includes,
|
|
20
20
|
Log,
|
|
21
21
|
JsControlTreeModifier,
|
|
22
22
|
VariantUtils,
|
|
23
23
|
ManifestUtils,
|
|
24
24
|
FlexConfiguration,
|
|
25
|
+
FlexInfoSession,
|
|
25
26
|
ChangePersistenceFactory,
|
|
26
27
|
FlexControllerFactory,
|
|
27
28
|
Layer,
|
|
28
|
-
Utils
|
|
29
|
+
Utils,
|
|
30
|
+
VersionInfo
|
|
29
31
|
) {
|
|
30
32
|
"use strict";
|
|
31
33
|
|
|
@@ -56,7 +58,7 @@ sap.ui.define([
|
|
|
56
58
|
return Promise.reject(sMessage);
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
function
|
|
61
|
+
function filterByValidFileType(oChange) {
|
|
60
62
|
return oChange.getFileType() === "change";
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -66,12 +68,12 @@ sap.ui.define([
|
|
|
66
68
|
});
|
|
67
69
|
var oSelector = oChange.getSelector();
|
|
68
70
|
var sControlId = JsControlTreeModifier.getControlIdBySelector(oSelector, oAppComponent);
|
|
69
|
-
return includes(
|
|
71
|
+
return aIdsOfPassedControls.includes(sControlId);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
function filterByChangeType(aChangeTypes, oChange) {
|
|
73
75
|
return (Array.isArray(aChangeTypes) && aChangeTypes.length > 0)
|
|
74
|
-
? includes(
|
|
76
|
+
? aChangeTypes.includes(oChange.getChangeType())
|
|
75
77
|
: true;
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -88,9 +90,10 @@ sap.ui.define([
|
|
|
88
90
|
return oChangePersistence.getChangesForComponent({currentLayer: Layer.USER, includeCtrlVariants: true})
|
|
89
91
|
.then(function(aChanges) {
|
|
90
92
|
return aChanges
|
|
93
|
+
.filter(filterByValidFileType)
|
|
91
94
|
.filter(filterBySelectors.bind(this, oAppComponent, mPropertyBag.selectors))
|
|
92
95
|
.filter(filterByChangeType.bind(this, mPropertyBag.changeTypes))
|
|
93
|
-
.
|
|
96
|
+
.length > 0;
|
|
94
97
|
}.bind(this));
|
|
95
98
|
},
|
|
96
99
|
|
|
@@ -180,6 +183,44 @@ sap.ui.define([
|
|
|
180
183
|
*/
|
|
181
184
|
getConfiguredFlexServices() {
|
|
182
185
|
return FlexConfiguration.getFlexibilityServices();
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Returns the version that is used for Flexibility Services
|
|
190
|
+
*
|
|
191
|
+
* @param {object} mPropertyBag - Object with parameters as properties
|
|
192
|
+
* @param {string} mPropertyBag.reference - Reference of the application
|
|
193
|
+
* @returns {string} Version of Flexibility Services
|
|
194
|
+
*
|
|
195
|
+
* @private
|
|
196
|
+
* @ui5-restricted sap.ushell
|
|
197
|
+
*/
|
|
198
|
+
getFlexVersion(mPropertyBag) {
|
|
199
|
+
return FlexInfoSession.getByReference(mPropertyBag.reference)?.version;
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Returns the information needed for the rta feedback dialog
|
|
204
|
+
*
|
|
205
|
+
* @param {object} mPropertyBag - Object with parameters as properties
|
|
206
|
+
* @param {sap.ui.base.ManagedObject} mPropertyBag.rootControl - root control of the app
|
|
207
|
+
* @returns {object[]} Flexibility services configuration
|
|
208
|
+
*
|
|
209
|
+
* @private
|
|
210
|
+
* @ui5-restricted sap.ui.rta
|
|
211
|
+
*/
|
|
212
|
+
async getFeedbackInformation(mPropertyBag) {
|
|
213
|
+
const sConnector = this.getConfiguredFlexServices()[0].connector;
|
|
214
|
+
const oManifest = Utils.getAppDescriptor(mPropertyBag.rootControl);
|
|
215
|
+
const oVersion = await VersionInfo.load();
|
|
216
|
+
const sAppId = ManifestUtils.getAppIdFromManifest(oManifest);
|
|
217
|
+
const sAppVersion = ManifestUtils.getAppVersionFromManifest(oManifest);
|
|
218
|
+
return {
|
|
219
|
+
appId: sAppId,
|
|
220
|
+
appVersion: sAppVersion,
|
|
221
|
+
connector: sConnector,
|
|
222
|
+
version: oVersion.version
|
|
223
|
+
};
|
|
183
224
|
}
|
|
184
225
|
};
|
|
185
226
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
|
|
41
41
|
function getCompEntities(mPropertyBag) {
|
|
42
42
|
var oControl = mPropertyBag.control;
|
|
43
|
-
var oVMControl =
|
|
43
|
+
var oVMControl = oControl.getVariantManagement?.() || oControl;
|
|
44
44
|
var sSVMControlId = oVMControl.getId();
|
|
45
45
|
var sReference = ManifestUtils.getFlexReferenceForControl(oControl);
|
|
46
46
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/
|
|
9
|
-
"sap/ui/fl/
|
|
8
|
+
"sap/ui/fl/apply/api/ExtensionPointRegistryAPI",
|
|
9
|
+
"sap/ui/fl/changeHandler/BaseAddXml"
|
|
10
10
|
], function(
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
ExtensionPointRegistryAPI,
|
|
12
|
+
BaseAddXml
|
|
13
13
|
) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.fl.changeHandler.AddXMLAtExtensionPoint
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.121.0
|
|
22
22
|
* @since 1.75
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
@@ -71,7 +71,8 @@ sap.ui.define([
|
|
|
71
71
|
}'). Multiple Extension-points with the same name in one view are not supported!`);
|
|
72
72
|
}
|
|
73
73
|
(mExtensionPointInfo.defaultContent || []).forEach(function(vControl) {
|
|
74
|
-
// Remove default implementation of extension points in async apply (xml-preprocessing)
|
|
74
|
+
// Remove default implementation of extension points in async apply (xml-preprocessing)
|
|
75
|
+
// and create (via action handler) scenarios
|
|
75
76
|
if (vControl) {
|
|
76
77
|
oModifier.destroy(vControl);
|
|
77
78
|
}
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* Change handler for stashing of a control.
|
|
20
20
|
* @alias sap.ui.fl.changeHandler.StashControl
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.121.0
|
|
23
23
|
* @since 1.27.0
|
|
24
24
|
*/
|
|
25
25
|
var StashControl = {};
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
const mRevertData = oChange.getRevertData();
|
|
61
61
|
const oModifier = mPropertyBag.modifier;
|
|
62
62
|
if (LayerUtils.isDeveloperLayer(oChange.getLayer())) {
|
|
63
|
-
const oUnstashedControl = oModifier.setStashed(oControl, mRevertData.originalValue, mPropertyBag.appComponent);
|
|
63
|
+
const oUnstashedControl = await oModifier.setStashed(oControl, mRevertData.originalValue, mPropertyBag.appComponent);
|
|
64
64
|
if (oUnstashedControl) {
|
|
65
65
|
const iUnstashedIndex = await oModifier.findIndexInParentAggregation(oUnstashedControl);
|
|
66
66
|
if (iUnstashedIndex !== mRevertData.originalIndex) {
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* Change handler for unstashing of a control.
|
|
16
16
|
* @alias sap.ui.fl.changeHandler.UnstashControl
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.121.0
|
|
19
19
|
* @since 1.27.0
|
|
20
20
|
*/
|
|
21
21
|
var UnstashControl = {};
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
oChange.setRevertData({
|
|
39
39
|
originalValue: bPreviouslyStashed
|
|
40
40
|
});
|
|
41
|
-
const oUnstashedControl = oModifier.setStashed(oControl, false, mPropertyBag.appComponent) || oControl;
|
|
41
|
+
const oUnstashedControl = await oModifier.setStashed(oControl, false, mPropertyBag.appComponent) || oControl;
|
|
42
42
|
// old way including move, new way will have separate move change
|
|
43
43
|
// only applicable for XML modifier
|
|
44
44
|
if (mContent.parentAggregationName) {
|
|
@@ -66,9 +66,9 @@ sap.ui.define([
|
|
|
66
66
|
* @param {sap.ui.core.util.reflection.BaseTreeModifier} mPropertyBag.modifier - Modifier for the controls
|
|
67
67
|
* @public
|
|
68
68
|
*/
|
|
69
|
-
UnstashControl.revertChange = function(oChange, oControl, mPropertyBag) {
|
|
69
|
+
UnstashControl.revertChange = async function(oChange, oControl, mPropertyBag) {
|
|
70
70
|
var mRevertData = oChange.getRevertData();
|
|
71
|
-
mPropertyBag.modifier.setStashed(oControl, mRevertData.originalValue);
|
|
71
|
+
await mPropertyBag.modifier.setStashed(oControl, mRevertData.originalValue);
|
|
72
72
|
oChange.resetRevertData();
|
|
73
73
|
};
|
|
74
74
|
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @namespace
|
|
20
20
|
* @name sap.ui.fl.descriptorRelated
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.121.0
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.rta, smart business
|
|
25
25
|
*/
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @namespace
|
|
30
30
|
* @name sap.ui.fl.descriptorRelated.api
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.121.0
|
|
33
33
|
* @private
|
|
34
34
|
* @ui5-restricted sap.ui.rta, smart business
|
|
35
35
|
*/
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @constructor
|
|
44
44
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChange
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.121.0
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted sap.ui.rta, smart business
|
|
49
49
|
*/
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
* @constructor
|
|
125
125
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorChangeFactory
|
|
126
126
|
* @author SAP SE
|
|
127
|
-
* @version 1.
|
|
127
|
+
* @version 1.121.0
|
|
128
128
|
* @private
|
|
129
129
|
* @ui5-restricted sap.ui.rta, smart business
|
|
130
130
|
*/
|
|
@@ -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.121.0
|
|
42
42
|
* @private
|
|
43
43
|
* @deprecated Since version 1.76
|
|
44
44
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @alias sap.ui.fl.descriptorRelated.api.DescriptorVariantFactory
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.121.0
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -5,100 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/
|
|
9
|
-
"sap/ui/rta/plugin/iframe/AddIFrameDialog",
|
|
10
|
-
"sap/m/library"
|
|
8
|
+
"sap/ui/fl/designtime/util/editIFrame"
|
|
11
9
|
], function(
|
|
12
|
-
|
|
13
|
-
AddIFrameDialog
|
|
10
|
+
editIFrame
|
|
14
11
|
) {
|
|
15
12
|
"use strict";
|
|
16
13
|
|
|
17
|
-
function editIFrame(oIFrame/* , mPropertyBag */) {
|
|
18
|
-
var oAddIFrameDialog = new AddIFrameDialog();
|
|
19
|
-
var oInitialSettings = oIFrame.get_settings();
|
|
20
|
-
var mRenameInfo = oIFrame.getRenameInfo();
|
|
21
|
-
var mDialogSettings;
|
|
22
|
-
var oContainer;
|
|
23
|
-
|
|
24
|
-
// The title of the iFrame container could have changed
|
|
25
|
-
// so we need to retrieve it before opening the dialog
|
|
26
|
-
if (mRenameInfo) {
|
|
27
|
-
oContainer = Element.getElementById(mRenameInfo.sourceControlId);
|
|
28
|
-
oInitialSettings.title = oContainer.getProperty(mRenameInfo.propertyName);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return AddIFrameDialog.buildUrlBuilderParametersFor(oIFrame)
|
|
32
|
-
.then(function(mURLParameters) {
|
|
33
|
-
mDialogSettings = {
|
|
34
|
-
parameters: mURLParameters,
|
|
35
|
-
frameUrl: oInitialSettings.url,
|
|
36
|
-
frameWidth: oInitialSettings.width,
|
|
37
|
-
frameHeight: oInitialSettings.height,
|
|
38
|
-
title: oInitialSettings.title,
|
|
39
|
-
asContainer: !!oInitialSettings.title,
|
|
40
|
-
useLegacyNavigation: oInitialSettings.useLegacyNavigation,
|
|
41
|
-
updateMode: true
|
|
42
|
-
};
|
|
43
|
-
return oAddIFrameDialog.open(mDialogSettings);
|
|
44
|
-
})
|
|
45
|
-
.then(function(mSettings) {
|
|
46
|
-
if (!mSettings) {
|
|
47
|
-
return []; // No change
|
|
48
|
-
}
|
|
49
|
-
var aChanges = [];
|
|
50
|
-
var bContentChanged = false;
|
|
51
|
-
var oNewContent = {
|
|
52
|
-
url: oInitialSettings.url,
|
|
53
|
-
height: oInitialSettings.height,
|
|
54
|
-
width: oInitialSettings.width,
|
|
55
|
-
useLegacyNavigation: oInitialSettings.useLegacyNavigation
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
if (mSettings.frameHeight + mSettings.frameHeightUnit !== oInitialSettings.height) {
|
|
59
|
-
bContentChanged = true;
|
|
60
|
-
oNewContent.height = mSettings.frameHeight + mSettings.frameHeightUnit;
|
|
61
|
-
}
|
|
62
|
-
if (mSettings.frameWidth + mSettings.frameWidthUnit !== oInitialSettings.width) {
|
|
63
|
-
bContentChanged = true;
|
|
64
|
-
oNewContent.width = mSettings.frameWidth + mSettings.frameWidthUnit;
|
|
65
|
-
}
|
|
66
|
-
if (mSettings.frameUrl !== oInitialSettings.url) {
|
|
67
|
-
bContentChanged = true;
|
|
68
|
-
oNewContent.url = mSettings.frameUrl;
|
|
69
|
-
}
|
|
70
|
-
if (mSettings.useLegacyNavigation !== !!oInitialSettings.useLegacyNavigation) {
|
|
71
|
-
bContentChanged = true;
|
|
72
|
-
oNewContent.useLegacyNavigation = mSettings.useLegacyNavigation;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (bContentChanged) {
|
|
76
|
-
aChanges.push({
|
|
77
|
-
selectorControl: oIFrame,
|
|
78
|
-
changeSpecificData: {
|
|
79
|
-
changeType: "updateIFrame",
|
|
80
|
-
content: oNewContent
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// If the title changes a rename change must be created
|
|
86
|
-
if (mSettings.title !== oInitialSettings.title) {
|
|
87
|
-
var mRenameChange = {
|
|
88
|
-
selectorControl: Element.getElementById(mRenameInfo.selectorControlId),
|
|
89
|
-
changeSpecificData: {
|
|
90
|
-
changeType: "rename",
|
|
91
|
-
content: {
|
|
92
|
-
value: mSettings.title
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
aChanges.push(mRenameChange);
|
|
97
|
-
}
|
|
98
|
-
return aChanges;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
14
|
return {
|
|
103
15
|
actions: {
|
|
104
16
|
settings() {
|
|
@@ -117,4 +29,4 @@ sap.ui.define([
|
|
|
117
29
|
}
|
|
118
30
|
}
|
|
119
31
|
};
|
|
120
|
-
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2024 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/Element",
|
|
9
|
+
"sap/ui/rta/plugin/iframe/AddIFrameDialog"
|
|
10
|
+
], function(
|
|
11
|
+
Element,
|
|
12
|
+
AddIFrameDialog
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
return async function editIFrame(oIFrame) {
|
|
17
|
+
const oAddIFrameDialog = new AddIFrameDialog();
|
|
18
|
+
const oInitialSettings = oIFrame.get_settings();
|
|
19
|
+
const mRenameInfo = oIFrame.getRenameInfo();
|
|
20
|
+
|
|
21
|
+
// The title of the iFrame container could have changed
|
|
22
|
+
// so we need to retrieve it before opening the dialog
|
|
23
|
+
if (mRenameInfo) {
|
|
24
|
+
const oContainer = Element.getElementById(mRenameInfo.sourceControlId);
|
|
25
|
+
oInitialSettings.title = oContainer.getProperty(mRenameInfo.propertyName);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const mURLParameters = await AddIFrameDialog.buildUrlBuilderParametersFor(oIFrame);
|
|
29
|
+
const mDialogSettings = {
|
|
30
|
+
parameters: mURLParameters,
|
|
31
|
+
frameUrl: oInitialSettings.url,
|
|
32
|
+
frameWidth: oInitialSettings.width,
|
|
33
|
+
frameHeight: oInitialSettings.height,
|
|
34
|
+
title: oInitialSettings.title,
|
|
35
|
+
asContainer: !!oInitialSettings.title,
|
|
36
|
+
useLegacyNavigation: oInitialSettings.useLegacyNavigation,
|
|
37
|
+
updateMode: true
|
|
38
|
+
};
|
|
39
|
+
const mSettings = await oAddIFrameDialog.open(mDialogSettings, oIFrame);
|
|
40
|
+
if (!mSettings) {
|
|
41
|
+
return []; // No change
|
|
42
|
+
}
|
|
43
|
+
const aChanges = [];
|
|
44
|
+
let bContentChanged = false;
|
|
45
|
+
const oNewContent = {
|
|
46
|
+
url: oInitialSettings.url,
|
|
47
|
+
height: oInitialSettings.height,
|
|
48
|
+
width: oInitialSettings.width,
|
|
49
|
+
useLegacyNavigation: oInitialSettings.useLegacyNavigation
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
if (mSettings.frameHeight + mSettings.frameHeightUnit !== oInitialSettings.height) {
|
|
53
|
+
bContentChanged = true;
|
|
54
|
+
oNewContent.height = mSettings.frameHeight + mSettings.frameHeightUnit;
|
|
55
|
+
}
|
|
56
|
+
if (mSettings.frameWidth + mSettings.frameWidthUnit !== oInitialSettings.width) {
|
|
57
|
+
bContentChanged = true;
|
|
58
|
+
oNewContent.width = mSettings.frameWidth + mSettings.frameWidthUnit;
|
|
59
|
+
}
|
|
60
|
+
if (mSettings.frameUrl !== oInitialSettings.url) {
|
|
61
|
+
bContentChanged = true;
|
|
62
|
+
oNewContent.url = mSettings.frameUrl;
|
|
63
|
+
}
|
|
64
|
+
if (mSettings.useLegacyNavigation !== !!oInitialSettings.useLegacyNavigation) {
|
|
65
|
+
bContentChanged = true;
|
|
66
|
+
oNewContent.useLegacyNavigation = mSettings.useLegacyNavigation;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (bContentChanged) {
|
|
70
|
+
aChanges.push({
|
|
71
|
+
selectorControl: oIFrame,
|
|
72
|
+
changeSpecificData: {
|
|
73
|
+
changeType: "updateIFrame",
|
|
74
|
+
content: oNewContent
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// If the title changes a rename change must be created
|
|
80
|
+
if (mSettings.title !== oInitialSettings.title) {
|
|
81
|
+
const mRenameChange = {
|
|
82
|
+
selectorControl: Element.getElementById(mRenameInfo.selectorControlId),
|
|
83
|
+
changeSpecificData: {
|
|
84
|
+
changeType: "rename",
|
|
85
|
+
content: {
|
|
86
|
+
value: mSettings.title
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
aChanges.push(mRenameChange);
|
|
91
|
+
}
|
|
92
|
+
return aChanges;
|
|
93
|
+
};
|
|
94
|
+
});
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/apply/_internal/flexState/ManifestUtils"
|
|
9
|
-
], function(
|
|
10
|
-
ManifestUtils
|
|
11
|
-
) {
|
|
7
|
+
sap.ui.define([], () => {
|
|
12
8
|
"use strict";
|
|
13
9
|
|
|
14
10
|
var FlexInfoSession = {};
|
|
@@ -19,20 +15,8 @@ sap.ui.define([
|
|
|
19
15
|
return PARAMETER_PREFIX + (sReference || "true");
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
FlexInfoSession.get = function(oControl) {
|
|
23
|
-
var sReference = ManifestUtils.getFlexReferenceForControl(oControl);
|
|
24
|
-
return FlexInfoSession.getByReference(sReference);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
18
|
FlexInfoSession.getByReference = function(sReference) {
|
|
28
|
-
return JSON.parse(window.sessionStorage.getItem(getSessionStorageKey(sReference)));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
FlexInfoSession.set = function(oInfo, oControl) {
|
|
32
|
-
if (oInfo) {
|
|
33
|
-
var sReference = ManifestUtils.getFlexReferenceForControl(oControl);
|
|
34
|
-
FlexInfoSession.setByReference(oInfo, sReference);
|
|
35
|
-
}
|
|
19
|
+
return JSON.parse(window.sessionStorage.getItem(getSessionStorageKey(sReference))) || {};
|
|
36
20
|
};
|
|
37
21
|
|
|
38
22
|
FlexInfoSession.setByReference = function(oInfo, sReference) {
|
|
@@ -41,11 +25,6 @@ sap.ui.define([
|
|
|
41
25
|
}
|
|
42
26
|
};
|
|
43
27
|
|
|
44
|
-
FlexInfoSession.remove = function(oControl) {
|
|
45
|
-
var sReference = ManifestUtils.getFlexReferenceForControl(oControl);
|
|
46
|
-
window.sessionStorage.removeItem(getSessionStorageKey(sReference));
|
|
47
|
-
};
|
|
48
|
-
|
|
49
28
|
FlexInfoSession.removeByReference = function(sReference) {
|
|
50
29
|
window.sessionStorage.removeItem(getSessionStorageKey(sReference));
|
|
51
30
|
};
|