@openui5/sap.ui.fl 1.108.0 → 1.109.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 (175) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +3 -3
  3. package/src/sap/ui/fl/.library +1 -1
  4. package/src/sap/ui/fl/Cache.js +4 -4
  5. package/src/sap/ui/fl/ChangePersistence.js +39 -48
  6. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  7. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
  8. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  10. package/src/sap/ui/fl/FlexController.js +26 -26
  11. package/src/sap/ui/fl/FlexControllerFactory.js +6 -5
  12. package/src/sap/ui/fl/LayerUtils.js +3 -3
  13. package/src/sap/ui/fl/Utils.js +68 -274
  14. package/src/sap/ui/fl/apply/_internal/ChangesController.js +17 -2
  15. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  16. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +2 -2
  17. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +12 -12
  18. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
  19. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +4 -4
  20. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +10 -8
  21. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  22. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +5 -4
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +2 -1
  41. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +1 -2
  43. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +6 -6
  44. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +5 -2
  45. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
  46. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -2
  47. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +11 -11
  48. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +24 -11
  49. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +2 -1
  50. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +19 -4
  51. package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +462 -0
  52. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +16 -6
  53. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +2 -1
  54. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +1 -1
  55. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +1 -1
  56. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +60 -29
  57. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +3 -3
  59. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +7 -7
  60. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +5 -3
  61. package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +1 -12
  62. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
  63. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +2 -2
  64. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -1
  65. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +9 -11
  66. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +27 -7
  67. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
  68. package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +1 -1
  69. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -1
  70. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
  71. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +16 -8
  72. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +10 -46
  73. package/src/sap/ui/fl/changeHandler/AddIFrame.js +4 -4
  74. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  76. package/src/sap/ui/fl/changeHandler/Base.js +5 -4
  77. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +6 -6
  78. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +20 -18
  79. package/src/sap/ui/fl/changeHandler/BaseRename.js +6 -6
  80. package/src/sap/ui/fl/changeHandler/HideControl.js +5 -5
  81. package/src/sap/ui/fl/changeHandler/MoveControls.js +5 -5
  82. package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
  83. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
  84. package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
  85. package/src/sap/ui/fl/changeHandler/StashControl.js +5 -5
  86. package/src/sap/ui/fl/changeHandler/UnhideControl.js +5 -5
  87. package/src/sap/ui/fl/changeHandler/UnstashControl.js +5 -5
  88. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +4 -4
  89. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
  90. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
  91. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  92. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  93. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  94. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +4 -2
  95. package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
  96. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -14
  97. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
  98. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +2 -2
  99. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
  100. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +3 -3
  101. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +3 -3
  102. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  103. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  104. package/src/sap/ui/fl/library.js +43 -43
  105. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +1 -1
  106. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +1 -1
  107. package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
  108. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +1 -1
  109. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
  110. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
  111. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
  112. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
  113. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
  114. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  115. package/src/sap/ui/fl/themes/base/library.source.less +0 -2
  116. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  117. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -2
  118. package/src/sap/ui/fl/util/IFrame.js +1 -1
  119. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  120. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  121. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  122. package/src/sap/ui/fl/variants/VariantManagement.js +38 -7
  123. package/src/sap/ui/fl/variants/VariantModel.js +96 -47
  124. package/src/sap/ui/fl/variants/context/Component.js +0 -1
  125. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +1 -0
  126. package/src/sap/ui/fl/write/_internal/SaveAs.js +4 -2
  127. package/src/sap/ui/fl/write/_internal/Storage.js +11 -11
  128. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
  129. package/src/sap/ui/fl/write/_internal/Versions.js +1 -1
  130. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
  131. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  132. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  133. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
  134. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +28 -26
  135. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +9 -4
  136. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  137. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +2 -2
  138. package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +1 -1
  139. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +1 -1
  140. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +4 -2
  141. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +11 -15
  142. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  143. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  144. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  145. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  146. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  147. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  148. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  149. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  150. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  151. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  152. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  153. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  154. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  155. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
  156. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  157. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
  158. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  159. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  160. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  161. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +32 -26
  162. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +32 -36
  163. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +18 -19
  164. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
  165. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +6 -6
  166. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +5 -3
  167. package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
  168. package/src/sap/ui/fl/write/api/LocalResetAPI.js +6 -6
  169. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +8 -8
  170. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +4 -4
  171. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -0
  172. package/ui5.yaml +4 -2
  173. package/src/sap/ui/fl/Change.js +0 -1092
  174. package/src/sap/ui/fl/codeExt/CodeExtManager.js +0 -122
  175. package/src/sap/ui/fl/themes/base/VariantManagement.less +0 -97
package/THIRDPARTY.txt CHANGED
@@ -478,7 +478,7 @@ License: Apache-2.0
478
478
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
479
479
  Contained in: lib/jsdoc/ui5/plugin.js
480
480
 
481
- Component: SAP Theming Base Content, version: 11.1.40
481
+ Component: SAP Theming Base Content, version: 11.1.44
482
482
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
483
483
  License: Apache-2.0
484
484
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.fl",
3
- "version": "1.108.0",
3
+ "version": "1.109.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.fl",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.108.0",
18
- "@openui5/sap.ui.core": "1.108.0"
17
+ "@openui5/sap.m": "1.109.0",
18
+ "@openui5/sap.ui.core": "1.109.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.108.0</version>
9
+ <version>1.109.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
12
12
 
@@ -6,12 +6,12 @@
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/ui/fl/apply/_internal/flexState/FlexState",
9
- "sap/ui/fl/Utils",
9
+ "sap/ui/fl/apply/api/ControlVariantApplyAPI",
10
10
  "sap/base/Log"
11
11
  ],
12
12
  function(
13
13
  FlexState,
14
- Utils,
14
+ ControlVariantApplyAPI,
15
15
  Log
16
16
  ) {
17
17
  "use strict";
@@ -24,7 +24,7 @@ function(
24
24
  * @alias sap.ui.fl.Cache
25
25
  * @experimental Since 1.25.0
26
26
  * @author SAP SE
27
- * @version 1.108.0
27
+ * @version 1.109.0
28
28
  *
29
29
  * @private
30
30
  * @ui5-restricted sap.ui.fl
@@ -121,7 +121,7 @@ function(
121
121
  })
122
122
  .then(function(sCacheKey) {
123
123
  // concat current control variant ids to cachekey if available
124
- var oVariantModel = oAppComponent.getModel(Utils.VARIANT_MODEL_NAME);
124
+ var oVariantModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
125
125
  var aCurrentControlVariantIds = oVariantModel ? oVariantModel.getCurrentControlVariantIds() : [];
126
126
  return _concatControlVariantIdWithCacheKey(sCacheKey, aCurrentControlVariantIds.join("-"));
127
127
  });
@@ -16,6 +16,7 @@ sap.ui.define([
16
16
  "sap/ui/fl/apply/_internal/changes/Utils",
17
17
  "sap/ui/fl/apply/_internal/flexObjects/FlexObject",
18
18
  "sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory",
19
+ "sap/ui/fl/apply/_internal/flexObjects/States",
19
20
  "sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
20
21
  "sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState",
21
22
  "sap/ui/fl/apply/_internal/flexState/FlexState",
@@ -25,7 +26,6 @@ sap.ui.define([
25
26
  "sap/ui/fl/write/_internal/Storage",
26
27
  "sap/ui/fl/write/api/Version",
27
28
  "sap/ui/fl/Cache",
28
- "sap/ui/fl/Change",
29
29
  "sap/ui/fl/LayerUtils",
30
30
  "sap/ui/fl/Layer",
31
31
  "sap/ui/fl/Utils",
@@ -43,6 +43,7 @@ sap.ui.define([
43
43
  ChangesUtils,
44
44
  FlexObject,
45
45
  FlexObjectFactory,
46
+ States,
46
47
  DependencyHandler,
47
48
  VariantManagementState,
48
49
  FlexState,
@@ -52,7 +53,6 @@ sap.ui.define([
52
53
  Storage,
53
54
  Version,
54
55
  Cache,
55
- Change,
56
56
  LayerUtils,
57
57
  Layer,
58
58
  Utils,
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  *
67
67
  * @constructor
68
68
  * @author SAP SE
69
- * @version 1.108.0
69
+ * @version 1.109.0
70
70
  * @experimental Since 1.25.0
71
71
  * @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
72
72
  * @param {string} mComponent.name - Name of the component this instance is responsible for
@@ -94,19 +94,15 @@ sap.ui.define([
94
94
 
95
95
  function getChangeInstance(oFileContent, oChangeOrChangeContent) {
96
96
  var oChange;
97
- if (oChangeOrChangeContent instanceof Change || oChangeOrChangeContent instanceof FlexObject) {
97
+ if (oChangeOrChangeContent instanceof FlexObject) {
98
98
  oChange = oChangeOrChangeContent; // can have other states
99
99
  this._mChangesEntries[oChange.getId()] = oChange;
100
100
  } else {
101
101
  if (!this._mChangesEntries[oChangeOrChangeContent.fileName]) {
102
- if (oChangeOrChangeContent.changeType === "codeExt") {
103
- this._mChangesEntries[oChangeOrChangeContent.fileName] = FlexObjectFactory.createFromFileContent(oChangeOrChangeContent);
104
- } else {
105
- this._mChangesEntries[oChangeOrChangeContent.fileName] = new Change(oChangeOrChangeContent);
106
- }
102
+ this._mChangesEntries[oChangeOrChangeContent.fileName] = FlexObjectFactory.createFromFileContent(oChangeOrChangeContent);
107
103
  }
108
104
  oChange = this._mChangesEntries[oChangeOrChangeContent.fileName];
109
- oChange.setState(Change.states.PERSISTED);
105
+ oChange.setState(States.LifecycleState.PERSISTED);
110
106
  }
111
107
  return oChange;
112
108
  }
@@ -150,7 +146,7 @@ sap.ui.define([
150
146
  var sVariantReference;
151
147
  var sSelectorId;
152
148
 
153
- if (oChangeOrChangeContent instanceof Change) {
149
+ if (oChangeOrChangeContent instanceof FlexObject) {
154
150
  var oChange = oChangeOrChangeContent;
155
151
  sFileType = oChange.getFileType();
156
152
  sVariantReference = oChange.getVariantReference();
@@ -183,7 +179,6 @@ sap.ui.define([
183
179
  * @param {string} [mPropertyBag.cacheKey] Key to validate the cache entry stored on client side
184
180
  * @param {sap.ui.core.Component} [mPropertyBag.component] - Component instance
185
181
  * @param {boolean} bInvalidateCache - should the cache be invalidated
186
- * @see sap.ui.fl.Change
187
182
  * @returns {Promise} Promise resolving with an array of changes
188
183
  * @public
189
184
  */
@@ -264,7 +259,7 @@ sap.ui.define([
264
259
  var sChangeLayer;
265
260
  if (
266
261
  typeof oChangeOrChangeContent.isA === "function"
267
- && (oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.FlVariant") || oChangeOrChangeContent.isA("sap.ui.fl.Change"))
262
+ && (oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.FlVariant") || oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.UIChange"))
268
263
  ) {
269
264
  sChangeLayer = oChangeOrChangeContent.getLayer();
270
265
  } else {
@@ -291,7 +286,6 @@ sap.ui.define([
291
286
  * Calls the back end asynchronously and fetches all changes for the component
292
287
  * New changes (dirty state) that are not yet saved to the back end won't be returned.
293
288
  * @param {object} oAppComponent - Component instance used to prepare the IDs (e.g. local)
294
- * @see sap.ui.fl.Change
295
289
  * @returns {Promise} Promise resolving with a getter for the changes map
296
290
  * @public
297
291
  */
@@ -319,7 +313,7 @@ sap.ui.define([
319
313
  *
320
314
  * @param {object} oSelector selector of the control
321
315
  * @param {sap.ui.core.Component} oAppComponent - Application component instance that is currently loading
322
- * @returns {sap.ui.fl.Change[]} Array of all open dependent changes for the control
316
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} Array of all open dependent changes for the control
323
317
  */
324
318
  ChangePersistence.prototype.getOpenDependentChangesForControl = function(oSelector, oAppComponent) {
325
319
  return DependencyHandler.getOpenDependentChangesForControl(this._mChanges, JsControlTreeModifier.getControlIdBySelector(oSelector, oAppComponent), oAppComponent);
@@ -357,7 +351,7 @@ sap.ui.define([
357
351
  * Also checks if the dependency is still valid in a callback
358
352
  * This function is used in the case that controls got destroyed and recreated
359
353
  *
360
- * @param {sap.ui.fl.Change} oChange The change whose dependencies should be copied
354
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange The change whose dependencies should be copied
361
355
  * @param {function} fnDependencyValidation this function is called to check if the dependency is still valid
362
356
  * @param {sap.ui.core.Component} oAppComponent Application component instance that is currently loading
363
357
  * @returns {object} Returns the mChanges object with the updated dependencies
@@ -383,7 +377,7 @@ sap.ui.define([
383
377
  * Also checks if the dependency is still valid in a callback
384
378
  * This function is used in the case that controls got destroyed and recreated
385
379
  *
386
- * @param {sap.ui.fl.Change} oChange The change whose dependencies should be copied
380
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange The change whose dependencies should be copied
387
381
  * @param {function} fnDependencyValidation this function is called to check if the dependency is still valid
388
382
  * @param {sap.ui.core.Component} oAppComponent Application component instance that is currently loading
389
383
  * @returns {Promise} Resolves the mChanges object with the updated dependencies
@@ -415,8 +409,8 @@ sap.ui.define([
415
409
  * Adds a new change into changes map positioned right after the referenced change and updates the change dependencies
416
410
  *
417
411
  * @param {sap.ui.core.Component} oAppComponent - Application component for the view
418
- * @param {sap.ui.fl.changeObject} oChange - Change instance
419
- * @param {sap.ui.fl.changeObject} [oReferenceChange] - Refernce change. New change is positioned right after this one in the changes map
412
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - Change instance
413
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} [oReferenceChange] - Reference change. New change is positioned right after this one in the changes map
420
414
  */
421
415
  ChangePersistence.prototype.addChangeAndUpdateDependencies = function(oAppComponent, oChange, oReferenceChange) {
422
416
  // the change status should always be initial when it gets added to the map / dependencies
@@ -433,7 +427,7 @@ sap.ui.define([
433
427
  };
434
428
 
435
429
  /**
436
- * Getter for the private aggregation containing sap.ui.fl.Change objects mapped by their selector ids.
430
+ * Getter for the private aggregation containing sap.ui.fl.apply._internal.flexObjects.FlexObject objects mapped by their selector ids.
437
431
  * @return {map} mChanges mapping with changes sorted by their selector ids
438
432
  * @public
439
433
  */
@@ -446,7 +440,7 @@ sap.ui.define([
446
440
  * @param {map} mPropertyBag - Contains additional data needed for reading changes
447
441
  * @param {string} [mPropertyBag.layer] - Specifies a single layer for loading changes
448
442
  * @param {boolean} [mPropertyBag.includeDirtyChanges] - Whether dirty changes of the current session should be included
449
- * @returns {sap.ui.fl.Change[]} Array of changes
443
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} Array of changes
450
444
  * @public
451
445
  */
452
446
  ChangePersistence.prototype.getAllUIChanges = function(mPropertyBag) {
@@ -506,7 +500,7 @@ sap.ui.define([
506
500
  *
507
501
  * @param {object} vChange - The complete and finalized JSON object representation the file content of the change or a Change instance
508
502
  * @param {sap.ui.core.Component} oAppComponent - Application component instance
509
- * @returns {sap.ui.fl.Change} the newly created change
503
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} the newly created change
510
504
  * @public
511
505
  */
512
506
  ChangePersistence.prototype.addChange = function(vChange, oAppComponent) {
@@ -521,18 +515,15 @@ sap.ui.define([
521
515
  * Adds a new dirty change.
522
516
  *
523
517
  * @param {object} vChange - JSON object of change or change object
524
- * @returns {sap.ui.fl.Change} The prepared change object
518
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} The prepared change object
525
519
  * @public
526
520
  */
527
521
  ChangePersistence.prototype.addDirtyChange = function(vChange) {
528
522
  var oNewChange;
529
- if (
530
- typeof vChange.isA === "function"
531
- && (vChange.isA("sap.ui.fl.Change") || vChange.isA("sap.ui.fl.apply._internal.flexObjects.FlexObject"))
532
- ) {
523
+ if (typeof vChange.isA === "function" && vChange.isA("sap.ui.fl.apply._internal.flexObjects.FlexObject")) {
533
524
  oNewChange = vChange;
534
525
  } else {
535
- oNewChange = new Change(vChange);
526
+ oNewChange = FlexObjectFactory.createFromFileContent(vChange);
536
527
  }
537
528
 
538
529
  // don't add the same change twice
@@ -639,9 +630,9 @@ sap.ui.define([
639
630
  }
640
631
  var aPersistedAndSameLayerChanges = this._mChanges.aChanges.filter(function(oChange) {
641
632
  if (sLayer === Layer.CUSTOMER && aDraftFilenames) {
642
- return oChange.getState() === Change.states.PERSISTED && aDraftFilenames.includes(oChange.getId());
633
+ return oChange.getState() === States.LifecycleState.PERSISTED && aDraftFilenames.includes(oChange.getId());
643
634
  }
644
- return oChange.getState() === Change.states.PERSISTED && LayerUtils.compareAgainstCurrentLayer(oChange.getLayer(), sLayer) === 0;
635
+ return oChange.getState() === States.LifecycleState.PERSISTED && LayerUtils.compareAgainstCurrentLayer(oChange.getLayer(), sLayer) === 0;
645
636
  });
646
637
  return aPersistedAndSameLayerChanges.concat(aDirtyChanges);
647
638
  }
@@ -650,7 +641,7 @@ sap.ui.define([
650
641
  if (aDirtyChanges.length) {
651
642
  var aRequests = getRequests(aDirtyChanges);
652
643
  var aStates = getStates(aDirtyChanges);
653
- return aStates.length === 1 && aRequests.length === 1 && aStates[0] === Change.states.NEW;
644
+ return aStates.length === 1 && aRequests.length === 1 && aStates[0] === States.LifecycleState.NEW;
654
645
  }
655
646
  return true;
656
647
  }
@@ -665,7 +656,7 @@ sap.ui.define([
665
656
  * @param {sap.ui.core.UIComponent} [oAppComponent] - AppComponent instance
666
657
  * @param {boolean} [bSkipUpdateCache] - If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
667
658
  * therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
668
- * @param {sap.ui.fl.Change} [aChanges] - If passed only those changes are saved
659
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} [aChanges] - If passed only those changes are saved
669
660
  * @param {string} sParentVersion - Parent version
670
661
  * @param {string[]} [aDraftFilenames] - Filenames from persisted changes draft version
671
662
  * @param {boolean} [bCondenseAnyLayer] - This will enable condensing regardless of the current layer
@@ -728,7 +719,7 @@ sap.ui.define([
728
719
  * to ensure the correct order, the methods are called sequentially;
729
720
  * after a change was saved successfully, it is removed from the dirty changes and the cache is updated.
730
721
  *
731
- * @param {sap.ui.fl.Change[]} aDirtyChanges - Array of dirty changes to be saved
722
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aDirtyChanges - Array of dirty changes to be saved
732
723
  * @param {boolean} [bSkipUpdateCache] If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
733
724
  * therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
734
725
  * @param {string} [sParentVersion] - Indicates if changes should be written as a draft and on which version the changes should be based on
@@ -740,7 +731,7 @@ sap.ui.define([
740
731
  // in case of changes saved for a draft only the first writing operation must have the parentVersion targeting the basis
741
732
  // followup changes must point the the existing draft created with the first request
742
733
  var aNewChanges = aDirtyChanges.filter(function (oChange) {
743
- return oChange.getState() === Change.states.NEW;
734
+ return oChange.getState() === States.LifecycleState.NEW;
744
735
  });
745
736
  oFirstNewChange = [].concat(aNewChanges).shift();
746
737
  }
@@ -754,7 +745,7 @@ sap.ui.define([
754
745
 
755
746
  function performSingleSaveAction(oDirtyChange, oFirstChange, sParentVersion) {
756
747
  switch (oDirtyChange.getState()) {
757
- case Change.states.NEW:
748
+ case States.LifecycleState.NEW:
758
749
  if (sParentVersion !== undefined) {
759
750
  sParentVersion = oDirtyChange === oFirstChange ? sParentVersion : Version.Number.Draft;
760
751
  }
@@ -764,7 +755,7 @@ sap.ui.define([
764
755
  transport: oDirtyChange.getRequest(),
765
756
  parentVersion: sParentVersion
766
757
  });
767
- case Change.states.DELETED:
758
+ case States.LifecycleState.DELETED:
768
759
  return Storage.remove({
769
760
  flexObject: oDirtyChange.convertToFileContent(),
770
761
  layer: oDirtyChange.getLayer(),
@@ -777,7 +768,7 @@ sap.ui.define([
777
768
 
778
769
  /**
779
770
  * Updates the cache with the dirty change passed and removes it from the array of dirty changes if present.
780
- * @param {sap.ui.fl.Change} oDirtyChange Dirty change which was saved
771
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oDirtyChange Dirty change which was saved
781
772
  * @param {boolean} [bSkipUpdateCache] If true, then the dirty change shall be saved for the new created app variant, but not for the current app
782
773
  * therefore, the cache update of the current app is skipped
783
774
  */
@@ -794,15 +785,15 @@ sap.ui.define([
794
785
  });
795
786
  } else {
796
787
  switch (oDirtyChange.getState()) {
797
- case Change.states.NEW:
798
- oDirtyChange.setState(Change.states.PERSISTED);
788
+ case States.LifecycleState.NEW:
789
+ oDirtyChange.setState(States.LifecycleState.PERSISTED);
799
790
  Cache.addChange(this._mComponent, oDirtyChange.convertToFileContent());
800
791
  break;
801
- case Change.states.DELETED:
792
+ case States.LifecycleState.DELETED:
802
793
  Cache.deleteChange(this._mComponent, oDirtyChange.convertToFileContent());
803
794
  break;
804
- case Change.states.DIRTY:
805
- oDirtyChange.setState(Change.states.PERSISTED);
795
+ case States.LifecycleState.DIRTY:
796
+ oDirtyChange.setState(States.LifecycleState.PERSISTED);
806
797
  Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
807
798
  break;
808
799
  }
@@ -811,7 +802,7 @@ sap.ui.define([
811
802
  };
812
803
 
813
804
  /**
814
- * @param {sap.ui.fl.Change[]} aDirtyChanges - Array of dirty changes
805
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aDirtyChanges - Array of dirty changes
815
806
  * @param {boolean} [bSkipUpdateCache]- If <code>true</code>, then the dirty change shall be saved for the newly created app variant, but not for the current app;
816
807
  * therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
817
808
  */
@@ -871,14 +862,14 @@ sap.ui.define([
871
862
  *
872
863
  * Otherwise it will be marked for deletion.
873
864
  *
874
- * @param {sap.ui.fl.Change} oChange the change to be deleted
865
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange the change to be deleted
875
866
  * @param {boolean} [bRunTimeCreatedChange] set if the change was created at runtime
876
867
  */
877
868
  ChangePersistence.prototype.deleteChange = function(oChange, bRunTimeCreatedChange) {
878
869
  var nIndexInDirtyChanges = this._aDirtyChanges.indexOf(oChange);
879
870
 
880
871
  if (nIndexInDirtyChanges > -1) {
881
- if (oChange.getState() === Change.states.DELETED) {
872
+ if (oChange.getState() === States.LifecycleState.DELETED) {
882
873
  return;
883
874
  }
884
875
  this._aDirtyChanges.splice(nIndexInDirtyChanges, 1);
@@ -903,7 +894,7 @@ sap.ui.define([
903
894
  /**
904
895
  * Deletes a change object from the internal map.
905
896
  *
906
- * @param {sap.ui.fl.Change} oChange change which has to be removed from the mapping
897
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange change which has to be removed from the mapping
907
898
  * @param {boolean} [bRunTimeCreatedChange] set if the change was created at runtime
908
899
  * @private
909
900
  */
@@ -918,7 +909,7 @@ sap.ui.define([
918
909
  }
919
910
 
920
911
  function isPersistedAndInLayer(sLayer, oObject) {
921
- return oObject.getState() === Change.states.PERSISTED && oObject.getLayer() === sLayer;
912
+ return oObject.getState() === States.LifecycleState.PERSISTED && oObject.getLayer() === sLayer;
922
913
  }
923
914
 
924
915
  function getAllCompVariantsEntities() {
@@ -964,7 +955,7 @@ sap.ui.define([
964
955
  * Collect changes from the internal map by names
965
956
  *
966
957
  * @param {string[]} aNames Names of changes
967
- * @returns {sap.ui.fl.Change[]} aChanges Array of changes with corresponding names
958
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aChanges Array of changes with corresponding names
968
959
  * @private
969
960
  */
970
961
  ChangePersistence.prototype._getChangesFromMapByNames = function(aNames) {
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @alias sap.ui.fl.ChangePersistenceFactory
31
31
  * @experimental Since 1.27.0
32
32
  * @author SAP SE
33
- * @version 1.108.0
33
+ * @version 1.109.0
34
34
  * @private
35
35
  * @ui5-restricted sap.ui.fl
36
36
  */
@@ -20,7 +20,7 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.108.0
23
+ * @version 1.109.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.48
@@ -20,7 +20,7 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.108.0
23
+ * @version 1.109.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.58
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @namespace
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.108.0
20
+ * @version 1.109.0
21
21
  *
22
22
  * @private
23
23
  * @since 1.48
@@ -8,12 +8,14 @@ sap.ui.define([
8
8
  "sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
9
9
  "sap/ui/fl/Utils",
10
10
  "sap/ui/fl/Layer",
11
- "sap/ui/fl/Change",
12
11
  "sap/ui/fl/ChangePersistenceFactory",
13
12
  "sap/ui/fl/write/_internal/Versions",
14
13
  "sap/ui/fl/apply/_internal/changes/Applier",
15
14
  "sap/ui/fl/apply/_internal/changes/Reverter",
16
15
  "sap/ui/fl/apply/_internal/controlVariants/URLHandler",
16
+ "sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory",
17
+ "sap/ui/fl/apply/_internal/flexObjects/States",
18
+ "sap/ui/fl/apply/api/ControlVariantApplyAPI",
17
19
  "sap/ui/core/util/reflection/JsControlTreeModifier",
18
20
  "sap/ui/core/util/reflection/XmlTreeModifier",
19
21
  "sap/ui/core/Component",
@@ -22,12 +24,14 @@ sap.ui.define([
22
24
  ChangeHandlerStorage,
23
25
  Utils,
24
26
  Layer,
25
- Change,
26
27
  ChangePersistenceFactory,
27
28
  Versions,
28
29
  Applier,
29
30
  Reverter,
30
31
  URLHandler,
32
+ FlexObjectFactory,
33
+ States,
34
+ ControlVariantApplyAPI,
31
35
  JsControlTreeModifier,
32
36
  XmlTreeModifier,
33
37
  Component,
@@ -50,7 +54,7 @@ sap.ui.define([
50
54
  }.bind(this))
51
55
  .then(function () {
52
56
  if (oComponent) {
53
- var oModel = oComponent.getModel(Utils.VARIANT_MODEL_NAME);
57
+ var oModel = oComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
54
58
  if (oModel) {
55
59
  aChanges.forEach(function (oChange) {
56
60
  var sVariantReference = oChange.getVariantReference();
@@ -84,7 +88,7 @@ sap.ui.define([
84
88
  * @alias sap.ui.fl.FlexController
85
89
  * @experimental Since 1.27.0
86
90
  * @author SAP SE
87
- * @version 1.108.0
91
+ * @version 1.109.0
88
92
  */
89
93
  var FlexController = function(sComponentName) {
90
94
  this._oChangePersistence = undefined;
@@ -128,16 +132,13 @@ sap.ui.define([
128
132
  /**
129
133
  * Base function for creation of a change
130
134
  *
131
- * @param {object} oChangeSpecificData - Property bag (nvp) holding the change information (see sap.ui.fl.Change#createInitialFileContent)
135
+ * @param {object} oChangeSpecificData - Property bag holding the change information
132
136
  * The property "oPropertyBag.packageName" is set to $TMP and internally since flex changes are always local when they are created.
133
137
  * @param {sap.ui.core.Component} oAppComponent - Application Component of the control at runtime in case a map has been used
134
- * @returns {sap.ui.fl.Change} the created change
138
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} the created change
135
139
  * @public
136
140
  */
137
141
  FlexController.prototype.createBaseChange = function(oChangeSpecificData, oAppComponent) {
138
- var oChangeFileContent;
139
- var oChange;
140
-
141
142
  if (!oAppComponent) {
142
143
  throw new Error("No application component found. To offer flexibility a valid relation to its owning component must be present.");
143
144
  }
@@ -145,8 +146,7 @@ sap.ui.define([
145
146
  oChangeSpecificData.reference = this.getComponentName(); //in this case the component name can also be the value of sap-app-id
146
147
  oChangeSpecificData.packageName = "$TMP"; // first a flex change is always local, until all changes of a component are made transportable
147
148
 
148
- oChangeFileContent = Change.createInitialFileContent(oChangeSpecificData);
149
- oChange = new Change(oChangeFileContent);
149
+ var oChange = FlexObjectFactory.createUIChange(oChangeSpecificData);
150
150
 
151
151
  if (oChangeSpecificData.variantReference) {
152
152
  oChange.setVariantReference(oChangeSpecificData.variantReference);
@@ -174,7 +174,7 @@ sap.ui.define([
174
174
  })
175
175
  .then(function () {
176
176
  // completeChangeContent changes the content and might make it dirty
177
- oChange.setState(Change.states.NEW);
177
+ oChange.setState(States.LifecycleState.NEW);
178
178
  return oChange;
179
179
  })
180
180
  .catch(function(oError) {
@@ -185,12 +185,12 @@ sap.ui.define([
185
185
  /**
186
186
  * Create a change with an ExtensionPoint as selector.
187
187
  *
188
- * @param {object} oChangeSpecificData - Property bag (nvp) holding the change information (see sap.ui.fl.Change#createInitialFileContent)
188
+ * @param {object} oChangeSpecificData - Property bag (nvp) holding the change information
189
189
  * The property "oPropertyBag.packageName" is set to $TMP and internally since flex changes are always local when they are created.
190
190
  * @param {object} mExtensionPointReference - Reference map for extension point
191
191
  * @param {string} mExtensionPointReference.name - Name of the extension point
192
192
  * @param {sap.ui.core.Component} mExtensionPointReference.view - View including the extension point
193
- * @returns {Promise.<sap.ui.fl.Change>} Created change wrapped in a promise
193
+ * @returns {Promise.<sap.ui.fl.apply._internal.flexObjects.FlexObject>} Created change wrapped in a promise
194
194
  * @public
195
195
 
196
196
  */
@@ -216,13 +216,13 @@ sap.ui.define([
216
216
  /**
217
217
  * Create a change
218
218
  *
219
- * @param {object} oChangeSpecificData - Property bag (nvp) holding the change information (see sap.ui.fl.Change#createInitialFileContent)
219
+ * @param {object} oChangeSpecificData - Property bag (nvp) holding the change information
220
220
  * The property "oPropertyBag.packageName" is set to $TMP and internally since flex changes are always local when they are created.
221
221
  * @param {sap.ui.core.Control | map} oControl - Control for which the change will be added
222
222
  * @param {string} oControl.id - ID of the control in case a map has been used to specify the control
223
223
  * @param {sap.ui.core.Component} [oControl.appComponent] - Application component of the control at runtime in case a map has been used
224
224
  * @param {string} oControl.controlType - Control type of the control in case a map has been used
225
- * @returns {Promise.<sap.ui.fl.Change>} Created change wrapped in a promise
225
+ * @returns {Promise.<sap.ui.fl.apply._internal.flexObjects.FlexObject>} Created change wrapped in a promise
226
226
  * @public
227
227
  */
228
228
  FlexController.prototype.createChangeWithControlSelector = function(oChangeSpecificData, oControl) {
@@ -257,10 +257,10 @@ sap.ui.define([
257
257
  /**
258
258
  * Adds a change to the flex persistence (not yet saved). Will be saved with #saveAll.
259
259
  *
260
- * @param {object} oChangeSpecificData property bag (nvp) holding the change information (see sap.ui.fl.Change#createInitialFileContent
260
+ * @param {object} oChangeSpecificData property bag (nvp) holding the change information
261
261
  * The property "oPropertyBag.packageName" is set to $TMP internally since flex changes are always local when they are created.
262
262
  * @param {sap.ui.core.Control} oControl control for which the change will be added
263
- * @returns {Promise.<sap.ui.fl.Change>} the created change
263
+ * @returns {Promise.<sap.ui.fl.apply._internal.flexObjects.FlexObject>} the created change
264
264
  * @public
265
265
  */
266
266
  FlexController.prototype.addChange = function(oChangeSpecificData, oControl) {
@@ -285,16 +285,16 @@ sap.ui.define([
285
285
  * createChange again, but expects a fully computed and appliable change.
286
286
  * Will be saved with #saveAll.
287
287
  *
288
- * @param {object} oChange property bag (nvp) holding the change information (see sap.ui.fl.Change#createInitialFileContent
288
+ * @param {object} oChange property bag (nvp) holding the change information
289
289
  * The property "oPropertyBag.packageName" is set to $TMP internally since flex changes are always local when they are created.
290
290
  * @param {sap.ui.core.Component} oAppComponent - Application component
291
- * @returns {sap.ui.fl.Change} the created change
291
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject} the created change
292
292
  * @public
293
293
  */
294
294
  FlexController.prototype.addPreparedChange = function(oChange, oAppComponent) {
295
295
  if (oChange.getVariantReference()) {
296
296
  // variant model is always associated with the app component
297
- var oModel = oAppComponent.getModel(Utils.VARIANT_MODEL_NAME);
297
+ var oModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
298
298
  oModel.addChange(oChange);
299
299
  }
300
300
 
@@ -313,13 +313,13 @@ sap.ui.define([
313
313
  *
314
314
  * Otherwise it will be marked for deletion.
315
315
  *
316
- * @param {sap.ui.fl.Change} oChange - the change to be deleted
316
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - the change to be deleted
317
317
  * @param {sap.ui.core.Component} oAppComponent - Application component instance
318
318
  */
319
319
  FlexController.prototype.deleteChange = function(oChange, oAppComponent) {
320
320
  this._oChangePersistence.deleteChange(oChange);
321
321
  if (oChange.getVariantReference()) {
322
- oAppComponent.getModel(Utils.VARIANT_MODEL_NAME).removeChange(oChange);
322
+ oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName()).removeChange(oChange);
323
323
  }
324
324
  };
325
325
 
@@ -533,7 +533,7 @@ sap.ui.define([
533
533
  * @param {object} [mPropertyBag.appDescriptor] Manifest that belongs to the current running component
534
534
  * @param {string} [mPropertyBag.siteId] ID of the site belonging to the current running component
535
535
  * @param {boolean} bInvalidateCache - (optional) should the cache be invalidated
536
- * @returns {Promise} Promise resolves with a map of all {sap.ui.fl.Change} having the changeId as key
536
+ * @returns {Promise} Promise resolves with a map of all {sap.ui.fl.apply._internal.flexObjects.FlexObject} having the changeId as key
537
537
  * @public
538
538
  */
539
539
  FlexController.prototype.getComponentChanges = function(mPropertyBag, bInvalidateCache) {
@@ -545,7 +545,7 @@ sap.ui.define([
545
545
  *
546
546
  * @param {object} oSelector selector of the control
547
547
  * @param {sap.ui.core.Component} oComponent - component instance that is currently loading
548
- * @returns {sap.ui.fl.Change[]} Array of all open dependent changes for the control
548
+ * @returns {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} Array of all open dependent changes for the control
549
549
  */
550
550
  FlexController.prototype.getOpenDependentChangesForControl = function(oSelector, oComponent) {
551
551
  return this._oChangePersistence.getOpenDependentChangesForControl(oSelector, oComponent);
@@ -616,7 +616,7 @@ sap.ui.define([
616
616
  * Saves changes sequentially on the associated change persistence instance;
617
617
  * This API must be only used in scnarios without draft (like personalization).
618
618
  *
619
- * @param {sap.ui.fl.Change[]} aDirtyChanges Array of dirty changes to be saved
619
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aDirtyChanges Array of dirty changes to be saved
620
620
  * @param {sap.ui.core.UIComponent} [oAppComponent] - AppComponent instance
621
621
  * @returns {Promise} A Promise which resolves when all changes have been saved
622
622
  * @public