@openui5/sap.ui.fl 1.104.0 → 1.105.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 (254) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +1 -1
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +1 -1
  5. package/src/sap/ui/fl/Cache.js +3 -3
  6. package/src/sap/ui/fl/Change.js +29 -4
  7. package/src/sap/ui/fl/ChangePersistence.js +26 -14
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepConnector.js +6 -0
  10. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +9 -3
  11. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +9 -3
  12. package/src/sap/ui/fl/FakeLrepLocalStorage.js +9 -3
  13. package/src/sap/ui/fl/FlexController.js +3 -1
  14. package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
  15. package/src/sap/ui/fl/Layer.js +5 -2
  16. package/src/sap/ui/fl/LayerUtils.js +1 -1
  17. package/src/sap/ui/fl/Utils.js +76 -41
  18. package/src/sap/ui/fl/apply/_internal/ChangesController.js +2 -2
  19. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  20. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +2 -2
  21. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +2 -2
  22. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
  24. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +3 -3
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +2 -2
  44. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +3 -3
  45. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +2 -2
  46. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +8 -43
  47. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  48. package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +73 -0
  49. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +11 -20
  50. package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +81 -0
  51. package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +111 -0
  52. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +51 -17
  53. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +114 -34
  54. package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +4 -15
  55. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +22 -6
  56. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +3 -3
  57. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +3 -3
  59. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +2 -2
  60. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +3 -3
  61. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +4 -4
  62. package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +2 -2
  63. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +4 -4
  64. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +2 -2
  65. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +2 -2
  66. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +3 -3
  67. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +27 -35
  68. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +76 -111
  69. package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +1 -1
  70. package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +1 -1
  71. package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -1
  72. package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +1 -1
  73. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +4 -4
  74. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +2 -2
  75. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +2 -2
  76. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +2 -2
  77. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +2 -2
  78. package/src/sap/ui/fl/changeHandler/AddIFrame.js +7 -7
  79. package/src/sap/ui/fl/changeHandler/AddXML.js +14 -16
  80. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +9 -6
  81. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  82. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +30 -35
  83. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +14 -15
  84. package/src/sap/ui/fl/changeHandler/BaseRename.js +9 -15
  85. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  86. package/src/sap/ui/fl/changeHandler/MoveControls.js +12 -8
  87. package/src/sap/ui/fl/changeHandler/MoveElements.js +3 -2
  88. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +13 -12
  89. package/src/sap/ui/fl/changeHandler/PropertyChange.js +18 -21
  90. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  91. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  92. package/src/sap/ui/fl/changeHandler/UnstashControl.js +3 -5
  93. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +3 -5
  94. package/src/sap/ui/fl/codeExt/CodeExtManager.js +1 -1
  95. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +13 -22
  96. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  97. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  98. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +2 -2
  99. package/src/sap/ui/fl/initial/_internal/Storage.js +18 -5
  100. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +27 -3
  101. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +4 -4
  102. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +8 -0
  103. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +9 -1
  104. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -2
  105. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +3 -3
  106. package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +2 -2
  107. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +2 -3
  108. package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +2 -3
  109. package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +2 -2
  110. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
  111. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +5 -5
  112. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +3 -3
  113. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +9 -6
  114. package/src/sap/ui/fl/interfaces/Delegate.js +34 -18
  115. package/src/sap/ui/fl/library.js +351 -27
  116. package/src/sap/ui/fl/messagebundle_ar.properties +2 -0
  117. package/src/sap/ui/fl/messagebundle_bg.properties +2 -0
  118. package/src/sap/ui/fl/messagebundle_ca.properties +2 -0
  119. package/src/sap/ui/fl/messagebundle_cs.properties +2 -0
  120. package/src/sap/ui/fl/messagebundle_cy.properties +2 -0
  121. package/src/sap/ui/fl/messagebundle_da.properties +2 -0
  122. package/src/sap/ui/fl/messagebundle_de.properties +2 -0
  123. package/src/sap/ui/fl/messagebundle_el.properties +2 -0
  124. package/src/sap/ui/fl/messagebundle_en.properties +2 -0
  125. package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -0
  126. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +2 -0
  127. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +37 -2
  128. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +2 -0
  129. package/src/sap/ui/fl/messagebundle_es.properties +2 -0
  130. package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -0
  131. package/src/sap/ui/fl/messagebundle_et.properties +2 -0
  132. package/src/sap/ui/fl/messagebundle_fi.properties +2 -0
  133. package/src/sap/ui/fl/messagebundle_fr.properties +2 -0
  134. package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -0
  135. package/src/sap/ui/fl/messagebundle_hi.properties +2 -0
  136. package/src/sap/ui/fl/messagebundle_hr.properties +2 -0
  137. package/src/sap/ui/fl/messagebundle_hu.properties +2 -0
  138. package/src/sap/ui/fl/messagebundle_id.properties +2 -0
  139. package/src/sap/ui/fl/messagebundle_it.properties +2 -0
  140. package/src/sap/ui/fl/messagebundle_iw.properties +2 -0
  141. package/src/sap/ui/fl/messagebundle_ja.properties +2 -0
  142. package/src/sap/ui/fl/messagebundle_kk.properties +2 -0
  143. package/src/sap/ui/fl/messagebundle_ko.properties +2 -0
  144. package/src/sap/ui/fl/messagebundle_lt.properties +2 -0
  145. package/src/sap/ui/fl/messagebundle_lv.properties +2 -0
  146. package/src/sap/ui/fl/messagebundle_ms.properties +2 -0
  147. package/src/sap/ui/fl/messagebundle_nl.properties +2 -0
  148. package/src/sap/ui/fl/messagebundle_no.properties +2 -0
  149. package/src/sap/ui/fl/messagebundle_pl.properties +2 -0
  150. package/src/sap/ui/fl/messagebundle_pt.properties +2 -0
  151. package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -0
  152. package/src/sap/ui/fl/messagebundle_ro.properties +2 -0
  153. package/src/sap/ui/fl/messagebundle_ru.properties +2 -0
  154. package/src/sap/ui/fl/messagebundle_sh.properties +2 -0
  155. package/src/sap/ui/fl/messagebundle_sk.properties +2 -0
  156. package/src/sap/ui/fl/messagebundle_sl.properties +2 -0
  157. package/src/sap/ui/fl/messagebundle_sv.properties +2 -0
  158. package/src/sap/ui/fl/messagebundle_th.properties +2 -0
  159. package/src/sap/ui/fl/messagebundle_tr.properties +2 -0
  160. package/src/sap/ui/fl/messagebundle_uk.properties +2 -0
  161. package/src/sap/ui/fl/messagebundle_vi.properties +2 -0
  162. package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -0
  163. package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -0
  164. package/src/sap/ui/fl/requireAsync.js +2 -2
  165. package/src/sap/ui/fl/support/{apps/uiFlexibilityDiagnostics/helper/Extractor.js → _internal/extractChangeDependencies.js} +55 -57
  166. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +6 -6
  167. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +14 -4
  168. package/src/sap/ui/fl/support/api/SupportAPI.js +3 -3
  169. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +16 -5
  170. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +18 -8
  171. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
  172. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
  173. package/src/sap/ui/fl/support/apps/contentbrowser/i18n/i18n.properties +4 -1
  174. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +11 -3
  175. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +1 -1
  176. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  177. package/src/sap/ui/fl/support/apps/contentbrowser/view/ContentDetails.view.xml +1 -0
  178. package/src/sap/ui/fl/support/apps/contentbrowser/view/ContentDetailsEdit.view.xml +1 -0
  179. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  180. package/src/sap/ui/fl/util/IFrame.js +27 -2
  181. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  182. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  183. package/src/sap/ui/fl/variants/VariantManagement.js +41 -14
  184. package/src/sap/ui/fl/variants/VariantModel.js +90 -98
  185. package/src/sap/ui/fl/write/_internal/FlexInfoSession.js +46 -0
  186. package/src/sap/ui/fl/write/_internal/SaveAs.js +8 -9
  187. package/src/sap/ui/fl/write/_internal/Storage.js +4 -4
  188. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +3 -3
  189. package/src/sap/ui/fl/write/_internal/Versions.js +3 -3
  190. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +3 -3
  191. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  192. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +3 -3
  193. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
  194. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +1 -1
  195. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  196. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +3 -3
  197. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +2 -2
  198. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +27 -18
  199. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +2 -2
  200. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +3 -3
  201. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +3 -3
  202. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +3 -3
  203. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +2 -2
  204. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +3 -3
  205. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +2 -2
  206. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +3 -3
  207. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +2 -2
  208. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  209. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  210. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  211. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +4 -4
  212. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +3 -3
  213. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +3 -3
  214. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  215. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +4 -4
  216. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  217. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +68 -18
  218. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  219. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
  220. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  221. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  222. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  223. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +47 -10
  224. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +3 -3
  225. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
  226. package/src/sap/ui/fl/write/_internal/transport/Transports.js +10 -3
  227. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +2 -2
  228. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +24 -18
  229. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +2 -2
  230. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +2 -2
  231. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +2 -2
  232. package/src/sap/ui/fl/write/api/FeaturesAPI.js +9 -7
  233. package/src/sap/ui/fl/write/api/FieldExtensibility.js +3 -3
  234. package/src/sap/ui/fl/write/api/LocalResetAPI.js +2 -2
  235. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +5 -46
  236. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +49 -43
  237. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +2 -2
  238. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -2
  239. package/src/sap/ui/fl/write/api/TranslationAPI.js +2 -2
  240. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +2 -2
  241. package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
  242. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +4 -3
  243. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +4 -3
  244. package/src/sap/ui/fl/write/connectors/BaseConnector.js +4 -4
  245. package/src/sap/ui/fl/Variant.js +0 -511
  246. package/src/sap/ui/fl/support/Flexibility.js +0 -384
  247. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +0 -18
  248. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -227
  249. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/index.html +0 -21
  250. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/manifest.json +0 -44
  251. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/view/Root.view.xml +0 -95
  252. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +0 -35
  253. package/src/sap/ui/fl/support/diagnostics/Flexibility.view.xml +0 -41
  254. package/src/sap/ui/fl/support/flexibility.css +0 -32
package/.reuse/dep5 CHANGED
@@ -159,7 +159,7 @@ Copyright:
159
159
  License: Apache-2.0 and MIT
160
160
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
161
161
 
162
- Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
162
+ Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
163
163
  Copyright: jQuery Foundation and other contributors
164
164
  License: MIT
165
165
  Comment: these files belong to: QUnit Composite
package/THIRDPARTY.txt CHANGED
@@ -104,7 +104,7 @@ Component: QUnit Composite, version: 1.0.2-pre
104
104
  Copyright: jQuery Foundation and other contributors
105
105
  License: MIT
106
106
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
107
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite*
107
+ Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
108
108
 
109
109
  Component: JUnit Reporter for QUnit, version: 1.1.1
110
110
  Copyright: jQuery Foundation and other contributors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.fl",
3
- "version": "1.104.0",
3
+ "version": "1.105.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.fl",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.104.0",
18
- "@openui5/sap.ui.core": "1.104.0"
17
+ "@openui5/sap.m": "1.105.0",
18
+ "@openui5/sap.ui.core": "1.105.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
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.104.0</version>
9
+ <version>1.105.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
12
12
 
@@ -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.104.0
27
+ * @version 1.105.0
28
28
  *
29
29
  * @private
30
30
  * @ui5-restricted sap.ui.fl
@@ -37,7 +37,7 @@ function(
37
37
  if (oChange.fileType === "variant") {
38
38
  return mStorageResponse.comp.variants;
39
39
  }
40
- if (oChange.selector.persistencyKey) {
40
+ if (oChange.selector && oChange.selector.persistencyKey) {
41
41
  return mStorageResponse.comp.changes;
42
42
  }
43
43
  return mStorageResponse.changes;
@@ -103,7 +103,7 @@ function(
103
103
  * @return {Promise} Returns the promise resolved with the determined cache key
104
104
  *
105
105
  * @private
106
- * @restricted sap.ui.fl
106
+ * @ui5-restricted sap.ui.fl
107
107
  *
108
108
  */
109
109
  Cache.getCacheKey = function(mComponent, oAppComponent) {
@@ -149,7 +149,7 @@ sap.ui.define([
149
149
 
150
150
  Change.prototype.isValidForDependencyMap = function() {
151
151
  //Change without id in selector should be skipped from adding dependencies process
152
- return this._oDefinition.selector && this._oDefinition.selector.id;
152
+ return this.getSelector() && this.getSelector().id;
153
153
  };
154
154
 
155
155
  Change.prototype.startApplying = function() {
@@ -525,26 +525,46 @@ sap.ui.define([
525
525
  };
526
526
 
527
527
  /**
528
- * Sets the new text for the given text ID.
528
+ * Sets the new text for the given text ID or creates new text with the given ID.
529
529
  *
530
530
  * @param {string} sTextId - Text ID which was used as part of the <code>oTexts</code> object
531
531
  * @param {string} sNewText - New text for the given text ID
532
+ * @param {string} sType - Translation text type
532
533
  *
533
534
  * @public
534
535
  */
535
- Change.prototype.setText = function (sTextId, sNewText) {
536
+ Change.prototype.setText = function (sTextId, sNewText, sType) {
536
537
  if (typeof (sTextId) !== "string") {
537
538
  Log.error("sap.ui.fl.Change.setTexts : sTextId is not defined");
538
539
  return;
539
540
  }
541
+ this._oDefinition.texts = this._oDefinition.texts || {};
540
542
  if (this._oDefinition.texts) {
541
543
  if (this._oDefinition.texts[sTextId]) {
542
544
  this._oDefinition.texts[sTextId].value = sNewText;
543
- this.setState(Change.states.DIRTY);
545
+ } else {
546
+ this._oDefinition.texts[sTextId] = {
547
+ value: sNewText,
548
+ type: sType
549
+ };
544
550
  }
551
+ this.setState(Change.states.DIRTY);
545
552
  }
546
553
  };
547
554
 
555
+ /**
556
+ * Returns the OData Information of the change.
557
+ * oDataInformation.propertyName - Name of the OData property
558
+ * oDataInformation.entityType - Name of the OData entity type that the property belongs to
559
+ * oDataInformation.oDataServiceUri - URI of the OData service
560
+ * @returns {object} OData Information of the change - propertyName, entityType and oDataServiceUri
561
+ *
562
+ * @function
563
+ */
564
+ Change.prototype.getODataInformation = function () {
565
+ return this._oDefinition.oDataInformation;
566
+ };
567
+
548
568
  /**
549
569
  * Checks if change is read only because of its source system.
550
570
  * @returns {boolean} <code>true</code> if the change is from another system
@@ -672,6 +692,11 @@ sap.ui.define([
672
692
  return this._oDefinition;
673
693
  };
674
694
 
695
+ // temporary function
696
+ Change.prototype.convertToFileContent = function() {
697
+ return this.getDefinition();
698
+ };
699
+
675
700
  /**
676
701
  * Sets the response from the back end after the change is saved.
677
702
  * @param {object} oResponse - Content of the change file
@@ -14,6 +14,8 @@ sap.ui.define([
14
14
  "sap/ui/core/Component",
15
15
  "sap/ui/fl/apply/_internal/changes/Applier",
16
16
  "sap/ui/fl/apply/_internal/changes/Utils",
17
+ "sap/ui/fl/apply/_internal/flexObjects/FlexObject",
18
+ "sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory",
17
19
  "sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler",
18
20
  "sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState",
19
21
  "sap/ui/fl/apply/_internal/flexState/FlexState",
@@ -27,7 +29,6 @@ sap.ui.define([
27
29
  "sap/ui/fl/LayerUtils",
28
30
  "sap/ui/fl/Layer",
29
31
  "sap/ui/fl/Utils",
30
- "sap/ui/fl/Variant",
31
32
  "sap/ui/model/json/JSONModel",
32
33
  "sap/ui/performance/Measurement"
33
34
  ], function(
@@ -40,6 +41,8 @@ sap.ui.define([
40
41
  Component,
41
42
  Applier,
42
43
  ChangesUtils,
44
+ FlexObject,
45
+ FlexObjectFactory,
43
46
  DependencyHandler,
44
47
  VariantManagementState,
45
48
  FlexState,
@@ -53,7 +56,6 @@ sap.ui.define([
53
56
  LayerUtils,
54
57
  Layer,
55
58
  Utils,
56
- Variant,
57
59
  JSONModel,
58
60
  Measurement
59
61
  ) {
@@ -64,7 +66,7 @@ sap.ui.define([
64
66
  *
65
67
  * @constructor
66
68
  * @author SAP SE
67
- * @version 1.104.0
69
+ * @version 1.105.0
68
70
  * @experimental Since 1.25.0
69
71
  * @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
70
72
  * @param {string} mComponent.name - Name of the component this instance is responsible for
@@ -92,12 +94,16 @@ sap.ui.define([
92
94
 
93
95
  function getChangeInstance(oFileContent, oChangeOrChangeContent) {
94
96
  var oChange;
95
- if (oChangeOrChangeContent instanceof Change) {
97
+ if (oChangeOrChangeContent instanceof Change || oChangeOrChangeContent instanceof FlexObject) {
96
98
  oChange = oChangeOrChangeContent; // can have other states
97
99
  this._mChangesEntries[oChange.getFileName()] = oChange;
98
100
  } else {
99
101
  if (!this._mChangesEntries[oChangeOrChangeContent.fileName]) {
100
- this._mChangesEntries[oChangeOrChangeContent.fileName] = new Change(oChangeOrChangeContent);
102
+ if (oChangeOrChangeContent.changeType === "codeExt") {
103
+ this._mChangesEntries[oChangeOrChangeContent.fileName] = FlexObjectFactory.createFromFileContent(oChangeOrChangeContent);
104
+ } else {
105
+ this._mChangesEntries[oChangeOrChangeContent.fileName] = new Change(oChangeOrChangeContent);
106
+ }
101
107
  }
102
108
  oChange = this._mChangesEntries[oChangeOrChangeContent.fileName];
103
109
  oChange.setState(Change.states.PERSISTED);
@@ -122,7 +128,7 @@ sap.ui.define([
122
128
  * @param {object} oAppComponent - Application component
123
129
  * @returns {Promise} Returns a promise with an ETag for caching
124
130
  * @private
125
- * @restricted sap.ui.fl
131
+ * @ui5-restricted sap.ui.fl
126
132
  */
127
133
  ChangePersistence.prototype.getCacheKey = function(oAppComponent) {
128
134
  return Cache.getCacheKey(this._mComponent, oAppComponent);
@@ -240,7 +246,10 @@ sap.ui.define([
240
246
 
241
247
  function getLayerFromChangeOrChangeContent(oChangeOrChangeContent) {
242
248
  var sChangeLayer;
243
- if (oChangeOrChangeContent instanceof Variant || oChangeOrChangeContent instanceof Change) {
249
+ if (
250
+ typeof oChangeOrChangeContent.isA === "function"
251
+ && (oChangeOrChangeContent.isA("sap.ui.fl.apply._internal.flexObjects.FlVariant") || oChangeOrChangeContent.isA("sap.ui.fl.Change"))
252
+ ) {
244
253
  sChangeLayer = oChangeOrChangeContent.getLayer();
245
254
  } else {
246
255
  sChangeLayer = oChangeOrChangeContent.layer;
@@ -487,7 +496,7 @@ sap.ui.define([
487
496
  ChangePersistence.prototype.addChange = function(vChange, oAppComponent) {
488
497
  var oChange = this.addDirtyChange(vChange);
489
498
  this._addRunTimeCreatedChangeAndUpdateDependencies(oAppComponent, oChange);
490
- this._mChangesEntries[oChange.getFileName()] = oChange;
499
+ this._mChangesEntries[oChange.getId()] = oChange;
491
500
  this._addPropagationListener(oAppComponent);
492
501
  return oChange;
493
502
  };
@@ -501,7 +510,10 @@ sap.ui.define([
501
510
  */
502
511
  ChangePersistence.prototype.addDirtyChange = function(vChange) {
503
512
  var oNewChange;
504
- if (vChange instanceof Change || vChange instanceof Variant) {
513
+ if (
514
+ typeof vChange.isA === "function"
515
+ && (vChange.isA("sap.ui.fl.Change") || vChange.isA("sap.ui.fl.apply._internal.flexObjects.FlexObject"))
516
+ ) {
505
517
  oNewChange = vChange;
506
518
  } else {
507
519
  oNewChange = new Change(vChange);
@@ -650,7 +662,7 @@ sap.ui.define([
650
662
  }
651
663
  return oCondensedChangesPromise.then(function(aCondensedChanges) {
652
664
  var sRequest = aRequests[0];
653
- var sLayer = aDirtyChanges[0].getDefinition().layer;
665
+ var sLayer = aDirtyChanges[0].getLayer();
654
666
  if (bIsCondensingEnabled) {
655
667
  return Storage.condense({
656
668
  allChanges: aAllChanges,
@@ -756,14 +768,14 @@ sap.ui.define([
756
768
  switch (oDirtyChange.getState()) {
757
769
  case Change.states.NEW:
758
770
  oDirtyChange.setState(Change.states.PERSISTED);
759
- Cache.addChange(this._mComponent, oDirtyChange.getDefinition());
771
+ Cache.addChange(this._mComponent, oDirtyChange.convertToFileContent());
760
772
  break;
761
773
  case Change.states.DELETED:
762
- Cache.deleteChange(this._mComponent, oDirtyChange.getDefinition());
774
+ Cache.deleteChange(this._mComponent, oDirtyChange.convertToFileContent());
763
775
  break;
764
776
  case Change.states.DIRTY:
765
777
  oDirtyChange.setState(Change.states.PERSISTED);
766
- Cache.updateChange(this._mComponent, oDirtyChange.getDefinition());
778
+ Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
767
779
  break;
768
780
  }
769
781
  }
@@ -811,7 +823,7 @@ sap.ui.define([
811
823
  var aChanges = [];
812
824
 
813
825
  aDirtyChanges.forEach(function(oChange) {
814
- aChanges.push(oChange.getDefinition());
826
+ aChanges.push(oChange.convertToFileContent());
815
827
  });
816
828
 
817
829
  return aChanges;
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @alias sap.ui.fl.ChangePersistenceFactory
31
31
  * @experimental Since 1.27.0
32
32
  * @author SAP SE
33
- * @version 1.104.0
33
+ * @version 1.105.0
34
34
  * @private
35
35
  * @ui5-restricted sap.ui.fl
36
36
  */
@@ -27,6 +27,12 @@ sap.ui.define([
27
27
  * Hooks into the {@link sap.ui.fl.LrepConnector.createConnector} factory function to enable the fake LRep connector.
28
28
  * After enabling fake LRep connector, function {@link sap.ui.fl.FakeLrepConnector.disableFakeConnector} must be called to restore the original connector.
29
29
  *
30
+ * @private
31
+ * @ui5-restricted
32
+ * @deprecated since 1.70. Configure the <code>sap.ui.core.Configuration.flexibilityServices</code> to use a test connector
33
+ * like <code>["LocalStorageConnector"]</code>, <code>["SessionStorageConnector"]</code> or <code>["JsObjectConnector"]</code>.
34
+ * @see {@link https://ui5.sap.com/#/topic/642dab291a7b47ec9d46c39b3c482aba|Boostrapping UI5 Flexibility}
35
+ *
30
36
  * @param {string} sInitialComponentJsonPath Relative path to a test-component-changes.json file
31
37
  */
32
38
  FakeLrepConnector.enableFakeConnector = function(sInitialComponentJsonPath) {
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -20,11 +20,17 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.104.0
23
+ * @version 1.105.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.48
27
27
  * @alias sap.ui.fl.FakeLrepConnectorLocalStorage
28
+ *
29
+ * @private
30
+ * @ui5-restricted
31
+ * @deprecated since 1.70. Configure the <code>sap.ui.core.Configuration.flexibilityServices</code> to use a test connector
32
+ * like <code>["LocalStorageConnector"]</code>, <code>["SessionStorageConnector"]</code> or <code>["JsObjectConnector"]</code>.
33
+ * @see {@link https://ui5.sap.com/#/topic/642dab291a7b47ec9d46c39b3c482aba|Boostrapping UI5 Flexibility}
28
34
  */
29
35
 
30
36
  return {
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -20,11 +20,17 @@ function(
20
20
  * @namespace
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.104.0
23
+ * @version 1.105.0
24
24
  *
25
25
  * @private
26
26
  * @since 1.58
27
27
  * @alias sap.ui.fl.FakeLrepConnectorSessionStorage
28
+ *
29
+ * @private
30
+ * @ui5-restricted
31
+ * @deprecated since 1.70. Configure the <code>sap.ui.core.Configuration.flexibilityServices</code> to use a test connector
32
+ * like <code>["LocalStorageConnector"]</code>, <code>["SessionStorageConnector"]</code> or <code>["JsObjectConnector"]</code>.
33
+ * @see {@link https://ui5.sap.com/#/topic/642dab291a7b47ec9d46c39b3c482aba|Boostrapping UI5 Flexibility}
28
34
  */
29
35
 
30
36
  return {
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -17,11 +17,17 @@ sap.ui.define([
17
17
  * @namespace
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.104.0
20
+ * @version 1.105.0
21
21
  *
22
22
  * @private
23
23
  * @since 1.48
24
24
  * @alias sap.ui.fl.FakeLrepLocalStorage
25
+ *
26
+ * @private
27
+ * @ui5-restricted
28
+ * @deprecated since 1.70. Configure the <code>sap.ui.core.Configuration.flexibilityServices</code> to use a test connector
29
+ * like <code>["LocalStorageConnector"]</code>, <code>["SessionStorageConnector"]</code> or <code>["JsObjectConnector"]</code>.
30
+ * @see {@link https://ui5.sap.com/#/topic/642dab291a7b47ec9d46c39b3c482aba|Boostrapping UI5 Flexibility}
25
31
  */
26
32
 
27
33
  "use strict";
@@ -86,7 +86,7 @@ sap.ui.define([
86
86
  * @alias sap.ui.fl.FlexController
87
87
  * @experimental Since 1.27.0
88
88
  * @author SAP SE
89
- * @version 1.104.0
89
+ * @version 1.105.0
90
90
  */
91
91
  var FlexController = function(sComponentName) {
92
92
  this._oChangePersistence = undefined;
@@ -175,6 +175,8 @@ sap.ui.define([
175
175
  throw new Error("Change handler could not be retrieved for change " + JSON.stringify(oChangeSpecificData) + ".");
176
176
  })
177
177
  .then(function () {
178
+ // completeChangeContent changes the content and might make it dirty
179
+ oChange.setState(Change.states.NEW);
178
180
  return oChange;
179
181
  })
180
182
  .catch(function(oError) {
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @alias sap.ui.fl.FlexControllerFactory
33
33
  * @experimental Since 1.27.0
34
34
  * @author SAP SE
35
- * @version 1.104.0
35
+ * @version 1.105.0
36
36
  *
37
37
  * @private
38
38
  * @ui5-restricted sap.ui.fl
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -10,6 +10,9 @@ sap.ui.define([], function () {
10
10
  /**
11
11
  * Available layers
12
12
  *
13
+ * @alias sap.ui.fl.Layer
14
+ * @private
15
+ * @ui5-restricted sap.ui.fl, sap.ui.rta, UX Tools, SAPUI5 Visual Editor
13
16
  * @enum {string}
14
17
  */
15
18
  return {
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  *
42
42
  * @namespace sap.ui.fl.LayerUtils
43
43
  * @author SAP SE
44
- * @version 1.104.0
44
+ * @version 1.105.0
45
45
  */
46
46
  var LayerUtils = {
47
47
  _mLayersIndex: mLayersIndex,