@openui5/sap.ui.fl 1.115.1 → 1.116.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 (260) hide show
  1. package/.eslintrc.json +33 -2
  2. package/.reuse/dep5 +0 -5
  3. package/THIRDPARTY.txt +1 -7
  4. package/package.json +3 -3
  5. package/src/sap/ui/fl/.library +1 -1
  6. package/src/sap/ui/fl/Cache.js +29 -29
  7. package/src/sap/ui/fl/ChangePersistence.js +69 -71
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepConnector.js +7 -7
  10. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +7 -7
  11. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +5 -5
  12. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  13. package/src/sap/ui/fl/FlexController.js +157 -130
  14. package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
  15. package/src/sap/ui/fl/Layer.js +1 -1
  16. package/src/sap/ui/fl/LayerUtils.js +11 -11
  17. package/src/sap/ui/fl/Utils.js +16 -17
  18. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +41 -38
  19. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  20. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +114 -94
  21. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  22. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
  23. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +19 -19
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +4 -5
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -2
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +15 -15
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +8 -8
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/RemoveAllInboundsExceptOne.js +6 -6
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -2
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +3 -5
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +4 -6
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +10 -10
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -3
  45. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -2
  46. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -4
  47. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +4 -5
  48. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +29 -29
  49. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -2
  50. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +6 -4
  51. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +44 -44
  52. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +3 -3
  53. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -1
  54. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
  55. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
  56. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -14
  57. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +3 -1
  58. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +6 -5
  59. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
  60. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
  61. package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +12 -4
  62. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
  63. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +23 -5
  64. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +183 -64
  65. package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +27 -17
  66. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +5 -5
  67. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -5
  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 +4 -4
  71. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +50 -50
  72. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +27 -13
  73. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +5 -5
  74. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +5 -5
  75. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +55 -37
  76. package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +12 -12
  77. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +5 -5
  78. package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +6 -6
  79. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -2
  80. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +4 -4
  81. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +5 -5
  82. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +10 -4
  83. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +5 -5
  84. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -6
  85. package/src/sap/ui/fl/changeHandler/AddIFrame.js +21 -21
  86. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  87. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +34 -34
  88. package/src/sap/ui/fl/changeHandler/Base.js +7 -7
  89. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +107 -107
  90. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +45 -45
  91. package/src/sap/ui/fl/changeHandler/BaseRename.js +26 -26
  92. package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
  93. package/src/sap/ui/fl/changeHandler/HideControl.js +15 -16
  94. package/src/sap/ui/fl/changeHandler/MoveControls.js +190 -191
  95. package/src/sap/ui/fl/changeHandler/MoveElements.js +36 -36
  96. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +7 -7
  97. package/src/sap/ui/fl/changeHandler/PropertyChange.js +7 -7
  98. package/src/sap/ui/fl/changeHandler/StashControl.js +35 -35
  99. package/src/sap/ui/fl/changeHandler/UnhideControl.js +7 -7
  100. package/src/sap/ui/fl/changeHandler/UnstashControl.js +21 -21
  101. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +39 -39
  102. package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
  103. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +5 -5
  104. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +5 -5
  105. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +12 -12
  106. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +7 -9
  107. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  108. package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +12 -12
  109. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +60 -60
  110. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +2 -5
  111. package/src/sap/ui/fl/initial/_internal/Storage.js +18 -19
  112. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +4 -4
  113. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +20 -21
  114. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +6 -6
  115. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
  116. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +2 -2
  117. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
  118. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +4 -4
  119. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
  120. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +18 -18
  121. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +4 -4
  122. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
  123. package/src/sap/ui/fl/interfaces/Delegate.js +7 -9
  124. package/src/sap/ui/fl/library.js +44 -45
  125. package/src/sap/ui/fl/library.support.js +59 -59
  126. package/src/sap/ui/fl/messagebundle.properties +4 -119
  127. package/src/sap/ui/fl/messagebundle_ar.properties +2 -79
  128. package/src/sap/ui/fl/messagebundle_bg.properties +2 -79
  129. package/src/sap/ui/fl/messagebundle_ca.properties +2 -79
  130. package/src/sap/ui/fl/messagebundle_cs.properties +2 -79
  131. package/src/sap/ui/fl/messagebundle_cy.properties +2 -79
  132. package/src/sap/ui/fl/messagebundle_da.properties +2 -79
  133. package/src/sap/ui/fl/messagebundle_de.properties +2 -79
  134. package/src/sap/ui/fl/messagebundle_el.properties +2 -79
  135. package/src/sap/ui/fl/messagebundle_en.properties +2 -79
  136. package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -79
  137. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +2 -79
  138. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -79
  139. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +2 -79
  140. package/src/sap/ui/fl/messagebundle_es.properties +2 -79
  141. package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -79
  142. package/src/sap/ui/fl/messagebundle_et.properties +2 -79
  143. package/src/sap/ui/fl/messagebundle_fi.properties +2 -79
  144. package/src/sap/ui/fl/messagebundle_fr.properties +2 -79
  145. package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -79
  146. package/src/sap/ui/fl/messagebundle_hi.properties +2 -79
  147. package/src/sap/ui/fl/messagebundle_hr.properties +2 -79
  148. package/src/sap/ui/fl/messagebundle_hu.properties +2 -79
  149. package/src/sap/ui/fl/messagebundle_id.properties +2 -79
  150. package/src/sap/ui/fl/messagebundle_it.properties +2 -79
  151. package/src/sap/ui/fl/messagebundle_iw.properties +2 -79
  152. package/src/sap/ui/fl/messagebundle_ja.properties +2 -79
  153. package/src/sap/ui/fl/messagebundle_kk.properties +2 -79
  154. package/src/sap/ui/fl/messagebundle_ko.properties +2 -79
  155. package/src/sap/ui/fl/messagebundle_lt.properties +2 -79
  156. package/src/sap/ui/fl/messagebundle_lv.properties +2 -79
  157. package/src/sap/ui/fl/messagebundle_ms.properties +2 -79
  158. package/src/sap/ui/fl/messagebundle_nl.properties +2 -79
  159. package/src/sap/ui/fl/messagebundle_no.properties +2 -79
  160. package/src/sap/ui/fl/messagebundle_pl.properties +2 -79
  161. package/src/sap/ui/fl/messagebundle_pt.properties +2 -79
  162. package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -79
  163. package/src/sap/ui/fl/messagebundle_ro.properties +2 -79
  164. package/src/sap/ui/fl/messagebundle_ru.properties +2 -79
  165. package/src/sap/ui/fl/messagebundle_sh.properties +2 -79
  166. package/src/sap/ui/fl/messagebundle_sk.properties +2 -79
  167. package/src/sap/ui/fl/messagebundle_sl.properties +2 -79
  168. package/src/sap/ui/fl/messagebundle_sv.properties +2 -79
  169. package/src/sap/ui/fl/messagebundle_th.properties +2 -79
  170. package/src/sap/ui/fl/messagebundle_tr.properties +2 -79
  171. package/src/sap/ui/fl/messagebundle_uk.properties +3 -80
  172. package/src/sap/ui/fl/messagebundle_vi.properties +2 -79
  173. package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -79
  174. package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -79
  175. package/src/sap/ui/fl/registry/Settings.js +41 -43
  176. package/src/sap/ui/fl/requireAsync.js +7 -1
  177. package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +8 -8
  178. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +22 -22
  179. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +3 -3
  180. package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
  181. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +3 -5
  182. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +27 -27
  183. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +20 -20
  184. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +17 -17
  185. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
  186. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +34 -34
  187. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +10 -10
  188. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
  189. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  190. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -2
  191. package/src/sap/ui/fl/util/IFrame.js +18 -18
  192. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  193. package/src/sap/ui/fl/util/ManagedObjectModel.js +7 -7
  194. package/src/sap/ui/fl/util/changePropertyValueByPath.js +2 -2
  195. package/src/sap/ui/fl/util/getContainerUserInfo.js +25 -25
  196. package/src/sap/ui/fl/util/resolveBinding.js +3 -3
  197. package/src/sap/ui/fl/variants/VariantManagement.js +8 -32
  198. package/src/sap/ui/fl/variants/VariantModel.js +182 -124
  199. package/src/sap/ui/fl/variants/context/Component.js +1 -2
  200. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -5
  201. package/src/sap/ui/fl/write/_internal/SaveAs.js +143 -143
  202. package/src/sap/ui/fl/write/_internal/Storage.js +46 -49
  203. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +4 -4
  204. package/src/sap/ui/fl/write/_internal/Versions.js +104 -94
  205. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +9 -9
  206. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +7 -7
  207. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  208. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +3 -5
  209. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +15 -10
  210. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  211. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
  212. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
  213. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
  214. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +10 -10
  215. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -24
  216. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -61
  217. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +4 -4
  218. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +6 -6
  219. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
  220. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +14 -14
  221. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +3 -3
  222. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +15 -7
  223. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
  224. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  225. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  226. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  227. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -3
  228. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  229. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  230. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +3 -3
  231. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  232. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
  233. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +2 -2
  234. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  235. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +3 -3
  236. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +4 -4
  237. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +2 -2
  238. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +26 -26
  239. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +78 -57
  240. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +12 -13
  241. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +12 -12
  242. package/src/sap/ui/fl/write/_internal/transport/Transports.js +7 -7
  243. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +7 -7
  244. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +9 -9
  245. package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +546 -110
  246. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +109 -67
  247. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +3 -3
  248. package/src/sap/ui/fl/write/api/FeaturesAPI.js +19 -20
  249. package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
  250. package/src/sap/ui/fl/write/api/LocalResetAPI.js +19 -19
  251. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +59 -54
  252. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +8 -8
  253. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +6 -6
  254. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +14 -13
  255. package/src/sap/ui/fl/write/api/TranslationAPI.js +13 -13
  256. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  257. package/src/sap/ui/fl/write/api/VersionsAPI.js +14 -14
  258. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
  259. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +7 -7
  260. package/src/sap/ui/fl/write/connectors/BaseConnector.js +17 -17
@@ -9,7 +9,7 @@ sap.ui.define([
9
9
  "sap/ui/fl/write/_internal/Storage",
10
10
  "sap/ui/fl/Layer",
11
11
  "sap/base/util/restricted/_isEqual"
12
- ], function (
12
+ ], function(
13
13
  Controller,
14
14
  Fragment,
15
15
  WriteStorage,
@@ -18,7 +18,6 @@ sap.ui.define([
18
18
  ) {
19
19
  "use strict";
20
20
 
21
-
22
21
  function buildQueryParameterMap(mConfig) {
23
22
  var mDefaultValues = {layer: Layer.CUSTOMER, type: "role"};
24
23
  return Object.assign({}, mDefaultValues, mConfig);
@@ -60,7 +59,6 @@ sap.ui.define([
60
59
  return {id: oItem.getTitle(), description: oItem.getDescription()};
61
60
  }
62
61
 
63
-
64
62
  return Controller.extend("sap.ui.fl.variants.context.controller.ContextVisibility", {
65
63
  onInit: function() {
66
64
  this.oSelectedContextsModel = this.getView().getModel("selectedContexts");
@@ -106,7 +104,6 @@ sap.ui.define([
106
104
  return sDescription.length === 0 ? this.oI18n.getText("NO_DESCRIPTION") : sDescription;
107
105
  },
108
106
 
109
-
110
107
  /**
111
108
  * Checks if all data is loaded from back end.
112
109
  * If not, it retrieves the next chunk from the back end and then updates the model.
@@ -156,7 +153,7 @@ sap.ui.define([
156
153
  if (!this._oDialog) {
157
154
  this._oDialog = loadFragment.call(this);
158
155
  }
159
- return this._oDialog.then(function (oDialog) {
156
+ return this._oDialog.then(function(oDialog) {
160
157
  return this._addContexts(oDialog);
161
158
  }.bind(this));
162
159
  },
@@ -49,8 +49,8 @@ sap.ui.define([
49
49
  if (
50
50
  mPropertyBag.isForSmartBusiness
51
51
  && (
52
- mPropertyBag.package !== '$TMP'
53
- && mPropertyBag.package !== ''
52
+ mPropertyBag.package !== "$TMP"
53
+ && mPropertyBag.package !== ""
54
54
  )
55
55
  && !mPropertyBag.transport
56
56
  && !oSettings.isAtoEnabled()
@@ -126,7 +126,7 @@ sap.ui.define([
126
126
  function _inlineDescriptorChanges(aAllInlineChanges, oAppVariant) {
127
127
  var aAllDescrChanges = [];
128
128
  aAllInlineChanges.forEach(function(oInlineChange) {
129
- //Replace the hosting key with the new reference
129
+ // Replace the hosting key with the new reference
130
130
  oInlineChange.replaceHostingIdForTextKey(oAppVariant.getId(), oAppVariant.getReference(), oInlineChange.getContent(), oInlineChange.getTexts());
131
131
  aAllDescrChanges.push(oAppVariant.addDescriptorInlineChange(oInlineChange));
132
132
  });
@@ -173,11 +173,11 @@ sap.ui.define([
173
173
  mPropertyBag.layer = oAppVariant.getDefinition().layer;
174
174
 
175
175
  return _validatePackageAndPrepareTransportInfo(mPropertyBag)
176
- .then(function(oTransportInfo) {
177
- return _setTransportAndPackageInfoForAppVariant(oAppVariant, oTransportInfo);
178
- }).then(function() {
179
- return oAppVariant;
180
- });
176
+ .then(function(oTransportInfo) {
177
+ return _setTransportAndPackageInfoForAppVariant(oAppVariant, oTransportInfo);
178
+ }).then(function() {
179
+ return oAppVariant;
180
+ });
181
181
  }
182
182
 
183
183
  var SaveAs = {
@@ -186,167 +186,167 @@ sap.ui.define([
186
186
  var oAppVariantResultClosure;
187
187
 
188
188
  return AppVariantFactory.prepareCreate(mPropertyBag)
189
- .then(function(oAppVariant) {
190
- oAppVariantClosure = merge({}, oAppVariant);
191
- return _validatePackageAndPrepareTransportInfo(mPropertyBag);
192
- })
193
- .then(function(oTransportInfo) {
194
- return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
195
- })
196
- .then(function() {
197
- var aDescrChanges = [];
198
- _getDirtyChanges(mPropertyBag.selector).forEach(function(oChange) {
199
- // UI and Descriptor changes need to be separated here so as to perform different operations on changes
200
- if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
201
- aDescrChanges.push(oChange);
202
- } else {
203
- _moveChangesToNewFlexReference(oChange, oAppVariantClosure);
204
- }
205
- });
206
- return _getInlineChangesFromDescrChanges(aDescrChanges);
207
- })
208
- .then(function(aAllInlineChanges) {
209
- return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
210
- })
211
- .then(function() {
212
- // Save the app variant to backend
213
- return oAppVariantClosure.submit()
214
- .catch(function(oError) {
215
- oError.messageKey = "MSG_SAVE_APP_VARIANT_FAILED";
216
- throw oError;
217
- });
218
- })
219
- .then(function(oResult) {
220
- oAppVariantResultClosure = merge({}, oResult);
221
- _deleteDescrChangesFromPersistence(mPropertyBag.selector);
222
-
223
- var oFlexController = ChangesController.getFlexControllerInstance(mPropertyBag.selector);
224
-
225
- var aUIChanges = _getDirtyChanges(mPropertyBag.selector); //after removing descr changes, all remaining dirty changes are UI changes
226
- if (aUIChanges.length) {
227
- // Save the dirty UI changes to backend => firing PersistenceWriteApi.save
228
- return oFlexController.saveAll(ChangesController.getAppComponentForSelector(mPropertyBag.selector), true)
229
- .catch(function(oError) {
230
- // Delete the inconsistent app variant if the UI changes failed to save
231
- return this.deleteAppVariant({
232
- id: mPropertyBag.id
233
- })
234
- .then(function() {
235
- oError.messageKey = "MSG_COPY_UNSAVED_CHANGES_FAILED";
236
- throw oError;
237
- });
238
- }.bind(this));
189
+ .then(function(oAppVariant) {
190
+ oAppVariantClosure = merge({}, oAppVariant);
191
+ return _validatePackageAndPrepareTransportInfo(mPropertyBag);
192
+ })
193
+ .then(function(oTransportInfo) {
194
+ return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
195
+ })
196
+ .then(function() {
197
+ var aDescrChanges = [];
198
+ _getDirtyChanges(mPropertyBag.selector).forEach(function(oChange) {
199
+ // UI and Descriptor changes need to be separated here so as to perform different operations on changes
200
+ if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
201
+ aDescrChanges.push(oChange);
202
+ } else {
203
+ _moveChangesToNewFlexReference(oChange, oAppVariantClosure);
239
204
  }
240
-
241
- return Promise.resolve();
242
- }.bind(this))
243
- .then(function() {
244
- return oAppVariantResultClosure;
245
- })
205
+ });
206
+ return _getInlineChangesFromDescrChanges(aDescrChanges);
207
+ })
208
+ .then(function(aAllInlineChanges) {
209
+ return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
210
+ })
211
+ .then(function() {
212
+ // Save the app variant to backend
213
+ return oAppVariantClosure.submit()
246
214
  .catch(function(oError) {
247
- // If promise gets rejected before making a submit call, then app descriptor changes have to be removed from persistence
248
- if (
249
- _getDirtyDescrChanges(mPropertyBag.selector).length
250
- ) {
251
- _deleteDescrChangesFromPersistence(mPropertyBag.selector);
252
- }
253
-
254
- Log.error("the app variant could not be created.", oError.message || oError);
215
+ oError.messageKey = "MSG_SAVE_APP_VARIANT_FAILED";
255
216
  throw oError;
256
217
  });
218
+ })
219
+ .then(function(oResult) {
220
+ oAppVariantResultClosure = merge({}, oResult);
221
+ _deleteDescrChangesFromPersistence(mPropertyBag.selector);
222
+
223
+ var oFlexController = ChangesController.getFlexControllerInstance(mPropertyBag.selector);
224
+
225
+ var aUIChanges = _getDirtyChanges(mPropertyBag.selector); // after removing descr changes, all remaining dirty changes are UI changes
226
+ if (aUIChanges.length) {
227
+ // Save the dirty UI changes to backend => firing PersistenceWriteApi.save
228
+ return oFlexController.saveAll(ChangesController.getAppComponentForSelector(mPropertyBag.selector), true)
229
+ .catch(function(oError) {
230
+ // Delete the inconsistent app variant if the UI changes failed to save
231
+ return this.deleteAppVariant({
232
+ id: mPropertyBag.id
233
+ })
234
+ .then(function() {
235
+ oError.messageKey = "MSG_COPY_UNSAVED_CHANGES_FAILED";
236
+ throw oError;
237
+ });
238
+ }.bind(this));
239
+ }
240
+
241
+ return Promise.resolve();
242
+ }.bind(this))
243
+ .then(function() {
244
+ return oAppVariantResultClosure;
245
+ })
246
+ .catch(function(oError) {
247
+ // If promise gets rejected before making a submit call, then app descriptor changes have to be removed from persistence
248
+ if (
249
+ _getDirtyDescrChanges(mPropertyBag.selector).length
250
+ ) {
251
+ _deleteDescrChangesFromPersistence(mPropertyBag.selector);
252
+ }
253
+
254
+ Log.error("the app variant could not be created.", oError.message || oError);
255
+ throw oError;
256
+ });
257
257
  },
258
258
  updateAppVariant: function(mPropertyBag) {
259
259
  var oAppVariantClosure;
260
260
  var oAppVariantResultClosure;
261
261
 
262
262
  return AppVariantFactory.prepareUpdate(_omit(mPropertyBag, "selector"))
263
- .catch(function(oError) {
264
- oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
265
- throw oError;
266
- })
267
- .then(function(oAppVariant) {
268
- if (!oAppVariant) {
269
- throw new Error("App variant with ID: " + mPropertyBag.id + "does not exist");
263
+ .catch(function(oError) {
264
+ oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
265
+ throw oError;
266
+ })
267
+ .then(function(oAppVariant) {
268
+ if (!oAppVariant) {
269
+ throw new Error("App variant with ID: " + mPropertyBag.id + "does not exist");
270
+ }
271
+
272
+ oAppVariantClosure = merge({}, oAppVariant);
273
+ mPropertyBag.package = oAppVariantClosure.getPackage();
274
+ mPropertyBag.layer = oAppVariantClosure.getDefinition().layer;
275
+
276
+ return _validatePackageAndPrepareTransportInfo(mPropertyBag);
277
+ })
278
+ .then(function(oTransportInfo) {
279
+ return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
280
+ })
281
+ .then(function() {
282
+ var aDescrChanges = [];
283
+ _getDirtyDescrChanges(mPropertyBag.selector).forEach(function(oChange) {
284
+ if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
285
+ aDescrChanges.push(oChange);
270
286
  }
287
+ });
271
288
 
272
- oAppVariantClosure = merge({}, oAppVariant);
273
- mPropertyBag.package = oAppVariantClosure.getPackage();
274
- mPropertyBag.layer = oAppVariantClosure.getDefinition().layer;
275
-
276
- return _validatePackageAndPrepareTransportInfo(mPropertyBag);
277
- })
278
- .then(function(oTransportInfo) {
279
- return _setTransportAndPackageInfoForAppVariant(oAppVariantClosure, oTransportInfo);
280
- })
281
- .then(function() {
282
- var aDescrChanges = [];
283
- _getDirtyDescrChanges(mPropertyBag.selector).forEach(function(oChange) {
284
- if (DescriptorChangeTypes.getChangeTypes().includes(oChange.getChangeType())) {
285
- aDescrChanges.push(oChange);
286
- }
287
- });
288
-
289
- return _getInlineChangesFromDescrChanges(aDescrChanges);
290
- })
291
- .then(function(aAllInlineChanges) {
292
- return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
293
- })
294
- .then(function() {
295
- // Updates the app variant saved in backend
296
- return oAppVariantClosure.submit()
297
- .catch(function(oError) {
298
- if (mPropertyBag.isForSmartBusiness) {
299
- _deleteDescrChangesFromPersistence(mPropertyBag.selector);
300
- throw oError;
301
- }
302
- oError.messageKey = "MSG_UPDATE_APP_VARIANT_FAILED";
303
- throw oError;
304
- });
305
- }).then(function(oResult) {
306
- oAppVariantResultClosure = merge({}, oResult);
307
- _deleteDescrChangesFromPersistence(mPropertyBag.selector);
308
- return oAppVariantResultClosure;
309
- })
289
+ return _getInlineChangesFromDescrChanges(aDescrChanges);
290
+ })
291
+ .then(function(aAllInlineChanges) {
292
+ return _inlineDescriptorChanges(aAllInlineChanges, oAppVariantClosure);
293
+ })
294
+ .then(function() {
295
+ // Updates the app variant saved in backend
296
+ return oAppVariantClosure.submit()
310
297
  .catch(function(oError) {
311
- // If promise gets rejected before making a submit call, then also app descriptor changes have to be removed from persistence
312
- if (
313
- _getDirtyDescrChanges(mPropertyBag.selector).length
314
- ) {
298
+ if (mPropertyBag.isForSmartBusiness) {
315
299
  _deleteDescrChangesFromPersistence(mPropertyBag.selector);
300
+ throw oError;
316
301
  }
317
-
318
- Log.error("the app variant could not be updated.", oError.message || oError);
302
+ oError.messageKey = "MSG_UPDATE_APP_VARIANT_FAILED";
319
303
  throw oError;
320
304
  });
305
+ }).then(function(oResult) {
306
+ oAppVariantResultClosure = merge({}, oResult);
307
+ _deleteDescrChangesFromPersistence(mPropertyBag.selector);
308
+ return oAppVariantResultClosure;
309
+ })
310
+ .catch(function(oError) {
311
+ // If promise gets rejected before making a submit call, then also app descriptor changes have to be removed from persistence
312
+ if (
313
+ _getDirtyDescrChanges(mPropertyBag.selector).length
314
+ ) {
315
+ _deleteDescrChangesFromPersistence(mPropertyBag.selector);
316
+ }
317
+
318
+ Log.error("the app variant could not be updated.", oError.message || oError);
319
+ throw oError;
320
+ });
321
321
  },
322
322
  deleteAppVariant: function(mPropertyBag) {
323
323
  return AppVariantFactory.prepareDelete(_omit(mPropertyBag, "selector"))
324
- .catch(function(oError) {
325
- oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
326
- throw oError;
327
- })
328
- .then(function(oAppVariant) {
329
- return ((mPropertyBag.isForSmartBusiness)
330
- ? Promise.resolve(oAppVariant)
331
- : _addPackageAndTransport(oAppVariant, mPropertyBag));
332
- })
333
- .then(function(oAppVariant) {
334
- return oAppVariant.submit()
335
- .catch(function(oError) {
336
- if (oError === "cancel") {
337
- return Promise.reject("cancel");
338
- }
339
- oError.messageKey = "MSG_DELETE_APP_VARIANT_FAILED";
340
- throw oError;
341
- });
342
- })
324
+ .catch(function(oError) {
325
+ oError.messageKey = "MSG_LOAD_APP_VARIANT_FAILED";
326
+ throw oError;
327
+ })
328
+ .then(function(oAppVariant) {
329
+ return ((mPropertyBag.isForSmartBusiness)
330
+ ? Promise.resolve(oAppVariant)
331
+ : _addPackageAndTransport(oAppVariant, mPropertyBag));
332
+ })
333
+ .then(function(oAppVariant) {
334
+ return oAppVariant.submit()
343
335
  .catch(function(oError) {
344
336
  if (oError === "cancel") {
345
337
  return Promise.reject("cancel");
346
338
  }
347
- Log.error("the app variant could not be deleted.", oError.message || oError);
339
+ oError.messageKey = "MSG_DELETE_APP_VARIANT_FAILED";
348
340
  throw oError;
349
341
  });
342
+ })
343
+ .catch(function(oError) {
344
+ if (oError === "cancel") {
345
+ return Promise.reject("cancel");
346
+ }
347
+ Log.error("the app variant could not be deleted.", oError.message || oError);
348
+ throw oError;
349
+ });
350
350
  }
351
351
  };
352
352
  return SaveAs;
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @namespace sap.ui.fl.write._internal.Storage
24
24
  * @since 1.67
25
- * @version 1.115.1
25
+ * @version 1.116.0
26
26
  * @private
27
27
  * @ui5-restricted sap.ui.fl
28
28
  */
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  }
40
40
 
41
41
  function findConnectorConfigForLayer(sLayer, aConnectors) {
42
- var aFilteredConnectors = aConnectors.filter(function (oConnector) {
42
+ var aFilteredConnectors = aConnectors.filter(function(oConnector) {
43
43
  return oConnector.layers.indexOf("ALL") !== -1 || oConnector.layers.indexOf(sLayer) !== -1;
44
44
  });
45
45
 
@@ -57,18 +57,18 @@ sap.ui.define([
57
57
  }
58
58
 
59
59
  function _sendLoadFeaturesToConnector(aConnectors) {
60
- var aConnectorPromises = aConnectors.map(function (oConnectorConfig) {
60
+ var aConnectorPromises = aConnectors.map(function(oConnectorConfig) {
61
61
  return oConnectorConfig.writeConnectorModule.loadFeatures({url: oConnectorConfig.url})
62
- .then(function (oFeatures) {
63
- return {
64
- features: oFeatures,
65
- layers: oConnectorConfig.layers
66
- };
67
- })
68
- .catch(StorageUtils.logAndResolveDefault.bind(null, {
69
- features: {},
62
+ .then(function(oFeatures) {
63
+ return {
64
+ features: oFeatures,
70
65
  layers: oConnectorConfig.layers
71
- }, oConnectorConfig, "loadFeatures"));
66
+ };
67
+ })
68
+ .catch(StorageUtils.logAndResolveDefault.bind(null, {
69
+ features: {},
70
+ layers: oConnectorConfig.layers
71
+ }, oConnectorConfig, "loadFeatures"));
72
72
  });
73
73
 
74
74
  return Promise.all(aConnectorPromises);
@@ -85,22 +85,22 @@ sap.ui.define([
85
85
  return Promise.reject("No layer was provided");
86
86
  }
87
87
  return _getWriteConnectors()
88
- .then(findConnectorConfigForLayer.bind(this, sLayer));
88
+ .then(findConnectorConfigForLayer.bind(this, sLayer));
89
89
  }
90
90
 
91
91
  function _validateDraftScenario(mPropertyBag) {
92
92
  if (mPropertyBag.draft) {
93
- return new Promise(function (resolve, reject) {
93
+ return new Promise(function(resolve, reject) {
94
94
  // no loop of classes included since loadFeatures is not using executeActionsByName
95
- sap.ui.require(["sap/ui/fl/write/api/FeaturesAPI"], function (FeaturesAPI) {
95
+ sap.ui.require(["sap/ui/fl/write/api/FeaturesAPI"], function(FeaturesAPI) {
96
96
  FeaturesAPI.isVersioningEnabled(mPropertyBag.layer)
97
- .then(function (bDraftEnabled) {
98
- if (bDraftEnabled) {
99
- resolve();
100
- } else {
101
- reject("Draft is not supported for the given layer: " + mPropertyBag.layer);
102
- }
103
- });
97
+ .then(function(bDraftEnabled) {
98
+ if (bDraftEnabled) {
99
+ resolve();
100
+ } else {
101
+ reject("Draft is not supported for the given layer: " + mPropertyBag.layer);
102
+ }
103
+ });
104
104
  });
105
105
  });
106
106
  }
@@ -215,12 +215,12 @@ sap.ui.define([
215
215
 
216
216
  function _executeActionByName(sActionName, mPropertyBag) {
217
217
  return _validateDraftScenario(mPropertyBag)
218
- .then(_getConnectorConfigByLayer.bind(undefined, mPropertyBag.layer))
219
- .then(function (oConnectorConfig) {
220
- mPropertyBag.url = oConnectorConfig.url;
221
- var oConnector = ObjectPath.get(sActionName, oConnectorConfig.writeConnectorModule);
222
- return oConnector.call(oConnectorConfig.writeConnectorModule, mPropertyBag);
223
- });
218
+ .then(_getConnectorConfigByLayer.bind(undefined, mPropertyBag.layer))
219
+ .then(function(oConnectorConfig) {
220
+ mPropertyBag.url = oConnectorConfig.url;
221
+ var oConnector = ObjectPath.get(sActionName, oConnectorConfig.writeConnectorModule);
222
+ return oConnector.call(oConnectorConfig.writeConnectorModule, mPropertyBag);
223
+ });
224
224
  }
225
225
 
226
226
  var Storage = {};
@@ -392,8 +392,8 @@ sap.ui.define([
392
392
  */
393
393
  Storage.loadFeatures = function() {
394
394
  return _getWriteConnectors()
395
- .then(_sendLoadFeaturesToConnector)
396
- .then(StorageFeaturesMerger.mergeResults);
395
+ .then(_sendLoadFeaturesToConnector)
396
+ .then(StorageFeaturesMerger.mergeResults);
397
397
  };
398
398
 
399
399
  /**
@@ -420,26 +420,23 @@ sap.ui.define([
420
420
  Storage.contextBasedAdaptation = {
421
421
  create: function(mPropertyBag) {
422
422
  return _getWriteConnectors()
423
- .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.create", mPropertyBag));
423
+ .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.create", mPropertyBag));
424
424
  },
425
425
  reorder: function(mPropertyBag) {
426
426
  return _getWriteConnectors()
427
- .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.reorder", mPropertyBag));
427
+ .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.reorder", mPropertyBag));
428
428
  },
429
429
  update: function(mPropertyBag) {
430
430
  return _getWriteConnectors()
431
- .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.update", mPropertyBag));
431
+ .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.update", mPropertyBag));
432
432
  },
433
433
  load: function(mPropertyBag) {
434
434
  return _getWriteConnectors()
435
- .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.load", mPropertyBag));
436
- },
437
- writeChange: function(mPropertyBag) {
438
- return Storage.write(mPropertyBag);
435
+ .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.load", mPropertyBag));
439
436
  },
440
437
  remove: function(mPropertyBag) {
441
438
  return _getWriteConnectors()
442
- .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.remove", mPropertyBag));
439
+ .then(_executeActionByName.bind(undefined, "contextBasedAdaptation.remove", mPropertyBag));
443
440
  }
444
441
  };
445
442
 
@@ -454,9 +451,9 @@ sap.ui.define([
454
451
  * @returns {Promise<sap.ui.fl.Version[]>} Promise resolving with a list of versions if available;
455
452
  * rejects if an error occurs or the layer does not support draft handling
456
453
  */
457
- load: function (mPropertyBag) {
454
+ load: function(mPropertyBag) {
458
455
  return _getWriteConnectors()
459
- .then(_executeActionByName.bind(undefined, "versions.load", mPropertyBag));
456
+ .then(_executeActionByName.bind(undefined, "versions.load", mPropertyBag));
460
457
  },
461
458
 
462
459
  /**
@@ -469,9 +466,9 @@ sap.ui.define([
469
466
  * @returns {Promise<sap.ui.fl.Version>} Promise resolving with the activated version;
470
467
  * rejects if an error occurs or the layer does not support draft handling
471
468
  */
472
- activate: function (mPropertyBag) {
469
+ activate: function(mPropertyBag) {
473
470
  return _getWriteConnectors()
474
- .then(_executeActionByName.bind(undefined, "versions.activate", mPropertyBag));
471
+ .then(_executeActionByName.bind(undefined, "versions.activate", mPropertyBag));
475
472
  },
476
473
 
477
474
  /**
@@ -483,12 +480,12 @@ sap.ui.define([
483
480
  * @returns {Promise} Promise resolving after the draft is discarded;
484
481
  * rejects if an error occurs or the layer does not support draft handling
485
482
  */
486
- discardDraft: function (mPropertyBag) {
483
+ discardDraft: function(mPropertyBag) {
487
484
  return _getWriteConnectors()
488
- .then(_executeActionByName.bind(undefined, "versions.discardDraft", mPropertyBag));
485
+ .then(_executeActionByName.bind(undefined, "versions.discardDraft", mPropertyBag));
489
486
  },
490
487
 
491
- publish: function (mPropertyBag) {
488
+ publish: function(mPropertyBag) {
492
489
  return _getWriteConnectors()
493
490
  .then(_executeActionByName.bind(undefined, "versions.publish", mPropertyBag));
494
491
  }
@@ -504,10 +501,10 @@ sap.ui.define([
504
501
  * @returns {Promise} Resolving after the languages are retrieved;
505
502
  * rejects if an error occurs
506
503
  */
507
- getSourceLanguages: function (mPropertyBag) {
504
+ getSourceLanguages: function(mPropertyBag) {
508
505
  // TODO: cache the request & invalidate it in case of a writing operation
509
506
  return _getWriteConnectors()
510
- .then(_executeActionByName.bind(undefined, "translation.getSourceLanguages", mPropertyBag));
507
+ .then(_executeActionByName.bind(undefined, "translation.getSourceLanguages", mPropertyBag));
511
508
  },
512
509
 
513
510
  /**
@@ -521,7 +518,7 @@ sap.ui.define([
521
518
  * @returns {Promise} Resolving after the languages are retrieved;
522
519
  * rejects if an error occurs
523
520
  */
524
- getTexts: function (mPropertyBag) {
521
+ getTexts: function(mPropertyBag) {
525
522
  return _getWriteConnectors()
526
523
  .then(_executeActionByName.bind(undefined, "translation.getTexts", mPropertyBag));
527
524
  },
@@ -535,7 +532,7 @@ sap.ui.define([
535
532
  * @returns {Promise} Resolves after the file was uploaded;
536
533
  * rejects if an error occurs or the parameter is missing
537
534
  */
538
- postTranslationTexts: function (mPropertyBag) {
535
+ postTranslationTexts: function(mPropertyBag) {
539
536
  return _getWriteConnectors()
540
537
  .then(_executeActionByName.bind(undefined, "translation.postTranslationTexts", mPropertyBag));
541
538
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/base/util/merge"
9
- ], function (
9
+ ], function(
10
10
  merge
11
11
  ) {
12
12
  "use strict";
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @namespace sap.ui.fl.write._internal.StorageFeaturesMerger
18
18
  * @since 1.70
19
- * @version 1.115.1
19
+ * @version 1.116.0
20
20
  * @private
21
21
  * @ui5-restricted sap.ui.fl.write._internal.Storage
22
22
  */
@@ -63,8 +63,8 @@ sap.ui.define([
63
63
  mergeResults: function(aResponses) {
64
64
  var oResult = DEFAULT_FEATURES;
65
65
 
66
- aResponses.forEach(function (oResponse) {
67
- Object.keys(oResponse.features).forEach(function (sKey) {
66
+ aResponses.forEach(function(oResponse) {
67
+ Object.keys(oResponse.features).forEach(function(sKey) {
68
68
  if (sKey !== "isVersioningEnabled") {
69
69
  oResult[sKey] = oResponse.features[sKey];
70
70
  }