@openui5/sap.ui.fl 1.109.0 → 1.111.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 (240) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +2 -2
  5. package/src/sap/ui/fl/Cache.js +18 -3
  6. package/src/sap/ui/fl/ChangePersistence.js +33 -40
  7. package/src/sap/ui/fl/ChangePersistenceFactory.js +2 -2
  8. package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
  10. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
  11. package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
  12. package/src/sap/ui/fl/FlexController.js +2 -2
  13. package/src/sap/ui/fl/FlexControllerFactory.js +3 -3
  14. package/src/sap/ui/fl/Layer.js +2 -2
  15. package/src/sap/ui/fl/LayerUtils.js +2 -2
  16. package/src/sap/ui/fl/Scenario.js +1 -1
  17. package/src/sap/ui/fl/Utils.js +4 -25
  18. package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
  19. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +5 -5
  20. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  21. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +33 -81
  22. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +42 -171
  23. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +8 -14
  24. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +8 -13
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +2 -2
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +2 -2
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
  45. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
  46. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +2 -2
  47. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
  48. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +5 -2
  49. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +1 -1
  50. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
  51. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +2 -2
  52. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +5 -7
  53. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
  54. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +2 -2
  55. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +2 -2
  56. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +3 -3
  57. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +9 -3
  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/UIChange.js +2 -2
  61. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +2 -3
  62. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +2 -2
  63. package/src/sap/ui/fl/apply/_internal/flexState/DataSelector.js +235 -0
  64. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +159 -34
  65. package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +72 -0
  66. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +28 -3
  67. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +8 -8
  68. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
  69. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
  70. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
  71. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
  72. package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +1 -1
  73. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
  74. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
  75. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +3 -2
  76. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -2
  77. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +19 -4
  78. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
  79. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +2 -2
  80. package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +2 -2
  81. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +2 -2
  82. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +2 -2
  83. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +3 -3
  84. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
  85. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +2 -2
  86. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -4
  87. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
  88. package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
  89. package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
  90. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
  91. package/src/sap/ui/fl/changeHandler/Base.js +2 -2
  92. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
  93. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
  94. package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
  95. package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
  96. package/src/sap/ui/fl/changeHandler/HideControl.js +3 -3
  97. package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
  98. package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
  99. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
  100. package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
  101. package/src/sap/ui/fl/changeHandler/StashControl.js +3 -3
  102. package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
  103. package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
  104. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
  105. package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
  106. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
  107. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
  108. package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
  109. package/src/sap/ui/fl/changeHandler/condenser/Classification.js +1 -1
  110. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
  111. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +4 -4
  112. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
  113. package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +1 -1
  114. package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
  115. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
  116. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +1 -1
  117. package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
  118. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
  119. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +4 -2
  120. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +2 -2
  121. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +2 -2
  122. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +2 -2
  123. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
  124. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
  125. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +1 -2
  126. package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
  127. package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
  128. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
  129. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +4 -4
  130. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
  131. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +4 -4
  132. package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
  133. package/src/sap/ui/fl/library.js +47 -48
  134. package/src/sap/ui/fl/library.support.js +1 -1
  135. package/src/sap/ui/fl/messagebundle_bg.properties +2 -2
  136. package/src/sap/ui/fl/messagebundle_it.properties +1 -1
  137. package/src/sap/ui/fl/registry/Settings.js +12 -13
  138. package/src/sap/ui/fl/requireAsync.js +1 -1
  139. package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +11 -5
  140. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +54 -18
  141. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +2 -2
  142. package/src/sap/ui/fl/support/api/SupportAPI.js +2 -2
  143. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
  144. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
  145. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +2 -2
  146. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +2 -2
  147. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +2 -2
  148. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +4 -4
  149. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +8 -8
  150. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
  151. package/src/sap/ui/fl/themes/base/library.source.less +1 -1
  152. package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
  153. package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
  154. package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
  155. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +1 -1
  156. package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
  157. package/src/sap/ui/fl/util/IFrame.js +2 -2
  158. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  159. package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
  160. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  161. package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
  162. package/src/sap/ui/fl/util/resolveBinding.js +2 -2
  163. package/src/sap/ui/fl/variants/VariantManagement.js +32 -3
  164. package/src/sap/ui/fl/variants/VariantModel.js +2 -2
  165. package/src/sap/ui/fl/variants/context/Component.js +1 -1
  166. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -3
  167. package/src/sap/ui/fl/write/_internal/FlexInfoSession.js +1 -1
  168. package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
  169. package/src/sap/ui/fl/write/_internal/Storage.js +11 -2
  170. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +3 -5
  171. package/src/sap/ui/fl/write/_internal/Versions.js +7 -3
  172. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
  173. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
  174. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  175. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +4 -4
  176. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -2
  177. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
  178. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +11 -9
  179. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +13 -10
  180. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +19 -13
  181. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  182. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +21 -6
  183. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
  184. package/src/sap/ui/fl/write/_internal/condenser/classifications/Update.js +1 -1
  185. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
  186. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
  187. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +2 -2
  188. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +21 -5
  190. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +8 -2
  191. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
  192. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +2 -2
  193. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +4 -3
  194. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
  195. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +5 -2
  196. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  197. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
  198. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +3 -3
  200. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
  201. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
  202. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  203. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
  204. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  205. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
  206. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
  207. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
  208. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
  209. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
  210. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  211. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
  212. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
  213. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
  214. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +8 -6
  215. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +10 -2
  216. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +1 -1
  217. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +2 -2
  218. package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -2
  219. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
  220. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
  221. package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +106 -15
  222. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +7 -3
  223. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +1 -1
  224. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
  225. package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -1
  226. package/src/sap/ui/fl/write/api/FieldExtensibility.js +2 -2
  227. package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
  228. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -2
  229. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +17 -1
  230. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
  231. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +1 -1
  232. package/src/sap/ui/fl/write/api/TranslationAPI.js +1 -1
  233. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  234. package/src/sap/ui/fl/write/api/Version.js +1 -1
  235. package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
  236. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +2 -2
  237. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -2
  238. package/src/sap/ui/fl/write/connectors/BaseConnector.js +7 -1
  239. package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +0 -17
  240. package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +0 -17
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -134,7 +134,7 @@ sap.ui.define([
134
134
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.UriParser
135
135
  * @experimental Since 1.87.0
136
136
  * @author SAP SE
137
- * @version 1.109.0
137
+ * @version 1.111.0
138
138
  */
139
139
  var UriParser = {};
140
140
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -249,7 +249,7 @@ sap.ui.define([
249
249
  * @namespace sap.ui.fl.write._internal.fieldExtensibility.Utils
250
250
  * @experimental Since 1.87.0
251
251
  * @author SAP SE
252
- * @version 1.109.0
252
+ * @version 1.111.0
253
253
  */
254
254
  var Utils = {};
255
255
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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
  * @experimental Since 1.93
23
23
  * @private
24
24
  * @author SAP SE
25
- * @version 1.109.0
25
+ * @version 1.111.0
26
26
  */
27
27
  var CAPAccess = {};
28
28
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -80,7 +80,7 @@ sap.ui.define([
80
80
  * @extends sap.ui.base.ManagedObject
81
81
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.dialog.CustomFieldCAPDialog
82
82
  * @author SAP SE
83
- * @version 1.109.0
83
+ * @version 1.111.0
84
84
  * @since 1.93
85
85
  * @experimental Since 1.93
86
86
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  *
6
6
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.booleanEditor.BooleanEditor
19
19
  * @author SAP SE
20
20
  * @since 1.93
21
- * @version 1.109.0
21
+ * @version 1.111.0
22
22
  *
23
23
  * @private
24
24
  * @experimental 1.93
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.rangeEditor.RangeEditor
21
21
  * @author SAP SE
22
22
  * @since 1.93
23
- * @version 1.109.0
23
+ * @version 1.111.0
24
24
  *
25
25
  * @private
26
26
  * @experimental 1.93
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @alias sap.ui.fl.write._internal.fieldExtensibility.cap.editor.propertyEditor.timeEditor.TimeEditor
23
23
  * @author SAP SE
24
24
  * @since 1.93
25
- * @version 1.109.0
25
+ * @version 1.111.0
26
26
  *
27
27
  * @private
28
28
  * @experimental 1.93
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([], function () {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @namespace
38
38
  * @alias sap.ui.fl.write._internal.flexState.FlexObjectState
39
39
  * @since 1.83
40
- * @version 1.109.0
40
+ * @version 1.111.0
41
41
  * @private
42
42
  * @ui5-restricted sap.ui.fl
43
43
  */
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  var oDataToRestore = FlexState.getInitialNonFlCompVariantData(mPropertyBag.reference);
63
63
  if (oDataToRestore) {
64
64
  Object.keys(oDataToRestore).forEach(function(sPersistencyKey) {
65
- mCompEntities._initialize(sPersistencyKey, oDataToRestore[sPersistencyKey].variants);
65
+ mCompEntities._initialize(sPersistencyKey, oDataToRestore[sPersistencyKey].variants, oDataToRestore[sPersistencyKey].controlId);
66
66
  CompVariantMerger.merge(sPersistencyKey, mCompEntities[sPersistencyKey], oDataToRestore[sPersistencyKey].standardVariant);
67
67
  });
68
68
  }
@@ -172,9 +172,10 @@ sap.ui.define([
172
172
  *
173
173
  * @param {object} mPropertyBag - Object with parameters as properties
174
174
  * @param {sap.ui.fl.Selector} mPropertyBag.selector - Retrieves the associated flex persistence
175
- * @param {boolean} mPropertyBag.invalidateCache - Flag if the cache should be invalidated
176
- * @param {boolean} mPropertyBag.includeCtrlVariants - Flag if control variant changes should be included
177
- * @param {boolean} mPropertyBag.includeDirtyChanges - Flag if dirty UI changes should be included
175
+ * @param {boolean} [mPropertyBag.invalidateCache] - Flag if the cache should be invalidated
176
+ * @param {boolean} [mPropertyBag.includeCtrlVariants] - Flag if control variant changes should be included
177
+ * @param {boolean} [mPropertyBag.includeDirtyChanges] - Flag if dirty UI changes should be included
178
+ * @param {boolean} [mPropertyBag.version] - The version for which the objects are retrieved
178
179
  * @returns {Promise<sap.ui.fl.apply._internal.flexObjects.FlexObject[]>} Flex objects, containing changes, compVariants & changes as well as ctrl_variant and changes
179
180
  */
180
181
  FlexObjectState.getFlexObjects = function (mPropertyBag) {
@@ -238,6 +239,7 @@ sap.ui.define([
238
239
  * @param {string} [mPropertyBag.cacheKey] - Key to validate the cache entry stored on client side
239
240
  * @param {boolean} [mPropertyBag.invalidateCache] - Indicates whether the cache is to be invalidated
240
241
  * @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
242
+ * @param {boolean} [mPropertyBag.version] - Version for which the objects are saved
241
243
  * @returns {Promise<sap.ui.fl.apply._internal.flexObjects.FlexObject[]>} Flex objects, containing changes, compVariants & changes as well as ctrl_variant and changes
242
244
  */
243
245
  FlexObjectState.saveFlexObjects = function(mPropertyBag) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -259,12 +259,20 @@ sap.ui.define([
259
259
  *
260
260
  * @namespace sap.ui.fl.write._internal.flexState.compVariants.CompVariantState
261
261
  * @since 1.83
262
- * @version 1.109.0
262
+ * @version 1.111.0
263
263
  * @private
264
264
  * @ui5-restricted sap.ui.fl
265
265
  */
266
266
  var CompVariantState = {};
267
267
 
268
+ CompVariantState.checkSVMControlsForDirty = function(sReference) {
269
+ var mCompVariantsMap = FlexState.getCompVariantsMap(sReference);
270
+ return Object.values(mCompVariantsMap).some(function(mMap) {
271
+ var oControl = mMap.controlId && Core.byId(mMap.controlId);
272
+ return oControl && oControl.getModified();
273
+ });
274
+ };
275
+
268
276
  /**
269
277
  * Creates a change to set which variant should be selected at the application start-up.
270
278
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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,7 +26,7 @@ sap.ui.define([
26
26
  * @private
27
27
  * @alias sap.ui.fl.write._internal.transport.TransportSelection
28
28
  * @author SAP SE
29
- * @version 1.109.0
29
+ * @version 1.111.0
30
30
  * @since 1.74.0
31
31
  * Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
32
32
  * of the SmartVariant control.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * Entity that handles ABAP transport related information.
28
28
  * @alias sap.ui.fl.write._internal.transport.Transports
29
29
  * @author SAP SE
30
- * @version 1.109.0
30
+ * @version 1.111.0
31
31
  * @since 1.74.0
32
32
  * @private
33
33
  * @ui5-restricted sap.ui.fl.write._internal.transport
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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,26 +1,26 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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/base/util/uid",
9
8
  "sap/ui/fl/apply/_internal/flexState/ManifestUtils",
10
9
  "sap/ui/fl/Utils",
11
10
  "sap/ui/fl/write/_internal/Storage",
12
- "sap/ui/fl/write/_internal/Versions"
11
+ "sap/ui/fl/write/_internal/Versions",
12
+ "sap/ui/model/json/JSONModel"
13
13
  ], function (
14
- uid,
15
14
  ManifestUtils,
16
15
  FlexUtils,
17
16
  Storage,
18
- Versions
17
+ Versions,
18
+ JSONModel
19
19
  ) {
20
20
  "use strict";
21
21
 
22
22
  /**
23
- * Provides an API for creating and managing context based adaptation.
23
+ * Provides an API for creating and managing context-based adaptation.
24
24
  *
25
25
  * @namespace sap.ui.fl.write.api.ContextBasedAdaptationsAPI
26
26
  * @experimental Since 1.106
@@ -32,7 +32,6 @@ sap.ui.define([
32
32
 
33
33
  function getFlexReferenceForControl(oControl) {
34
34
  var sReference = ManifestUtils.getFlexReferenceForControl(oControl);
35
-
36
35
  if (!sReference) {
37
36
  throw Error("The application ID could not be determined");
38
37
  }
@@ -40,22 +39,114 @@ sap.ui.define([
40
39
  }
41
40
 
42
41
  /**
43
- * Create new context based adaptation and saves it in the backend
42
+ * Processing the response to activate the draft if the expected status is contained in the response object
43
+ * @param {object} oResponse - Object with response data
44
+ * @param {number} oResponse.status - HTTP response code
45
+ * @param {number} nExpectedStatus - Expected HTTP response code
44
46
  * @param {object} mPropertyBag - Object with parameters as properties
45
- * @param {string} [mPropertyBag.layer] - Layer
46
- * @returns {Promise} Promise that resolves with the context based adaptation
47
- *
47
+ * @param {string} mPropertyBag.reference - Reference of the application
48
+ * @param {string} mPropertyBag.layer - Layer
49
+ * @returns {object} Object with response data
50
+ */
51
+ function handleResponseForVersioning(oResponse, nExpectedStatus, mPropertyBag) {
52
+ if (oResponse.status === nExpectedStatus) {
53
+ Versions.onAllChangesSaved({
54
+ reference: mPropertyBag.reference,
55
+ layer: mPropertyBag.layer,
56
+ contextBasedAdaptation: true
57
+ });
58
+ }
59
+ return oResponse;
60
+ }
61
+
62
+ /**
63
+ * Create new context-based adaptation and saves it in the backend
64
+ * @param {object} mPropertyBag - Object with parameters as properties
65
+ * @param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
66
+ * @param {string} mPropertyBag.layer - Layer
67
+ * @param {object} mPropertyBag.contextBasedAdaptation - Parameters
68
+ * @param {string} mPropertyBag.contextBasedAdaptation.title - Title of the new adaptation
69
+ * @param {object} mPropertyBag.contextBasedAdaptation.contexts - Contexts of the new adaptation, for example roles for which the adaptation is created
70
+ * @returns {Promise} Promise that resolves with the context-based adaptation
48
71
  */
49
72
  ContextBasedAdaptationsAPI.create = function (mPropertyBag) {
50
- mPropertyBag.parameters.id = uid();
51
- mPropertyBag.parameters.reference = getFlexReferenceForControl(mPropertyBag.control);
73
+ if (!mPropertyBag.layer) {
74
+ return Promise.reject("No layer was provided");
75
+ }
76
+ if (!mPropertyBag.control) {
77
+ return Promise.reject("No control was provided");
78
+ }
79
+ if (!mPropertyBag.contextBasedAdaptation) {
80
+ return Promise.reject("No contextBasedAdaptation was provided");
81
+ }
82
+ mPropertyBag.contextBasedAdaptation.id = FlexUtils.createDefaultFileName();
83
+ mPropertyBag.reference = getFlexReferenceForControl(mPropertyBag.control);
52
84
  return Storage.contextBasedAdaptation.create({
53
85
  layer: mPropertyBag.layer,
54
- flexObject: mPropertyBag.parameters,
86
+ flexObject: mPropertyBag.contextBasedAdaptation,
55
87
  reference: mPropertyBag.reference,
56
- parentVersion: Versions.getVersionsModel({layer: mPropertyBag.layer, reference: mPropertyBag.parameters.reference}).getProperty("/displayedVersion")
88
+ parentVersion: Versions.getVersionsModel({ layer: mPropertyBag.layer, reference: mPropertyBag.reference }).getProperty("/displayedVersion")
89
+ }).then(function (oResponse) {
90
+ return handleResponseForVersioning(oResponse, 201, mPropertyBag);
57
91
  });
58
92
  };
59
93
 
94
+ /**
95
+ * Reorder context-based adaptations based on their priorities
96
+ * @param {object} mPropertyBag - Object with parameters as properties
97
+ * @param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
98
+ * @param {string} mPropertyBag.layer - Layer
99
+ * @param {object} mPropertyBag.parameters - Parameters
100
+ * @param {string[]} mPropertyBag.parameters.priorities - Priority list
101
+ * @returns {Promise} Promise that resolves with the context-based adaptation
102
+ */
103
+ ContextBasedAdaptationsAPI.reorder = function (mPropertyBag) {
104
+ if (!mPropertyBag.layer) {
105
+ return Promise.reject("No layer was provided");
106
+ }
107
+ if (!mPropertyBag.control) {
108
+ return Promise.reject("No control was provided");
109
+ }
110
+ if (!mPropertyBag.parameters || !mPropertyBag.parameters.priorities) {
111
+ return Promise.reject("No valid priority list was provided");
112
+ }
113
+ mPropertyBag.reference = getFlexReferenceForControl(mPropertyBag.control);
114
+ return Storage.contextBasedAdaptation.reorder({
115
+ layer: mPropertyBag.layer,
116
+ flexObjects: mPropertyBag.parameters,
117
+ reference: mPropertyBag.reference,
118
+ parentVersion: Versions.getVersionsModel({ layer: mPropertyBag.layer, reference: mPropertyBag.reference }).getProperty("/displayedVersion")
119
+ }).then(function (oResponse) {
120
+ return handleResponseForVersioning(oResponse, 204, mPropertyBag);
121
+ });
122
+ };
123
+
124
+ /**
125
+ * Load list of context-based adapations with priority
126
+ * @param {object} mPropertyBag - Object with parameters as properties
127
+ * @param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
128
+ * @param {string} mPropertyBag.layer - Layer
129
+ * @returns {Promise} Promise that resolves with the list of context-based adaptations
130
+ */
131
+ ContextBasedAdaptationsAPI.load = function (mPropertyBag) {
132
+ if (!mPropertyBag.layer) {
133
+ return Promise.reject("No layer was provided");
134
+ }
135
+ if (!mPropertyBag.control) {
136
+ return Promise.reject("No control was provided");
137
+ }
138
+ mPropertyBag.reference = getFlexReferenceForControl(mPropertyBag.control);
139
+ return Storage.contextBasedAdaptation.load({
140
+ layer: mPropertyBag.layer,
141
+ flexObject: mPropertyBag.parameters,
142
+ reference: mPropertyBag.reference,
143
+ version: Versions.getVersionsModel({ layer: mPropertyBag.layer, reference: mPropertyBag.reference }).getProperty("/displayedVersion")
144
+ }).then(function (oAdaptations) {
145
+ if (!oAdaptations) {
146
+ oAdaptations = { adaptations: [] };
147
+ }
148
+ return new JSONModel(oAdaptations);
149
+ });
150
+ };
60
151
  return ContextBasedAdaptationsAPI;
61
152
  });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -37,7 +37,6 @@ sap.ui.define([
37
37
  *
38
38
  * @param {object} mPropertyBag - Object with parameters as properties
39
39
  * @param {string} [mPropertyBag.layer] - Layer
40
- * @param {string} [mPropertyBag.isComp=true] - Flag if the control owning the Component is the comp.VariantManagement
41
40
  * @returns {Promise<sap.ui.core.ComponentContainer>} Promise resolving with the ComponentContainer or nothing depending on the availability of the feature in the used back end
42
41
  * @private
43
42
  * @ui5-restricted sap.ui.comp, sap.ui.fl
@@ -47,13 +46,18 @@ sap.ui.define([
47
46
  return Promise.resolve();
48
47
  }
49
48
  return Settings.getInstance().then(function(oSettings) {
50
- return (mPropertyBag.isComp) ? oSettings.isContextSharingEnabledForComp() : oSettings.isContextSharingEnabled();
49
+ return oSettings.isContextSharingEnabled();
51
50
  }).then(function(bIsEnabled) {
52
51
  if (bIsEnabled) {
53
52
  if (!oComponentContainer || oComponentContainer.bIsDestroyed) {
54
53
  var oComponent = new ContextSharingComponent("contextSharing");
54
+ oComponent.showMessageStrip(true);
55
55
  oComponent.setSelectedContexts({role: []});
56
56
  oComponentContainer = new ComponentContainer("contextSharingContainer", {component: oComponent});
57
+ // Ensure view is fully loaded
58
+ return oComponent.getRootControl().oAsyncState.promise.then(function() {
59
+ return oComponentContainer;
60
+ });
57
61
  }
58
62
  return oComponentContainer;
59
63
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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 @@ sap.ui.define([
24
24
  *
25
25
  * @namespace sap.ui.fl.write.api.FieldExtensibility
26
26
  * @since 1.87
27
- * @version 1.109.0
27
+ * @version 1.111.0
28
28
  * @private
29
29
  * @ui5-restricted sap.ui.fl, sap.ui.rta
30
30
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -295,7 +295,7 @@ sap.ui.define([
295
295
  oFlexController = ChangesController.getFlexControllerInstance(oAppComponent);
296
296
  // remove custom data for flex change
297
297
  if (oElement) {
298
- FlexCustomData.sync.destroyAppliedCustomData(oElement, mPropertyBag.change, JsControlTreeModifier);
298
+ FlexCustomData.destroyAppliedCustomData(oElement, mPropertyBag.change, JsControlTreeModifier);
299
299
  }
300
300
  // delete from flex persistence map
301
301
  oFlexController.deleteChange(mPropertyBag.change, oAppComponent);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -8,19 +8,23 @@ sap.ui.define([
8
8
  "sap/ui/fl/LayerUtils",
9
9
  "sap/ui/fl/Layer",
10
10
  "sap/ui/fl/Utils",
11
+ "sap/ui/fl/apply/_internal/flexState/ManifestUtils",
11
12
  "sap/ui/fl/write/api/Version",
12
13
  "sap/ui/fl/write/api/VersionsAPI",
13
14
  "sap/ui/fl/write/api/FeaturesAPI",
14
15
  "sap/ui/fl/write/api/PersistenceWriteAPI",
16
+ "sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState",
15
17
  "sap/ui/fl/write/_internal/FlexInfoSession"
16
18
  ], function(
17
19
  LayerUtils,
18
20
  Layer,
19
21
  Utils,
22
+ ManifestUtils,
20
23
  Version,
21
24
  VersionsAPI,
22
25
  FeaturesAPI,
23
26
  PersistenceWriteAPI,
27
+ CompVariantState,
24
28
  FlexInfoSession
25
29
  ) {
26
30
  "use strict";
@@ -79,9 +83,21 @@ sap.ui.define([
79
83
  upToLayer: oReloadInfo.layer,
80
84
  includeCtrlVariants: oReloadInfo.includeCtrlVariants,
81
85
  includeDirtyChanges: true
86
+ })
87
+ .then(function(bResult) {
88
+ // not yet saved personalization on SmartVariantManagement controls is not tracked as a FlexObject,
89
+ // but it should be treated the same as already saved higher layer changes
90
+ return bResult || checkSVMControlsForDirty(oReloadInfo);
82
91
  });
83
92
  }
84
93
 
94
+ function checkSVMControlsForDirty(oReloadInfo) {
95
+ if (LayerUtils.isOverLayer(Layer.USER, oReloadInfo.layer)) {
96
+ return CompVariantState.checkSVMControlsForDirty((ManifestUtils.getFlexReferenceForControl(oReloadInfo.selector)));
97
+ }
98
+ return false;
99
+ }
100
+
85
101
  /**
86
102
  * Should reload happen when starting RTA due to allContextsProvided flag.
87
103
  * allContextsProvided determines if the user has provided all nessesary roles to see the views.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6