@openui5/sap.ui.fl 1.96.2 → 1.98.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 (234) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +2 -2
  5. package/src/sap/ui/fl/Cache.js +2 -2
  6. package/src/sap/ui/fl/Change.js +5 -219
  7. package/src/sap/ui/fl/ChangePersistence.js +28 -28
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
  9. package/src/sap/ui/fl/EventHistory.js +2 -2
  10. package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
  11. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
  12. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
  13. package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
  14. package/src/sap/ui/fl/FlexController.js +37 -19
  15. package/src/sap/ui/fl/FlexControllerFactory.js +14 -8
  16. package/src/sap/ui/fl/Layer.js +1 -1
  17. package/src/sap/ui/fl/LayerUtils.js +2 -2
  18. package/src/sap/ui/fl/PreprocessorImpl.js +7 -5
  19. package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
  20. package/src/sap/ui/fl/Utils.js +35 -309
  21. package/src/sap/ui/fl/Variant.js +2 -116
  22. package/src/sap/ui/fl/XmlPreprocessorImpl.js +15 -14
  23. package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +3 -3
  25. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
  28. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +2 -2
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +4 -3
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +2 -2
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
  45. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
  46. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
  47. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
  48. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
  49. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
  50. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
  51. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
  53. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +267 -265
  54. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +40 -10
  55. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
  56. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +16 -11
  57. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +2 -2
  58. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +2 -2
  59. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
  60. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
  61. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +5 -5
  62. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +16 -17
  63. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +22 -23
  64. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
  65. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +2 -2
  66. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
  67. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
  68. package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +1 -1
  69. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
  70. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
  71. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +3 -3
  72. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +3 -5
  73. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +23 -25
  74. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +8 -2
  75. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +87 -7
  76. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +2 -2
  77. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +72 -10
  78. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
  79. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
  81. package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
  82. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
  83. package/src/sap/ui/fl/changeHandler/Base.js +2 -2
  84. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
  85. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
  86. package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
  87. package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
  88. package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
  89. package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +1 -1
  90. package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
  91. package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
  92. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
  93. package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
  94. package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
  95. package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
  96. package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
  97. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
  98. package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +1 -1
  99. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
  100. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
  101. package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
  102. package/src/sap/ui/fl/codeExt/CodeExtManager.js +17 -11
  103. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
  104. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
  105. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
  106. package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +1 -1
  107. package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
  108. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
  109. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +10 -3
  110. package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
  111. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +2 -2
  112. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -2
  113. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
  114. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
  115. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +2 -2
  116. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +2 -2
  117. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
  118. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +17 -7
  119. package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
  120. package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
  121. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
  122. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +5 -6
  123. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
  124. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
  125. package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
  126. package/src/sap/ui/fl/library.js +12 -12
  127. package/src/sap/ui/fl/library.support.js +1 -1
  128. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
  129. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
  130. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
  131. package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
  132. package/src/sap/ui/fl/registry/Settings.js +26 -17
  133. package/src/sap/ui/fl/requireAsync.js +1 -1
  134. package/src/sap/ui/fl/support/Flexibility.js +84 -73
  135. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
  136. package/src/sap/ui/fl/support/api/SupportAPI.js +28 -0
  137. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
  138. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +14 -14
  139. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +9 -9
  140. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +10 -10
  141. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
  142. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +52 -53
  143. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +130 -126
  144. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
  145. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
  146. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -3
  147. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +4 -15
  148. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +2 -2
  149. package/src/sap/ui/fl/themes/base/library.source.less +1 -1
  150. package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
  151. package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
  152. package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
  153. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -5
  154. package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
  155. package/src/sap/ui/fl/util/IFrame.js +2 -2
  156. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  157. package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
  158. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  159. package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
  160. package/src/sap/ui/fl/util/resolveBinding.js +2 -2
  161. package/src/sap/ui/fl/variants/VariantManagement.js +3 -2
  162. package/src/sap/ui/fl/variants/VariantModel.js +6 -46
  163. package/src/sap/ui/fl/variants/context/Component.js +1 -1
  164. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +13 -3
  165. package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
  166. package/src/sap/ui/fl/write/_internal/Storage.js +34 -2
  167. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
  168. package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
  169. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
  170. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
  171. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  172. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +25 -2
  173. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -3
  174. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
  175. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
  176. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
  177. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
  178. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  179. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
  180. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
  181. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +5 -5
  182. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
  183. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +50 -26
  184. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
  185. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -3
  186. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
  187. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
  188. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
  190. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
  191. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
  192. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  193. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
  194. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
  195. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +5 -5
  196. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
  197. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
  198. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
  200. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  201. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
  202. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
  203. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
  204. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +3 -3
  205. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
  206. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  207. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
  208. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
  209. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
  210. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +22 -7
  211. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +6 -5
  212. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +6 -8
  213. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +7 -6
  214. package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -3
  215. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
  216. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
  217. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
  218. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +125 -14
  219. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
  220. package/src/sap/ui/fl/write/api/FeaturesAPI.js +6 -2
  221. package/src/sap/ui/fl/write/api/FieldExtensibility.js +8 -4
  222. package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
  223. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +43 -4
  224. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +5 -5
  225. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
  226. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +3 -1
  227. package/src/sap/ui/fl/write/api/TranslationAPI.js +102 -0
  228. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  229. package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
  230. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
  231. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +3 -2
  232. package/src/sap/ui/fl/write/connectors/BaseConnector.js +31 -1
  233. package/ui5.yaml +132 -1
  234. package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
@@ -1,53 +1,43 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/thirdparty/jquery",
9
- "sap/ui/core/Component",
10
- "sap/ui/core/util/reflection/BaseTreeModifier",
11
- "sap/ui/thirdparty/hasher",
12
- "sap/base/Log",
13
- "sap/base/util/UriParameters",
14
- "sap/base/util/uid",
15
8
  "sap/base/strings/formatMessage",
16
- "sap/ui/base/ManagedObject",
17
- "sap/ui/core/mvc/View",
18
9
  "sap/base/util/isPlainObject",
19
- "sap/ui/base/SyncPromise"
20
- ],
21
- function(
22
- jQuery,
23
- Component,
24
- BaseTreeModifier,
25
- hasher,
26
- Log,
27
- UriParameters,
28
- uid,
10
+ "sap/base/util/uid",
11
+ "sap/base/util/UriParameters",
12
+ "sap/base/Log",
13
+ "sap/ui/base/SyncPromise",
14
+ "sap/ui/base/ManagedObject",
15
+ "sap/ui/core/util/reflection/BaseTreeModifier",
16
+ "sap/ui/core/Component",
17
+ "sap/ui/thirdparty/hasher",
18
+ "sap/ui/thirdparty/jquery"
19
+ ], function(
29
20
  formatMessage,
30
- ManagedObject,
31
- View,
32
21
  isPlainObject,
33
- SyncPromise
22
+ uid,
23
+ UriParameters,
24
+ Log,
25
+ SyncPromise,
26
+ ManagedObject,
27
+ BaseTreeModifier,
28
+ Component,
29
+ hasher,
30
+ jQuery
34
31
  ) {
35
32
  "use strict";
36
33
 
37
- function appendComponentToString(sComponentName) {
38
- if (sComponentName.length > 0 && sComponentName.indexOf(".Component") < 0) {
39
- sComponentName += ".Component";
40
- }
41
- return sComponentName;
42
- }
43
-
44
34
  /**
45
35
  * Provides utility functions for the SAPUI5 flexibility library
46
36
  *
47
37
  * @namespace
48
38
  * @alias sap.ui.fl.Utils
49
39
  * @author SAP SE
50
- * @version 1.96.2
40
+ * @version 1.98.0
51
41
  * @experimental Since 1.25.0
52
42
  */
53
43
  var Utils = {
@@ -68,85 +58,6 @@ function(
68
58
  Log[sLogType](sLogMessage, sCallStack || "");
69
59
  },
70
60
 
71
- /**
72
- * Tries to retrieve the xsrf token from the controls OData Model. Returns empty string if retrieval failed.
73
- *
74
- * @param {sap.ui.core.Control} oControl - SAPUI5 control
75
- * @returns {String} XSRF Token
76
- * @public
77
- * @function
78
- * @name sap.ui.fl.Utils.getXSRFTokenFromControl
79
- */
80
- getXSRFTokenFromControl: function(oControl) {
81
- var oModel;
82
- if (!oControl) {
83
- return "";
84
- }
85
-
86
- // Get Model
87
- if (oControl && typeof oControl.getModel === "function") {
88
- oModel = oControl.getModel();
89
- return Utils._getXSRFTokenFromModel(oModel);
90
- }
91
- return "";
92
- },
93
-
94
- /**
95
- * Returns XSRF Token from the Odata Model. Returns empty string if retrieval failed
96
- *
97
- * @param {sap.ui.model.odata.ODataModel} oModel - OData Model
98
- * @returns {String} XSRF Token
99
- * @private
100
- */
101
- _getXSRFTokenFromModel: function(oModel) {
102
- var mHeaders;
103
- if (!oModel) {
104
- return "";
105
- }
106
- if (typeof oModel.getHeaders === "function") {
107
- mHeaders = oModel.getHeaders();
108
- if (mHeaders) {
109
- return mHeaders["x-csrf-token"];
110
- }
111
- }
112
- return "";
113
- },
114
-
115
- /**
116
- * Returns the class name of the component the given control belongs to.
117
- *
118
- * @param {sap.ui.core.Control} oControl - SAPUI5 control
119
- *
120
- * @returns {String} The component class name, ending with ".Component"
121
- * @see sap.ui.core.Component.getOwnerIdFor
122
- * @public
123
- * @function
124
- * @name sap.ui.fl.Utils.getComponentClassName
125
- */
126
- getComponentClassName: function(oControl) {
127
- var oAppComponent;
128
-
129
- // determine UI5 component out of given control
130
- if (oControl) {
131
- // always return the app component
132
- oAppComponent = this.getAppComponentForControl(oControl);
133
-
134
- // check if the component is an application variant and assigned an application descriptor then use this as reference
135
- if (oAppComponent) {
136
- var sVariantId = this._getComponentStartUpParameter(oAppComponent, "sap-app-id");
137
- if (sVariantId) {
138
- return sVariantId;
139
- }
140
-
141
- if (oAppComponent.getManifestEntry("sap.ui5") && oAppComponent.getManifestEntry("sap.ui5").appVariantId) {
142
- return oAppComponent.getManifestEntry("sap.ui5").appVariantId;
143
- }
144
- }
145
- }
146
-
147
- return Utils.getComponentName(oAppComponent);
148
- },
149
-
150
61
  isVariantByStartupParameter: function(oControl) {
151
62
  // determine UI5 component out of given control
152
63
  if (oControl) {
@@ -159,22 +70,6 @@ function(
159
70
  return false;
160
71
  },
161
72
 
162
- /**
163
- * Returns the class name of the application component owning the passed component or the component name itself if
164
- * this is already an application component.
165
- *
166
- * @param {sap.ui.core.Component} oComponent - SAPUI5 component
167
- * @returns {String} The component class name, ending with ".Component"
168
- * @see sap.ui.core.Component.getOwnerIdFor
169
- * @public
170
- * @since 1.40
171
- * @function
172
- * @name getAppComponentClassNameForComponent
173
- */
174
- getAppComponentClassNameForComponent: function(oComponent) {
175
- return Utils.getComponentClassName(oComponent);
176
- },
177
-
178
73
  /**
179
74
  * Returns the appDescriptor of the component for the given control
180
75
  *
@@ -205,37 +100,6 @@ function(
205
100
  return oManifest;
206
101
  },
207
102
 
208
- /**
209
- * Returns the siteId of a component
210
- *
211
- * @param {sap.ui.core.Control} oControl - SAPUI5 control
212
- * @returns {string} siteId - that represent the found siteId
213
- * @public
214
- * @function
215
- * @name sap.ui.fl.Utils.getSiteId
216
- */
217
- getSiteId: function(oControl) {
218
- var sSiteId = null;
219
- var oAppComponent = null;
220
-
221
- // determine UI5 component out of given control
222
- if (oControl) {
223
- oAppComponent = this.getAppComponentForControl(oControl);
224
-
225
- // determine siteId from ComponentData
226
- if (oAppComponent) {
227
- //Workaround for back-end check: isApplicationPermitted
228
- //As long as FLP does not know about appDescriptorId we have to pass siteID and applicationID.
229
- //With startUpParameter hcpApplicationId we will get a concatenation of “siteId:applicationId”
230
-
231
- //sSiteId = this._getComponentStartUpParameter(oComponent, "scopeId");
232
- sSiteId = this._getComponentStartUpParameter(oAppComponent, "hcpApplicationId");
233
- }
234
- }
235
-
236
- return sSiteId;
237
- },
238
-
239
103
  /**
240
104
  * Returns the siteId of a component when you already have the component data.
241
105
  *
@@ -277,22 +141,6 @@ function(
277
141
  );
278
142
  },
279
143
 
280
- /**
281
- * Indicates if the current application is a variant of an existing one
282
- *
283
- * @param {sap.ui.core.Control} oControl - SAPUI5 control
284
- * @returns {boolean} true if it's an application variant
285
- * @public
286
- * @function
287
- * @name sap.ui.fl.Utils.isApplicationVariant
288
- */
289
- isApplicationVariant: function(oControl) {
290
- var sFlexReference = Utils.getComponentClassName(oControl);
291
- var oAppComponent = Utils.getAppComponentForControl(oControl);
292
- var sComponentName = Utils.getComponentName(oAppComponent);
293
- return sFlexReference !== sComponentName;
294
- },
295
-
296
144
  /**
297
145
  * Determines if the passed change is related to control variants.
298
146
  * @see sap.ui.fl.variants.VariantManagement
@@ -336,21 +184,6 @@ function(
336
184
  }
337
185
  },
338
186
 
339
- /**
340
- * Gets the component name for a component instance.
341
- *
342
- * @param {sap.ui.core.Component} oComponent component instance
343
- * @returns {String} component name
344
- * @public
345
- */
346
- getComponentName: function(oComponent) {
347
- var sComponentName = "";
348
- if (oComponent) {
349
- sComponentName = oComponent.getMetadata().getName();
350
- }
351
- return appendComponentToString(sComponentName);
352
- },
353
-
354
187
  /**
355
188
  * Gets the component instance for a component ID.
356
189
  *
@@ -511,41 +344,6 @@ function(
511
344
  }
512
345
  },
513
346
 
514
- hasControlAncestorWithId: function(sControlId, sAncestorControlId) {
515
- var oControl;
516
-
517
- if (sControlId === sAncestorControlId) {
518
- return true;
519
- }
520
-
521
- oControl = sap.ui.getCore().byId(sControlId);
522
- while (oControl) {
523
- if (oControl.getId() === sAncestorControlId) {
524
- return true;
525
- }
526
-
527
- if (typeof oControl.getParent === "function") {
528
- oControl = oControl.getParent();
529
- } else {
530
- return false;
531
- }
532
- }
533
-
534
- return false;
535
- },
536
-
537
- /**
538
- * Checks whether the provided control is a view
539
- *
540
- * @param {sap.ui.core.Control} oControl - SAPUI5 control
541
- * @returns {boolean} Flag
542
- * @see sap.ui.core.Component.getOwnerIdFor
543
- * @private
544
- */
545
- _isView: function(oControl) {
546
- return oControl instanceof View;
547
- },
548
-
549
347
  /**
550
348
  * Returns OwnerId of the control
551
349
  *
@@ -717,19 +515,6 @@ function(
717
515
  return window.location.search.substring(1);
718
516
  },
719
517
 
720
- /**
721
- * Returns a map of technical parameters for the passed component.
722
- *
723
- * @param {object} oComponent - Component instance used to get the technical parameters
724
- * @returns {object|undefined} Returns the requested technical parameter object or undefined if unavailable
725
- */
726
- getTechnicalParametersForComponent: function(oComponent) {
727
- return oComponent
728
- && oComponent.getComponentData
729
- && oComponent.getComponentData()
730
- && oComponent.getComponentData().technicalParameters;
731
- },
732
-
733
518
  /**
734
519
  * Returns URL hash when ushell container is available synchronously.
735
520
  *
@@ -743,25 +528,6 @@ function(
743
528
  return {};
744
529
  },
745
530
 
746
- /**
747
- * Checks the SAPUI5 debug settings to determine whether all or at least the <code>sap.ui.fl</code> library is debugged.
748
- *
749
- * @returns {boolean} Returns a flag if the flexibility library is debugged
750
- * @public
751
- */
752
- isDebugEnabled: function() {
753
- var oUriParams = this._getUriParameters();
754
- var sDebugParameters = oUriParams.get("sap-ui-debug") || "";
755
-
756
- // true if SAPUI5 is in complete debug mode
757
- if (sap.ui.getCore().getConfiguration().getDebug() || sDebugParameters === "true") {
758
- return true;
759
- }
760
-
761
- var aDebugParameters = sDebugParameters.split(",");
762
- return aDebugParameters.indexOf("sap/ui/fl") !== -1 || aDebugParameters.indexOf("sap/ui/fl/") !== -1;
763
- },
764
-
765
531
  /**
766
532
  * Returns the value of the specified url parameter of the current url
767
533
  *
@@ -850,7 +616,7 @@ function(
850
616
 
851
617
  /** Returns the type of "sap.app" from the manifest object passed.
852
618
  * @param {sap.ui.core.Manifest} oManifest - Manifest object
853
- * @returns {string | undefined} Manifest object's "type" property for "sap.app" entry
619
+ * @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
854
620
  * @private
855
621
  */
856
622
  _getComponentTypeFromManifest: function(oManifest) {
@@ -858,8 +624,8 @@ function(
858
624
  },
859
625
 
860
626
  /** Returns the type of "sap.app" from the manifest object passed.
861
- * @param {sap.ui.core.Manifest} oRawManifest - raw manifest object
862
- * @returns {string | undefined} Manifest object's "type" property for "sap.app" entry
627
+ * @param {sap.ui.core.Manifest} oManifest - Raw manifest object
628
+ * @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
863
629
  * @private
864
630
  */
865
631
  _getComponentTypeFromRawManifest: function(oManifest) {
@@ -895,36 +661,10 @@ function(
895
661
  return oComponent instanceof Component && Utils._getComponentTypeFromManifest(oComponent.getManifestObject()) === "component";
896
662
  },
897
663
 
898
- /**
899
- * Returns the reference of a component, according to the following logic:
900
- * First appVariantId, if not, componentName + ".Component", if not appId + ".Component" (unless they already have ".Component" at the end).
901
- *
902
- * @param {object} oManifest - Manifest of the component
903
- * @returns {string} flex reference
904
- * @public
905
- */
906
- getFlexReference: function(oManifest) {
907
- if (oManifest) {
908
- if (oManifest.getEntry("sap.ui5")) {
909
- if (oManifest.getEntry("sap.ui5").appVariantId) {
910
- return oManifest.getEntry("sap.ui5").appVariantId;
911
- }
912
- if (oManifest.getEntry("sap.ui5").componentName) {
913
- return appendComponentToString(oManifest.getEntry("sap.ui5").componentName);
914
- }
915
- }
916
- if (oManifest.getEntry("sap.app") && oManifest.getEntry("sap.app").id) {
917
- return appendComponentToString(Utils.getAppIdFromManifest(oManifest));
918
- }
919
- }
920
- Log.warning("No Manifest received.");
921
- return "";
922
- },
923
-
924
664
  /**
925
665
  * Returns the descriptor Id, which is always the reference for descriptor changes
926
666
  *
927
- * @param {object} oManifest - Manifest of the component
667
+ * @param {object|sap.ui.core.Manifest} oManifest - Manifest of the component
928
668
  * @returns {string} Version of application if it is available in the manifest, otherwise an empty string
929
669
  * @public
930
670
  */
@@ -932,8 +672,13 @@ function(
932
672
  if (oManifest) {
933
673
  var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"];
934
674
  var sAppId = oSapApp && oSapApp.id;
935
- if (sAppId === Utils.APP_ID_AT_DESIGN_TIME && oManifest.getComponentName) {
936
- sAppId = oManifest.getComponentName();
675
+ if (sAppId === Utils.APP_ID_AT_DESIGN_TIME) {
676
+ if (oManifest.getComponentName) {
677
+ return oManifest.getComponentName();
678
+ }
679
+ if (oManifest.name) {
680
+ return oManifest.name;
681
+ }
937
682
  }
938
683
  return sAppId;
939
684
  }
@@ -941,26 +686,6 @@ function(
941
686
  throw new Error("No Manifest received, descriptor changes are not possible");
942
687
  },
943
688
 
944
- /**
945
- * Returns the uri of the main service specified in the app manifest
946
- *
947
- * @param {object} oManifest - Manifest of the component
948
- * @returns {string} Returns the uri if the manifest is available, otherwise an empty string
949
- * @public
950
- */
951
- getODataServiceUriFromManifest: function(oManifest) {
952
- var sUri = "";
953
- if (oManifest) {
954
- var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"];
955
- if (oSapApp && oSapApp.dataSources && oSapApp.dataSources.mainService && oSapApp.dataSources.mainService.uri) {
956
- sUri = oSapApp.dataSources.mainService.uri;
957
- }
958
- } else {
959
- Log.warning("No Manifest received.");
960
- }
961
- return sUri;
962
- },
963
-
964
689
  /**
965
690
  * Checks if an object is in an array or not and returns the index or -1
966
691
  *
@@ -1018,8 +743,9 @@ function(
1018
743
  }
1019
744
  var fnPromise = aPromiseQueue.shift();
1020
745
  if (typeof fnPromise === "function") {
746
+ var vResult;
1021
747
  try {
1022
- var vResult = fnPromise();
748
+ vResult = fnPromise();
1023
749
  } catch (e) {
1024
750
  vResult = Promise.reject(e);
1025
751
  }
@@ -1165,7 +891,7 @@ function(
1165
891
 
1166
892
  /**
1167
893
  * Normalize reference, delete .Component at the end of the incoming string.
1168
- * @param {string} reference
894
+ * @param {string} sReference - Flex reference
1169
895
  * @returns {string} Returns reference without .Component
1170
896
  */
1171
897
  normalizeReference: function(sReference) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @class Variant class.
34
34
  * @extends sap.ui.base.ManagedObject
35
35
  * @author SAP SE
36
- * @version 1.96.2
36
+ * @version 1.98.0
37
37
  * @alias sap.ui.fl.Variant
38
38
  * @experimental Since 1.52.0
39
39
  */
@@ -188,20 +188,6 @@ sap.ui.define([
188
188
  return this._oDefinition.controlChanges;
189
189
  };
190
190
 
191
- /**
192
- * Returns the original language in ISO 639-1 format
193
- *
194
- * @returns {String} Original language
195
- *
196
- * @public
197
- */
198
- Variant.prototype.getOriginalLanguage = function () {
199
- if (this._oDefinition && this._oDefinition.content.originalLanguage) {
200
- return this._oDefinition.content.originalLanguage;
201
- }
202
- return "";
203
- };
204
-
205
191
  /**
206
192
  * Returns the abap package name
207
193
  * @returns {string} ABAP package where the variant is assigned to
@@ -287,16 +273,6 @@ sap.ui.define([
287
273
  return this._oDefinition.content.variantReference;
288
274
  };
289
275
 
290
- /**
291
- * Returns the user ID of the owner
292
- * @returns {string} ID of the owner
293
- *
294
- * @public
295
- */
296
- Variant.prototype.getOwnerId = function () {
297
- return this._oDefinition.content.support ? this._oDefinition.content.support.user : "";
298
- };
299
-
300
276
  /**
301
277
  * Returns the text in the current language for a given id
302
278
  *
@@ -340,77 +316,6 @@ sap.ui.define([
340
316
  }
341
317
  };
342
318
 
343
- /**
344
- * Returns true if the current layer is the same as the layer
345
- * in which the variant was created or the variant is from the
346
- * end-user layer and for this user created.
347
- * @returns {boolean} is the variant read only
348
- *
349
- * @public
350
- */
351
- Variant.prototype.isReadOnly = function () {
352
- return this._isReadOnlyDueToLayer() || this._isReadOnlyWhenNotKeyUser();
353
- };
354
-
355
- /**
356
- * Checks if the variant is read-only
357
- * because the current user is not a key user and the change is "shared"
358
- * @returns {boolean} Flag whether variant is read only
359
- *
360
- * @private
361
- */
362
- Variant.prototype._isReadOnlyWhenNotKeyUser = function () {
363
- if (this.isUserDependent()) {
364
- return false; // the user always can edit its own variants
365
- }
366
-
367
- var sReference = this.getDefinition().reference;
368
- if (!sReference) {
369
- return true; // without a reference the right to edit or delete a variant cannot be determined
370
- }
371
-
372
- var oSettings = Settings.getInstanceOrUndef();
373
- if (!oSettings) {
374
- return true; // without settings the right to edit or delete a variant cannot be determined
375
- }
376
-
377
- return !oSettings.isKeyUser(); // a key user can edit changes
378
- };
379
-
380
- /**
381
- * Checks if the layer allows modifying the file
382
- * @returns {boolean} Flag whether variant is read only
383
- *
384
- * @private
385
- */
386
- Variant.prototype._isReadOnlyDueToLayer = function () {
387
- var sCurrentLayer;
388
- sCurrentLayer = this._bUserDependent ? Layer.USER : LayerUtils.getCurrentLayer();
389
- return (this._oDefinition.content.layer !== sCurrentLayer);
390
- };
391
-
392
- /**
393
- * A variant can only be modified if the current language equals the original language.
394
- * Returns false if the current language does not equal the original language of the variant's change file.
395
- * Returns false if the original language is initial.
396
- *
397
- * @returns {boolean} flag whether the current logon language differs from the original language of the variant's change document
398
- *
399
- * @private
400
- */
401
- Variant.prototype._isReadOnlyDueToOriginalLanguage = function () {
402
- var sCurrentLanguage;
403
- var sOriginalLanguage;
404
-
405
- sOriginalLanguage = this.getOriginalLanguage();
406
- if (!sOriginalLanguage) {
407
- return false;
408
- }
409
-
410
- sCurrentLanguage = Utils.getCurrentLanguage();
411
- return (sCurrentLanguage !== sOriginalLanguage);
412
- };
413
-
414
319
  /**
415
320
  * Marks the current variant to be deleted persistently
416
321
  *
@@ -485,16 +390,6 @@ sap.ui.define([
485
390
  return this._oDefinition.content.creation;
486
391
  };
487
392
 
488
- /**
489
- * Returns true if the variant is user dependent
490
- * @returns {boolean} Variant is only relevant for the current user
491
- *
492
- * @public
493
- */
494
- Variant.prototype.isUserDependent = function () {
495
- return (this._bUserDependent);
496
- };
497
-
498
393
  /**
499
394
  * Gets the JSON definition of the variant
500
395
  * @returns {object} the content of the variant
@@ -520,15 +415,6 @@ sap.ui.define([
520
415
  }
521
416
  };
522
417
 
523
- Variant.prototype.getFullFileIdentifier = function () {
524
- var sLayer = this.getLayer();
525
- var sNamespace = this.getNamespace();
526
- var sFileName = this.getDefinition().content.fileName;
527
- var sFileType = this.getDefinition().content.fileType;
528
-
529
- return sLayer + "/" + sNamespace + "/" + sFileName + "." + sFileType;
530
- };
531
-
532
418
  /**
533
419
  * Returns the revert specific data
534
420
  *
@@ -1,17 +1,19 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/ui/core/Component",
9
+ "sap/ui/fl/apply/_internal/flexState/ManifestUtils",
9
10
  "sap/ui/fl/FlexControllerFactory",
10
11
  "sap/ui/fl/Utils",
11
12
  "sap/ui/fl/ChangePersistenceFactory",
12
13
  "sap/base/Log"
13
14
  ], function(
14
15
  Component,
16
+ ManifestUtils,
15
17
  FlexControllerFactory,
16
18
  Utils,
17
19
  ChangePersistenceFactory,
@@ -26,21 +28,19 @@ sap.ui.define([
26
28
  * @class
27
29
  * @constructor
28
30
  * @author SAP SE
29
- * @version 1.96.2
31
+ * @version 1.98.0
30
32
  * @experimental Since 1.27.0
31
33
  */
32
- var XmlPreprocessorImpl = function() {
33
- };
34
+ var XmlPreprocessorImpl = function() {};
34
35
 
35
36
  /**
36
37
  * Asynchronous view processing method.
37
38
  *
38
- * @param {Node} oView XML node of the view to process
39
- * @param {object} mProperties
40
- * @param {string} mProperties.componentId - id of the component creating the view
41
- * @param {string} mPropertyBag.id - id of the processed view
42
- *
43
- * @returns {Promise.<Node>|Node} result of the processing, promise if executed asynchronously
39
+ * @param {Node} oView - XML node of the view to process
40
+ * @param {object} mProperties - Property Bag
41
+ * @param {string} mProperties.componentId - ID of the component creating the view
42
+ * @param {string} mPropertyBag.id - ID of the processed view
43
+ * @returns {Promise.<Node>|Node} Result of the processing, promise if executed asynchronously
44
44
  *
45
45
  * @public
46
46
  */
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  return Promise.resolve(oView);
69
69
  }
70
70
 
71
- var sFlexReference = Utils.getComponentClassName(oAppComponent);
71
+ var sFlexReference = ManifestUtils.getFlexReferenceForControl(oAppComponent);
72
72
  var oFlexController = FlexControllerFactory.create(sFlexReference);
73
73
 
74
74
  return oFlexController.processXmlView(oView, mProperties)
@@ -92,8 +92,9 @@ sap.ui.define([
92
92
  /**
93
93
  * Asynchronous determination of a hash key for caching purposes
94
94
  *
95
- * @param {Node} oView XML node of the view for which the key should be determined
96
- * @returns {Promise} promise returning the hash key
95
+ * @param {object} mProperties - Property Bag
96
+ * @param {string} mProperties.componentId - Component instance ID
97
+ * @returns {Promise} Resolves with the hash key
97
98
  *
98
99
  * @public
99
100
  */
@@ -106,7 +107,7 @@ sap.ui.define([
106
107
  return Promise.resolve();
107
108
  }
108
109
 
109
- var sFlexReference = Utils.getComponentClassName(oAppComponent);
110
+ var sFlexReference = ManifestUtils.getFlexReferenceForControl(oAppComponent);
110
111
  var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(sFlexReference);
111
112
  return oChangePersistence.getCacheKey(oAppComponent);
112
113
  };