@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
|
@@ -5,16 +5,24 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/
|
|
8
|
+
"sap/base/Log",
|
|
9
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
|
+
"sap/ui/core/Element",
|
|
11
|
+
"sap/ui/fl/apply/_internal/controlVariants/Utils",
|
|
12
|
+
"sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
|
|
13
|
+
"sap/ui/fl/registry/Settings",
|
|
9
14
|
"sap/ui/fl/FlexControllerFactory",
|
|
10
15
|
"sap/ui/fl/Layer",
|
|
11
|
-
"sap/ui/fl/registry/Settings",
|
|
12
16
|
"sap/ui/fl/Utils"
|
|
13
17
|
], function(
|
|
14
|
-
|
|
18
|
+
Log,
|
|
19
|
+
JsControlTreeModifier,
|
|
20
|
+
Element,
|
|
21
|
+
VariantUtils,
|
|
22
|
+
ChangeHandlerStorage,
|
|
23
|
+
Settings,
|
|
15
24
|
FlexControllerFactory,
|
|
16
25
|
Layer,
|
|
17
|
-
Settings,
|
|
18
26
|
Utils
|
|
19
27
|
) {
|
|
20
28
|
"use strict";
|
|
@@ -29,6 +37,45 @@ sap.ui.define([
|
|
|
29
37
|
* @ui5-restricted UI5 controls that allow personalization
|
|
30
38
|
*/
|
|
31
39
|
|
|
40
|
+
function checkChangeSpecificData(oChange, sLayer) {
|
|
41
|
+
if (!oChange.changeSpecificData) {
|
|
42
|
+
return Promise.reject(new Error("No changeSpecificData available"));
|
|
43
|
+
}
|
|
44
|
+
if (!oChange.changeSpecificData.changeType) {
|
|
45
|
+
return Promise.reject(new Error("No valid changeType"));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (!(oChange.selectorControl instanceof Element)) {
|
|
49
|
+
return Promise.reject(new Error("No valid selectorControl"));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var sControlType = oChange.selectorControl.getMetadata().getName();
|
|
53
|
+
return ChangeHandlerStorage.getChangeHandler(
|
|
54
|
+
oChange.changeSpecificData.changeType,
|
|
55
|
+
sControlType,
|
|
56
|
+
oChange.selectorControl,
|
|
57
|
+
JsControlTreeModifier,
|
|
58
|
+
sLayer
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function getRelevantVariantManagementReference(oAppComponent, oControl, bUseStaticArea) {
|
|
63
|
+
var sVMControlId = VariantUtils.getRelevantVariantManagementControlId(oControl, [], bUseStaticArea);
|
|
64
|
+
return JsControlTreeModifier.getSelector(sVMControlId, oAppComponent).id;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function getAllVariantManagementReferences(oAppComponent) {
|
|
68
|
+
var aVMControlIds = VariantUtils.getAllVariantManagementControlIds(oAppComponent);
|
|
69
|
+
return aVMControlIds.map(function(sVMControlId) {
|
|
70
|
+
return JsControlTreeModifier.getSelector(sVMControlId, oAppComponent).id;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function logAndreject(sMessage) {
|
|
75
|
+
Log.error(sMessage);
|
|
76
|
+
return Promise.reject(sMessage);
|
|
77
|
+
}
|
|
78
|
+
|
|
32
79
|
/**
|
|
33
80
|
* Object containing attributes of a change, along with the control to which this change should be applied.
|
|
34
81
|
*
|
|
@@ -43,7 +90,6 @@ sap.ui.define([
|
|
|
43
90
|
*/
|
|
44
91
|
|
|
45
92
|
var ControlPersonalizationWriteAPI = /** @lends sap.ui.fl.write.api.ControlPersonalizationWriteAPI */{
|
|
46
|
-
|
|
47
93
|
/**
|
|
48
94
|
* Creates personalization changes, adds them to the flex persistence (not yet saved) and applies them to the control.
|
|
49
95
|
*
|
|
@@ -57,12 +103,46 @@ sap.ui.define([
|
|
|
57
103
|
* @ui5-restricted
|
|
58
104
|
*/
|
|
59
105
|
add: function(mPropertyBag) {
|
|
60
|
-
mPropertyBag.changes.
|
|
61
|
-
|
|
106
|
+
if (!mPropertyBag.changes.length) {
|
|
107
|
+
return Promise.resolve([]);
|
|
108
|
+
}
|
|
109
|
+
var oAppComponent = Utils.getAppComponentForControl(mPropertyBag.changes[0].selectorElement || mPropertyBag.changes[0].selectorControl);
|
|
110
|
+
var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
|
|
111
|
+
var oVariantModel = oAppComponent.getModel(Utils.VARIANT_MODEL_NAME);
|
|
112
|
+
var sLayer = Layer.USER;
|
|
113
|
+
var aSuccessfulChanges = [];
|
|
114
|
+
|
|
115
|
+
return mPropertyBag.changes.reduce(function(oPromise, oPersonalizationChange) {
|
|
116
|
+
return oPromise.then(function() {
|
|
117
|
+
oPersonalizationChange.selectorControl = oPersonalizationChange.selectorElement;
|
|
118
|
+
return checkChangeSpecificData(oPersonalizationChange, sLayer);
|
|
119
|
+
}).then(function() {
|
|
120
|
+
if (!mPropertyBag.ignoreVariantManagement) {
|
|
121
|
+
// check for preset variantReference
|
|
122
|
+
if (!oPersonalizationChange.changeSpecificData.variantReference) {
|
|
123
|
+
var sVariantManagementReference = getRelevantVariantManagementReference(oAppComponent, oPersonalizationChange.selectorControl, mPropertyBag.useStaticArea);
|
|
124
|
+
if (sVariantManagementReference) {
|
|
125
|
+
var sCurrentVariantReference = oVariantModel.oData[sVariantManagementReference].currentVariant;
|
|
126
|
+
oPersonalizationChange.changeSpecificData.variantReference = sCurrentVariantReference;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
// delete preset variantReference
|
|
131
|
+
delete oPersonalizationChange.changeSpecificData.variantReference;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
oPersonalizationChange.changeSpecificData = Object.assign(oPersonalizationChange.changeSpecificData, {developerMode: false, layer: sLayer});
|
|
135
|
+
return oFlexController.addChange(oPersonalizationChange.changeSpecificData, oPersonalizationChange.selectorControl);
|
|
136
|
+
}).then(function(oAddedChange) {
|
|
137
|
+
return oFlexController.applyChange(oAddedChange, oPersonalizationChange.selectorControl);
|
|
138
|
+
}).then(function(oAppliedChange) {
|
|
139
|
+
aSuccessfulChanges.push(oAppliedChange);
|
|
140
|
+
}).catch(function(oError) {
|
|
141
|
+
Log.error("A Change was not added successfully. Reason:", oError.message);
|
|
142
|
+
});
|
|
143
|
+
}, Promise.resolve()).then(function() {
|
|
144
|
+
return aSuccessfulChanges;
|
|
62
145
|
});
|
|
63
|
-
// old API is still using the old name
|
|
64
|
-
mPropertyBag.controlChanges = mPropertyBag.changes;
|
|
65
|
-
return OldControlPersonalizationAPI.addPersonalizationChanges(mPropertyBag);
|
|
66
146
|
},
|
|
67
147
|
|
|
68
148
|
/**
|
|
@@ -78,8 +158,22 @@ sap.ui.define([
|
|
|
78
158
|
* @ui5-restricted
|
|
79
159
|
*/
|
|
80
160
|
reset: function(mPropertyBag) {
|
|
81
|
-
mPropertyBag.selectors
|
|
82
|
-
|
|
161
|
+
if (!mPropertyBag.selectors || mPropertyBag.selectors.length === 0) {
|
|
162
|
+
return logAndreject("At least one control ID has to be provided as a parameter");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var oAppComponent = mPropertyBag.selectors[0].appComponent || Utils.getAppComponentForControl(mPropertyBag.selectors[0]);
|
|
166
|
+
if (!oAppComponent) {
|
|
167
|
+
return logAndreject("App Component could not be determined");
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
var aSelectorIds = mPropertyBag.selectors.map(function (vControl) {
|
|
171
|
+
var sControlId = vControl.id || vControl.getId();
|
|
172
|
+
var sLocalId = oAppComponent.getLocalId(sControlId);
|
|
173
|
+
return sLocalId || sControlId;
|
|
174
|
+
});
|
|
175
|
+
var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
|
|
176
|
+
return oFlexController.resetChanges(Layer.USER, undefined, oAppComponent, aSelectorIds, mPropertyBag.changeTypes);
|
|
83
177
|
},
|
|
84
178
|
|
|
85
179
|
/**
|
|
@@ -126,7 +220,17 @@ sap.ui.define([
|
|
|
126
220
|
*/
|
|
127
221
|
save: function(mPropertyBag) {
|
|
128
222
|
var oAppComponent = mPropertyBag.selector.appComponent || Utils.getAppComponentForControl(mPropertyBag.selector);
|
|
129
|
-
|
|
223
|
+
if (!oAppComponent) {
|
|
224
|
+
return logAndreject("App Component could not be determined");
|
|
225
|
+
}
|
|
226
|
+
var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
|
|
227
|
+
var oVariantModel = oAppComponent.getModel(Utils.VARIANT_MODEL_NAME);
|
|
228
|
+
var aVariantManagementReferences = getAllVariantManagementReferences(oAppComponent);
|
|
229
|
+
return oFlexController.saveSequenceOfDirtyChanges(mPropertyBag.changes, oAppComponent)
|
|
230
|
+
.then(function(oResponse) {
|
|
231
|
+
oVariantModel.checkDirtyStateForControlModels(aVariantManagementReferences);
|
|
232
|
+
return oResponse;
|
|
233
|
+
});
|
|
130
234
|
},
|
|
131
235
|
|
|
132
236
|
/**
|
|
@@ -101,6 +101,7 @@ sap.ui.define([
|
|
|
101
101
|
/**
|
|
102
102
|
* Checks if key user has also the admin role to enable the translation button
|
|
103
103
|
*
|
|
104
|
+
* @param {sap.ui.fl.Layer} sLayer - Current layer
|
|
104
105
|
* @returns {Promise<boolean>} Resolves to a boolean indicating if they keyuser is also admin
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
*
|
|
25
25
|
* @namespace sap.ui.fl.write.api.FieldExtensibility
|
|
26
26
|
* @since 1.87
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.97.0
|
|
28
28
|
* @private
|
|
29
29
|
* @ui5-restricted sap.ui.fl, sap.ui.rta
|
|
30
30
|
*/
|
|
@@ -68,6 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* Until this function is called again the control does not change and information can be cached.
|
|
69
69
|
*
|
|
70
70
|
* @param {sap.ui.base.ManagedObject} oControl - Control instance that was selected
|
|
71
|
+
* @returns {Promise} Resolves with the return value of the function in the implementation
|
|
71
72
|
*/
|
|
72
73
|
FieldExtensibility.onControlSelected = function(oControl) {
|
|
73
74
|
return callFunctionInImplementation("onControlSelected", oControl);
|
|
@@ -97,6 +98,7 @@ sap.ui.define([
|
|
|
97
98
|
* Removes the flag that identifies the service as outdated.
|
|
98
99
|
*
|
|
99
100
|
* @param {string|map} vServiceInfo - service uri or service info map containing <code>serviceName</code>, <code>serviceVersion</code> and <code>serviceType</code>
|
|
101
|
+
* @returns {Promise} Resolves with the return value of the function in the implementation
|
|
100
102
|
*/
|
|
101
103
|
FieldExtensibility.setServiceValid = function(vServiceInfo) {
|
|
102
104
|
return callFunctionInImplementation("setServiceValid", vServiceInfo);
|
|
@@ -105,7 +107,7 @@ sap.ui.define([
|
|
|
105
107
|
/**
|
|
106
108
|
* Retrieves the necessary texts.
|
|
107
109
|
*
|
|
108
|
-
* @returns {object} - Object with <code>tooltip</code> and <code>headerText</code>
|
|
110
|
+
* @returns {Promise<object>} - Object with <code>tooltip</code> and <code>headerText</code>
|
|
109
111
|
*/
|
|
110
112
|
FieldExtensibility.getTexts = function() {
|
|
111
113
|
return callFunctionInImplementation("getTexts");
|
|
@@ -114,7 +116,7 @@ sap.ui.define([
|
|
|
114
116
|
/**
|
|
115
117
|
* Retrieves the extension data.
|
|
116
118
|
*
|
|
117
|
-
* @returns {
|
|
119
|
+
* @returns {Promise<object>} All necessary information about the extension data. This will be passed to <code>FieldExtensibility.onTriggerCreateExtensionData</code>
|
|
118
120
|
*/
|
|
119
121
|
FieldExtensibility.getExtensionData = function() {
|
|
120
122
|
// TODO: currently the return value must be an object that includes .BusinessContexts in order to be shown in the Dialog.
|
|
@@ -126,6 +128,8 @@ sap.ui.define([
|
|
|
126
128
|
* Handler for the button to trigger extension data creation.
|
|
127
129
|
*
|
|
128
130
|
* @param {object} oExtensibilityInfo - Information about the extension data. Should be the return value of <code>FieldExtensibility.getExtensionData</code>
|
|
131
|
+
* @param {string} sRtaStyleClassName - CSS style class that should be added to any dialogs
|
|
132
|
+
* @returns {Promise} Resolves with the return value of the function in the implementation
|
|
129
133
|
*/
|
|
130
134
|
FieldExtensibility.onTriggerCreateExtensionData = function(oExtensibilityInfo, sRtaStyleClassName) {
|
|
131
135
|
return callFunctionInImplementation("onTriggerCreateExtensionData", oExtensibilityInfo, sRtaStyleClassName);
|
|
@@ -234,6 +234,7 @@ sap.ui.define([
|
|
|
234
234
|
* @param {object} mPropertyBag - Object with parameters as properties
|
|
235
235
|
* @param {sap.ui.fl.Change} mPropertyBag.change - Change instance
|
|
236
236
|
* @param {sap.ui.fl.Selector} mPropertyBag.selector - To retrieve the associated flex persistence
|
|
237
|
+
* @returns {sap.ui.fl.Change} The change instance
|
|
237
238
|
*
|
|
238
239
|
* @private
|
|
239
240
|
* @ui5-restricted
|
|
@@ -322,7 +323,7 @@ sap.ui.define([
|
|
|
322
323
|
* @param {string} [mPropertyBag.siteId] - ID of the site belonging to the current running component
|
|
323
324
|
* @param {string} [mPropertyBag.layer] - Specifies a single layer for loading change; if this parameter is set, the max layer filtering is not applied
|
|
324
325
|
* @param {boolean} [mPropertyBag.ignoreMaxLayerParameter] - Indicates that changes are to be loaded without layer filtering
|
|
325
|
-
* @param {boolean} [mPropertyBag.
|
|
326
|
+
* @param {boolean} [mPropertyBag.includeCtrlVariants] - Flag if control variant changes should be included
|
|
326
327
|
* @param {boolean} [mPropertyBag.includeDirtyChanges] - Flag if dirty UI changes should be included
|
|
327
328
|
* @param {string} [mPropertyBag.cacheKey] - Key to validate the cache entry stored on client side
|
|
328
329
|
* @param {boolean} [mPropertyBag.invalidateCache] - Indicates whether the cache is to be invalidated
|
|
@@ -92,6 +92,7 @@ sap.ui.define([
|
|
|
92
92
|
* @param {sap.ui.fl.Layer} [mPropertyBag.layer] - Layer in which the variant removal takes place
|
|
93
93
|
* @param {boolean} [mPropertyBag.changeSpecificData.isUserDependent] - Flag if the variant is personalization only
|
|
94
94
|
* this either updates the variant from the layer or writes a change to that layer.
|
|
95
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.CompVariant} The updated variant
|
|
95
96
|
* @private
|
|
96
97
|
* @ui5-restricted sap.ui.rta.command, sap.ui.comp.smartvariants.SmartVariantManagement
|
|
97
98
|
*/
|
|
@@ -112,6 +113,7 @@ sap.ui.define([
|
|
|
112
113
|
* @param {string} mPropertyBag.id - ID of the variant
|
|
113
114
|
* @param {sap.ui.fl.Layer} mPropertyBag.layer - Layer in which the variant removal takes place;
|
|
114
115
|
* this either removes the variant from the layer or writes a change to that layer.
|
|
116
|
+
* @returns {sap.ui.fl.apply._internal.flexObjects.CompVariant} The removed variant
|
|
115
117
|
* @private
|
|
116
118
|
* @ui5-restricted sap.ui.rta.command
|
|
117
119
|
*/
|
package/ui5.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
specVersion: "2.
|
|
2
|
+
specVersion: "2.4"
|
|
3
3
|
type: library
|
|
4
4
|
metadata:
|
|
5
5
|
name: sap.ui.fl
|
|
@@ -10,3 +10,134 @@ metadata:
|
|
|
10
10
|
resources:
|
|
11
11
|
configuration:
|
|
12
12
|
propertiesFileSourceEncoding: ISO-8859-1
|
|
13
|
+
builder:
|
|
14
|
+
bundles:
|
|
15
|
+
- bundleDefinition:
|
|
16
|
+
name: sap/ui/fl/library-preload.js
|
|
17
|
+
sections:
|
|
18
|
+
- mode: provided
|
|
19
|
+
filters:
|
|
20
|
+
- ui5loader-autoconfig.js
|
|
21
|
+
- sap/base/
|
|
22
|
+
- sap/m/
|
|
23
|
+
- sap/ui/Device.js
|
|
24
|
+
- sap/ui/base/
|
|
25
|
+
- sap/ui/core/
|
|
26
|
+
- sap/ui/dom/
|
|
27
|
+
- sap/ui/events/
|
|
28
|
+
- sap/ui/layout/
|
|
29
|
+
- sap/ui/model/
|
|
30
|
+
- sap/ui/performance/
|
|
31
|
+
- sap/ui/thirdparty/
|
|
32
|
+
- sap/ui/unified/
|
|
33
|
+
- sap/ui/util/
|
|
34
|
+
- mode: preload
|
|
35
|
+
name: sap/ui/fl/library-preload
|
|
36
|
+
filters:
|
|
37
|
+
- sap/ui/fl/changeHandler/
|
|
38
|
+
- sap/ui/fl/library.js
|
|
39
|
+
- sap/ui/fl/manifest.json
|
|
40
|
+
- sap/ui/fl/util/ManagedObjectModel.js
|
|
41
|
+
- sap/ui/fl/apply/_internal/DelegateMediator.js
|
|
42
|
+
- sap/ui/fl/apply/api/DelegateMediatorAPI.js
|
|
43
|
+
- sap/ui/fl/codeExt/CodeExtManager.js
|
|
44
|
+
- sap/ui/fl/library-dbg.support.js
|
|
45
|
+
- sap/ui/fl/registry/SimpleChanges.js
|
|
46
|
+
- sap/ui/fl/interfaces/Delegate.js
|
|
47
|
+
- sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js
|
|
48
|
+
- sap/ui/fl/interfaces/BaseLoadConnector.js
|
|
49
|
+
resolve: true
|
|
50
|
+
- mode: bundleInfo
|
|
51
|
+
name: sap/ui/fl/library-preload-apply.js
|
|
52
|
+
filters:
|
|
53
|
+
- sap/ui/fl/apply/
|
|
54
|
+
- sap/ui/fl/transport/TransportDialog.js
|
|
55
|
+
- sap/ui/fl/transport/TransportSelection.js
|
|
56
|
+
- sap/ui/fl/util/IFrame.flexibility.js
|
|
57
|
+
resolve: true
|
|
58
|
+
- mode: bundleInfo
|
|
59
|
+
name: sap/ui/fl/library-preload-write.js
|
|
60
|
+
filters:
|
|
61
|
+
- sap/ui/fl/write/
|
|
62
|
+
- sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js
|
|
63
|
+
- sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js
|
|
64
|
+
- sap/ui/fl/FakeLrepConnectorLocalStorage.js
|
|
65
|
+
- sap/ui/fl/FakeLrepConnectorSessionStorage.js
|
|
66
|
+
- sap/ui/fl/FakeLrepLocalStorage.js
|
|
67
|
+
- sap/ui/fl/FakeLrepConnector.js
|
|
68
|
+
- sap/ui/fl/util/resolveBinding.js
|
|
69
|
+
resolve: true
|
|
70
|
+
bundleOptions:
|
|
71
|
+
optimize: true
|
|
72
|
+
usePredefineCalls: true
|
|
73
|
+
- bundleDefinition:
|
|
74
|
+
name: sap/ui/fl/library-preload-apply.js
|
|
75
|
+
sections:
|
|
76
|
+
- mode: provided
|
|
77
|
+
filters:
|
|
78
|
+
- sap/ui/fl/library.js
|
|
79
|
+
- sap/ui/fl/changeHandler/
|
|
80
|
+
- ui5loader-autoconfig.js
|
|
81
|
+
- sap/base/
|
|
82
|
+
- sap/m/
|
|
83
|
+
- sap/ui/Device.js
|
|
84
|
+
- sap/ui/base/
|
|
85
|
+
- sap/ui/core/
|
|
86
|
+
- sap/ui/dom/
|
|
87
|
+
- sap/ui/events/
|
|
88
|
+
- sap/ui/layout/
|
|
89
|
+
- sap/ui/model/
|
|
90
|
+
- sap/ui/performance/
|
|
91
|
+
- sap/ui/thirdparty/
|
|
92
|
+
- sap/ui/unified/
|
|
93
|
+
- sap/ui/util/
|
|
94
|
+
resolve: true
|
|
95
|
+
- mode: preload
|
|
96
|
+
name: sap/ui/fl/library-preload-apply
|
|
97
|
+
filters:
|
|
98
|
+
- sap/ui/fl/apply/
|
|
99
|
+
- sap/ui/fl/transport/TransportDialog.js
|
|
100
|
+
- sap/ui/fl/transport/TransportSelection.js
|
|
101
|
+
- sap/ui/fl/util/IFrame.flexibility.js
|
|
102
|
+
resolve: true
|
|
103
|
+
bundleOptions:
|
|
104
|
+
optimize: true
|
|
105
|
+
usePredefineCalls: true
|
|
106
|
+
- bundleDefinition:
|
|
107
|
+
name: sap/ui/fl/library-preload-write.js
|
|
108
|
+
sections:
|
|
109
|
+
- mode: provided
|
|
110
|
+
filters:
|
|
111
|
+
- sap/ui/fl/library.js
|
|
112
|
+
- sap/ui/fl/apply/
|
|
113
|
+
- sap/ui/fl/changeHandler/
|
|
114
|
+
- ui5loader-autoconfig.js
|
|
115
|
+
- sap/base/
|
|
116
|
+
- sap/m/
|
|
117
|
+
- sap/ui/Device.js
|
|
118
|
+
- sap/ui/base/
|
|
119
|
+
- sap/ui/core/
|
|
120
|
+
- sap/ui/dom/
|
|
121
|
+
- sap/ui/events/
|
|
122
|
+
- sap/ui/layout/
|
|
123
|
+
- sap/ui/model/
|
|
124
|
+
- sap/ui/performance/
|
|
125
|
+
- sap/ui/thirdparty/
|
|
126
|
+
- sap/ui/unified/
|
|
127
|
+
- sap/ui/util/
|
|
128
|
+
resolve: true
|
|
129
|
+
- mode: preload
|
|
130
|
+
name: sap/ui/fl/library-preload-write
|
|
131
|
+
filters:
|
|
132
|
+
- sap/ui/fl/write/
|
|
133
|
+
- sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js
|
|
134
|
+
- sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js
|
|
135
|
+
- sap/ui/fl/FakeLrepConnectorLocalStorage.js
|
|
136
|
+
- sap/ui/fl/FakeLrepConnectorSessionStorage.js
|
|
137
|
+
- sap/ui/fl/FakeLrepLocalStorage.js
|
|
138
|
+
- sap/ui/fl/FakeLrepConnector.js
|
|
139
|
+
- sap/ui/fl/util/resolveBinding.js
|
|
140
|
+
resolve: true
|
|
141
|
+
bundleOptions:
|
|
142
|
+
optimize: true
|
|
143
|
+
usePredefineCalls: true
|