@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.
Files changed (165) hide show
  1. package/package.json +3 -3
  2. package/src/sap/ui/fl/.library +1 -1
  3. package/src/sap/ui/fl/ChangePersistence.js +37 -47
  4. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  5. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
  6. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
  7. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  8. package/src/sap/ui/fl/FlexController.js +11 -9
  9. package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
  10. package/src/sap/ui/fl/LayerUtils.js +1 -1
  11. package/src/sap/ui/fl/Utils.js +17 -12
  12. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  13. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +3 -1
  14. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  15. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
  16. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  17. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -1
  18. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +3 -1
  19. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  20. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +1 -1
  21. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddTechnicalAttributes.js +75 -0
  22. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeOutbound.js +76 -0
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetAch.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetDescription.js +44 -0
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetCloudDevAdaptationStatus.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +56 -9
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/extensionPoint/Registry.js +1 -1
  44. package/src/sap/ui/fl/apply/_internal/flexObjects/AnnotationChange.js +66 -0
  45. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -1
  46. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +1 -1
  47. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
  48. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -1
  49. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +1 -1
  50. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +12 -1
  51. package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +1 -1
  53. package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +1 -1
  54. package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +41 -1
  55. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +39 -39
  56. package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +3 -0
  57. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
  59. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  60. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
  61. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
  62. package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +1 -1
  63. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +9 -2
  64. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +2 -2
  65. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
  66. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +1 -1
  67. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
  68. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -1
  69. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
  70. package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
  71. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  72. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  73. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  74. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +13 -4
  76. package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
  77. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  78. package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
  79. package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
  81. package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
  82. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  83. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  84. package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
  85. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
  86. package/src/sap/ui/fl/descriptorRelated/Utils.js +19 -0
  87. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  88. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  89. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  90. package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +1 -1
  91. package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
  92. package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +1 -1
  93. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -0
  94. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -1
  95. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
  96. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
  97. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -1
  98. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
  99. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  100. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  101. package/src/sap/ui/fl/library.js +43 -43
  102. package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +9 -59
  103. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
  104. package/src/sap/ui/fl/support/_internal/getFlexObjectInfos.js +53 -0
  105. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
  106. package/src/sap/ui/fl/support/api/SupportAPI.js +56 -5
  107. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
  108. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
  109. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
  110. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
  111. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
  112. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
  113. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  114. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  115. package/src/sap/ui/fl/util/IFrame.js +1 -1
  116. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  117. package/src/sap/ui/fl/util/changePropertyValueByPath.js +13 -2
  118. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  119. package/src/sap/ui/fl/variants/VariantManagement.js +23 -14
  120. package/src/sap/ui/fl/variants/VariantModel.js +7 -6
  121. package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +12 -12
  122. package/src/sap/ui/fl/write/_internal/SaveAs.js +11 -12
  123. package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
  124. package/src/sap/ui/fl/write/_internal/Versions.js +8 -68
  125. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
  126. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  127. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  128. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +65 -16
  129. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
  130. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  131. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
  132. package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +1 -1
  133. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +1 -1
  134. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
  135. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  136. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  137. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  138. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -0
  139. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  140. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  141. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  142. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  143. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  144. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  145. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  146. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
  147. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  148. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
  149. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  150. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
  151. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  152. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  153. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  154. package/src/sap/ui/fl/write/_internal/flexState/{FlexObjectState.js → FlexObjectManager.js} +26 -56
  155. package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  156. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +9 -6
  157. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
  158. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
  159. package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +6 -6
  160. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +4 -2
  161. package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
  162. package/src/sap/ui/fl/write/api/LocalResetAPI.js +3 -4
  163. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +8 -8
  164. package/src/sap/ui/fl/write/api/TranslationAPI.js +6 -6
  165. 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
- if (sActiveVersion === Version.Number.Original) {
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.127.0
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
- // in case of a existing draft known by the backend;
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
  };
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @constructor
36
36
  * @alias sap.ui.fl.write._internal.appVariant.AppVariant
37
37
  * @author SAP SE
38
- * @version 1.127.0
38
+ * @version 1.128.0
39
39
  * @private
40
40
  * @ui5-restricted sap.ui.rta, smart business
41
41
  */
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @namespace
33
33
  * @alias sap.ui.fl.write._internal.appVariant.AppVariantFactory
34
34
  * @author SAP SE
35
- * @version 1.127.0
35
+ * @version 1.128.0
36
36
  * @private
37
37
  * @ui5-restricted sap.ui.rta, smart business
38
38
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @constructor
29
29
  * @alias sap.ui.fl.write._internal.appVariant.AppVariantInlineChange
30
30
  * @author SAP SE
31
- * @version 1.127.0
31
+ * @version 1.128.0
32
32
  * @private
33
33
  * @ui5-restricted sap.ui.rta, smart business
34
34
  */
@@ -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.127.0
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
- * 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
- */
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
  });
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @namespace
52
52
  * @alias sap.ui.fl.write._internal.condenser.Condenser
53
53
  * @author SAP SE
54
- * @version 1.127.0
54
+ * @version 1.128.0
55
55
  */
56
56
  var Condenser = {};
57
57
 
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @namespace
32
32
  * @alias sap.ui.fl.write._internal.condenser.UIReconstruction
33
33
  * @author SAP SE
34
- * @version 1.127.0
34
+ * @version 1.128.0
35
35
  */
36
36
  var UIReconstruction = {};
37
37
 
@@ -74,7 +74,7 @@ sap.ui.define([
74
74
  *
75
75
  * @namespace sap.ui.fl.write._internal.connectors.BackendConnector
76
76
  * @since 1.72
77
- * @version 1.127.0
77
+ * @version 1.128.0
78
78
  * @private
79
79
  * @ui5-restricted sap.ui.fl.write._internal.connectors
80
80
  */
@@ -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.127.0
28
+ * @version 1.128.0
29
29
  * @private
30
30
  * @ui5-restricted sap.ui.fl.write._internal.Storage
31
31
  */
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  *
41
41
  * @namespace sap.ui.fl.write._internal.connectors.KeyUserConnector
42
42
  * @since 1.70
43
- * @version 1.127.0
43
+ * @version 1.128.0
44
44
  * @private
45
45
  * @ui5-restricted sap.ui.fl.write._internal.Storage
46
46
  */
@@ -167,7 +167,7 @@ sap.ui.define([
167
167
  *
168
168
  * @namespace sap.ui.fl.write._internal.connectors.LrepConnector
169
169
  * @since 1.67
170
- * @version 1.127.0
170
+ * @version 1.128.0
171
171
  * @private
172
172
  * @ui5-restricted sap.ui.fl.write._internal.Storage
173
173
  */
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @namespace sap.ui.fl.write._internal.connectors.NeoLrepConnector
22
22
  * @since 1.81
23
- * @version 1.127.0
23
+ * @version 1.128.0
24
24
  * @private
25
25
  * @ui5-restricted sap.ui.fl.write._internal.Storage
26
26
  */
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @namespace sap.ui.fl.write._internal.connectors.ObjectPathConnector
26
26
  * @since 1.73
27
- * @version 1.127.0
27
+ * @version 1.128.0
28
28
  * @private
29
29
  * @ui5-restricted sap.ui.fl.write._internal.Storage
30
30
  */
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  *
24
24
  * @namespace sap.ui.fl.write._internal.connectors.PersonalizationConnector
25
25
  * @since 1.70
26
- * @version 1.127.0
26
+ * @version 1.128.0
27
27
  * @private
28
28
  * @ui5-restricted sap.ui.fl.write._internal.Storage
29
29
  */
@@ -30,6 +30,7 @@ sap.ui.define([
30
30
  .then(function(oFeatures) {
31
31
  return merge({
32
32
  isPublicLayerAvailable: true,
33
+ isPublicFlVariantEnabled: true,
33
34
  isVariantAdaptationEnabled: true
34
35
  }, oFeatures);
35
36
  });
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @namespace sap.ui.fl.write._internal.connectors.Utils
18
18
  * @since 1.70
19
- * @version 1.127.0
19
+ * @version 1.128.0
20
20
  * @private
21
21
  * @ui5-restricted sap.ui.fl.write._internal.connectors, sap.ui.fl.write._internal.transport
22
22
  */
@@ -35,7 +35,7 @@ function(
35
35
  * @class
36
36
  * @constructor
37
37
  * @author SAP SE
38
- * @version 1.127.0
38
+ * @version 1.128.0
39
39
  */
40
40
  var Processor = {
41
41
  applyExtensionPoint(oExtensionPoint) {
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.ABAPAccess
41
41
  * @since 1.87.0
42
42
  * @author SAP SE
43
- * @version 1.127.0
43
+ * @version 1.128.0
44
44
  * @private
45
45
  */
46
46
  var ABAPAccess = {};
@@ -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.127.0
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.127.0
118
+ * @version 1.128.0
119
119
  * @private
120
120
  */
121
121
  var ABAPExtensibilityVariantFactory = {};
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.MultiTenantABAPExtensibilityVariant
26
26
  * @since 1.87
27
- * @version 1.127.0
27
+ * @version 1.128.0
28
28
  * @public
29
29
  */
30
30
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.ServiceValidation
20
20
  * @since 1.87.0
21
21
  * @author SAP SE
22
- * @version 1.127.0
22
+ * @version 1.128.0
23
23
  * @private
24
24
  */
25
25
  var ServiceValidation = {};
@@ -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.127.0
51
+ * @version 1.128.0
52
52
  * @public
53
53
  */
54
54
  const SingleTenantABAPExtensibilityVariant = ABAPExtensibilityVariant.extend(sNamespace, {
@@ -134,7 +134,7 @@ sap.ui.define([
134
134
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.UriParser
135
135
  * @since 1.87.0
136
136
  * @author SAP SE
137
- * @version 1.127.0
137
+ * @version 1.128.0
138
138
  * @private
139
139
  */
140
140
  var UriParser = {};
@@ -245,7 +245,7 @@ sap.ui.define([
245
245
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.Utils
246
246
  * @since 1.87.0
247
247
  * @author SAP SE
248
- * @version 1.127.0
248
+ * @version 1.128.0
249
249
  * @private
250
250
  */
251
251
  var Utils = {};
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @since 1.93
25
25
  * @private
26
26
  * @author SAP SE
27
- * @version 1.127.0
27
+ * @version 1.128.0
28
28
  */
29
29
  var CAPAccess = {};
30
30
 
@@ -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.127.0
85
+ * @version 1.128.0
86
86
  * @since 1.93
87
87
  * @private
88
88
  * @ui5-restricted
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.booleanEditor.BooleanEditor
19
19
  * @author SAP SE
20
20
  * @since 1.93
21
- * @version 1.127.0
21
+ * @version 1.128.0
22
22
  *
23
23
  * @private
24
24
  * @ui5-restricted sap.ui.fl
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.rangeEditor.RangeEditor
21
21
  * @author SAP SE
22
22
  * @since 1.93
23
- * @version 1.127.0
23
+ * @version 1.128.0
24
24
  *
25
25
  * @private
26
26
  * @ui5-restricted sap.ui.fl
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.timeEditor.TimeEditor
23
23
  * @author SAP SE
24
24
  * @since 1.93
25
- * @version 1.127.0
25
+ * @version 1.128.0
26
26
  *
27
27
  * @private
28
28
  * @ui5-restricted sap.ui.fl