@openui5/sap.ui.fl 1.120.21 → 1.120.22
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/ChangePersistence.js +1 -1
- 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 +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/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +3 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/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 +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/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 +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/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 +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.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 +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/_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/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 +2 -2
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +5 -0
- 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/descriptorRelated/internal/Utils.js +19 -0
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +2 -90
- package/src/sap/ui/fl/designtime/util/editIFrame.js +104 -0
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.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/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/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 +43 -43
- 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/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/IFrame.js +40 -6
- package/src/sap/ui/fl/util/IFrameRenderer.js +14 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantModel.js +1 -1
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +65 -16
- 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 -1
- package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.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/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 +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
|
@@ -18,13 +18,13 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @alias sap.ui.fl.changeHandler.UpdateIFrame
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.120.
|
|
21
|
+
* @version 1.120.22
|
|
22
22
|
* @since 1.72
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
25
25
|
var UpdateIFrame = {};
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const aUpdatableProperties = ["width", "height", "url", "useLegacyNavigation", "_settings", "advancedSettings"];
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Extract an IFrame control settings.
|
|
@@ -35,8 +35,13 @@ sap.ui.define([
|
|
|
35
35
|
mIFrameSettings[sIFrameProperty] = vValue;
|
|
36
36
|
mIFrameSettings._settings[sIFrameProperty] = vValue;
|
|
37
37
|
});
|
|
38
|
+
|
|
38
39
|
mIFrameSettings.useLegacyNavigation = !!oChangeContent.useLegacyNavigation;
|
|
39
40
|
mIFrameSettings._settings.useLegacyNavigation = !!oChangeContent.useLegacyNavigation;
|
|
41
|
+
if (oChangeContent?.advancedSettings) {
|
|
42
|
+
mIFrameSettings.advancedSettings = oChangeContent.advancedSettings;
|
|
43
|
+
mIFrameSettings._settings.advancedSettings = oChangeContent?.advancedSettings;
|
|
44
|
+
}
|
|
40
45
|
|
|
41
46
|
if (mRenameInfo) {
|
|
42
47
|
mIFrameSettings.renameInfo = mRenameInfo;
|
|
@@ -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.120.
|
|
22
|
+
* @version 1.120.22
|
|
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.120.
|
|
32
|
+
* @version 1.120.22
|
|
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.120.
|
|
46
|
+
* @version 1.120.22
|
|
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.120.
|
|
127
|
+
* @version 1.120.22
|
|
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.120.
|
|
41
|
+
* @version 1.120.22
|
|
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.120.
|
|
19
|
+
* @version 1.120.22
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -20,6 +20,25 @@ sap.ui.define([
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
Utils.prototype.checkChildPageChange = function(mParameters) {
|
|
24
|
+
this.checkParameterAndType(mParameters, "childPage", "object");
|
|
25
|
+
if (mParameters.childPage instanceof Array) {
|
|
26
|
+
for (var i = 0; i < mParameters.childPage.length; i++) {
|
|
27
|
+
var oChange = mParameters.childPage[i];
|
|
28
|
+
this.checkChildPageChangeContent(oChange);
|
|
29
|
+
}
|
|
30
|
+
} else if (mParameters.childPage instanceof Object) {
|
|
31
|
+
this.checkChildPageChangeContent(mParameters.childPage);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
Utils.prototype.checkChildPageChangeContent = function(oChange) {
|
|
36
|
+
this.checkParameterAndType(oChange, "id", "string");
|
|
37
|
+
this.checkParameterAndType(oChange, "definition", "object");
|
|
38
|
+
this.checkParameterAndType(oChange.definition, "navigationProperty", "string");
|
|
39
|
+
this.checkParameterAndType(oChange.definition, "entitySet", "string");
|
|
40
|
+
};
|
|
41
|
+
|
|
23
42
|
Utils.prototype.checkEntityPropertyChange = function(mParameters) {
|
|
24
43
|
this.checkParameterAndType(mParameters, "entityPropertyChange", "object");
|
|
25
44
|
if (mParameters.entityPropertyChange instanceof Array) {
|
|
@@ -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() {
|
|
@@ -0,0 +1,104 @@
|
|
|
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/base/util/restricted/_isEqual",
|
|
9
|
+
"sap/base/util/deepClone",
|
|
10
|
+
"sap/ui/core/Element",
|
|
11
|
+
"sap/ui/rta/plugin/iframe/AddIFrameDialog"
|
|
12
|
+
], function(
|
|
13
|
+
_isEqual,
|
|
14
|
+
deepClone,
|
|
15
|
+
Element,
|
|
16
|
+
AddIFrameDialog
|
|
17
|
+
) {
|
|
18
|
+
"use strict";
|
|
19
|
+
|
|
20
|
+
return async function editIFrame(oIFrame) {
|
|
21
|
+
const oAddIFrameDialog = new AddIFrameDialog();
|
|
22
|
+
const oInitialSettings = oIFrame.get_settings();
|
|
23
|
+
const mRenameInfo = oIFrame.getRenameInfo();
|
|
24
|
+
|
|
25
|
+
// The title of the iFrame container could have changed
|
|
26
|
+
// so we need to retrieve it before opening the dialog
|
|
27
|
+
if (mRenameInfo) {
|
|
28
|
+
const oContainer = Element.getElementById(mRenameInfo.sourceControlId);
|
|
29
|
+
oInitialSettings.title = oContainer.getProperty(mRenameInfo.propertyName);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const mURLParameters = await AddIFrameDialog.buildUrlBuilderParametersFor(oIFrame);
|
|
33
|
+
const 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
|
+
advancedSettings: deepClone(oInitialSettings.advancedSettings),
|
|
42
|
+
updateMode: true
|
|
43
|
+
};
|
|
44
|
+
const mSettings = await oAddIFrameDialog.open(mDialogSettings, oIFrame);
|
|
45
|
+
if (!mSettings) {
|
|
46
|
+
return []; // No change
|
|
47
|
+
}
|
|
48
|
+
const aChanges = [];
|
|
49
|
+
let bContentChanged = false;
|
|
50
|
+
const oNewContent = {
|
|
51
|
+
url: oInitialSettings.url,
|
|
52
|
+
height: oInitialSettings.height,
|
|
53
|
+
width: oInitialSettings.width,
|
|
54
|
+
useLegacyNavigation: oInitialSettings.useLegacyNavigation,
|
|
55
|
+
advancedSettings: oInitialSettings.advancedSettings
|
|
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
|
+
if (!_isEqual(mSettings.advancedSettings, oInitialSettings.advancedSettings)) {
|
|
75
|
+
bContentChanged = true;
|
|
76
|
+
oNewContent.advancedSettings = mSettings.advancedSettings;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (bContentChanged) {
|
|
80
|
+
aChanges.push({
|
|
81
|
+
selectorControl: oIFrame,
|
|
82
|
+
changeSpecificData: {
|
|
83
|
+
changeType: "updateIFrame",
|
|
84
|
+
content: oNewContent
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// If the title changes a rename change must be created
|
|
90
|
+
if (mSettings.title !== oInitialSettings.title) {
|
|
91
|
+
const mRenameChange = {
|
|
92
|
+
selectorControl: Element.getElementById(mRenameInfo.selectorControlId),
|
|
93
|
+
changeSpecificData: {
|
|
94
|
+
changeType: "rename",
|
|
95
|
+
content: {
|
|
96
|
+
value: mSettings.title
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
aChanges.push(mRenameChange);
|
|
101
|
+
}
|
|
102
|
+
return aChanges;
|
|
103
|
+
};
|
|
104
|
+
});
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @namespace sap.ui.fl.initial._internal.StorageUtils
|
|
27
27
|
* @since 1.74
|
|
28
|
-
* @version 1.120.
|
|
28
|
+
* @version 1.120.22
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage, sap.ui.fl.write._internal.Storage,
|
|
31
31
|
* sap.ui.fl.initial._internal.connectors.ObjectStorageConnector, sap.ui.fl.initial._internal.connectors.ObjectPathConnector
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
*
|
|
61
61
|
* @namespace sap.ui.fl.initial._internal.connectors.Utils
|
|
62
62
|
* @since 1.70
|
|
63
|
-
* @version 1.120.
|
|
63
|
+
* @version 1.120.22
|
|
64
64
|
* @private
|
|
65
65
|
* @ui5-restricted sap.ui.fl.initial._internal.connectors, sap.ui.fl.write._internal.connectors, sap.ui.fl.write._internal.transport
|
|
66
66
|
*/
|
|
@@ -51,7 +51,7 @@ function(
|
|
|
51
51
|
* @name sap.ui.fl.initial._internal.storageResultDisassemble
|
|
52
52
|
* @function
|
|
53
53
|
* @since 1.70
|
|
54
|
-
* @version 1.120.
|
|
54
|
+
* @version 1.120.22
|
|
55
55
|
* @private
|
|
56
56
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage
|
|
57
57
|
* Disassembles a response with a variant section into one or more plain responses.
|