@openui5/sap.ui.fl 1.134.0 → 1.135.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 +2 -2
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +2 -2
- 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/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +16 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +3 -41
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/InlineApplier.js +47 -0
- 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/AddNewDataSource.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/AddNewOutbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddTechnicalAttributes.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/ChangeOutbound.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/SetAch.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetDescription.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/SetCloudDevAdaptationStatus.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/ChangeModel.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/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/AnnotationChange.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 +11 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +38 -2
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +5 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/VariantChange.js +78 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/VariantManagementChange.js +84 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +17 -7
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +37 -9
- 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/changes/UIChangesState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantManagementState.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 +29 -4
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +3 -3
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +27 -11
- 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/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/ChangeAnnotation.js +23 -4
- 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/DescriptorChange.js +121 -0
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +7 -95
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +13 -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/initial/api/InitialFlexAPI.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/messagebundle_sl.properties +1 -1
- package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexObjectInfos.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/index.html +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 +1 -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/VariantManager.js +21 -21
- package/src/sap/ui/fl/variants/VariantModel.js +5 -5
- package/src/sap/ui/fl/write/_internal/Storage.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 +24 -21
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +7 -9
- 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/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/FlexObjectManager.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/changes/UIChangeManager.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/BusinessNetworkAPI.js +138 -0
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +52 -62
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +8 -9
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +49 -29
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +56 -62
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +5 -6
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.m:
|
|
8
8
|
|
|
9
|
-
Component: purify.js, version: 3.
|
|
9
|
+
Component: purify.js, version: 3.2.4
|
|
10
10
|
Copyright: Mario Heiderich
|
|
11
11
|
License: Apache-2.0
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -462,7 +462,7 @@ License: Apache-2.0
|
|
|
462
462
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
463
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
464
|
|
|
465
|
-
Component: SAP Theming Base Content, version: 11.
|
|
465
|
+
Component: SAP Theming Base Content, version: 11.28.2
|
|
466
466
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
467
467
|
License: Apache-2.0
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.135.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.fl",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.m": "1.135.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.135.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.135.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.135.0
|
|
44
44
|
* @since 1.25.0
|
|
45
45
|
* @private
|
|
46
46
|
* @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
function canGivenChangesBeCondensed(oAppComponent, aChanges, bCondenseAnyLayer) {
|
|
91
91
|
var bCondenserEnabled = false;
|
|
92
92
|
|
|
93
|
-
if (!oAppComponent ||
|
|
93
|
+
if (!oAppComponent || !checkIfOnlyOne(aChanges, "getLayer")) {
|
|
94
94
|
return false;
|
|
95
95
|
}
|
|
96
96
|
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -9,6 +9,9 @@ sap.ui.define([
|
|
|
9
9
|
"sap/ui/fl/apply/_internal/changes/FlexCustomData",
|
|
10
10
|
"sap/ui/fl/apply/_internal/flexObjects/AnnotationChange",
|
|
11
11
|
"sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange",
|
|
12
|
+
"sap/ui/fl/apply/_internal/flexObjects/VariantChange",
|
|
13
|
+
"sap/ui/fl/apply/_internal/flexObjects/VariantManagementChange",
|
|
14
|
+
"sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState",
|
|
12
15
|
"sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
|
|
13
16
|
"sap/ui/fl/requireAsync",
|
|
14
17
|
"sap/ui/fl/Utils"
|
|
@@ -17,6 +20,9 @@ sap.ui.define([
|
|
|
17
20
|
FlexCustomData,
|
|
18
21
|
AnnotationChange,
|
|
19
22
|
AppDescriptorChange,
|
|
23
|
+
VariantChange,
|
|
24
|
+
VariantManagementChange,
|
|
25
|
+
VariantManagementState,
|
|
20
26
|
ChangeHandlerStorage,
|
|
21
27
|
requireAsync,
|
|
22
28
|
FlUtils
|
|
@@ -28,7 +34,7 @@ sap.ui.define([
|
|
|
28
34
|
*
|
|
29
35
|
* @namespace sap.ui.fl.apply._internal.changes.Utils
|
|
30
36
|
* @since 1.70
|
|
31
|
-
* @version 1.
|
|
37
|
+
* @version 1.135.0
|
|
32
38
|
* @private
|
|
33
39
|
* @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
|
|
34
40
|
*/
|
|
@@ -42,6 +48,10 @@ sap.ui.define([
|
|
|
42
48
|
return true;
|
|
43
49
|
}
|
|
44
50
|
|
|
51
|
+
function isVariantRelated(mPropertyBag) {
|
|
52
|
+
return mPropertyBag.flexObject instanceof VariantChange || mPropertyBag.flexObject instanceof VariantManagementChange;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
const Utils = {
|
|
46
56
|
/**
|
|
47
57
|
* Returns the control map containing control, controlType, bTemplateAffected and originalControl
|
|
@@ -74,8 +84,9 @@ sap.ui.define([
|
|
|
74
84
|
},
|
|
75
85
|
|
|
76
86
|
/**
|
|
77
|
-
* Fetches the change handler for a specific flex object or for the given parameters
|
|
78
|
-
* or when the flex object is not available yet).
|
|
87
|
+
* Fetches the change handler or ChangeInformationProvider for a specific flex object or for the given parameters
|
|
88
|
+
* (e.g. for UI changes or when the flex object is not available yet).
|
|
89
|
+
* ChangeInformationProvider only provide functions to condense or visualize the changes.
|
|
79
90
|
* If the change handler is currently being registered, the function waits for the registration.
|
|
80
91
|
*
|
|
81
92
|
* @param {object} mPropertyBag - Data required to retrieve the change handler
|
|
@@ -103,6 +114,8 @@ sap.ui.define([
|
|
|
103
114
|
return ChangeHandlerStorage.getAnnotationChangeHandler({
|
|
104
115
|
changeType: sChangeType
|
|
105
116
|
});
|
|
117
|
+
} else if (isVariantRelated(mPropertyBag)) {
|
|
118
|
+
return VariantManagementState.getChangeInformationProvider(mPropertyBag.flexObject);
|
|
106
119
|
} else if (mPropertyBag.control) {
|
|
107
120
|
const sLibraryName = await mPropertyBag.modifier.getLibraryName(mPropertyBag.control);
|
|
108
121
|
// the ChangeHandlerRegistration includes all the predefined ChangeHandlers.
|
|
@@ -7,30 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/util/isEmptyObject",
|
|
10
|
-
"sap/ui/fl/apply/_internal/changes/Utils"
|
|
11
|
-
"sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory"
|
|
10
|
+
"sap/ui/fl/apply/_internal/changes/Utils"
|
|
12
11
|
], function(
|
|
13
12
|
isEmptyObject,
|
|
14
|
-
Utils
|
|
15
|
-
FlexObjectFactory
|
|
13
|
+
Utils
|
|
16
14
|
) {
|
|
17
15
|
"use strict";
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Gets the <code>$sap.ui.fl.changes</code> section from the Manifest and returns it converted into <code>sap.ui.fl.apply._internal.flexObjects.FlexObject</code>
|
|
23
|
-
* @param {sap.ui.core.Manifest} oManifest - Manifest provided by sap.ui.core.Component
|
|
24
|
-
* @returns {sap.ui.fl.apply._internal.flexObjects.AppDescriptorChange[]} Array of <code>sap.ui.fl.apply._internal.flexObjects.AppDescriptorChange</code>
|
|
25
|
-
*/
|
|
26
|
-
function getDescriptorChanges(oManifest) {
|
|
27
|
-
var aAppDescriptorChangesRaw = oManifest && oManifest.getEntry && oManifest.getEntry(CHANGES_NAMESPACE) && oManifest.getEntry(CHANGES_NAMESPACE).descriptor || [];
|
|
28
|
-
return aAppDescriptorChangesRaw.map(function(oChange) {
|
|
29
|
-
return FlexObjectFactory.createAppDescriptorChange(oChange);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
var Applier = {
|
|
17
|
+
const Applier = {
|
|
34
18
|
/**
|
|
35
19
|
* Applies all descriptor changes to raw manifest.
|
|
36
20
|
*
|
|
@@ -62,28 +46,6 @@ sap.ui.define([
|
|
|
62
46
|
}
|
|
63
47
|
});
|
|
64
48
|
return oUpdatedManifest;
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Applies descriptor changes that can be found in the manifest under the section <code>$sap.ui.fl.changes</code>.
|
|
69
|
-
* @param {sap.ui.core.Manifest} oManifest - Manifest provided by sap.ui.core.Component
|
|
70
|
-
* @param {object} mStrategy - Strategy for runtime or for buildtime merging
|
|
71
|
-
* @param {object} mStrategy.registry - Change handler registry
|
|
72
|
-
* @param {function} mStrategy.handleError - Error handling strategy
|
|
73
|
-
* @param {function} mStrategy.processTexts - Text postprocessing strategy
|
|
74
|
-
* @returns {Promise} Resolves as soon as the changes are applied
|
|
75
|
-
*/
|
|
76
|
-
applyChangesIncludedInManifest(oManifest, mStrategy) {
|
|
77
|
-
var aDescriptorChanges = getDescriptorChanges(oManifest);
|
|
78
|
-
var oManifestJSON = oManifest.getJson();
|
|
79
|
-
delete oManifestJSON[CHANGES_NAMESPACE];
|
|
80
|
-
|
|
81
|
-
if (aDescriptorChanges.length > 0) {
|
|
82
|
-
return this.applyChanges(oManifestJSON, aDescriptorChanges, mStrategy).then(function() {
|
|
83
|
-
return;
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return Promise.resolve();
|
|
87
49
|
}
|
|
88
50
|
};
|
|
89
51
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2025 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/fl/apply/_internal/changes/descriptor/Applier",
|
|
9
|
+
"sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory"
|
|
10
|
+
], function(
|
|
11
|
+
Applier,
|
|
12
|
+
FlexObjectFactory
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
const CHANGES_NAMESPACE = "$sap.ui.fl.changes";
|
|
17
|
+
/**
|
|
18
|
+
* Gets the <code>$sap.ui.fl.changes</code> section from the Manifest and returns it converted
|
|
19
|
+
* into <code>sap.ui.fl.apply._internal.flexObjects.FlexObject</code>
|
|
20
|
+
* @param {sap.ui.core.Manifest} oManifest - Manifest provided by sap.ui.core.Component
|
|
21
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.AppDescriptorChange[]} Array of <code>sap.ui.fl.apply._internal.flexObjects.AppDescriptorChange</code>
|
|
22
|
+
*/
|
|
23
|
+
function getDescriptorChanges(oManifest) {
|
|
24
|
+
const aAppDescriptorChangesRaw = oManifest && oManifest.getEntry && oManifest.getEntry(CHANGES_NAMESPACE) && oManifest.getEntry(CHANGES_NAMESPACE).descriptor || [];
|
|
25
|
+
return aAppDescriptorChangesRaw.map(function(oChange) {
|
|
26
|
+
return FlexObjectFactory.createAppDescriptorChange(oChange);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const InlineApplier = {
|
|
30
|
+
/**
|
|
31
|
+
* Applies inline manifest changes found in the <code>$sap.ui.fl.changes</code> section in the LOAD version of the manifest.
|
|
32
|
+
* @param {sap.ui.core.Manifest} oManifest - The manifest provided by sap.ui.core.Component.
|
|
33
|
+
* @param {object} mStrategy - The strategy for runtime or buildtime merging.
|
|
34
|
+
* @param {object} mStrategy.registry - The change handler registry.
|
|
35
|
+
* @param {function} mStrategy.handleError - The error handling strategy.
|
|
36
|
+
* @param {function} mStrategy.processTexts - The text postprocessing strategy.
|
|
37
|
+
* @returns {Promise} Resolves as soon as the changes are applied.
|
|
38
|
+
*/
|
|
39
|
+
applyChanges(oManifest, mStrategy) {
|
|
40
|
+
const aDescriptorChanges = getDescriptorChanges(oManifest);
|
|
41
|
+
const oManifestJSON = oManifest.getJson();
|
|
42
|
+
delete oManifestJSON[CHANGES_NAMESPACE];
|
|
43
|
+
return aDescriptorChanges.length ? Applier.applyChanges(oManifestJSON, aDescriptorChanges, mStrategy) : Promise.resolve();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return InlineApplier;
|
|
47
|
+
});
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* Available for both runtime and build {@link sap.ui.fl.apply._internal.changes.descriptor.Registration}.
|
|
20
20
|
*
|
|
21
21
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.SetDescription
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.135.0
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
25
25
|
*/
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* Available for both runtime and build {@link sap.ui.fl.apply._internal.changes.descriptor.Registration}.
|
|
20
20
|
*
|
|
21
21
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.SetTitle
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.135.0
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
25
25
|
*/
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* Available for both runtime and build {@link sap.ui.fl.apply._internal.changes.descriptor.Registration}.
|
|
19
19
|
*
|
|
20
20
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.ovp.DeleteCard
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.135.0
|
|
22
22
|
* @private
|
|
23
23
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
24
24
|
*/
|