@openui5/sap.ui.fl 1.119.0 → 1.120.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/THIRDPARTY.txt +6 -6
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +6 -8
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnector.js +5 -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 +4 -2
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +2 -4
- package/src/sap/ui/fl/Utils.js +27 -16
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/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/controlVariants/Utils.js +3 -3
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +4 -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 +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +2 -4
- 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 +7 -7
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +3 -3
- 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 +3 -75
- 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/ComponentLifecycleHooks.js +3 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +5 -5
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +4 -4
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +4 -6
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -3
- package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +4 -5
- 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 +139 -156
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/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/messagebundle_mk.properties +2 -0
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +6 -5
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +3 -1
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +77 -0
- package/src/sap/ui/fl/initial/_internal/Storage.js +8 -8
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +6 -8
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +5 -5
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +8 -7
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +10 -8
- 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 +50 -48
- package/src/sap/ui/fl/library.support.js +1 -3
- package/src/sap/ui/fl/messagebundle.properties +2 -2
- package/src/sap/ui/fl/messagebundle_ar.properties +2 -2
- package/src/sap/ui/fl/messagebundle_bg.properties +2 -2
- package/src/sap/ui/fl/messagebundle_ca.properties +2 -2
- package/src/sap/ui/fl/messagebundle_cs.properties +2 -2
- package/src/sap/ui/fl/messagebundle_cy.properties +2 -2
- package/src/sap/ui/fl/messagebundle_da.properties +2 -2
- package/src/sap/ui/fl/messagebundle_de.properties +2 -2
- package/src/sap/ui/fl/messagebundle_el.properties +2 -2
- package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -2
- package/src/sap/ui/fl/messagebundle_es.properties +2 -2
- package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -2
- package/src/sap/ui/fl/messagebundle_et.properties +2 -2
- package/src/sap/ui/fl/messagebundle_fi.properties +2 -2
- package/src/sap/ui/fl/messagebundle_fr.properties +2 -2
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -2
- package/src/sap/ui/fl/messagebundle_hi.properties +2 -2
- package/src/sap/ui/fl/messagebundle_hr.properties +2 -2
- package/src/sap/ui/fl/messagebundle_hu.properties +2 -2
- package/src/sap/ui/fl/messagebundle_id.properties +2 -2
- package/src/sap/ui/fl/messagebundle_it.properties +2 -2
- package/src/sap/ui/fl/messagebundle_iw.properties +2 -2
- package/src/sap/ui/fl/messagebundle_ja.properties +2 -2
- package/src/sap/ui/fl/messagebundle_kk.properties +3 -3
- package/src/sap/ui/fl/messagebundle_ko.properties +2 -2
- package/src/sap/ui/fl/messagebundle_lt.properties +2 -2
- package/src/sap/ui/fl/messagebundle_lv.properties +2 -2
- package/src/sap/ui/fl/messagebundle_mk.properties +78 -0
- package/src/sap/ui/fl/messagebundle_ms.properties +2 -2
- package/src/sap/ui/fl/messagebundle_nl.properties +2 -2
- package/src/sap/ui/fl/messagebundle_no.properties +2 -2
- package/src/sap/ui/fl/messagebundle_pl.properties +2 -2
- package/src/sap/ui/fl/messagebundle_pt.properties +2 -2
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -2
- package/src/sap/ui/fl/messagebundle_ro.properties +2 -2
- package/src/sap/ui/fl/messagebundle_ru.properties +2 -2
- package/src/sap/ui/fl/messagebundle_sh.properties +4 -4
- package/src/sap/ui/fl/messagebundle_sk.properties +2 -2
- package/src/sap/ui/fl/messagebundle_sl.properties +2 -2
- package/src/sap/ui/fl/messagebundle_sv.properties +2 -2
- package/src/sap/ui/fl/messagebundle_th.properties +2 -2
- package/src/sap/ui/fl/messagebundle_tr.properties +2 -2
- package/src/sap/ui/fl/messagebundle_uk.properties +5 -5
- package/src/sap/ui/fl/messagebundle_vi.properties +2 -2
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -2
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -2
- package/src/sap/ui/fl/registry/Settings.js +3 -5
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +4 -2
- 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 +6 -5
- 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 +2 -2
- package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +14 -24
- package/src/sap/ui/fl/variants/VariantModel.js +105 -88
- package/src/sap/ui/fl/variants/context/i18n/i18n_mk.properties +12 -0
- package/src/sap/ui/fl/write/_internal/Storage.js +41 -24
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +7 -7
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -4
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Utils.js +3 -3
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +3 -3
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +4 -2
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +5 -3
- 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/delegates/ODataV4ReadDelegate.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 +4 -4
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +4 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +4 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +96 -0
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +12 -13
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +3 -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/ChangesWriteAPI.js +3 -3
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +3 -1
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -4
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +13 -13
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -3
- package/src/sap/ui/fl/write/api/TranslationAPI.js +3 -5
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +14 -13
- package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
- /package/src/sap/ui/fl/{write → initial}/api/Version.js +0 -0
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/changeHandler/condenser/Classification",
|
|
9
9
|
"sap/ui/fl/changeHandler/Base",
|
|
10
|
-
"sap/ui/fl/
|
|
10
|
+
"sap/ui/fl/requireAsync",
|
|
11
11
|
"sap/base/util/merge",
|
|
12
12
|
"sap/base/util/ObjectPath"
|
|
13
13
|
], function(
|
|
14
14
|
CondenserClassification,
|
|
15
15
|
Base,
|
|
16
|
-
|
|
16
|
+
requireAsync,
|
|
17
17
|
merge,
|
|
18
18
|
ObjectPath
|
|
19
19
|
) {
|
|
@@ -31,6 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
// that was replaced by default OData V2 delegate
|
|
32
32
|
return "sap.ui.model.odata.v2.ODataModel";
|
|
33
33
|
}
|
|
34
|
+
return undefined;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -39,10 +40,10 @@ sap.ui.define([
|
|
|
39
40
|
* @constructor
|
|
40
41
|
* @alias sap.ui.fl.changeHandler.BaseAddViaDelegate
|
|
41
42
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
43
|
+
* @version 1.120.0
|
|
43
44
|
* @private
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
const BaseAddViaDelegate = {
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
49
|
* Returns an instance of the addViaDelegate change handler
|
|
@@ -81,70 +82,61 @@ sap.ui.define([
|
|
|
81
82
|
return evaluateSettingsFlag(oChangeODataInformation, "skipCreateLayout");
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
function checkCondensingEnabled(mChange, mPropertyBag) {
|
|
85
|
+
async function checkCondensingEnabled(mChange, mPropertyBag) {
|
|
85
86
|
// createLayout side effects might break condensing
|
|
86
87
|
// Only enable condensing if the delegate doesn't create a layout
|
|
87
88
|
// or the handler opts out
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
const oControl = mPropertyBag.modifier.bySelector(mChange.getSelector(), mPropertyBag.appComponent);
|
|
91
|
+
const sModelType = getModelType(mChange.getContent());
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
const DelegateMediatorAPI = await requireAsync("sap/ui/fl/apply/api/DelegateMediatorAPI");
|
|
94
|
+
const oDelegate = await DelegateMediatorAPI.getDelegateForControl({
|
|
93
95
|
control: oControl,
|
|
94
96
|
modifier: mPropertyBag.modifier,
|
|
95
97
|
modelType: sModelType,
|
|
96
98
|
supportsDefault: mAddViaDelegateSettings.supportsDefault
|
|
97
|
-
})
|
|
98
|
-
.then(function(oDelegate) {
|
|
99
|
-
var bCondensingSupported = !isFunction(oDelegate.instance.createLayout);
|
|
100
|
-
return bCondensingSupported || skipCreateLayout(mChange.getSupportInformation().oDataInformation);
|
|
101
99
|
});
|
|
100
|
+
const bCondensingSupported = !isFunction(oDelegate.instance.createLayout);
|
|
101
|
+
return bCondensingSupported || skipCreateLayout(mChange.getSupportInformation().oDataInformation);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
function getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate) {
|
|
105
|
-
|
|
104
|
+
async function getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate) {
|
|
105
|
+
const mDelegateSettings = merge({}, mDelegatePropertyBag);
|
|
106
106
|
mDelegateSettings.fieldSelector.id = getNewFieldId(mDelegateSettings.fieldSelector.id);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
});
|
|
121
|
-
});
|
|
107
|
+
const mSpecificControlInfo = await oDelegate.createControlForProperty(mDelegateSettings);
|
|
108
|
+
if (skipCreateLabel(oChangeODataInformation)) {
|
|
109
|
+
return mSpecificControlInfo;
|
|
110
|
+
}
|
|
111
|
+
const sNewFieldId = mDelegatePropertyBag.modifier.getId(mSpecificControlInfo.control);
|
|
112
|
+
mDelegatePropertyBag.labelFor = sNewFieldId;
|
|
113
|
+
const oLabel = await oDelegate.createLabel(mDelegatePropertyBag);
|
|
114
|
+
return {
|
|
115
|
+
label: oLabel,
|
|
116
|
+
control: mSpecificControlInfo.control,
|
|
117
|
+
valueHelp: mSpecificControlInfo.valueHelp
|
|
118
|
+
};
|
|
122
119
|
}
|
|
123
120
|
|
|
124
|
-
function getControlsFromDelegate(oChangeContent, mDelegate, mPropertyBag, oChangeODataInformation) {
|
|
125
|
-
|
|
121
|
+
async function getControlsFromDelegate(oChangeContent, mDelegate, mPropertyBag, oChangeODataInformation) {
|
|
122
|
+
const mDelegatePropertyBag = merge({
|
|
126
123
|
aggregationName: mAddViaDelegateSettings.aggregationName,
|
|
127
124
|
payload: mDelegate.payload || {},
|
|
128
125
|
parentSelector: oChangeContent.parentId
|
|
129
126
|
}, mPropertyBag);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
mLayoutControlInfo.layoutControl = true;
|
|
144
|
-
return mLayoutControlInfo;
|
|
145
|
-
}
|
|
146
|
-
return getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate);
|
|
147
|
-
});
|
|
127
|
+
const oDelegate = mDelegate.instance;
|
|
128
|
+
let mLayoutControlInfo;
|
|
129
|
+
if (
|
|
130
|
+
isFunction(oDelegate.createLayout)
|
|
131
|
+
&& !skipCreateLayout(oChangeODataInformation)
|
|
132
|
+
) {
|
|
133
|
+
mLayoutControlInfo = await oDelegate.createLayout(mDelegatePropertyBag);
|
|
134
|
+
}
|
|
135
|
+
if (ObjectPath.get("control", mLayoutControlInfo)) {
|
|
136
|
+
mLayoutControlInfo.layoutControl = true;
|
|
137
|
+
return mLayoutControlInfo;
|
|
138
|
+
}
|
|
139
|
+
return getDelegateControlForPropertyAndLabel(oChangeODataInformation, mDelegatePropertyBag, oDelegate);
|
|
148
140
|
}
|
|
149
141
|
|
|
150
142
|
/** **************** Change Handler ******************/
|
|
@@ -160,12 +152,12 @@ sap.ui.define([
|
|
|
160
152
|
* @returns {Promise<undefined>} to wait for execution
|
|
161
153
|
* @public
|
|
162
154
|
*/
|
|
163
|
-
applyChange(oChange, oControl, mPropertyBag) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
155
|
+
async applyChange(oChange, oControl, mPropertyBag) {
|
|
156
|
+
const oAppComponent = mPropertyBag.appComponent;
|
|
157
|
+
const oChangeContent = oChange.getContent();
|
|
158
|
+
const oChangeODataInformation = oChange.getSupportInformation().oDataInformation;
|
|
159
|
+
const mFieldSelector = oChangeContent.newFieldSelector;
|
|
160
|
+
const mCreateProperties = {
|
|
169
161
|
appComponent: mPropertyBag.appComponent,
|
|
170
162
|
view: mPropertyBag.view,
|
|
171
163
|
fieldSelector: mFieldSelector,
|
|
@@ -175,51 +167,55 @@ sap.ui.define([
|
|
|
175
167
|
};
|
|
176
168
|
// Check if the change is applicable
|
|
177
169
|
if (mPropertyBag.modifier.bySelector(mFieldSelector, oAppComponent, mPropertyBag.view)) {
|
|
178
|
-
|
|
170
|
+
await Base.markAsNotApplicable(
|
|
179
171
|
`Control to be created already exists:${mFieldSelector.id || mFieldSelector}`,
|
|
180
172
|
/* bAsync */true
|
|
181
173
|
);
|
|
174
|
+
return;
|
|
182
175
|
}
|
|
183
|
-
|
|
176
|
+
const oRevertData = {
|
|
184
177
|
newFieldSelector: mFieldSelector
|
|
185
178
|
};
|
|
186
|
-
// revert data will be enhanced later on, but should be attached to the change
|
|
179
|
+
// revert data will be enhanced later on, but should be attached to the change
|
|
180
|
+
// so that the addProperty-hook can access it and enhance it
|
|
187
181
|
oChange.setRevertData(oRevertData);
|
|
188
182
|
|
|
189
|
-
|
|
183
|
+
const sModelType = getModelType(oChangeContent);
|
|
190
184
|
|
|
191
|
-
|
|
185
|
+
const DelegateMediatorAPI = await requireAsync("sap/ui/fl/apply/api/DelegateMediatorAPI");
|
|
186
|
+
const mDelegate = await DelegateMediatorAPI.getDelegateForControl({
|
|
192
187
|
control: oControl,
|
|
193
188
|
modifier: mPropertyBag.modifier,
|
|
194
189
|
modelType: sModelType,
|
|
195
190
|
supportsDefault: mAddViaDelegateSettings.supportsDefault
|
|
196
|
-
}).then(function(mDelegate) {
|
|
197
|
-
return getControlsFromDelegate(oChangeContent, mDelegate, mCreateProperties, oChangeODataInformation);
|
|
198
|
-
}).then(function(mInnerControls) {
|
|
199
|
-
var mAddPropertySettings = merge({},
|
|
200
|
-
{
|
|
201
|
-
control: oControl,
|
|
202
|
-
innerControls: mInnerControls,
|
|
203
|
-
change: oChange
|
|
204
|
-
},
|
|
205
|
-
mPropertyBag
|
|
206
|
-
);
|
|
207
|
-
//------------------------
|
|
208
|
-
// Call 'addProperty' hook!
|
|
209
|
-
//------------------------
|
|
210
|
-
return Promise.resolve()
|
|
211
|
-
.then(function() {
|
|
212
|
-
return mAddViaDelegateSettings.addProperty(mAddPropertySettings);
|
|
213
|
-
})
|
|
214
|
-
.then(function() {
|
|
215
|
-
if (mInnerControls.valueHelp) {
|
|
216
|
-
var oValueHelpSelector = mPropertyBag.modifier.getSelector(mPropertyBag.modifier.getId(mInnerControls.valueHelp), oAppComponent);
|
|
217
|
-
var oRevertData = oChange.getRevertData();
|
|
218
|
-
oRevertData.valueHelpSelector = oValueHelpSelector;
|
|
219
|
-
oChange.setRevertData(oRevertData);
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
191
|
});
|
|
192
|
+
const mInnerControls = await getControlsFromDelegate(
|
|
193
|
+
oChangeContent,
|
|
194
|
+
mDelegate,
|
|
195
|
+
mCreateProperties,
|
|
196
|
+
oChangeODataInformation
|
|
197
|
+
);
|
|
198
|
+
const mAddPropertySettings = merge({},
|
|
199
|
+
{
|
|
200
|
+
control: oControl,
|
|
201
|
+
innerControls: mInnerControls,
|
|
202
|
+
change: oChange
|
|
203
|
+
},
|
|
204
|
+
mPropertyBag
|
|
205
|
+
);
|
|
206
|
+
//------------------------
|
|
207
|
+
// Call 'addProperty' hook!
|
|
208
|
+
//------------------------
|
|
209
|
+
await mAddViaDelegateSettings.addProperty(mAddPropertySettings);
|
|
210
|
+
if (mInnerControls.valueHelp) {
|
|
211
|
+
const oValueHelpSelector = mPropertyBag.modifier.getSelector(
|
|
212
|
+
mPropertyBag.modifier.getId(mInnerControls.valueHelp),
|
|
213
|
+
oAppComponent
|
|
214
|
+
);
|
|
215
|
+
const oRevertData = oChange.getRevertData();
|
|
216
|
+
oRevertData.valueHelpSelector = oValueHelpSelector;
|
|
217
|
+
oChange.setRevertData(oRevertData);
|
|
218
|
+
}
|
|
223
219
|
},
|
|
224
220
|
|
|
225
221
|
/**
|
|
@@ -233,50 +229,39 @@ sap.ui.define([
|
|
|
233
229
|
* @return {boolean} True if successful
|
|
234
230
|
* @public
|
|
235
231
|
*/
|
|
236
|
-
revertChange(oChange, oControl, mPropertyBag) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
232
|
+
async revertChange(oChange, oControl, mPropertyBag) {
|
|
233
|
+
const oAppComponent = mPropertyBag.appComponent;
|
|
234
|
+
const oModifier = mPropertyBag.modifier;
|
|
235
|
+
const mFieldSelector = oChange.getRevertData().newFieldSelector;
|
|
236
|
+
const mValueHelpSelector = oChange.getRevertData().valueHelpSelector;
|
|
241
237
|
|
|
242
|
-
|
|
238
|
+
const oNewField = oModifier.bySelector(mFieldSelector, oAppComponent);
|
|
243
239
|
|
|
244
|
-
|
|
240
|
+
const oParentControl = oChange.getDependentControl(mAddViaDelegateSettings.parentAlias, mPropertyBag)
|
|
245
241
|
|| /* fallback and legacy changes */ oControl;
|
|
246
242
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
control: oControl,
|
|
262
|
-
change: oChange
|
|
263
|
-
},
|
|
264
|
-
mPropertyBag
|
|
265
|
-
);
|
|
243
|
+
await oModifier.removeAggregation(oParentControl, mAddViaDelegateSettings.aggregationName, oNewField);
|
|
244
|
+
await oModifier.destroy(oNewField);
|
|
245
|
+
if (mValueHelpSelector) {
|
|
246
|
+
const oValueHelp = oModifier.bySelector(mValueHelpSelector, oAppComponent);
|
|
247
|
+
await oModifier.removeAggregation(oParentControl, "dependents", oValueHelp);
|
|
248
|
+
await oModifier.destroy(oValueHelp);
|
|
249
|
+
}
|
|
250
|
+
const mAddPropertySettings = merge({},
|
|
251
|
+
{
|
|
252
|
+
control: oControl,
|
|
253
|
+
change: oChange
|
|
254
|
+
},
|
|
255
|
+
mPropertyBag
|
|
256
|
+
);
|
|
266
257
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
})
|
|
275
|
-
.then(function() {
|
|
276
|
-
oChange.resetRevertData();
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
});
|
|
258
|
+
if (isFunction(mAddViaDelegateSettings.revertAdditionalControls)) {
|
|
259
|
+
//-------------------------------------
|
|
260
|
+
// Call 'revertAdditionalControls' hook!
|
|
261
|
+
//-------------------------------------
|
|
262
|
+
await mAddViaDelegateSettings.revertAdditionalControls(mAddPropertySettings);
|
|
263
|
+
oChange.resetRevertData();
|
|
264
|
+
}
|
|
280
265
|
},
|
|
281
266
|
|
|
282
267
|
/**
|
|
@@ -297,8 +282,8 @@ sap.ui.define([
|
|
|
297
282
|
* @public
|
|
298
283
|
*/
|
|
299
284
|
completeChangeContent(oChange, mSpecificChangeInfo, mPropertyBag) {
|
|
300
|
-
|
|
301
|
-
|
|
285
|
+
const oAppComponent = mPropertyBag.appComponent;
|
|
286
|
+
const oContent = {};
|
|
302
287
|
if (mSpecificChangeInfo.parentId) {
|
|
303
288
|
if (isFunction(mAddViaDelegateSettings.mapParentIdIntoChange)) {
|
|
304
289
|
mAddViaDelegateSettings.mapParentIdIntoChange(oChange, mSpecificChangeInfo, mPropertyBag);
|
|
@@ -342,7 +327,7 @@ sap.ui.define([
|
|
|
342
327
|
},
|
|
343
328
|
|
|
344
329
|
getChangeVisualizationInfo(oChange) {
|
|
345
|
-
|
|
330
|
+
const oRevertData = oChange.getRevertData();
|
|
346
331
|
if (oRevertData && oRevertData.labelSelector) {
|
|
347
332
|
return {
|
|
348
333
|
affectedControls: [oRevertData.labelSelector]
|
|
@@ -353,36 +338,34 @@ sap.ui.define([
|
|
|
353
338
|
};
|
|
354
339
|
},
|
|
355
340
|
|
|
356
|
-
getCondenserInfo(oChange, mPropertyBag) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
341
|
+
async getCondenserInfo(oChange, mPropertyBag) {
|
|
342
|
+
const bCondensingEnabled = await checkCondensingEnabled(oChange, mPropertyBag);
|
|
343
|
+
if (!bCondensingEnabled) {
|
|
344
|
+
return undefined;
|
|
345
|
+
}
|
|
362
346
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
347
|
+
if (
|
|
348
|
+
!oChange.getContent().newFieldSelector
|
|
349
|
+
|| !oChange.getContent().parentId
|
|
350
|
+
|| !mAddViaDelegateSettings.aggregationName
|
|
351
|
+
) {
|
|
352
|
+
return undefined;
|
|
353
|
+
}
|
|
370
354
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
});
|
|
355
|
+
return {
|
|
356
|
+
affectedControl: oChange.getContent().newFieldSelector,
|
|
357
|
+
classification: CondenserClassification.Create,
|
|
358
|
+
targetContainer: oChange.getContent().parentId,
|
|
359
|
+
targetAggregation: mAddViaDelegateSettings.aggregationName,
|
|
360
|
+
setTargetIndex(oChange, iNewTargetIndex) {
|
|
361
|
+
const oChangeContent = oChange.getContent();
|
|
362
|
+
oChangeContent.newFieldIndex = iNewTargetIndex;
|
|
363
|
+
oChange.setContent(oChangeContent);
|
|
364
|
+
},
|
|
365
|
+
getTargetIndex(oChange) {
|
|
366
|
+
return oChange.getContent().newFieldIndex;
|
|
367
|
+
}
|
|
368
|
+
};
|
|
386
369
|
}
|
|
387
370
|
};
|
|
388
371
|
}
|
|
@@ -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.120.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.120.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.120.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.120.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.120.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.120.0
|
|
20
20
|
* @private
|
|
21
21
|
* @deprecated Since version 1.73
|
|
22
22
|
* @ui5-restricted sap.ui.rta, smart business
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/
|
|
8
|
+
"sap/ui/core/Element",
|
|
9
9
|
"sap/ui/rta/plugin/iframe/AddIFrameDialog",
|
|
10
10
|
"sap/m/library"
|
|
11
11
|
], function(
|
|
12
|
-
|
|
12
|
+
Element,
|
|
13
13
|
AddIFrameDialog
|
|
14
14
|
) {
|
|
15
15
|
"use strict";
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
// The title of the iFrame container could have changed
|
|
25
25
|
// so we need to retrieve it before opening the dialog
|
|
26
26
|
if (mRenameInfo) {
|
|
27
|
-
oContainer =
|
|
27
|
+
oContainer = Element.getElementById(mRenameInfo.sourceControlId);
|
|
28
28
|
oInitialSettings.title = oContainer.getProperty(mRenameInfo.propertyName);
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -51,7 +51,8 @@ sap.ui.define([
|
|
|
51
51
|
var oNewContent = {
|
|
52
52
|
url: oInitialSettings.url,
|
|
53
53
|
height: oInitialSettings.height,
|
|
54
|
-
width: oInitialSettings.width
|
|
54
|
+
width: oInitialSettings.width,
|
|
55
|
+
useLegacyNavigation: oInitialSettings.useLegacyNavigation
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
if (mSettings.frameHeight + mSettings.frameHeightUnit !== oInitialSettings.height) {
|
|
@@ -84,7 +85,7 @@ sap.ui.define([
|
|
|
84
85
|
// If the title changes a rename change must be created
|
|
85
86
|
if (mSettings.title !== oInitialSettings.title) {
|
|
86
87
|
var mRenameChange = {
|
|
87
|
-
selectorControl:
|
|
88
|
+
selectorControl: Element.getElementById(mRenameInfo.selectorControlId),
|
|
88
89
|
changeSpecificData: {
|
|
89
90
|
changeType: "rename",
|
|
90
91
|
content: {
|