@openui5/sap.ui.fl 1.127.0 → 1.128.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/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/ChangePersistence.js +37 -47
- 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 +11 -9
- 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 +17 -12
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +3 -1
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +3 -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/AddTechnicalAttributes.js +75 -0
- 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 +76 -0
- 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 +44 -0
- 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 +56 -9
- 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 +66 -0
- 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 +12 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +41 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +39 -39
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +3 -0
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +9 -2
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
- package/src/sap/ui/fl/apply/_internal/preprocessors/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 +13 -4
- 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/Utils.js +19 -0
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/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/StorageResultMerger.js +1 -0
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +43 -43
- package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +9 -59
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
- package/src/sap/ui/fl/support/_internal/getFlexObjectInfos.js +53 -0
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
- package/src/sap/ui/fl/support/api/SupportAPI.js +56 -5
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +13 -2
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +23 -14
- package/src/sap/ui/fl/variants/VariantModel.js +7 -6
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +12 -12
- package/src/sap/ui/fl/write/_internal/SaveAs.js +11 -12
- package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +8 -68
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +65 -16
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -0
- 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/{FlexObjectState.js → FlexObjectManager.js} +26 -56
- package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +9 -6
- 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/ContextBasedAdaptationsAPI.js +6 -6
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +4 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +3 -4
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +8 -8
- package/src/sap/ui/fl/write/api/TranslationAPI.js +6 -6
- package/src/sap/ui/fl/write/api/VersionsAPI.js +34 -9
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/ChangePersistenceFactory",
|
|
9
8
|
"sap/ui/fl/initial/api/Version",
|
|
10
9
|
"sap/ui/fl/initial/_internal/FlexInfoSession",
|
|
11
10
|
"sap/ui/fl/registry/Settings",
|
|
@@ -13,7 +12,6 @@ sap.ui.define([
|
|
|
13
12
|
"sap/ui/model/json/JSONModel",
|
|
14
13
|
"sap/ui/model/BindingMode"
|
|
15
14
|
], function(
|
|
16
|
-
ChangePersistenceFactory,
|
|
17
15
|
Version,
|
|
18
16
|
FlexInfoSession,
|
|
19
17
|
Settings,
|
|
@@ -97,14 +95,12 @@ sap.ui.define([
|
|
|
97
95
|
oVersion.type = Version.Type.Draft;
|
|
98
96
|
oVersion.isPublished = false;
|
|
99
97
|
aDraftFilenames = oVersion.filenames;
|
|
98
|
+
} else if (sActiveVersion === Version.Number.Original) {
|
|
99
|
+
// no active version found yet; the first non-draft version is always the active version
|
|
100
|
+
oVersion.type = Version.Type.Active;
|
|
101
|
+
sActiveVersion = oVersion.version;
|
|
100
102
|
} else {
|
|
101
|
-
|
|
102
|
-
// no active version found yet; the first non-draft version is always the active version
|
|
103
|
-
oVersion.type = Version.Type.Active;
|
|
104
|
-
sActiveVersion = oVersion.version;
|
|
105
|
-
} else {
|
|
106
|
-
oVersion.type = Version.Type.Inactive;
|
|
107
|
-
}
|
|
103
|
+
oVersion.type = Version.Type.Inactive;
|
|
108
104
|
}
|
|
109
105
|
});
|
|
110
106
|
|
|
@@ -141,41 +137,6 @@ sap.ui.define([
|
|
|
141
137
|
|
|
142
138
|
return oVersionsModel;
|
|
143
139
|
}
|
|
144
|
-
// TODO: the handling should move to the FlexState as soon as it is ready
|
|
145
|
-
function _removeDirtyChanges(mPropertyBag, oDirtyChangeInfo) {
|
|
146
|
-
// remove all dirty changes
|
|
147
|
-
var aDirtyChanges = [];
|
|
148
|
-
var aChangePersistences = oDirtyChangeInfo.changePersistences;
|
|
149
|
-
aChangePersistences.forEach(function(oChangePersistence) {
|
|
150
|
-
aDirtyChanges = oChangePersistence.getDirtyChanges().concat();
|
|
151
|
-
oChangePersistence.deleteChanges(aDirtyChanges, true);
|
|
152
|
-
});
|
|
153
|
-
return aDirtyChanges.length > 0;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function _getDirtyChangesInfo(mPropertyBag) {
|
|
157
|
-
var oDirtyChangesInfo = {
|
|
158
|
-
dirtyChangesExist: false,
|
|
159
|
-
changePersistences: []
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
if (mPropertyBag.reference) {
|
|
163
|
-
var oChangePersistenceForAppDescriptorChanges =
|
|
164
|
-
ChangePersistenceFactory.getChangePersistenceForComponent(mPropertyBag.reference);
|
|
165
|
-
if (oChangePersistenceForAppDescriptorChanges.getDirtyChanges().length > 0) {
|
|
166
|
-
oDirtyChangesInfo.dirtyChangesExist = true;
|
|
167
|
-
oDirtyChangesInfo.changePersistences.push(oChangePersistenceForAppDescriptorChanges);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
if (mPropertyBag.nonNormalizedReference) {
|
|
171
|
-
var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(mPropertyBag.nonNormalizedReference);
|
|
172
|
-
if (oChangePersistence.getDirtyChanges().length > 0) {
|
|
173
|
-
oDirtyChangesInfo.dirtyChangesExist = true;
|
|
174
|
-
oDirtyChangesInfo.changePersistences.push(oChangePersistence);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return oDirtyChangesInfo;
|
|
178
|
-
}
|
|
179
140
|
|
|
180
141
|
function _doesDraftExistInVersions(aVersions) {
|
|
181
142
|
return aVersions.some(function(oVersion) {
|
|
@@ -198,7 +159,7 @@ sap.ui.define([
|
|
|
198
159
|
*
|
|
199
160
|
* @namespace sap.ui.fl.write._internal.Versions
|
|
200
161
|
* @since 1.74
|
|
201
|
-
* @version 1.
|
|
162
|
+
* @version 1.128.0
|
|
202
163
|
* @private
|
|
203
164
|
* @ui5-restricted sap.ui.fl
|
|
204
165
|
*/
|
|
@@ -255,11 +216,6 @@ sap.ui.define([
|
|
|
255
216
|
if (!Versions.hasVersionsModel(mPropertyBag)) {
|
|
256
217
|
throw Error(`Versions Model for reference '${sReference}' and layer '${sLayer}' were not initialized.`);
|
|
257
218
|
}
|
|
258
|
-
|
|
259
|
-
var oDirtyChangesInfo = _getDirtyChangesInfo(mPropertyBag);
|
|
260
|
-
if (oDirtyChangesInfo.dirtyChangesExist) {
|
|
261
|
-
_mInstances[sReference][sLayer].updateDraftVersion(mPropertyBag);
|
|
262
|
-
}
|
|
263
219
|
return _mInstances[sReference][sLayer];
|
|
264
220
|
};
|
|
265
221
|
|
|
@@ -324,7 +280,6 @@ sap.ui.define([
|
|
|
324
280
|
*
|
|
325
281
|
* @param {object} mPropertyBag - Property Bag
|
|
326
282
|
* @param {string} mPropertyBag.reference - ID of the application for which the versions are requested (this reference must not contain the ".Component" suffix)
|
|
327
|
-
* @param {string} mPropertyBag.nonNormalizedReference - ID of the application for which the versions are requested
|
|
328
283
|
* @param {string} mPropertyBag.layer - Layer for which the versions should be retrieved
|
|
329
284
|
* @param {string} mPropertyBag.title - Title of the to be activated version
|
|
330
285
|
* @param {string} mPropertyBag.appComponent - Application Component
|
|
@@ -344,16 +299,6 @@ sap.ui.define([
|
|
|
344
299
|
}
|
|
345
300
|
mPropertyBag.version = mPropertyBag.displayedVersion;
|
|
346
301
|
|
|
347
|
-
var oDirtyChangeInfo = _getDirtyChangesInfo(mPropertyBag);
|
|
348
|
-
var aChangePersistences = oDirtyChangeInfo.changePersistences;
|
|
349
|
-
var bDirtyChangesExists = aChangePersistences.some(function(oChangePersistence) {
|
|
350
|
-
return oChangePersistence.getDirtyChanges().length > 0;
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
if (bDirtyChangesExists) {
|
|
354
|
-
return Promise.reject("unsaved changes exists");
|
|
355
|
-
}
|
|
356
|
-
|
|
357
302
|
return Storage.versions.activate(mPropertyBag)
|
|
358
303
|
.then(function(oVersion) {
|
|
359
304
|
aVersions.forEach(function(oVersionEntry) {
|
|
@@ -377,14 +322,12 @@ sap.ui.define([
|
|
|
377
322
|
*
|
|
378
323
|
* @param {object} mPropertyBag - Property Bag
|
|
379
324
|
* @param {string} mPropertyBag.reference - ID of the application for which the versions are requested (this reference must not contain the ".Component" suffix)
|
|
380
|
-
* @param {string} mPropertyBag.nonNormalizedReference - ID of the application for which the versions are requested
|
|
381
325
|
* @param {string} mPropertyBag.layer - Layer for which the versions should be retrieved
|
|
382
326
|
* @returns {Promise<object>} Promise resolving to an object to indicate if a discarding took place on backend side and/or dirty changes were discarded;
|
|
383
327
|
* rejects if an error occurs or the layer does not support draft handling
|
|
384
328
|
*/
|
|
385
329
|
Versions.discardDraft = function(mPropertyBag) {
|
|
386
330
|
var oModel = Versions.getVersionsModel(mPropertyBag);
|
|
387
|
-
var oDirtyChangesInfo = _getDirtyChangesInfo(mPropertyBag);
|
|
388
331
|
var bBackendDraftExists = oModel.getProperty("/backendDraft");
|
|
389
332
|
var oDiscardPromise = bBackendDraftExists ? Storage.versions.discardDraft(mPropertyBag) : Promise.resolve();
|
|
390
333
|
|
|
@@ -392,12 +335,9 @@ sap.ui.define([
|
|
|
392
335
|
var aVersions = oModel.getProperty("/versions");
|
|
393
336
|
aVersions.shift();
|
|
394
337
|
_updateVersionModelWhenDiscardOrActivate(oModel, oModel.getProperty("/activeVersion"));
|
|
395
|
-
|
|
396
|
-
// we remove dirty changes only after successful DELETE request
|
|
397
|
-
var bDirtyChangesRemoved = _removeDirtyChanges(mPropertyBag, oDirtyChangesInfo);
|
|
338
|
+
|
|
398
339
|
return {
|
|
399
|
-
backendChangesDiscarded: bBackendDraftExists
|
|
400
|
-
dirtyChangesDiscarded: bDirtyChangesRemoved
|
|
340
|
+
backendChangesDiscarded: bBackendDraftExists
|
|
401
341
|
};
|
|
402
342
|
});
|
|
403
343
|
};
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @namespace
|
|
34
34
|
* @alias sap.ui.fl.write._internal.appVariant.AppVariantInlineChangeFactory
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.128.0
|
|
37
37
|
* @private
|
|
38
38
|
* @ui5-restricted sap.ui.rta, smart business
|
|
39
39
|
*/
|
|
@@ -967,26 +967,75 @@ sap.ui.define([
|
|
|
967
967
|
};
|
|
968
968
|
|
|
969
969
|
/**
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
970
|
+
* Creates an inline change of change type <code>appdescr_fe_changePageConfiguration</code>.
|
|
971
|
+
*
|
|
972
|
+
* @param {object} mPropertyBag Parameters of the change type
|
|
973
|
+
* @param {string} mPropertyBag.changeType Inline change type of an app variant
|
|
974
|
+
* @param {object} mPropertyBag.content Content of an inline change
|
|
975
|
+
* @param {object} mPropertyBag.content.page The ID of the page for which the configuration is to be changed.
|
|
976
|
+
* @param {object} mPropertyBag.content.entityPropertyChange Entity property change
|
|
977
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.propertyPath The path in the page settings for which the configuration is to be changed.
|
|
978
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.operation Operation (currently only UPSERT supported)
|
|
979
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.propertyValue The new value of the configuration. This could be a plain value like a string, or a Boolean, or a structured object.
|
|
980
|
+
*
|
|
981
|
+
* @return {Promise} Resolving when creating the app variant inline change was successful (without back end access)
|
|
982
|
+
*
|
|
983
|
+
* @private
|
|
984
|
+
*/
|
|
985
985
|
AppVariantInlineChangeFactory.create_fe_changePageConfiguration = function(mPropertyBag) {
|
|
986
986
|
Utils.checkParameterAndType(mPropertyBag.content, "page", "string");
|
|
987
987
|
Utils.checkEntityPropertyChange(mPropertyBag.content);
|
|
988
988
|
return _createAppVariantInlineChange(mPropertyBag);
|
|
989
989
|
};
|
|
990
990
|
|
|
991
|
+
/**
|
|
992
|
+
* Creates an inline change of change type <code>appdescr_ui_generic_app_changePageConfiguration</code>.
|
|
993
|
+
*
|
|
994
|
+
* @param {object} mPropertyBag Parameters of the change type
|
|
995
|
+
* @param {string} mPropertyBag.changeType Inline change type of an app variant
|
|
996
|
+
* @param {object} mPropertyBag.content Content of an inline change
|
|
997
|
+
* @param {object} mPropertyBag.content.parentPage Source page details
|
|
998
|
+
* @param {string} mPropertyBag.content.parentPage.component The ID of the page for which the configuration is to be changed.
|
|
999
|
+
* @param {string} mPropertyBag.content.parentPage.entitySet Entity Set of the page.
|
|
1000
|
+
* @param {object} mPropertyBag.content.entityPropertyChange Entity property change
|
|
1001
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.propertyPath The path in the page settings for which the configuration is to be changed.
|
|
1002
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.operation Operation (currently only UPSERT supported)
|
|
1003
|
+
* @param {object} mPropertyBag.content.entityPropertyChange.propertyValue The new value of the configuration. This could be a plain value like a string, or a Boolean, or a structured object.
|
|
1004
|
+
*
|
|
1005
|
+
* @return {Promise} Resolving when creating the app variant inline change was successful (without back end access)
|
|
1006
|
+
*
|
|
1007
|
+
* @private
|
|
1008
|
+
*/
|
|
1009
|
+
AppVariantInlineChangeFactory.create_ui_generic_app_changePageConfiguration = function(mPropertyBag) {
|
|
1010
|
+
Utils.checkParameterAndType(mPropertyBag.content, "parentPage", "object");
|
|
1011
|
+
Utils.checkEntityPropertyChange(mPropertyBag.content);
|
|
1012
|
+
return _createAppVariantInlineChange(mPropertyBag);
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Adds a new object page to the manifest with change type <code>appdescr_ui_generic_app_addNewObjectPage</code>.
|
|
1017
|
+
*
|
|
1018
|
+
* @param {object} mPropertyBag - Contains the Page details which the user would like to add for the newly created node
|
|
1019
|
+
* @param {string} mPropertyBag.changeType - The app descriptor change type name
|
|
1020
|
+
* @param {object} mPropertyBag.content - Content of the change
|
|
1021
|
+
* @param {object} mPropertyBag.content.parentPage - Source page details
|
|
1022
|
+
* @param {string} mPropertyBag.content.parentPage.component - Source page component where the new page will be added
|
|
1023
|
+
* @param {string} mPropertyBag.content.parentPage.entitySet - Source page entityset name where the new page will be added
|
|
1024
|
+
* @param {object} mPropertyBag.content.childPage - Newly being added page's details
|
|
1025
|
+
* @param {string} mPropertyBag.content.childPage.id - PageId of the new page being added
|
|
1026
|
+
* @param {object} mPropertyBag.content.childPage.definition - Definition of the new page being added
|
|
1027
|
+
* @param {string} mPropertyBag.content.childPage.definition.navigationProperty - Navigation property of the new page being added
|
|
1028
|
+
* @param {string} mPropertyBag.content.childPage.definition.entitySet - Entityset name of the new page being added
|
|
1029
|
+
*
|
|
1030
|
+
* @returns {object} Resolving when creating the app variant inline change was successful (without back end access)
|
|
1031
|
+
*
|
|
1032
|
+
* @private
|
|
1033
|
+
*/
|
|
1034
|
+
AppVariantInlineChangeFactory.create_ui_generic_app_addNewObjectPage = function(mPropertyBag) {
|
|
1035
|
+
Utils.checkParameterAndType(mPropertyBag.content, "parentPage", "object");
|
|
1036
|
+
Utils.checkChildPageChange(mPropertyBag.content);
|
|
1037
|
+
return _createAppVariantInlineChange(mPropertyBag);
|
|
1038
|
+
};
|
|
1039
|
+
|
|
991
1040
|
return AppVariantInlineChangeFactory;
|
|
992
1041
|
});
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Connector for saving and deleting data from SAPUI5 Flexibility KeyUser service - including personalization.
|
|
26
26
|
*
|
|
27
27
|
* @namespace sap.ui.fl.write._internal.connectors.BtpServiceConnector
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.128.0
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.ui.fl.write._internal.Storage
|
|
31
31
|
*/
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @class
|
|
18
18
|
* @namespace sap.ui.fl.write._internal.fieldExtensibility.ABAPExtensibilityVariant
|
|
19
19
|
* @since 1.87
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.128.0
|
|
21
21
|
* @public
|
|
22
22
|
* @param {sap.ui.base.ManagedObject} oControl - Control to add extensions
|
|
23
23
|
*/
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
* @namespace sap.ui.fl.write._internal.fieldExtensibility.ABAPExtensibilityVariantFactory
|
|
116
116
|
* @since 1.87.0
|
|
117
117
|
* @author SAP SE
|
|
118
|
-
* @version 1.
|
|
118
|
+
* @version 1.128.0
|
|
119
119
|
* @private
|
|
120
120
|
*/
|
|
121
121
|
var ABAPExtensibilityVariantFactory = {};
|
package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js
CHANGED
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
*
|
|
49
49
|
* @namespace sap.ui.fl.write._internal.fieldExtensibility.SingleTenantABAPExtensibilityVariant
|
|
50
50
|
* @since 1.87
|
|
51
|
-
* @version 1.
|
|
51
|
+
* @version 1.128.0
|
|
52
52
|
* @public
|
|
53
53
|
*/
|
|
54
54
|
const SingleTenantABAPExtensibilityVariant = ABAPExtensibilityVariant.extend(sNamespace, {
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* @extends sap.ui.base.ManagedObject
|
|
83
83
|
* @alias sap.ui.fl.write._internal.fieldExtensibility.cap.dialog.CustomFieldCAPDialog
|
|
84
84
|
* @author SAP SE
|
|
85
|
-
* @version 1.
|
|
85
|
+
* @version 1.128.0
|
|
86
86
|
* @since 1.93
|
|
87
87
|
* @private
|
|
88
88
|
* @ui5-restricted
|