@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
@@ -1,384 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- // Provides class sap.ui.fl.support.Flexibility
8
- sap.ui.define([
9
- "sap/base/util/each",
10
- "sap/ui/core/support/Plugin",
11
- "sap/ui/core/support/Support",
12
- "sap/ui/core/util/reflection/JsControlTreeModifier",
13
- "sap/ui/model/json/JSONModel",
14
- "sap/ui/fl/FlexController",
15
- "sap/ui/fl/ChangePersistenceFactory",
16
- "sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
17
- "sap/ui/core/mvc/XMLView",
18
- "sap/ui/core/Component"
19
- ], function(
20
- each,
21
- Plugin,
22
- Support,
23
- JsControlTreeModifier,
24
- JSONModel,
25
- FlexController,
26
- ChangePersistenceFactory,
27
- Extractor,
28
- XMLView,
29
- CoreComponent
30
- ) {
31
- "use strict";
32
-
33
- /**
34
- * Creates an instance of <code>sap.ui.fl.support.Flexibility</code>.
35
- * @class This class represents the plugin for the support tool functionality of UI5.
36
- * This class is internal and all its functions must not be used by an application
37
- *
38
- * @abstract
39
- * @extends sap.ui.core.support.Plugin
40
- * @version 1.104.0
41
- * @private
42
- * @ui5-restricted
43
- * @constructor
44
- */
45
- var Flexibility = Plugin.extend("sap.ui.fl.support.Flexibility", {
46
- constructor: function (oSupportStub) {
47
- Plugin.apply(this, ["sapUiSupportFlexibility", "Flexibility", oSupportStub]);
48
- this._oStub = oSupportStub;
49
-
50
- if (this.runsAsToolPlugin()) {
51
- this._aEventIds = [
52
- this.getId() + "SetApps",
53
- this.getId() + "SetChangesMaps"
54
- ];
55
- } else {
56
- this._aEventIds = [
57
- this.getId() + "GetApps",
58
- this.getId() + "GetChangesMaps"
59
- ];
60
- }
61
- }
62
- });
63
-
64
- Flexibility.prototype.sDelimiter = ";";
65
-
66
- /**
67
- * Creation of the support plugin.
68
- * On the tool plugin site a rendering as well as a model creation for later data receiving is created.
69
- *
70
- * @param {sap.ui.core.support.Support} oSupportStub - Support instance created within the support window instantiation
71
- */
72
- Flexibility.prototype.init = function (oSupportStub) {
73
- Plugin.prototype.init.apply(this, arguments);
74
-
75
- var sPanelInfoText = "<div class='sapUiSmallMargin'>The applications listed below have been handled by the sap.ui.fl library in this session.</div>" +
76
- "<div class='sapUiSmallMarginBegin'>You can download a file containing the data that has been applied to an application as well as " +
77
- "relevant runtime information, and then upload this file to the UI Flexibility Diagnostics application for further investigation.</div>" +
78
- "<div class='sapUiSmallMarginBegin'>The UI Flexibility Diagnostics application displays graphs and is only available with SAPUI5.</div>";
79
-
80
- if (oSupportStub.isToolStub()) {
81
- this.addStylesheet("sap/ui/fl/support/flexibility");
82
- this.oChangesModel = new JSONModel();
83
- this.oAppModel = new JSONModel();
84
- this.oToolSettings = new JSONModel({
85
- hideDependingChanges: false,
86
- panelInfoText: sPanelInfoText
87
- });
88
- this.oChangeDetails = new JSONModel();
89
- this._renderToolPlugin([]);
90
-
91
- Support.getStub().sendEvent(this.getId() + "GetApps", {});
92
- } else {
93
- // send data on initialization to the support panel
94
- this.onsapUiSupportFlexibilityGetApps();
95
- }
96
- };
97
-
98
- /**
99
- * Rendering of the tool plugin side of the UI.
100
- * This creates a plain html-rendered header as well as a view containing the hierarchy of the flexibility data:
101
- * <ul>
102
- * <li>hierarchical list of controls and their changes</li>
103
- * <li>details view with information to selected changes</li>
104
- * </ul>
105
- *
106
- * @private
107
- */
108
- Flexibility.prototype._renderToolPlugin = function () {
109
- var _doPlainRendering = function () {
110
- var rm = sap.ui.getCore().createRenderManager();
111
- rm.write("<div id='" + this.getId() + "-FlexCacheArea' class='sapUiSizeCompact'></div>");
112
- rm.flush(this.$().get(0));
113
- rm.destroy();
114
- }.bind(this);
115
-
116
- var _initView = function () {
117
- this.oViewPromise = XMLView.create({
118
- viewName: "sap.ui.fl.support.diagnostics.Flexibility",
119
- viewData: {
120
- plugin: this
121
- }
122
- }).then(function(oView) {
123
- this.oView = oView;
124
- this.oView.placeAt(this.getId() + "-FlexCacheArea");
125
- this.oView.setModel(this.oAppModel, "flexApps");
126
- this.oView.setModel(this.oToolSettings, "flexToolSettings");
127
- this.oView.setModel(this.oChangesModel, "flexChanges");
128
- this.oView.setModel(this.oChangeDetails, "flexChangeDetails");
129
- }.bind(this));
130
- }.bind(this);
131
-
132
- _doPlainRendering();
133
- _initView();
134
- };
135
-
136
- /**
137
- * Requests the data from the application side support plugin.
138
- *
139
- * @private
140
- * @restricted sap.ui.fl.support
141
- */
142
- Flexibility.prototype.onRefresh = function () {
143
- Support.getStub().sendEvent(this.getId() + "GetApps", {});
144
- };
145
-
146
- /**
147
- * Collects a list of apps.
148
- */
149
- Flexibility.prototype.onsapUiSupportFlexibilityGetApps = function () {
150
- var aApps = [];
151
-
152
- if (ChangePersistenceFactory._instanceCache) {
153
- each(ChangePersistenceFactory._instanceCache, function (sReference, oChangePersistanceInstance) {
154
- aApps.push({
155
- key: sReference,
156
- text: sReference,
157
- additionalText: this.getAppVariantHierarchy(sReference),
158
- data: Extractor.extractData(oChangePersistanceInstance)
159
- });
160
- }.bind(this));
161
- }
162
-
163
- this._oStub.sendEvent(this.getId() + "SetApps", aApps);
164
- };
165
-
166
- /**
167
- * Parses all registered components and extracts <code>sap.ui5/appVariantHierarchy</code>.
168
- * @param {string} sReference - Flex reference
169
- * @returns {string} Joined app variant hierarchy and its app version
170
- */
171
- Flexibility.prototype.getAppVariantHierarchy = function (sReference) {
172
- var oRegistry = CoreComponent.registry.all();
173
- var aAppDetails = [];
174
- Object.values(oRegistry).find(function(oComponent) {
175
- var sId = oComponent.getMetadata().getManifestEntry("/sap.app/id");
176
- var oUi5Node = oComponent.getMetadata().getManifestEntry("sap.ui5");
177
- if (sId === sReference) {
178
- oUi5Node.appVariantIdHierarchy.forEach(function(oHierarchy) {
179
- aAppDetails.push(oHierarchy.appVariantId + " (" + oHierarchy.version + ")" + (oHierarchy.layer ? " in layer " + oHierarchy.layer : ""));
180
- });
181
- return true;
182
- }
183
- });
184
- return aAppDetails.length ? "App variant based on:\n" + aAppDetails.join("\n") : "";
185
- };
186
-
187
- /**
188
- * Collects data of changes.
189
- *
190
- * @param {sap.ui.base.Event} oEvent - Event sent from the tool side plugin to request changes
191
- */
192
- Flexibility.prototype.onsapUiSupportFlexibilityGetChangesMaps = function (oEvent) {
193
- var sAppKey = oEvent.mParameters.appKey;
194
- var aAppParameters = sAppKey.split(this.sDelimiter);
195
- var sAppName = aAppParameters[0];
196
- this._getChangesMapForApp(sAppName);
197
- };
198
-
199
- /**
200
- * Handler on tool plugin side; passes the received data from the application plugin tool to a model.
201
- *
202
- * @param {sap.ui.base.Event} oEvent - Event sent from the application side plugin with the applications
203
- */
204
- Flexibility.prototype.onsapUiSupportFlexibilitySetApps = function (oEvent) {
205
- var mApps = oEvent.getParameters();
206
- this.oAppModel.setData(mApps);
207
- };
208
-
209
- /**
210
- * Handler on tool plugin side; passes the received data from the application plugin tool to a model.
211
- *
212
- * @param {sap.ui.base.Event} oEvent - Event sent from the application side plugin with the changes
213
- */
214
- Flexibility.prototype.onsapUiSupportFlexibilitySetChangesMaps = function (oEvent) {
215
- var mCacheEntries = oEvent.getParameters();
216
- this.oChangesModel.setData(mCacheEntries);
217
- // show all changes by expanding the tree after model update (which hides all sub-nodes)
218
- this.oView.byId("Tree").expandToLevel(1000);
219
- };
220
-
221
- Flexibility.prototype.exit = function () {
222
- Plugin.prototype.exit.apply(this, arguments);
223
- };
224
-
225
- /**
226
- * Collects data of changes.
227
- *
228
- * @param {string} sAppName - Name of the application
229
- *
230
- * @private
231
- */
232
- Flexibility.prototype._getChangesMapForApp = function (sAppName) {
233
- var mChangedControls = {};
234
- var mChanges = {};
235
- var aTreeNodes = [];
236
- var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(sAppName);
237
- var mChangeFromPersistence = oChangePersistence._mChanges.mChanges;
238
- var mDependencies = oChangePersistence._mChangesInitial.mDependencies;
239
-
240
- function collectChangesData(mChanges, sControlId) {
241
- mChangedControls[sControlId] = [];
242
- var aChangesForControl = mChangeFromPersistence[sControlId];
243
- var oControl = sap.ui.getCore().byId(sControlId);
244
- var aAppliedChanges = [];
245
- var aFailedChangesJs = [];
246
- var aFailedChangesXml = [];
247
- if (oControl) {
248
- if (oControl.data(FlexController.appliedChangesCustomDataKey)) {
249
- aAppliedChanges = oControl.data(FlexController.appliedChangesCustomDataKey).split(",");
250
- }
251
- if (oControl.data(FlexController.failedChangesCustomDataKeyJs)) {
252
- aFailedChangesJs = oControl.data(FlexController.failedChangesCustomDataKeyJs).split(",");
253
- }
254
- if (oControl.data(FlexController.failedChangesCustomDataKeyXml)) {
255
- aFailedChangesXml = oControl.data(FlexController.failedChangesCustomDataKeyXml).split(",");
256
- }
257
- }
258
-
259
- mChangedControls[sControlId] = aChangesForControl.map(collectDataForSingleChange.bind(this, oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges));
260
- }
261
-
262
- function collectDataForSingleChange(oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges, oChange) {
263
- var oChangeDetails = {
264
- id: oChange.getId(),
265
- changeType: oChange.getChangeType(),
266
- selector: oChange.getSelector(),
267
- controlPresent: !!oControl,
268
- indexInAppliedChanges: undefined,
269
- indexOfFirstFailing: undefined,
270
- dependentControls: [], // filled later
271
- dependentChanges: [], // filled later
272
- someDirectDependingChangesFailed: false, // filled later
273
- someDirectDependingChangesNotApplied: false, // filled later
274
- isInSubTree: false // filled later
275
- };
276
-
277
- var aAllFailedChanges = aFailedChangesJs.concat(aFailedChangesXml);
278
-
279
- if (oChangeDetails.controlPresent && aAppliedChanges.indexOf(oChange.getId()) > -1) {
280
- oChangeDetails.indexInAppliedChanges = aAppliedChanges.indexOf(oChange.getId());
281
- }
282
- if (oChangeDetails.controlPresent && aFailedChangesJs.indexOf(oChange.getId()) > -1) {
283
- oChangeDetails.modifier = "JS";
284
- oChangeDetails.indexOfFirstFailing = aAllFailedChanges.indexOf(oChange.getId());
285
- }
286
- if (oChangeDetails.controlPresent && aFailedChangesXml.indexOf(oChange.getId()) > -1) {
287
- oChangeDetails.modifier = "XML";
288
- oChangeDetails.indexOfFirstFailing = aAllFailedChanges.indexOf(oChange.getId());
289
- }
290
-
291
- if (oChange._aDependentSelectorList) {
292
- var oAppComponent = Extractor.getAppComponentInstance(sAppName);
293
- oChangeDetails.dependentControls = oChange._aDependentSelectorList.map(function (oDependentSelector) {
294
- return {
295
- id: oDependentSelector.id,
296
- controlPresent: JsControlTreeModifier.bySelector(oDependentSelector, oAppComponent)
297
- };
298
- });
299
- }
300
-
301
- mChanges[oChange.getId()] = oChangeDetails;
302
-
303
- return oChangeDetails;
304
- }
305
-
306
- function setIsInSubTreeInformation(oChangeDetails, sKey, oDependency) {
307
- var aChangeIds = oDependency.dependencies;
308
- if (aChangeIds.indexOf(oChangeDetails.id) !== -1) {
309
- var bSameSelector = JSON.stringify(mChanges[sKey].selector) === JSON.stringify(oChangeDetails.selector);
310
- oChangeDetails.isInSubTree = oChangeDetails.isInSubTree || bSameSelector;
311
- }
312
- }
313
-
314
- function setDependentChangeRelatedInformation(sControlId, mChangesOnControl) {
315
- mChangesOnControl.forEach(function (oChangeDetails) {
316
- jQuery.each(mDependencies, setIsInSubTreeInformation.bind(this, oChangeDetails));
317
-
318
- oChangeDetails.allDependendingControlsPresent = oChangeDetails.dependentControls.every(function (mControl) {
319
- return mControl.controlPresent;
320
- });
321
-
322
- if (mDependencies[oChangeDetails.id] && mDependencies[oChangeDetails.id].dependencies) {
323
- mDependencies[oChangeDetails.id].dependencies.forEach(function (sDependentChangeId) {
324
- var oDependentChange = mChanges[sDependentChangeId];
325
- var bDependentChangeNotApplied = oDependentChange.indexInAppliedChanges === undefined;
326
- oDependentChange = mChanges[sDependentChangeId];
327
- oChangeDetails.someDirectDependingChangesNotApplied =
328
- oChangeDetails.someDirectDependingChangesNotApplied || bDependentChangeNotApplied;
329
- var bDependentChangeFailed = oDependentChange.indexOfFirstFailing === undefined;
330
- var bDependentChangesUnsuccessfulApplied = bDependentChangeFailed && bDependentChangeNotApplied;
331
-
332
- oChangeDetails.someDirectDependingChangesFailed = oChangeDetails.someDirectDependingChangesFailed
333
- || bDependentChangeFailed;
334
- oChangeDetails.someDirectDependingChangesNotSuccessfulApplied =
335
- oChangeDetails.someDirectDependingChangesNotSuccessfulApplied || bDependentChangesUnsuccessfulApplied;
336
- oChangeDetails.dependentChanges.push(oDependentChange);
337
- });
338
- }
339
-
340
- oChangeDetails.isApplicable = !oChangeDetails.someDirectDependingChangesNotApplied &&
341
- oChangeDetails.controlPresent && oChangeDetails.allDependendingControlsPresent &&
342
- !oChangeDetails.someDirectDependingChangesNotApplied;
343
-
344
- oChangeDetails.isPossibleRootCause = oChangeDetails.isApplicable && oChangeDetails.indexInAppliedChanges === undefined;
345
- });
346
- }
347
-
348
- function fnCreateChangesNode(aChangesDetails) {
349
- aChangesDetails = aChangesDetails.filter(function (oChange) {
350
- return !aChangesDetails.some(function (oChangeInSameHierarchy) {
351
- return oChangeInSameHierarchy.dependentChanges.some(function (oDependentChange) {
352
- return oDependentChange.id === oChange.id;
353
- });
354
- });
355
- });
356
-
357
- return aChangesDetails.map(function (oChange) {
358
- return {
359
- id: oChange.id,
360
- text: oChange.changeType,
361
- nodes: oChange.dependentChanges ? fnCreateChangesNode(oChange.dependentChanges) : []
362
- };
363
- });
364
- }
365
-
366
- function createRootNodes(sControlId, aChangesDetails) {
367
- aTreeNodes.push({
368
- text: sControlId,
369
- nodes: fnCreateChangesNode(aChangesDetails)
370
- });
371
- }
372
-
373
- Object.keys(mChangeFromPersistence).forEach(collectChangesData.bind(this, mChanges));
374
- jQuery.each(mChangedControls, setDependentChangeRelatedInformation);
375
- jQuery.each(mChangedControls, createRootNodes);
376
-
377
- this._oStub.sendEvent(this.getId() + "SetChangesMaps", {
378
- changes: mChanges,
379
- tree: aTreeNodes
380
- });
381
- };
382
-
383
- return Flexibility;
384
- });
@@ -1,18 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- sap.ui.define([
8
- "sap/ui/core/UIComponent"
9
- ], function(
10
- UIComponent) {
11
- "use strict";
12
-
13
- return UIComponent.extend("sap.ui.fl.support.apps.uiFlexibilityDiagnostics.Component", {
14
- metadata: {
15
- manifest: "json"
16
- }
17
- });
18
- });
@@ -1,227 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- sap.ui.define([
8
- "sap/ui/core/mvc/Controller",
9
- "sap/ui/model/json/JSONModel",
10
- "sap/ui/thirdparty/jquery"
11
- ], function(Controller, JSONModel, jQuery) {
12
- "use strict";
13
- return Controller.extend("sap.ui.fl.support.apps.uiFlexibilityDiagnostics.controller.Root", {
14
- onInit: function() {
15
- this._oView = this.getView();
16
- this._oDataSelectedModel = new JSONModel();
17
- this._oDataSelectedModel.setSizeLimit(10000);
18
- this._oView.setModel(this._oDataSelectedModel, "selectedData");
19
- },
20
-
21
- formatStatus: function (sKey, aAppliedChanges, aFailedChanges, aNotApplicableChanges) {
22
- if (!sKey || !aAppliedChanges || !aFailedChanges) {
23
- return undefined;
24
- }
25
-
26
- aNotApplicableChanges = aNotApplicableChanges || [];
27
- var bSuccessful = aAppliedChanges.indexOf(sKey) !== -1;
28
- var bFailed = aFailedChanges.indexOf(sKey) !== -1;
29
- var bNotApplicable = aNotApplicableChanges.indexOf(sKey) !== -1;
30
-
31
- if (bSuccessful) {
32
- if (!bFailed) {
33
- return "Success";
34
- }
35
- return "Warning";
36
- }
37
- if (bNotApplicable) {
38
- if (!bFailed) {
39
- return "CustomNotApplicable";
40
- }
41
- return "Warning";
42
- }
43
- if (bFailed) {
44
- return "Error";
45
- }
46
- },
47
-
48
- loadFile: function(oEvent) {
49
- var file = oEvent.getParameter("files") && oEvent.getParameter("files")[0];
50
- if (file && window.FileReader) {
51
- var oReader = new FileReader();
52
- oReader.onload = function(evn) {
53
- var sFileContent = evn.target.result;
54
- var oFlexData = JSON.parse(sFileContent);
55
- var oGraphData = this._createGraphData(oFlexData);
56
- this._oDataSelectedModel.setData(oGraphData);
57
- }.bind(this);
58
- oReader.readAsText(file);
59
- }
60
- },
61
-
62
- _generateAttributes: function(oDefinition) {
63
- function _extractSelectorAttribute (sKey, oSelector) {
64
- return {
65
- label: "dependency (" + sKey + ")",
66
- value: oSelector.id ? oSelector.id : oSelector
67
- };
68
- }
69
- var aAttributes = [{
70
- label: "Filename",
71
- value: oDefinition.fileName
72
- }, {
73
- label: "Layer",
74
- value: oDefinition.layer
75
- }, {
76
- label: "created at",
77
- value: oDefinition.creation
78
- }, {
79
- label: "created by",
80
- value: oDefinition.support.user
81
- }, {
82
- label: "Variant Reference",
83
- value: oDefinition.variantReference
84
- }, {
85
- label: "selector",
86
- value: oDefinition.selector.id ? oDefinition.selector.id : oDefinition.selector
87
- }];
88
-
89
- if (oDefinition.dependentSelector) {
90
- jQuery.each(oDefinition.dependentSelector, function (sDependencyType, oSelector) {
91
- if (Array.isArray(oSelector)) {
92
- aAttributes = aAttributes.concat(oSelector.map(_extractSelectorAttribute.bind(this, sDependencyType)));
93
- } else {
94
- aAttributes.push(_extractSelectorAttribute(sDependencyType, oSelector));
95
- }
96
- });
97
- }
98
- if (oDefinition.oDataInformation && oDefinition.oDataInformation.propertyName) {
99
- aAttributes = aAttributes.concat([{
100
- label: "OData Property",
101
- value: oDefinition.oDataInformation.propertyName
102
- }, {
103
- label: "OData EntityType",
104
- value: oDefinition.oDataInformation.entityType
105
- }, {
106
- label: "OData URI",
107
- value: oDefinition.oDataInformation.oDataServiceUri
108
- }]);
109
- }
110
- aAttributes = aAttributes.concat([{
111
- label: "Change content",
112
- value: "{= '" + JSON.stringify(oDefinition.content) + "'}" //prevent being interpreted as binding
113
- }]);
114
-
115
- return aAttributes;
116
- },
117
-
118
- _defineIcon: function(sChangeType) {
119
- if (sChangeType.indexOf("move") !== -1) {
120
- return "sap-icon://move";
121
- } else if (sChangeType.indexOf("add") !== -1) {
122
- return "sap-icon://add";
123
- } else if (sChangeType.indexOf("unhide") !== -1) {
124
- return "sap-icon://show";
125
- } else if (sChangeType.indexOf("hide") !== -1) {
126
- return "sap-icon://hide";
127
- } else if (sChangeType.indexOf("unstash") !== -1) {
128
- return "sap-icon://show";
129
- } else if (sChangeType.indexOf("stash") !== -1) {
130
- return "sap-icon://hide";
131
- } else if (sChangeType.indexOf("split") !== -1) {
132
- return "sap-icon://split";
133
- } else if (sChangeType.indexOf("combine") !== -1) {
134
- return "sap-icon://combine";
135
- } else if (sChangeType.indexOf("rename") !== -1) {
136
- return "sap-icon://text";
137
- }
138
-
139
- return "sap-icon://verify-api";
140
- },
141
-
142
- _generateDependencies: function(mFlexData, mGraphData) {
143
- var mChangesEntries = mFlexData.mChangesEntries;
144
-
145
- jQuery.each(mChangesEntries, function (sChangeId, mChangeEntry) {
146
- mChangeEntry.aDependencies.forEach(function (sDependentChangeId) {
147
- mGraphData.lines.push({from: sDependentChangeId, to: sChangeId});
148
- });
149
- });
150
-
151
- // identify lines already covered via indirect dependencies
152
- mGraphData.lines.forEach(function (mLineUnderEvaluation) {
153
- var sFrom = mLineUnderEvaluation.from;
154
- var sTo = mLineUnderEvaluation.to;
155
-
156
- // loop over all lines and detect lines with the same start
157
- var aLinesWithSameStart = mGraphData.lines.filter(function (mLine) {
158
- return mLine.from === sFrom && mLine.to !== sTo;
159
- });
160
-
161
- var aFromIdsOfLinesWithSameEnd = [];
162
-
163
- mGraphData.lines.filter(function (mLine) {
164
- if (mLine.from !== sFrom && mLine.to === sTo) {
165
- aFromIdsOfLinesWithSameEnd.push(mLine.from);
166
- }
167
- });
168
-
169
- // search for any of these lines which have the endpoint of the line under evaluation
170
- mLineUnderEvaluation.obsolete = aLinesWithSameStart.some(function (mLine) {
171
- return aFromIdsOfLinesWithSameEnd.indexOf(mLine.to) !== -1;
172
- });
173
- });
174
-
175
- // remove all obsolete lines
176
- mGraphData.lines = mGraphData.lines.filter(function (mLine) {
177
- return !mLine.obsolete;
178
- });
179
- },
180
-
181
- _createGraphData: function (mFlexData) {
182
- if (!mFlexData.bIsInvestigationExport) {
183
- throw Error("Flex server response not supported yet!");
184
- }
185
-
186
- var mGraphData = {
187
- nodes: [],
188
- groups: [],
189
- lines: [],
190
- nodeBoxWidth: 100,
191
- appliedChanges: mFlexData.aAppliedChanges,
192
- failedChanges: mFlexData.aFailedChanges,
193
- notApplicableChanges: mFlexData.aNotApplicableChanges
194
- };
195
-
196
- var mChanges = mFlexData.mChangesEntries;
197
- jQuery.each(mChanges, function (sChangeId, oChange) {
198
- var oDefinition = oChange.mDefinition;
199
- var sChangeType = oDefinition.changeType;
200
-
201
- var mNode = {
202
- title: sChangeType,
203
- key: oDefinition.fileName,
204
- icon: this._defineIcon(sChangeType),
205
- group: oDefinition.layer,
206
- descriptionLineSize: 0,
207
- variantIcon: oDefinition.variantReference ? "sap-icon://tree" : undefined,
208
- attributes: this._generateAttributes(oDefinition)
209
- };
210
-
211
- var bGroupPresent = mGraphData.groups.some(function (oGroup) {
212
- return oGroup.key === mNode.group;
213
- });
214
-
215
- if (!bGroupPresent) {
216
- mGraphData.groups.push({key: mNode.group, title: mNode.group});
217
- }
218
-
219
- mGraphData.nodes.push(mNode);
220
- }.bind(this));
221
-
222
- this._generateDependencies(mFlexData, mGraphData);
223
-
224
- return mGraphData;
225
- }
226
- });
227
- });
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>UI Flexibility Diagnostics</title>
6
- <script
7
- id="sap-ui-bootstrap"
8
- src="../../../../../../sap-ui-core.js"
9
- data-sap-ui-theme="sap_belize"
10
- data-sap-ui-libs="sap.m"
11
- data-sap-ui-bindingSyntax="complex"
12
- data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
13
- data-sap-ui-compatVersion="edge"
14
- data-sap-ui-flexibilityServices=""
15
- data-sap-ui-preload="async" >
16
- </script>
17
- </head>
18
- <body class="sapUiBody">
19
- <div data-sap-ui-component data-name="sap.ui.fl.support.apps.uiFlexibilityDiagnostics" data-id="container" data-settings='{"id" : "uiFlexibilityDiagnostics"}'></div>
20
- </body>
21
- </html>
@@ -1,44 +0,0 @@
1
- {
2
- "_version": "1.12.0",
3
- "sap.app": {
4
- "id": "sap.ui.fl.support.apps.uiFlexibilityDiagnostics",
5
- "type": "application",
6
- "resources": "resources.json",
7
- "i18n": "i18n/i18n.properties",
8
- "title": "{{shellTitle}}",
9
- "subTitle": "{{shellSubTitle}}",
10
- "applicationVersion": {
11
- "version": "1.58.0"
12
- },
13
- "ach": "CA-UI5-FL-CLN"
14
- },
15
-
16
- "sap.ui": {
17
- "technology": "UI5",
18
- "icons": {},
19
- "deviceTypes": {
20
- "desktop": true,
21
- "tablet": true,
22
- "phone": true
23
- },
24
- "supportedThemes": [
25
- "sap_belize"
26
- ]
27
- },
28
- "sap.ui5": {
29
- "rootView": "sap.ui.fl.support.apps.uiFlexibilityDiagnostics.view.Root",
30
- "handleValidation": true,
31
- "dependencies": {
32
- "minUI5Version": "1.58.0",
33
- "libs": {
34
- "sap.ui.core": {},
35
- "sap.m": {},
36
- "sap.suite.ui.commons": {}
37
- }
38
- },
39
- "contentDensities": {
40
- "compact": true,
41
- "cozy": true
42
- }
43
- }
44
- }