@openui5/sap.ui.fl 1.96.2 → 1.97.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 +1 -1
- package/THIRDPARTY.txt +2 -1
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +6 -4
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/EventHistory.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 +9 -5
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
- package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
- package/src/sap/ui/fl/Utils.js +8 -8
- package/src/sap/ui/fl/Variant.js +1 -1
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +10 -11
- 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/Applier.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/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +263 -263
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +39 -9
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +3 -33
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -16
- 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/appDescriptorChanges/prepareAppDescriptorMap.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/compVariants/prepareCompVariantsMap.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +13 -11
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +86 -6
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +58 -9
- 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 +1 -1
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +16 -10
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -3
- 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 +9 -9
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
- package/src/sap/ui/fl/registry/Settings.js +15 -16
- package/src/sap/ui/fl/support/Flexibility.js +83 -72
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +12 -12
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +8 -8
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +9 -9
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +3 -3
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +51 -52
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +129 -125
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -2
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -4
- 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/VariantModel.js +1 -1
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +12 -2
- 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 +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +3 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -23
- 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 +2 -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 +4 -3
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +5 -4
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +5 -7
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -5
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -2
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +117 -13
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -0
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +7 -3
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -1
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
- package/ui5.yaml +132 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
package/.reuse/dep5
CHANGED
|
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
|
|
|
418
418
|
|
|
419
419
|
# Library: sap.ui.webc.common:
|
|
420
420
|
|
|
421
|
-
Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/
|
|
421
|
+
Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
422
422
|
Copyright: SAP
|
|
423
423
|
License: Apache-2.0
|
|
424
424
|
Comment: these files belong to: UI5 Web Components
|
package/THIRDPARTY.txt
CHANGED
|
@@ -412,10 +412,11 @@ Copyright: SAP
|
|
|
412
412
|
License: Apache-2.0
|
|
413
413
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
414
414
|
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
415
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/
|
|
415
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
|
|
416
416
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
|
|
417
417
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
|
|
418
418
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
419
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
419
420
|
|
|
420
421
|
Component: lit-html, version: 1.4.1
|
|
421
422
|
Copyright: Google LLC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.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.97.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.97.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-2021 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.97.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -138,13 +138,13 @@ sap.ui.define([
|
|
|
138
138
|
ChangePersistence.prototype._preconditionsFulfilled = function(oChangeOrChangeContent) {
|
|
139
139
|
var oChangeContent = oChangeOrChangeContent instanceof Change ? oChangeOrChangeContent.getDefinition() : oChangeOrChangeContent;
|
|
140
140
|
|
|
141
|
-
function
|
|
141
|
+
function isControlVariantChange() {
|
|
142
142
|
if ((oChangeContent.fileType === "ctrl_variant") || (oChangeContent.fileType === "ctrl_variant_change") || (oChangeContent.fileType === "ctrl_variant_management_change")) {
|
|
143
143
|
return oChangeContent.variantManagementReference || oChangeContent.variantReference || (oChangeContent.selector && oChangeContent.selector.id);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
return oChangeContent.fileType === "change" ||
|
|
147
|
+
return oChangeContent.fileType === "change" || isControlVariantChange();
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
/**
|
|
@@ -419,7 +419,7 @@ sap.ui.define([
|
|
|
419
419
|
* @param {map} mPropertyBag - Contains additional data needed for reading changes
|
|
420
420
|
* @param {string} [mPropertyBag.layer] - Specifies a single layer for loading changes
|
|
421
421
|
* @param {boolean} [mPropertyBag.includeDirtyChanges] - Whether dirty changes of the current session should be included
|
|
422
|
-
* @returns {
|
|
422
|
+
* @returns {sap.ui.fl.Change[]} Array of changes
|
|
423
423
|
* @public
|
|
424
424
|
*/
|
|
425
425
|
ChangePersistence.prototype.getAllUIChanges = function(mPropertyBag) {
|
|
@@ -659,6 +659,7 @@ sap.ui.define([
|
|
|
659
659
|
* @param {boolean} [bSkipUpdateCache] - If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
|
|
660
660
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
661
661
|
* @param {sap.ui.fl.Change} [aChanges] - If passed only those changes are saved
|
|
662
|
+
* @param {number} nParentVersion - Parent version
|
|
662
663
|
* @returns {Promise} Resolving after all changes have been saved
|
|
663
664
|
*/
|
|
664
665
|
ChangePersistence.prototype.saveDirtyChanges = function(oAppComponent, bSkipUpdateCache, aChanges, nParentVersion) {
|
|
@@ -802,7 +803,8 @@ sap.ui.define([
|
|
|
802
803
|
};
|
|
803
804
|
|
|
804
805
|
/**
|
|
805
|
-
* @param {
|
|
806
|
+
* @param {sap.ui.fl.Change[]} aDirtyChanges - Array of dirty changes
|
|
807
|
+
* @param {boolean} [bSkipUpdateCache]- If <code>true</code>, then the dirty change shall be saved for the newly created app variant, but not for the current app;
|
|
806
808
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
807
809
|
*/
|
|
808
810
|
ChangePersistence.prototype._massUpdateCacheAndDirtyState = function(aDirtyChanges, bSkipUpdateCache) {
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/* global WeakMap */
|
|
8
|
-
|
|
9
7
|
sap.ui.define([
|
|
10
8
|
"sap/ui/fl/FlexController",
|
|
11
9
|
"sap/ui/fl/Utils",
|
|
@@ -32,7 +30,7 @@ sap.ui.define([
|
|
|
32
30
|
* @alias sap.ui.fl.FlexControllerFactory
|
|
33
31
|
* @experimental Since 1.27.0
|
|
34
32
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
33
|
+
* @version 1.97.0
|
|
36
34
|
*
|
|
37
35
|
* @private
|
|
38
36
|
* @ui5-restricted sap.ui.fl
|
|
@@ -110,8 +108,11 @@ sap.ui.define([
|
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
window.sessionStorage.removeItem("sap.ui.rta.restart." + Layer.CUSTOMER);
|
|
113
|
-
return new Promise(function (resolve) {
|
|
114
|
-
|
|
111
|
+
return new Promise(function (resolve, reject) {
|
|
112
|
+
Promise.all([
|
|
113
|
+
sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true}),
|
|
114
|
+
oComponent.rootControlLoaded()
|
|
115
|
+
])
|
|
115
116
|
.then(function() {
|
|
116
117
|
sap.ui.require(["sap/ui/rta/api/startKeyUserAdaptation"], function (startKeyUserAdaptation) {
|
|
117
118
|
startKeyUserAdaptation({
|
|
@@ -119,6 +120,9 @@ sap.ui.define([
|
|
|
119
120
|
});
|
|
120
121
|
resolve(oResult);
|
|
121
122
|
});
|
|
123
|
+
})
|
|
124
|
+
.catch(function(oError) {
|
|
125
|
+
reject(oError);
|
|
122
126
|
});
|
|
123
127
|
});
|
|
124
128
|
}
|
package/src/sap/ui/fl/Utils.js
CHANGED
|
@@ -17,8 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
"sap/ui/core/mvc/View",
|
|
18
18
|
"sap/base/util/isPlainObject",
|
|
19
19
|
"sap/ui/base/SyncPromise"
|
|
20
|
-
],
|
|
21
|
-
function(
|
|
20
|
+
], function(
|
|
22
21
|
jQuery,
|
|
23
22
|
Component,
|
|
24
23
|
BaseTreeModifier,
|
|
@@ -47,7 +46,7 @@ function(
|
|
|
47
46
|
* @namespace
|
|
48
47
|
* @alias sap.ui.fl.Utils
|
|
49
48
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
49
|
+
* @version 1.97.0
|
|
51
50
|
* @experimental Since 1.25.0
|
|
52
51
|
*/
|
|
53
52
|
var Utils = {
|
|
@@ -850,7 +849,7 @@ function(
|
|
|
850
849
|
|
|
851
850
|
/** Returns the type of "sap.app" from the manifest object passed.
|
|
852
851
|
* @param {sap.ui.core.Manifest} oManifest - Manifest object
|
|
853
|
-
* @returns {string
|
|
852
|
+
* @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
|
|
854
853
|
* @private
|
|
855
854
|
*/
|
|
856
855
|
_getComponentTypeFromManifest: function(oManifest) {
|
|
@@ -858,8 +857,8 @@ function(
|
|
|
858
857
|
},
|
|
859
858
|
|
|
860
859
|
/** Returns the type of "sap.app" from the manifest object passed.
|
|
861
|
-
* @param {sap.ui.core.Manifest}
|
|
862
|
-
* @returns {string
|
|
860
|
+
* @param {sap.ui.core.Manifest} oManifest - Raw manifest object
|
|
861
|
+
* @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
|
|
863
862
|
* @private
|
|
864
863
|
*/
|
|
865
864
|
_getComponentTypeFromRawManifest: function(oManifest) {
|
|
@@ -1018,8 +1017,9 @@ function(
|
|
|
1018
1017
|
}
|
|
1019
1018
|
var fnPromise = aPromiseQueue.shift();
|
|
1020
1019
|
if (typeof fnPromise === "function") {
|
|
1020
|
+
var vResult;
|
|
1021
1021
|
try {
|
|
1022
|
-
|
|
1022
|
+
vResult = fnPromise();
|
|
1023
1023
|
} catch (e) {
|
|
1024
1024
|
vResult = Promise.reject(e);
|
|
1025
1025
|
}
|
|
@@ -1165,7 +1165,7 @@ function(
|
|
|
1165
1165
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Normalize reference, delete .Component at the end of the incoming string.
|
|
1168
|
-
* @param {string} reference
|
|
1168
|
+
* @param {string} sReference - Flex reference
|
|
1169
1169
|
* @returns {string} Returns reference without .Component
|
|
1170
1170
|
*/
|
|
1171
1171
|
normalizeReference: function(sReference) {
|
package/src/sap/ui/fl/Variant.js
CHANGED
|
@@ -26,21 +26,19 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @constructor
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.97.0
|
|
30
30
|
* @experimental Since 1.27.0
|
|
31
31
|
*/
|
|
32
|
-
var XmlPreprocessorImpl = function() {
|
|
33
|
-
};
|
|
32
|
+
var XmlPreprocessorImpl = function() {};
|
|
34
33
|
|
|
35
34
|
/**
|
|
36
35
|
* Asynchronous view processing method.
|
|
37
36
|
*
|
|
38
|
-
* @param {Node} oView XML node of the view to process
|
|
39
|
-
* @param {object} mProperties
|
|
40
|
-
* @param {string} mProperties.componentId -
|
|
41
|
-
* @param {string} mPropertyBag.id -
|
|
42
|
-
*
|
|
43
|
-
* @returns {Promise.<Node>|Node} result of the processing, promise if executed asynchronously
|
|
37
|
+
* @param {Node} oView - XML node of the view to process
|
|
38
|
+
* @param {object} mProperties - Property Bag
|
|
39
|
+
* @param {string} mProperties.componentId - ID of the component creating the view
|
|
40
|
+
* @param {string} mPropertyBag.id - ID of the processed view
|
|
41
|
+
* @returns {Promise.<Node>|Node} Result of the processing, promise if executed asynchronously
|
|
44
42
|
*
|
|
45
43
|
* @public
|
|
46
44
|
*/
|
|
@@ -92,8 +90,9 @@ sap.ui.define([
|
|
|
92
90
|
/**
|
|
93
91
|
* Asynchronous determination of a hash key for caching purposes
|
|
94
92
|
*
|
|
95
|
-
* @param {
|
|
96
|
-
* @
|
|
93
|
+
* @param {object} mProperties - Property Bag
|
|
94
|
+
* @param {string} mProperties.componentId - Component instance ID
|
|
95
|
+
* @returns {Promise} Resolves with the hash key
|
|
97
96
|
*
|
|
98
97
|
* @public
|
|
99
98
|
*/
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* @param {object} mStrategy.registry - Change handler registry
|
|
70
70
|
* @param {function} mStrategy.handleError - Error handling strategy
|
|
71
71
|
* @param {function} mStrategy.processTexts - Text postprocessing strategy
|
|
72
|
-
* @returns Promise
|
|
72
|
+
* @returns {Promise} Resolves as soon as the changes are applied
|
|
73
73
|
*/
|
|
74
74
|
applyChangesIncludedInManifest: function(oManifest, mStrategy) {
|
|
75
75
|
var aDescriptorChanges = getDescriptorChanges(oManifest);
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
* @namespace sap.ui.fl.apply._internal.changes.descriptor.app.AddAnnotationsToOData
|
|
140
140
|
* @experimental
|
|
141
141
|
* @since 1.87
|
|
142
|
-
* @version 1.
|
|
142
|
+
* @version 1.97.0
|
|
143
143
|
* @private
|
|
144
144
|
* @ui5-restricted sap.ui.fl.apply._internal
|
|
145
145
|
*/
|