@openui5/sap.ui.fl 1.131.0 → 1.132.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 (316) hide show
  1. package/.eslintrc.json +1 -2
  2. package/THIRDPARTY.txt +1 -1
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +2 -2
  5. package/src/sap/ui/fl/ChangePersistence.js +11 -5
  6. package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
  7. package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
  8. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
  9. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
  10. package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
  11. package/src/sap/ui/fl/FlexController.js +3 -2
  12. package/src/sap/ui/fl/FlexControllerFactory.js +2 -2
  13. package/src/sap/ui/fl/Layer.js +1 -1
  14. package/src/sap/ui/fl/LayerUtils.js +2 -2
  15. package/src/sap/ui/fl/Scenario.js +1 -1
  16. package/src/sap/ui/fl/Utils.js +2 -2
  17. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
  18. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  19. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +13 -3
  20. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
  21. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +7 -2
  22. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +49 -23
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +20 -21
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -2
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewDataSource.js +4 -4
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +2 -2
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewOutbound.js +2 -2
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddTechnicalAttributes.js +3 -3
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeOutbound.js +2 -2
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +2 -2
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetAch.js +2 -2
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetDescription.js +2 -2
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +16 -4
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetCloudDevAdaptationStatus.js +2 -2
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
  45. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
  46. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
  47. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
  48. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
  49. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
  50. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
  51. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/ChangeModel.js +2 -2
  52. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
  53. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
  54. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
  55. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
  56. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -1
  57. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
  59. package/src/sap/ui/fl/apply/_internal/extensionPoint/Registry.js +2 -2
  60. package/src/sap/ui/fl/apply/_internal/flexObjects/AnnotationChange.js +17 -10
  61. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +16 -2
  62. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +2 -2
  63. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
  64. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +2 -2
  65. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +2 -2
  66. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +21 -2
  67. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +19 -3
  68. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
  69. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
  70. package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +21 -2
  71. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +5 -1
  72. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +7 -2
  73. package/src/sap/ui/fl/apply/_internal/flexObjects/getVariantAuthor.js +2 -2
  74. package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +1 -1
  75. package/src/sap/ui/fl/apply/_internal/flexState/FlexObjectState.js +10 -4
  76. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +14 -8
  77. package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +1 -1
  78. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +21 -16
  79. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +2 -2
  80. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
  81. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
  82. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
  83. package/src/sap/ui/fl/apply/_internal/flexState/changes/UIChangesState.js +2 -2
  84. package/src/sap/ui/fl/apply/_internal/flexState/communication/FLPAboutInfo.js +140 -0
  85. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantManagementState.js +2 -2
  86. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
  87. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
  88. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +1 -1
  89. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
  90. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +2 -2
  91. package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +60 -1
  92. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +2 -2
  93. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +20 -3
  94. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +2 -2
  95. package/src/sap/ui/fl/apply/api/AnnotationChangeHandlerAPI.js +11 -9
  96. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
  97. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
  98. package/src/sap/ui/fl/apply/api/ExtensionPointRegistryAPI.js +1 -1
  99. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +23 -1
  100. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
  101. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
  102. package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
  103. package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
  104. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
  105. package/src/sap/ui/fl/changeHandler/Base.js +2 -2
  106. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
  107. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
  108. package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
  109. package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
  110. package/src/sap/ui/fl/changeHandler/ChangeAnnotation.js +78 -0
  111. package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
  112. package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
  113. package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
  114. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
  115. package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
  116. package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
  117. package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
  118. package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
  119. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
  120. package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
  121. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
  122. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
  123. package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
  124. package/src/sap/ui/fl/changeHandler/condenser/Classification.js +1 -1
  125. package/src/sap/ui/fl/descriptorRelated/Utils.js +1 -1
  126. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +9 -7
  127. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
  128. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
  129. package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
  130. package/src/sap/ui/fl/designtime/messagebundle_en_US_saptrc.properties +1 -1
  131. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
  132. package/src/sap/ui/fl/designtime/util/editIFrame.js +1 -1
  133. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +1 -1
  134. package/src/sap/ui/fl/initial/_internal/FlexConfiguration.js +2 -2
  135. package/src/sap/ui/fl/initial/_internal/FlexInfoSession.js +1 -1
  136. package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
  137. package/src/sap/ui/fl/initial/_internal/StorageFeaturesMerger.js +2 -2
  138. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
  139. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +7 -4
  140. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +8 -7
  141. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +14 -11
  142. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
  143. package/src/sap/ui/fl/initial/_internal/connectors/BtpServiceConnector.js +15 -1
  144. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
  145. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -1
  146. package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
  147. package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
  148. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
  149. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +2 -2
  150. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
  151. package/src/sap/ui/fl/initial/api/InitialFlexAPI.js +57 -0
  152. package/src/sap/ui/fl/initial/api/Version.js +1 -1
  153. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
  154. package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
  155. package/src/sap/ui/fl/library.js +44 -44
  156. package/src/sap/ui/fl/library.support.js +3 -3
  157. package/src/sap/ui/fl/messagebundle.properties +4 -1
  158. package/src/sap/ui/fl/messagebundle_ar.properties +2 -0
  159. package/src/sap/ui/fl/messagebundle_bg.properties +2 -0
  160. package/src/sap/ui/fl/messagebundle_ca.properties +2 -0
  161. package/src/sap/ui/fl/messagebundle_cnr.properties +2 -0
  162. package/src/sap/ui/fl/messagebundle_cs.properties +2 -0
  163. package/src/sap/ui/fl/messagebundle_cy.properties +2 -0
  164. package/src/sap/ui/fl/messagebundle_da.properties +2 -0
  165. package/src/sap/ui/fl/messagebundle_de.properties +2 -0
  166. package/src/sap/ui/fl/messagebundle_el.properties +2 -0
  167. package/src/sap/ui/fl/messagebundle_en.properties +2 -0
  168. package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -0
  169. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -0
  170. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +45 -45
  171. package/src/sap/ui/fl/messagebundle_es.properties +2 -0
  172. package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -0
  173. package/src/sap/ui/fl/messagebundle_et.properties +2 -0
  174. package/src/sap/ui/fl/messagebundle_fi.properties +2 -0
  175. package/src/sap/ui/fl/messagebundle_fr.properties +2 -0
  176. package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -0
  177. package/src/sap/ui/fl/messagebundle_hi.properties +2 -0
  178. package/src/sap/ui/fl/messagebundle_hr.properties +2 -0
  179. package/src/sap/ui/fl/messagebundle_hu.properties +2 -0
  180. package/src/sap/ui/fl/messagebundle_id.properties +2 -0
  181. package/src/sap/ui/fl/messagebundle_it.properties +2 -0
  182. package/src/sap/ui/fl/messagebundle_iw.properties +2 -0
  183. package/src/sap/ui/fl/messagebundle_ja.properties +2 -0
  184. package/src/sap/ui/fl/messagebundle_kk.properties +2 -0
  185. package/src/sap/ui/fl/messagebundle_ko.properties +2 -0
  186. package/src/sap/ui/fl/messagebundle_lt.properties +2 -0
  187. package/src/sap/ui/fl/messagebundle_lv.properties +2 -0
  188. package/src/sap/ui/fl/messagebundle_mk.properties +2 -0
  189. package/src/sap/ui/fl/messagebundle_ms.properties +2 -0
  190. package/src/sap/ui/fl/messagebundle_nl.properties +2 -0
  191. package/src/sap/ui/fl/messagebundle_no.properties +2 -0
  192. package/src/sap/ui/fl/messagebundle_pl.properties +2 -0
  193. package/src/sap/ui/fl/messagebundle_pt.properties +2 -0
  194. package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -0
  195. package/src/sap/ui/fl/messagebundle_ro.properties +2 -0
  196. package/src/sap/ui/fl/messagebundle_ru.properties +2 -0
  197. package/src/sap/ui/fl/messagebundle_sh.properties +2 -0
  198. package/src/sap/ui/fl/messagebundle_sk.properties +2 -0
  199. package/src/sap/ui/fl/messagebundle_sl.properties +2 -0
  200. package/src/sap/ui/fl/messagebundle_sr.properties +2 -0
  201. package/src/sap/ui/fl/messagebundle_sv.properties +2 -0
  202. package/src/sap/ui/fl/messagebundle_th.properties +2 -0
  203. package/src/sap/ui/fl/messagebundle_tr.properties +2 -0
  204. package/src/sap/ui/fl/messagebundle_uk.properties +2 -0
  205. package/src/sap/ui/fl/messagebundle_vi.properties +2 -0
  206. package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -0
  207. package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -0
  208. package/src/sap/ui/fl/registry/Settings.js +1 -1
  209. package/src/sap/ui/fl/requireAsync.js +1 -1
  210. package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +1 -1
  211. package/src/sap/ui/fl/support/_internal/getAllUIChanges.js +2 -2
  212. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +2 -2
  213. package/src/sap/ui/fl/support/_internal/getFlexObjectInfos.js +2 -2
  214. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +2 -2
  215. package/src/sap/ui/fl/support/api/SupportAPI.js +2 -2
  216. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
  217. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
  218. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +2 -2
  219. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +2 -2
  220. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +2 -2
  221. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +2 -2
  222. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +2 -2
  223. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
  224. package/src/sap/ui/fl/themes/base/library.source.less +1 -1
  225. package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
  226. package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
  227. package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
  228. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -3
  229. package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
  230. package/src/sap/ui/fl/util/IFrame.js +2 -2
  231. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  232. package/src/sap/ui/fl/util/ManagedObjectModel.js +3 -3
  233. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  234. package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
  235. package/src/sap/ui/fl/util/resolveBinding.js +2 -2
  236. package/src/sap/ui/fl/variants/VariantManagement.js +1 -1
  237. package/src/sap/ui/fl/variants/VariantManager.js +604 -0
  238. package/src/sap/ui/fl/variants/VariantModel.js +27 -557
  239. package/src/sap/ui/fl/variants/context/Component.js +1 -1
  240. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +1 -1
  241. package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +12 -12
  242. package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
  243. package/src/sap/ui/fl/write/_internal/Storage.js +8 -3
  244. package/src/sap/ui/fl/write/_internal/Versions.js +2 -2
  245. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
  246. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
  247. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  248. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +9 -3
  249. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +69 -48
  250. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
  251. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
  252. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
  253. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
  254. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  255. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
  256. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
  257. package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +1 -1
  258. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
  259. package/src/sap/ui/fl/write/_internal/connectors/BtpServiceConnector.js +32 -2
  260. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
  261. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +2 -2
  262. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
  263. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +2 -2
  264. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
  265. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
  266. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
  267. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
  268. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
  269. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
  270. package/src/sap/ui/fl/write/_internal/controlVariants/ControlVariantWriteUtils.js +1 -1
  271. package/src/sap/ui/fl/write/_internal/delegates/ODataV2ReadDelegate.js +1 -1
  272. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  273. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
  274. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
  275. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
  276. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
  277. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  278. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
  279. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  280. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
  281. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
  282. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
  283. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
  284. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
  285. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  286. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
  287. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
  288. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
  289. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectManager.js +2 -2
  290. package/src/sap/ui/fl/write/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
  291. package/src/sap/ui/fl/write/_internal/flexState/changes/UIChangeManager.js +2 -2
  292. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +9 -12
  293. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +1 -1
  294. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +2 -2
  295. package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -2
  296. package/src/sap/ui/fl/write/api/Adaptations.js +1 -1
  297. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
  298. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +33 -10
  299. package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +40 -27
  300. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
  301. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +14 -2
  302. package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -1
  303. package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -2
  304. package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
  305. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +43 -5
  306. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +1 -1
  307. package/src/sap/ui/fl/write/api/SACIntegrationUpdateVariant.js +1 -1
  308. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
  309. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -1
  310. package/src/sap/ui/fl/write/api/TranslationAPI.js +1 -1
  311. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  312. package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
  313. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
  314. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +1 -1
  315. package/src/sap/ui/fl/write/connectors/BaseConnector.js +1 -1
  316. package/ui5.yaml +2 -1
package/.eslintrc.json CHANGED
@@ -49,8 +49,7 @@
49
49
  }],
50
50
  "no-multiple-empty-lines": ["error", {"max": 1}],
51
51
  "quotes": ["error", "double", {
52
- "avoidEscape": true,
53
- "allowTemplateLiterals": true
52
+ "avoidEscape": true
54
53
  }],
55
54
  "no-unsafe-optional-chaining": "error",
56
55
  "prefer-const": ["error", { "ignoreReadBeforeAssign": true }],
package/THIRDPARTY.txt CHANGED
@@ -468,7 +468,7 @@ License: Apache-2.0
468
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
469
  Contained in: lib/jsdoc/ui5/plugin.js
470
470
 
471
- Component: SAP Theming Base Content, version: 11.22.0
471
+ Component: SAP Theming Base Content, version: 11.24.0
472
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
473
473
  License: Apache-2.0
474
474
  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.131.0",
3
+ "version": "1.132.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.131.0",
18
- "@openui5/sap.ui.core": "1.131.0"
17
+ "@openui5/sap.m": "1.132.0",
18
+ "@openui5/sap.ui.core": "1.132.0"
19
19
  }
20
20
  }
@@ -4,9 +4,9 @@
4
4
  <name>sap.ui.fl</name>
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>OpenUI5
7
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.131.0</version>
9
+ <version>1.132.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
12
12
 
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 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/base/Log",
9
+ "sap/ui/fl/apply/_internal/flexObjects/CompVariant",
9
10
  "sap/ui/fl/apply/_internal/flexObjects/States",
10
11
  "sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
11
- "sap/ui/fl/apply/_internal/flexState/changes/UIChangesState",
12
12
  "sap/ui/fl/apply/_internal/flexState/FlexObjectState",
13
13
  "sap/ui/fl/apply/_internal/flexState/FlexState",
14
14
  "sap/ui/fl/initial/api/Version",
@@ -20,9 +20,9 @@ sap.ui.define([
20
20
  "sap/ui/fl/LayerUtils"
21
21
  ], function(
22
22
  Log,
23
+ CompVariant,
23
24
  States,
24
25
  DependencyHandler,
25
- UIChangesState,
26
26
  FlexObjectState,
27
27
  FlexState,
28
28
  Version,
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  *
41
41
  * @constructor
42
42
  * @author SAP SE
43
- * @version 1.131.0
43
+ * @version 1.132.0
44
44
  * @since 1.25.0
45
45
  * @private
46
46
  * @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
@@ -124,7 +124,13 @@ sap.ui.define([
124
124
  if (!aDirtyChanges.length && !bCondenseAnyLayer) {
125
125
  return [];
126
126
  }
127
- var aPersistedAndSameLayerChanges = UIChangesState.getAllUIChanges(this._mComponent.name).filter(function(oChange) {
127
+ var aPersistedAndSameLayerChanges = FlexState.getFlexObjectsDataSelector().get({reference: this._mComponent.name})
128
+ .filter(function(oChange) {
129
+ // CompVariants are currently saved separately and should not be part of the condense request
130
+ // TODO: Remove CompVariant special handling todos#5
131
+ if (oChange instanceof CompVariant) {
132
+ return false;
133
+ }
128
134
  if (sLayer === Layer.CUSTOMER && aDraftFilenames) {
129
135
  return oChange.getState() === States.LifecycleState.PERSISTED && aDraftFilenames.includes(oChange.getId());
130
136
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @alias sap.ui.fl.ChangePersistenceFactory
20
20
  * @since 1.27.0
21
21
  * @author SAP SE
22
- * @version 1.131.0
22
+ * @version 1.132.0
23
23
  * @private
24
24
  * @ui5-restricted sap.ui.fl
25
25
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -20,7 +20,7 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.131.0
23
+ * @version 1.132.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.48
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -20,7 +20,7 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.131.0
23
+ * @version 1.132.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.58
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @namespace
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.131.0
20
+ * @version 1.132.0
21
21
  *
22
22
  * @private
23
23
  * @since 1.48
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @since 1.27.0
52
52
  * @private
53
53
  * @author SAP SE
54
- * @version 1.131.0
54
+ * @version 1.132.0
55
55
  */
56
56
  var FlexController = function(sComponentName) {
57
57
  this._oChangePersistence = undefined;
@@ -125,6 +125,7 @@ sap.ui.define([
125
125
  reference: this._sComponentName,
126
126
  layer: Layer.CUSTOMER // only the customer layer has draft active
127
127
  };
128
+ // TODO: array as response is bad practice, should be changed to an object
128
129
  if (oResult?.response && oResult.response.length > 0) {
129
130
  var aDraftFilenames = [];
130
131
  if (Array.isArray(oResult.response)) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @alias sap.ui.fl.FlexControllerFactory
23
23
  * @since 1.27.0
24
24
  * @author SAP SE
25
- * @version 1.131.0
25
+ * @version 1.132.0
26
26
  *
27
27
  * @private
28
28
  * @ui5-restricted sap.ui.fl
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  *
42
42
  * @namespace sap.ui.fl.LayerUtils
43
43
  * @author SAP SE
44
- * @version 1.131.0
44
+ * @version 1.132.0
45
45
  */
46
46
  var LayerUtils = {
47
47
  _mLayersIndex: mLayersIndex,
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @namespace
66
66
  * @alias sap.ui.fl.Utils
67
67
  * @author SAP SE
68
- * @version 1.131.0
68
+ * @version 1.132.0
69
69
  *
70
70
  * @private
71
71
  * @ui5-restricted sap.ui.fl, sap.ui.rta
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @private
24
24
  * @author SAP SE
25
- * @version 1.131.0
25
+ * @version 1.132.0
26
26
  *
27
27
  */
28
28
  const DelegateMediator = {};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -316,7 +316,12 @@ sap.ui.define([
316
316
  Applier.applyChangeOnControl = async function(oChange, oControl, mPropertyBag) {
317
317
  const mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
318
318
  try {
319
- const oChangeHandler = mPropertyBag.changeHandler || await Utils.getChangeHandler(oChange, mControl, mPropertyBag);
319
+ const oChangeHandler = mPropertyBag.changeHandler || await Utils.getChangeHandler({
320
+ flexObject: oChange,
321
+ control: mControl.control,
322
+ controlType: mControl.controlType,
323
+ modifier: mPropertyBag.modifier
324
+ });
320
325
  checkPreconditions(oChange, mPropertyBag);
321
326
 
322
327
  if (oChange.hasApplyProcessStarted()) {
@@ -452,7 +457,12 @@ sap.ui.define([
452
457
  try {
453
458
  const oControl = await checkControlAndDependentSelectorControls(oChange, mPropertyBag);
454
459
  const mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
455
- mPropertyBag.changeHandler = await Utils.getChangeHandler(oChange, mControl, mPropertyBag);
460
+ mPropertyBag.changeHandler = await Utils.getChangeHandler({
461
+ flexObject: oChange,
462
+ control: mControl.control,
463
+ controlType: mControl.controlType,
464
+ modifier: mPropertyBag.modifier
465
+ });
456
466
  oChange.setQueuedForApply();
457
467
  checkAndAdjustChangeStatus(oControl, oChange, mPropertyBag, true);
458
468
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @since 1.61.0
30
30
  * @private
31
31
  * @author SAP SE
32
- * @version 1.131.0
32
+ * @version 1.132.0
33
33
  */
34
34
  const FlexCustomData = {};
35
35
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -66,7 +66,12 @@ sap.ui.define([
66
66
  Reverter.revertChangeOnControl = async function(oChange, oControl, mPropertyBag) {
67
67
  const mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
68
68
  try {
69
- const oChangeHandler = await Utils.getChangeHandler(oChange, mControl, mPropertyBag);
69
+ const oChangeHandler = await Utils.getChangeHandler({
70
+ flexObject: oChange,
71
+ control: mControl.control,
72
+ controlType: mControl.controlType,
73
+ modifier: mPropertyBag.modifier
74
+ });
70
75
  await waitForApplyIfNecessary(oChange);
71
76
  if (oChange.isSuccessfullyApplied()) {
72
77
  oChange.startReverting();
@@ -1,16 +1,22 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2025 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/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory",
8
9
  "sap/ui/fl/apply/_internal/changes/FlexCustomData",
10
+ "sap/ui/fl/apply/_internal/flexObjects/AnnotationChange",
11
+ "sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange",
9
12
  "sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage",
10
13
  "sap/ui/fl/requireAsync",
11
14
  "sap/ui/fl/Utils"
12
15
  ], function(
16
+ ApplyStrategyFactory,
13
17
  FlexCustomData,
18
+ AnnotationChange,
19
+ AppDescriptorChange,
14
20
  ChangeHandlerStorage,
15
21
  requireAsync,
16
22
  FlUtils
@@ -22,7 +28,7 @@ sap.ui.define([
22
28
  *
23
29
  * @namespace sap.ui.fl.apply._internal.changes.Utils
24
30
  * @since 1.70
25
- * @version 1.131.0
31
+ * @version 1.132.0
26
32
  * @private
27
33
  * @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
28
34
  */
@@ -68,29 +74,49 @@ sap.ui.define([
68
74
  },
69
75
 
70
76
  /**
71
- * Fetches the change handler for a specific change and control;
72
- * if the change handler is currently being registered the function waits for the registration.
77
+ * Fetches the change handler for a specific flex object or for the given parameters (e.g. for UI changes
78
+ * or when the flex object is not available yet).
79
+ * If the change handler is currently being registered, the function waits for the registration.
73
80
  *
74
- * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - Change for which the change handler should be fetched
75
- * @param {object} mControl - Object with information about the control
76
- * @param {sap.ui.core.Control} mControl.control - Control instance
77
- * @param {string} mControl.controlType - Type of the control
78
- * @param {object} mPropertyBag - Contains additional data that are needed for fetching the change handler
79
- * @param {sap.ui.core.util.reflection.BaseTreeModifier} mPropertyBag.modifier - Control tree modifier
80
- * @returns {Promise} Promise resolving with the change handler or an empty object
81
+ * @param {object} mPropertyBag - Data required to retrieve the change handler
82
+ * @param {sap.ui.fl.apply._internal.flexObjects.FlexObject} [mPropertyBag.flexObject] - Flex object for which the change handler is requested
83
+ * @param {string} [mPropertyBag.changeType] - Change type of the flex object
84
+ * @param {sap.ui.core.Control} [mPropertyBag.control] - Control for which the change handler is requested
85
+ * @param {string} [mPropertyBag.controlType] - Type of the control for which the change handler is requested
86
+ * @param {string} [mPropertyBag.layer] - Layer of the flex object
87
+ * @param {sap.ui.core.util.reflection.BaseTreeModifier} [mPropertyBag.modifier] - Control tree modifier
88
+ * @param {boolean} [mPropertyBag.appDescriptorChange] - Whether the flex object is an app descriptor change
89
+ * @param {boolean} [mPropertyBag.annotationChange] - Whether the flex object is an annotation change
90
+ * @returns {Promise} Promise resolving with the retrieved change handler or undefined
81
91
  */
82
- async getChangeHandler(oChange, mControl, mPropertyBag) {
83
- const sLibraryName = await mPropertyBag.modifier.getLibraryName(mControl.control);
84
- // the ChangeHandlerRegistration includes all the predefined ChangeHandlers.
85
- // With this as a standard import the ChangeHandlers would not be able to access API classes due to circular dependencies.
86
- // TODO should be removed as soon as the ChangePersistence / FlexController are gone
87
- const ChangeHandlerRegistration = await requireAsync("sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration");
88
- await ChangeHandlerRegistration.waitForChangeHandlerRegistration(sLibraryName);
89
- const sChangeType = oChange.getChangeType();
90
- const sLayer = oChange.getLayer();
91
- return ChangeHandlerStorage.getChangeHandler(
92
- sChangeType, mControl.controlType, mControl.control, mPropertyBag.modifier, sLayer
93
- );
92
+ async getChangeHandler(mPropertyBag) {
93
+ const sChangeType = mPropertyBag.changeType || mPropertyBag.flexObject?.getChangeType();
94
+ if (mPropertyBag.flexObject instanceof AppDescriptorChange || mPropertyBag.appDescriptorChange) {
95
+ const mStrategy = await ApplyStrategyFactory.getRuntimeStrategy();
96
+ try {
97
+ const oRegistry = await mStrategy.registry();
98
+ return await oRegistry[sChangeType]?.();
99
+ } catch (oError) {
100
+ mStrategy.handleError(oError);
101
+ }
102
+ } else if (mPropertyBag.flexObject instanceof AnnotationChange || mPropertyBag.annotationChange) {
103
+ return ChangeHandlerStorage.getAnnotationChangeHandler({
104
+ changeType: sChangeType
105
+ });
106
+ } else if (mPropertyBag.control) {
107
+ const sLibraryName = await mPropertyBag.modifier.getLibraryName(mPropertyBag.control);
108
+ // the ChangeHandlerRegistration includes all the predefined ChangeHandlers.
109
+ // With this as a standard import the ChangeHandlers would not be able to access API classes due to circular dependencies.
110
+ // TODO should be removed as soon as the ChangePersistence / FlexController are gone
111
+ const ChangeHandlerRegistration =
112
+ await requireAsync("sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration");
113
+ await ChangeHandlerRegistration.waitForChangeHandlerRegistration(sLibraryName);
114
+ const sLayer = mPropertyBag.layer || mPropertyBag.flexObject?.getLayer();
115
+ return ChangeHandlerStorage.getChangeHandler(
116
+ sChangeType, mPropertyBag.controlType, mPropertyBag.control, mPropertyBag.modifier, sLayer
117
+ );
118
+ }
119
+ return undefined;
94
120
  },
95
121
 
96
122
  checkIfDependencyIsStillValid(oAppComponent, oModifier, mChangesMap, sChangeId) {
@@ -1,15 +1,17 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
8
8
  sap.ui.define([
9
9
  "sap/base/util/isEmptyObject",
10
+ "sap/ui/fl/apply/_internal/changes/Utils",
10
11
  "sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory"
11
12
  ], function(
12
13
  isEmptyObject,
14
+ Utils,
13
15
  FlexObjectFactory
14
16
  ) {
15
17
  "use strict";
@@ -40,28 +42,25 @@ sap.ui.define([
40
42
  * @param {function} mStrategy.processTexts - Text postprocessing strategy
41
43
  * @returns {Promise<object>} - Processed manifest with descriptor changes
42
44
  */
43
- applyChanges(oUpdatedManifest, aAppDescriptorChanges, mStrategy) {
44
- return mStrategy.registry()
45
- .then(function(Registry) {
46
- var aChangeHandlerPromises = aAppDescriptorChanges.map(function(oChange) {
47
- return Registry[oChange.getChangeType()] && Registry[oChange.getChangeType()]();
48
- });
49
- return Promise.all(aChangeHandlerPromises);
50
- })
51
- .then(function(aChangeHandlers) {
52
- aChangeHandlers.forEach(function(oChangeHandler, iIndex) {
53
- try {
54
- var oChange = aAppDescriptorChanges[iIndex];
55
- oUpdatedManifest = oChangeHandler.applyChange(oUpdatedManifest, oChange);
56
- if (!oChangeHandler.skipPostprocessing && !isEmptyObject(oChange.getTexts())) {
57
- oUpdatedManifest = mStrategy.processTexts(oUpdatedManifest, oChange.getTexts());
58
- }
59
- } catch (oError) {
60
- mStrategy.handleError(oError);
45
+ async applyChanges(oUpdatedManifest, aAppDescriptorChanges, mStrategy) {
46
+ const aChangeHandlers = [];
47
+ for (const oAppDescriptorChange of aAppDescriptorChanges) {
48
+ aChangeHandlers.push(await Utils.getChangeHandler({
49
+ flexObject: oAppDescriptorChange
50
+ }));
51
+ }
52
+ aChangeHandlers.forEach(function(oChangeHandler, iIndex) {
53
+ try {
54
+ const oChange = aAppDescriptorChanges[iIndex];
55
+ oUpdatedManifest = oChangeHandler.applyChange(oUpdatedManifest, oChange);
56
+ if (!oChangeHandler.skipPostprocessing && !isEmptyObject(oChange.getTexts())) {
57
+ oUpdatedManifest = mStrategy.processTexts(oUpdatedManifest, oChange.getTexts());
61
58
  }
62
- });
63
- return oUpdatedManifest;
59
+ } catch (oError) {
60
+ mStrategy.handleError(oError);
61
+ }
64
62
  });
63
+ return oUpdatedManifest;
65
64
  },
66
65
 
67
66
  /**
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * @namespace sap.ui.fl.apply._internal.changes.descriptor.Preprocessor
29
29
  * @since 1.74
30
- * @version 1.131.0
30
+ * @version 1.132.0
31
31
  * @private
32
32
  * @ui5-restricted sap.ui.fl.apply._internal
33
33
  */
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  *
18
18
  * @namespace sap.ui.fl.apply._internal.changes.descriptor.Registration
19
19
  * @since 1.74
20
- * @version 1.131.0
20
+ * @version 1.132.0
21
21
  * @private
22
22
  * @ui5-restricted sap.ui.fl.apply._internal
23
23
  */
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @namespace sap.ui.fl.apply._internal.changes.descriptor.RegistrationBuild
22
22
  * @since 1.77
23
- * @version 1.131.0
23
+ * @version 1.132.0
24
24
  * @private
25
25
  * @ui5-restricted sap.ui.fl.apply._internal
26
26
  */
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -135,7 +135,7 @@ sap.ui.define([
135
135
  * @namespace
136
136
  * @alias sap.ui.fl.apply._internal.changes.descriptor.app.AddAnnotationsToOData
137
137
  * @since 1.87
138
- * @version 1.131.0
138
+ * @version 1.132.0
139
139
  * @private
140
140
  * @ui5-restricted sap.ui.fl.apply._internal
141
141
  */