@openui5/sap.ui.fl 1.96.1 → 1.97.1

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 (275) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  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 +1 -1
  7. package/src/sap/ui/fl/ChangePersistence.js +7 -5
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
  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 +2 -2
  15. package/src/sap/ui/fl/FlexControllerFactory.js +10 -6
  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 +2 -2
  19. package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
  20. package/src/sap/ui/fl/Utils.js +9 -9
  21. package/src/sap/ui/fl/Variant.js +2 -2
  22. package/src/sap/ui/fl/XmlPreprocessorImpl.js +11 -12
  23. package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
  25. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +31 -12
  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 +2 -2
  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 +264 -264
  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 +1 -1
  57. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
  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 +3 -2
  62. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +10 -17
  63. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +2 -2
  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 +14 -12
  74. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +2 -2
  75. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +87 -7
  76. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
  77. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +59 -10
  78. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +1 -1
  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 +1 -1
  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 +1 -1
  117. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
  118. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -1
  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 +2 -4
  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 +10 -10
  127. package/src/sap/ui/fl/library.support.js +1 -1
  128. package/src/sap/ui/fl/messagebundle_ar.properties +19 -2
  129. package/src/sap/ui/fl/messagebundle_bg.properties +19 -2
  130. package/src/sap/ui/fl/messagebundle_ca.properties +19 -2
  131. package/src/sap/ui/fl/messagebundle_cs.properties +19 -2
  132. package/src/sap/ui/fl/messagebundle_cy.properties +19 -2
  133. package/src/sap/ui/fl/messagebundle_da.properties +19 -2
  134. package/src/sap/ui/fl/messagebundle_de.properties +19 -2
  135. package/src/sap/ui/fl/messagebundle_el.properties +19 -2
  136. package/src/sap/ui/fl/messagebundle_en.properties +17 -0
  137. package/src/sap/ui/fl/messagebundle_en_GB.properties +19 -2
  138. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
  139. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
  140. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
  141. package/src/sap/ui/fl/messagebundle_es.properties +19 -2
  142. package/src/sap/ui/fl/messagebundle_es_MX.properties +19 -2
  143. package/src/sap/ui/fl/messagebundle_et.properties +19 -2
  144. package/src/sap/ui/fl/messagebundle_fi.properties +19 -2
  145. package/src/sap/ui/fl/messagebundle_fr.properties +19 -2
  146. package/src/sap/ui/fl/messagebundle_fr_CA.properties +19 -2
  147. package/src/sap/ui/fl/messagebundle_hi.properties +19 -2
  148. package/src/sap/ui/fl/messagebundle_hr.properties +19 -2
  149. package/src/sap/ui/fl/messagebundle_hu.properties +19 -2
  150. package/src/sap/ui/fl/messagebundle_id.properties +19 -2
  151. package/src/sap/ui/fl/messagebundle_it.properties +19 -2
  152. package/src/sap/ui/fl/messagebundle_iw.properties +19 -2
  153. package/src/sap/ui/fl/messagebundle_ja.properties +19 -2
  154. package/src/sap/ui/fl/messagebundle_kk.properties +19 -2
  155. package/src/sap/ui/fl/messagebundle_ko.properties +19 -2
  156. package/src/sap/ui/fl/messagebundle_lt.properties +19 -2
  157. package/src/sap/ui/fl/messagebundle_lv.properties +19 -2
  158. package/src/sap/ui/fl/messagebundle_ms.properties +19 -2
  159. package/src/sap/ui/fl/messagebundle_nl.properties +19 -2
  160. package/src/sap/ui/fl/messagebundle_no.properties +19 -2
  161. package/src/sap/ui/fl/messagebundle_pl.properties +19 -2
  162. package/src/sap/ui/fl/messagebundle_pt.properties +19 -2
  163. package/src/sap/ui/fl/messagebundle_pt_PT.properties +19 -2
  164. package/src/sap/ui/fl/messagebundle_ro.properties +19 -2
  165. package/src/sap/ui/fl/messagebundle_ru.properties +19 -2
  166. package/src/sap/ui/fl/messagebundle_sh.properties +19 -2
  167. package/src/sap/ui/fl/messagebundle_sk.properties +19 -2
  168. package/src/sap/ui/fl/messagebundle_sl.properties +19 -2
  169. package/src/sap/ui/fl/messagebundle_sv.properties +19 -2
  170. package/src/sap/ui/fl/messagebundle_th.properties +17 -0
  171. package/src/sap/ui/fl/messagebundle_tr.properties +19 -2
  172. package/src/sap/ui/fl/messagebundle_uk.properties +19 -2
  173. package/src/sap/ui/fl/messagebundle_vi.properties +19 -2
  174. package/src/sap/ui/fl/messagebundle_zh_CN.properties +19 -2
  175. package/src/sap/ui/fl/messagebundle_zh_TW.properties +19 -2
  176. package/src/sap/ui/fl/registry/Settings.js +16 -17
  177. package/src/sap/ui/fl/requireAsync.js +1 -1
  178. package/src/sap/ui/fl/support/Flexibility.js +84 -73
  179. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
  180. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +13 -13
  181. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +9 -9
  182. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +10 -10
  183. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
  184. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +52 -53
  185. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +130 -126
  186. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
  187. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
  188. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -3
  189. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +1 -1
  190. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +2 -2
  191. package/src/sap/ui/fl/themes/base/library.source.less +1 -1
  192. package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
  193. package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
  194. package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
  195. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -5
  196. package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
  197. package/src/sap/ui/fl/util/IFrame.js +2 -2
  198. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  199. package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
  200. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  201. package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
  202. package/src/sap/ui/fl/util/resolveBinding.js +2 -2
  203. package/src/sap/ui/fl/variants/VariantManagement.js +1 -1
  204. package/src/sap/ui/fl/variants/VariantModel.js +2 -2
  205. package/src/sap/ui/fl/variants/context/Component.js +1 -1
  206. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +13 -3
  207. package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
  208. package/src/sap/ui/fl/write/_internal/Storage.js +2 -2
  209. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
  210. package/src/sap/ui/fl/write/_internal/Versions.js +2 -2
  211. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
  212. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
  213. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  214. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +2 -2
  215. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -3
  216. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
  217. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
  218. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
  219. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
  220. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  221. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
  222. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
  223. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +3 -3
  224. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
  225. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +24 -24
  226. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
  227. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +2 -2
  228. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
  229. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
  230. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
  231. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
  232. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
  233. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
  234. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  235. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
  236. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
  237. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
  238. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
  239. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
  240. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  241. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
  242. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  243. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
  244. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
  245. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
  246. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +3 -3
  247. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
  248. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  249. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
  250. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
  251. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
  252. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +5 -4
  253. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +6 -5
  254. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +6 -8
  255. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +7 -6
  256. package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -3
  257. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
  258. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
  259. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
  260. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +118 -14
  261. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
  262. package/src/sap/ui/fl/write/api/FeaturesAPI.js +2 -1
  263. package/src/sap/ui/fl/write/api/FieldExtensibility.js +8 -4
  264. package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
  265. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +3 -2
  266. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +1 -1
  267. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
  268. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +3 -1
  269. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  270. package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
  271. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
  272. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +1 -1
  273. package/src/sap/ui/fl/write/connectors/BaseConnector.js +1 -1
  274. package/ui5.yaml +132 -1
  275. package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
package/.reuse/dep5 CHANGED
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
418
418
 
419
419
  # Library: sap.ui.webc.common:
420
420
 
421
- Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
421
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
422
422
  Copyright: SAP
423
423
  License: Apache-2.0
424
424
  Comment: these files belong to: UI5 Web Components
package/THIRDPARTY.txt CHANGED
@@ -412,10 +412,11 @@ Copyright: SAP
412
412
  License: Apache-2.0
413
413
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
414
  Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
- src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
415
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
416
416
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
417
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
418
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
419
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
419
420
 
420
421
  Component: lit-html, version: 1.4.1
421
422
  Copyright: Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.fl",
3
- "version": "1.96.1",
3
+ "version": "1.97.1",
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.96.1",
18
- "@openui5/sap.ui.core": "1.96.1"
17
+ "@openui5/sap.m": "1.97.1",
18
+ "@openui5/sap.ui.core": "1.97.1"
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-2021 SAP SE or an SAP affiliate company.
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.96.1</version>
9
+ <version>1.97.1</version>
10
10
 
11
11
  <documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
12
12
 
@@ -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
 
@@ -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.96.1
27
+ * @version 1.97.1
28
28
  *
29
29
  * @private
30
30
  * @ui5-restricted sap.ui.fl
@@ -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
 
@@ -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
 
@@ -138,13 +138,13 @@ sap.ui.define([
138
138
  ChangePersistence.prototype._preconditionsFulfilled = function(oChangeOrChangeContent) {
139
139
  var oChangeContent = oChangeOrChangeContent instanceof Change ? oChangeOrChangeContent.getDefinition() : oChangeOrChangeContent;
140
140
 
141
- function _isControlVariantChange() {
141
+ function isControlVariantChange() {
142
142
  if ((oChangeContent.fileType === "ctrl_variant") || (oChangeContent.fileType === "ctrl_variant_change") || (oChangeContent.fileType === "ctrl_variant_management_change")) {
143
143
  return oChangeContent.variantManagementReference || oChangeContent.variantReference || (oChangeContent.selector && oChangeContent.selector.id);
144
144
  }
145
145
  }
146
146
 
147
- return oChangeContent.fileType === "change" || _isControlVariantChange();
147
+ return oChangeContent.fileType === "change" || isControlVariantChange();
148
148
  };
149
149
 
150
150
  /**
@@ -419,7 +419,7 @@ sap.ui.define([
419
419
  * @param {map} mPropertyBag - Contains additional data needed for reading changes
420
420
  * @param {string} [mPropertyBag.layer] - Specifies a single layer for loading changes
421
421
  * @param {boolean} [mPropertyBag.includeDirtyChanges] - Whether dirty changes of the current session should be included
422
- * @returns {Promise} Promise resolving with an array of changes
422
+ * @returns {sap.ui.fl.Change[]} Array of changes
423
423
  * @public
424
424
  */
425
425
  ChangePersistence.prototype.getAllUIChanges = function(mPropertyBag) {
@@ -659,6 +659,7 @@ sap.ui.define([
659
659
  * @param {boolean} [bSkipUpdateCache] - If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
660
660
  * therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
661
661
  * @param {sap.ui.fl.Change} [aChanges] - If passed only those changes are saved
662
+ * @param {number} nParentVersion - Parent version
662
663
  * @returns {Promise} Resolving after all changes have been saved
663
664
  */
664
665
  ChangePersistence.prototype.saveDirtyChanges = function(oAppComponent, bSkipUpdateCache, aChanges, nParentVersion) {
@@ -802,7 +803,8 @@ sap.ui.define([
802
803
  };
803
804
 
804
805
  /**
805
- * @param {boolean} [bSkipUpdateCache] If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
806
+ * @param {sap.ui.fl.Change[]} aDirtyChanges - Array of dirty changes
807
+ * @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;
806
808
  * therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
807
809
  */
808
810
  ChangePersistence.prototype._massUpdateCacheAndDirtyState = function(aDirtyChanges, bSkipUpdateCache) {
@@ -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
 
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @alias sap.ui.fl.ChangePersistenceFactory
29
29
  * @experimental Since 1.27.0
30
30
  * @author SAP SE
31
- * @version 1.96.1
31
+ * @version 1.97.1
32
32
  * @private
33
33
  * @ui5-restricted sap.ui.fl
34
34
  */
@@ -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
 
@@ -14,7 +14,7 @@ sap.ui.define(function () {
14
14
  * @alias sap.ui.fl.EventHistory
15
15
  * @experimental Since 1.47.0
16
16
  * @author SAP SE
17
- * @version 1.96.1
17
+ * @version 1.97.1
18
18
  *
19
19
  * @private
20
20
  * @ui5-restricted sap.ui.fl.RegistrationDelegator
@@ -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
 
@@ -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
 
@@ -20,7 +20,7 @@ function(
20
20
  * @class
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.96.1
23
+ * @version 1.97.1
24
24
  *
25
25
  * @private
26
26
  * @static
@@ -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
 
@@ -20,7 +20,7 @@ function(
20
20
  * @class
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.96.1
23
+ * @version 1.97.1
24
24
  *
25
25
  * @private
26
26
  * @static
@@ -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
 
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.96.1
19
+ * @version 1.97.1
20
20
  *
21
21
  * @private
22
22
  * @static
@@ -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
 
@@ -81,7 +81,7 @@ sap.ui.define([
81
81
  * @alias sap.ui.fl.FlexController
82
82
  * @experimental Since 1.27.0
83
83
  * @author SAP SE
84
- * @version 1.96.1
84
+ * @version 1.97.1
85
85
  */
86
86
  var FlexController = function(sComponentName) {
87
87
  this._oChangePersistence = undefined;
@@ -1,11 +1,9 @@
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
- /* global WeakMap */
8
-
9
7
  sap.ui.define([
10
8
  "sap/ui/fl/FlexController",
11
9
  "sap/ui/fl/Utils",
@@ -32,7 +30,7 @@ sap.ui.define([
32
30
  * @alias sap.ui.fl.FlexControllerFactory
33
31
  * @experimental Since 1.27.0
34
32
  * @author SAP SE
35
- * @version 1.96.1
33
+ * @version 1.97.1
36
34
  *
37
35
  * @private
38
36
  * @ui5-restricted sap.ui.fl
@@ -110,8 +108,11 @@ sap.ui.define([
110
108
  }
111
109
 
112
110
  window.sessionStorage.removeItem("sap.ui.rta.restart." + Layer.CUSTOMER);
113
- return new Promise(function (resolve) {
114
- sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
111
+ return new Promise(function (resolve, reject) {
112
+ Promise.all([
113
+ sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true}),
114
+ oComponent.rootControlLoaded()
115
+ ])
115
116
  .then(function() {
116
117
  sap.ui.require(["sap/ui/rta/api/startKeyUserAdaptation"], function (startKeyUserAdaptation) {
117
118
  startKeyUserAdaptation({
@@ -119,6 +120,9 @@ sap.ui.define([
119
120
  });
120
121
  resolve(oResult);
121
122
  });
123
+ })
124
+ .catch(function(oError) {
125
+ reject(oError);
122
126
  });
123
127
  });
124
128
  }
@@ -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
 
@@ -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
 
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  *
42
42
  * @namespace sap.ui.fl.LayerUtils
43
43
  * @author SAP SE
44
- * @version 1.96.1
44
+ * @version 1.97.1
45
45
  */
46
46
  var LayerUtils = {
47
47
  _mLayersIndex: mLayersIndex,
@@ -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
34
34
  * @constructor
35
35
  * @author SAP SE
36
- * @version 1.96.1
36
+ * @version 1.97.1
37
37
  * @experimental Since 1.27.0
38
38
  * @private
39
39
  * @ui5-restricted sap.ui.fl, sap.ui.core
@@ -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
 
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @class
45
45
  * @constructor
46
46
  * @author SAP SE
47
- * @version 1.96.1
47
+ * @version 1.97.1
48
48
  * @experimental Since 1.43.0
49
49
  */
50
50
  var RegistrationDelegator = {
@@ -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
 
@@ -17,8 +17,7 @@ sap.ui.define([
17
17
  "sap/ui/core/mvc/View",
18
18
  "sap/base/util/isPlainObject",
19
19
  "sap/ui/base/SyncPromise"
20
- ],
21
- function(
20
+ ], function(
22
21
  jQuery,
23
22
  Component,
24
23
  BaseTreeModifier,
@@ -47,7 +46,7 @@ function(
47
46
  * @namespace
48
47
  * @alias sap.ui.fl.Utils
49
48
  * @author SAP SE
50
- * @version 1.96.1
49
+ * @version 1.97.1
51
50
  * @experimental Since 1.25.0
52
51
  */
53
52
  var Utils = {
@@ -850,7 +849,7 @@ function(
850
849
 
851
850
  /** Returns the type of "sap.app" from the manifest object passed.
852
851
  * @param {sap.ui.core.Manifest} oManifest - Manifest object
853
- * @returns {string | undefined} Manifest object's "type" property for "sap.app" entry
852
+ * @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
854
853
  * @private
855
854
  */
856
855
  _getComponentTypeFromManifest: function(oManifest) {
@@ -858,8 +857,8 @@ function(
858
857
  },
859
858
 
860
859
  /** 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
860
+ * @param {sap.ui.core.Manifest} oManifest - Raw manifest object
861
+ * @returns {string|undefined} Manifest object's <code>type</code> property for <code>sap.app</code> entry
863
862
  * @private
864
863
  */
865
864
  _getComponentTypeFromRawManifest: function(oManifest) {
@@ -1018,8 +1017,9 @@ function(
1018
1017
  }
1019
1018
  var fnPromise = aPromiseQueue.shift();
1020
1019
  if (typeof fnPromise === "function") {
1020
+ var vResult;
1021
1021
  try {
1022
- var vResult = fnPromise();
1022
+ vResult = fnPromise();
1023
1023
  } catch (e) {
1024
1024
  vResult = Promise.reject(e);
1025
1025
  }
@@ -1165,7 +1165,7 @@ function(
1165
1165
 
1166
1166
  /**
1167
1167
  * Normalize reference, delete .Component at the end of the incoming string.
1168
- * @param {string} reference
1168
+ * @param {string} sReference - Flex reference
1169
1169
  * @returns {string} Returns reference without .Component
1170
1170
  */
1171
1171
  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.1
36
+ * @version 1.97.1
37
37
  * @alias sap.ui.fl.Variant
38
38
  * @experimental Since 1.52.0
39
39
  */
@@ -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
 
@@ -26,21 +26,19 @@ sap.ui.define([
26
26
  * @class
27
27
  * @constructor
28
28
  * @author SAP SE
29
- * @version 1.96.1
29
+ * @version 1.97.1
30
30
  * @experimental Since 1.27.0
31
31
  */
32
- var XmlPreprocessorImpl = function() {
33
- };
32
+ var XmlPreprocessorImpl = function() {};
34
33
 
35
34
  /**
36
35
  * Asynchronous view processing method.
37
36
  *
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
37
+ * @param {Node} oView - XML node of the view to process
38
+ * @param {object} mProperties - Property Bag
39
+ * @param {string} mProperties.componentId - ID of the component creating the view
40
+ * @param {string} mPropertyBag.id - ID of the processed view
41
+ * @returns {Promise.<Node>|Node} Result of the processing, promise if executed asynchronously
44
42
  *
45
43
  * @public
46
44
  */
@@ -92,8 +90,9 @@ sap.ui.define([
92
90
  /**
93
91
  * Asynchronous determination of a hash key for caching purposes
94
92
  *
95
- * @param {Node} oView XML node of the view for which the key should be determined
96
- * @returns {Promise} promise returning the hash key
93
+ * @param {object} mProperties - Property Bag
94
+ * @param {string} mProperties.componentId - Component instance ID
95
+ * @returns {Promise} Resolves with the hash key
97
96
  *
98
97
  * @public
99
98
  */
@@ -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
 
@@ -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
  sap.ui.define([
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  *
26
26
  * @private
27
27
  * @author SAP SE
28
- * @version 1.96.1
28
+ * @version 1.97.1
29
29
  *
30
30
  * @experimental Since 1.80 This class is experimental and provides only limited functionality. Also the API might be
31
31
  * changed in future.
@@ -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
 
@@ -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
 
@@ -50,7 +50,8 @@ sap.ui.define([
50
50
  function _checkAndAdjustChangeStatusSync(oControl, oChange, mChangesMap, oFlexController, mPropertyBag) {
51
51
  var mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
52
52
  var oModifier = mPropertyBag.modifier;
53
- var bIsCurrentlyAppliedOnControl = FlexCustomData.sync.hasChangeApplyFinishedCustomData(mControl.control, oChange, oModifier);
53
+ var bHasAppliedCustomData = !!FlexCustomData.sync.getAppliedCustomDataValue(mControl.control, oChange);
54
+ var bIsCurrentlyAppliedOnControl = bHasAppliedCustomData || FlexCustomData.sync.hasChangeApplyFinishedCustomData(mControl.control, oChange);
54
55
  var bChangeStatusAppliedFinished = oChange.isApplyProcessFinished();
55
56
  if (bChangeStatusAppliedFinished && !bIsCurrentlyAppliedOnControl) {
56
57
  // if a change was already processed and is not applied anymore, then the control was destroyed and recreated.
@@ -60,9 +61,11 @@ sap.ui.define([
60
61
  oChange.setInitialApplyState();
61
62
  } else if (!bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
62
63
  // if a change is already applied on the control, but the status does not reflect that, the status has to be updated
63
- // and the revert data fetched from the Custom Data
64
64
  // scenario: viewCache
65
- oChange.setRevertData(FlexCustomData.sync.getParsedRevertDataFromCustomData(oControl, oChange));
65
+ if (bHasAppliedCustomData) {
66
+ // if the change was applied, set the revert data fetched from the custom data
67
+ oChange.setRevertData(FlexCustomData.sync.getParsedRevertDataFromCustomData(oControl, oChange));
68
+ }
66
69
  oChange.markFinished();
67
70
  }
68
71
  }
@@ -75,8 +78,20 @@ sap.ui.define([
75
78
  var bXmlModifier = _isXmlModifier(mPropertyBag);
76
79
  var mControl = Utils.getControlIfTemplateAffected(oChange, oControl, mPropertyBag);
77
80
  var oModifier = mPropertyBag.modifier;
78
- return FlexCustomData.hasChangeApplyFinishedCustomData(mControl.control, oChange, oModifier)
79
- .then(function (bIsCurrentlyAppliedOnControl) {
81
+ return FlexCustomData.getAppliedCustomDataValue(mControl.control, oChange, oModifier)
82
+ .then(function(oAppliedCustomData) {
83
+ var bHasAppliedCustomData = !!oAppliedCustomData;
84
+ return Promise.all([
85
+ bHasAppliedCustomData,
86
+ (
87
+ bHasAppliedCustomData
88
+ || FlexCustomData.hasChangeApplyFinishedCustomData(mControl.control, oChange, oModifier)
89
+ )
90
+ ]);
91
+ })
92
+ .then(function(aCustomDataState) {
93
+ var bHasAppliedCustomData = aCustomDataState[0];
94
+ var bIsCurrentlyAppliedOnControl = aCustomDataState[1];
80
95
  var bChangeStatusAppliedFinished = oChange.isApplyProcessFinished();
81
96
  var oModifier = mPropertyBag.modifier;
82
97
  var oAppComponent = mPropertyBag.appComponent;
@@ -93,13 +108,17 @@ sap.ui.define([
93
108
  return oPromise.then(oChange.setInitialApplyState.bind(oChange));
94
109
  } else if (!bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
95
110
  // if a change is already applied on the control, but the status does not reflect that, the status has to be updated
96
- // and the revert data fetched from the Custom Data
97
111
  // scenario: viewCache
98
- return FlexCustomData.getParsedRevertDataFromCustomData(oControl, oChange, oModifier)
99
- .then(function (oParsedRevertDataFromCustomData) {
100
- oChange.setRevertData(oParsedRevertDataFromCustomData);
101
- oChange.markFinished();
102
- });
112
+ if (bHasAppliedCustomData) {
113
+ // if the change was applied, set the revert data fetched from the custom data
114
+ return FlexCustomData.getParsedRevertDataFromCustomData(oControl, oChange, oModifier)
115
+ .then(function (oParsedRevertDataFromCustomData) {
116
+ oChange.setRevertData(oParsedRevertDataFromCustomData);
117
+ oChange.markFinished();
118
+ });
119
+ }
120
+ oChange.markFinished();
121
+ return undefined;
103
122
  } else if (bChangeStatusAppliedFinished && bIsCurrentlyAppliedOnControl) {
104
123
  // both the change instance and the UI Control are already applied, so the change can be directly marked as finished
105
124
  oChange.markFinished();
@@ -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
 
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @alias sap.ui.fl.FlexCustomData
31
31
  * @experimental Since 1.61.0
32
32
  * @author SAP SE
33
- * @version 1.96.1
33
+ * @version 1.97.1
34
34
  */
35
35
  var FlexCustomData = {};
36
36
  FlexCustomData.sync = {};
@@ -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
 
@@ -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
 
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  *
21
21
  * @namespace sap.ui.fl.apply._internal.connectors.changes.Utils
22
22
  * @since 1.70
23
- * @version 1.96.1
23
+ * @version 1.97.1
24
24
  * @private
25
25
  * @ui5-restricted sap.ui.fl.apply._internal, sap.ui.fl.write._internal
26
26
  */