@openui5/sap.ui.fl 1.96.2 → 1.98.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 (234) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +2 -2
  5. package/src/sap/ui/fl/Cache.js +2 -2
  6. package/src/sap/ui/fl/Change.js +5 -219
  7. package/src/sap/ui/fl/ChangePersistence.js +28 -28
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
  9. package/src/sap/ui/fl/EventHistory.js +2 -2
  10. package/src/sap/ui/fl/FakeLrepConnector.js +1 -1
  11. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +2 -2
  12. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +2 -2
  13. package/src/sap/ui/fl/FakeLrepLocalStorage.js +2 -2
  14. package/src/sap/ui/fl/FlexController.js +37 -19
  15. package/src/sap/ui/fl/FlexControllerFactory.js +14 -8
  16. package/src/sap/ui/fl/Layer.js +1 -1
  17. package/src/sap/ui/fl/LayerUtils.js +2 -2
  18. package/src/sap/ui/fl/PreprocessorImpl.js +7 -5
  19. package/src/sap/ui/fl/RegistrationDelegator.js +2 -2
  20. package/src/sap/ui/fl/Utils.js +35 -309
  21. package/src/sap/ui/fl/Variant.js +2 -116
  22. package/src/sap/ui/fl/XmlPreprocessorImpl.js +15 -14
  23. package/src/sap/ui/fl/apply/_internal/ChangesController.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +3 -3
  25. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +2 -2
  28. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +2 -2
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +2 -2
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +4 -3
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +2 -2
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +2 -2
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +2 -2
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +2 -2
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +2 -2
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +2 -2
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +2 -2
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +2 -2
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +2 -2
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +2 -2
  45. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +2 -2
  46. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +2 -2
  47. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +2 -2
  48. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +2 -2
  49. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +2 -2
  50. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -2
  51. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +2 -2
  53. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +267 -265
  54. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +40 -10
  55. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +2 -2
  56. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +16 -11
  57. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +2 -2
  58. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +2 -2
  59. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
  60. package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
  61. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +5 -5
  62. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +16 -17
  63. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +22 -23
  64. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
  65. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +2 -2
  66. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +2 -2
  67. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +2 -2
  68. package/src/sap/ui/fl/apply/_internal/flexState/changes/prepareChangesMap.js +1 -1
  69. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +3 -3
  70. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/Utils.js +1 -1
  71. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +3 -3
  72. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +3 -5
  73. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +23 -25
  74. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +8 -2
  75. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +87 -7
  76. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +2 -2
  77. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +72 -10
  78. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
  79. package/src/sap/ui/fl/apply/api/UI2PersonalizationApplyAPI.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/AddIFrame.js +2 -2
  81. package/src/sap/ui/fl/changeHandler/AddXML.js +2 -2
  82. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +2 -2
  83. package/src/sap/ui/fl/changeHandler/Base.js +2 -2
  84. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +2 -2
  85. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +2 -2
  86. package/src/sap/ui/fl/changeHandler/BaseRename.js +2 -2
  87. package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
  88. package/src/sap/ui/fl/changeHandler/HideControl.js +2 -2
  89. package/src/sap/ui/fl/changeHandler/JsControlTreeModifier.js +1 -1
  90. package/src/sap/ui/fl/changeHandler/MoveControls.js +2 -2
  91. package/src/sap/ui/fl/changeHandler/MoveElements.js +2 -2
  92. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +2 -2
  93. package/src/sap/ui/fl/changeHandler/PropertyChange.js +2 -2
  94. package/src/sap/ui/fl/changeHandler/StashControl.js +2 -2
  95. package/src/sap/ui/fl/changeHandler/UnhideControl.js +2 -2
  96. package/src/sap/ui/fl/changeHandler/UnstashControl.js +2 -2
  97. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +2 -2
  98. package/src/sap/ui/fl/changeHandler/XmlTreeModifier.js +1 -1
  99. package/src/sap/ui/fl/changeHandler/common/createIFrame.js +1 -1
  100. package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +1 -1
  101. package/src/sap/ui/fl/changeHandler/common/revertAddedControls.js +1 -1
  102. package/src/sap/ui/fl/codeExt/CodeExtManager.js +17 -11
  103. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +5 -5
  104. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +2 -2
  105. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +2 -2
  106. package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +1 -1
  107. package/src/sap/ui/fl/designtime/library.designtime.js +1 -1
  108. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +1 -1
  109. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +10 -3
  110. package/src/sap/ui/fl/initial/_internal/Storage.js +2 -2
  111. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +2 -2
  112. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +2 -2
  113. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +1 -1
  114. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
  115. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +2 -2
  116. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +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 +17 -7
  119. package/src/sap/ui/fl/initial/_internal/connectors/NeoLrepConnector.js +1 -1
  120. package/src/sap/ui/fl/initial/_internal/connectors/PersonalizationConnector.js +1 -1
  121. package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +1 -1
  122. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +5 -6
  123. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +2 -2
  124. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
  125. package/src/sap/ui/fl/interfaces/Delegate.js +2 -2
  126. package/src/sap/ui/fl/library.js +12 -12
  127. package/src/sap/ui/fl/library.support.js +1 -1
  128. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
  129. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
  130. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
  131. package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
  132. package/src/sap/ui/fl/registry/Settings.js +26 -17
  133. package/src/sap/ui/fl/requireAsync.js +1 -1
  134. package/src/sap/ui/fl/support/Flexibility.js +84 -73
  135. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
  136. package/src/sap/ui/fl/support/api/SupportAPI.js +28 -0
  137. package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +1 -1
  138. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +14 -14
  139. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +9 -9
  140. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +10 -10
  141. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
  142. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +52 -53
  143. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +130 -126
  144. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +2 -2
  145. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/Component.js +1 -1
  146. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +1 -3
  147. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +4 -15
  148. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +2 -2
  149. package/src/sap/ui/fl/themes/base/library.source.less +1 -1
  150. package/src/sap/ui/fl/themes/sap_hcb/library.source.less +1 -1
  151. package/src/sap/ui/fl/transport/TransportDialog.js +1 -1
  152. package/src/sap/ui/fl/transport/TransportSelection.js +2 -2
  153. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +3 -5
  154. package/src/sap/ui/fl/util/IFrame.flexibility.js +1 -1
  155. package/src/sap/ui/fl/util/IFrame.js +2 -2
  156. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  157. package/src/sap/ui/fl/util/ManagedObjectModel.js +2 -2
  158. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  159. package/src/sap/ui/fl/util/getContainerUserInfo.js +1 -1
  160. package/src/sap/ui/fl/util/resolveBinding.js +2 -2
  161. package/src/sap/ui/fl/variants/VariantManagement.js +3 -2
  162. package/src/sap/ui/fl/variants/VariantModel.js +6 -46
  163. package/src/sap/ui/fl/variants/context/Component.js +1 -1
  164. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +13 -3
  165. package/src/sap/ui/fl/write/_internal/SaveAs.js +1 -1
  166. package/src/sap/ui/fl/write/_internal/Storage.js +34 -2
  167. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +2 -2
  168. package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
  169. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +2 -2
  170. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +2 -2
  171. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
  172. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +25 -2
  173. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +4 -3
  174. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +2 -2
  175. package/src/sap/ui/fl/write/_internal/condenser/Utils.js +1 -1
  176. package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
  177. package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
  178. package/src/sap/ui/fl/write/_internal/condenser/classifications/LastOneWins.js +1 -1
  179. package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
  180. package/src/sap/ui/fl/write/_internal/condenser/classifications/Reverse.js +1 -1
  181. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +5 -5
  182. package/src/sap/ui/fl/write/_internal/connectors/JsObjectConnector.js +1 -1
  183. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +50 -26
  184. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +1 -1
  185. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -3
  186. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +2 -2
  187. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +2 -2
  188. package/src/sap/ui/fl/write/_internal/connectors/ObjectStorageConnector.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
  190. package/src/sap/ui/fl/write/_internal/connectors/SessionStorageConnector.js +1 -1
  191. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +2 -2
  192. package/src/sap/ui/fl/write/_internal/delegates/ODataV4ReadDelegate.js +1 -1
  193. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +2 -2
  194. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +2 -2
  195. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +5 -5
  196. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +2 -2
  197. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +2 -2
  198. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +2 -2
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +2 -2
  200. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
  201. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +2 -2
  202. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +2 -2
  203. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +2 -2
  204. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +3 -3
  205. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +1 -1
  206. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
  207. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +2 -2
  208. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +2 -2
  209. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +1 -1
  210. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +22 -7
  211. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +6 -5
  212. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +6 -8
  213. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +7 -6
  214. package/src/sap/ui/fl/write/_internal/transport/Transports.js +2 -3
  215. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +1 -1
  216. package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +1 -1
  217. package/src/sap/ui/fl/write/api/ContextSharingAPI.js +1 -1
  218. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +125 -14
  219. package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +1 -1
  220. package/src/sap/ui/fl/write/api/FeaturesAPI.js +6 -2
  221. package/src/sap/ui/fl/write/api/FieldExtensibility.js +8 -4
  222. package/src/sap/ui/fl/write/api/LocalResetAPI.js +1 -1
  223. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +43 -4
  224. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +5 -5
  225. package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +1 -1
  226. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +3 -1
  227. package/src/sap/ui/fl/write/api/TranslationAPI.js +102 -0
  228. package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
  229. package/src/sap/ui/fl/write/api/VersionsAPI.js +2 -2
  230. package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
  231. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +3 -2
  232. package/src/sap/ui/fl/write/connectors/BaseConnector.js +31 -1
  233. package/ui5.yaml +132 -1
  234. package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -13,25 +13,35 @@ sap.ui.define([
13
13
  "sap/ui/model/json/JSONModel",
14
14
  "sap/ui/fl/FlexController",
15
15
  "sap/ui/fl/ChangePersistenceFactory",
16
- "sap/ui/fl/Utils",
17
16
  "sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
18
17
  "sap/ui/core/mvc/XMLView",
19
18
  "sap/ui/core/Component"
20
- ], function (each, Plugin, Support, JsControlTreeModifier, JSONModel, FlexController, ChangePersistenceFactory, Utils, Extractor, XMLView, CoreComponent) {
19
+ ], function(
20
+ each,
21
+ Plugin,
22
+ Support,
23
+ JsControlTreeModifier,
24
+ JSONModel,
25
+ FlexController,
26
+ ChangePersistenceFactory,
27
+ Extractor,
28
+ XMLView,
29
+ CoreComponent
30
+ ) {
21
31
  "use strict";
22
32
 
23
33
  /**
24
- * Creates an instance of sap.ui.fl.support.Flexibility.
25
- * @class This class represents the plugin for the support tool functionality of UI5.
26
- * This class is internal and all its functions must not be used by an application
27
- *
28
- * @abstract
29
- * @extends sap.ui.core.support.Plugin
30
- * @version 1.96.2
31
- * @private
32
- * @ui5-restricted
33
- * @constructor
34
- */
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.98.0
41
+ * @private
42
+ * @ui5-restricted
43
+ * @constructor
44
+ */
35
45
  var Flexibility = Plugin.extend("sap.ui.fl.support.Flexibility", {
36
46
  constructor: function (oSupportStub) {
37
47
  Plugin.apply(this, ["sapUiSupportFlexibility", "Flexibility", oSupportStub]);
@@ -54,11 +64,11 @@ sap.ui.define([
54
64
  Flexibility.prototype.sDelimiter = ";";
55
65
 
56
66
  /**
57
- * Creation of the support plugin.
58
- * On tool plugin site a rendering as well as a model creation for later data receiving is created.
59
- *
60
- * @param {sap.ui.core.support.Support} oSupportStub - support instance created within the support window instantiation
61
- */
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
+ */
62
72
  Flexibility.prototype.init = function (oSupportStub) {
63
73
  Plugin.prototype.init.apply(this, arguments);
64
74
 
@@ -86,13 +96,15 @@ sap.ui.define([
86
96
  };
87
97
 
88
98
  /**
89
- * Rendering of the tool plugin side of the UI.
90
- * This creates a plain html-rendered header as well as a view containing the hierarchy of the flexibility data:
91
- * - Hierarchical List of controls and their changes
92
- * - details View with information to selected changes
93
- *
94
- * @private
95
- */
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
+ */
96
108
  Flexibility.prototype._renderToolPlugin = function () {
97
109
  var _doPlainRendering = function () {
98
110
  var rm = sap.ui.getCore().createRenderManager();
@@ -122,18 +134,18 @@ sap.ui.define([
122
134
  };
123
135
 
124
136
  /**
125
- * Requests the data from the application side support plugin
126
- *
127
- * @private
128
- * @restricted sap.ui.fl.support
129
- */
137
+ * Requests the data from the application side support plugin.
138
+ *
139
+ * @private
140
+ * @restricted sap.ui.fl.support
141
+ */
130
142
  Flexibility.prototype.onRefresh = function () {
131
143
  Support.getStub().sendEvent(this.getId() + "GetApps", {});
132
144
  };
133
145
 
134
146
  /**
135
- * Collect list of apps
136
- */
147
+ * Collects a list of apps.
148
+ */
137
149
  Flexibility.prototype.onsapUiSupportFlexibilityGetApps = function () {
138
150
  var aApps = [];
139
151
 
@@ -153,7 +165,7 @@ sap.ui.define([
153
165
 
154
166
  /**
155
167
  * Parses all registered components and extracts <code>sap.ui5/appVariantHierarchy</code>.
156
- * @param {string} sReference
168
+ * @param {string} sReference - Flex reference
157
169
  * @returns {string} Joined app variant hierarchy and its app version
158
170
  */
159
171
  Flexibility.prototype.getAppVariantHierarchy = function (sReference) {
@@ -173,11 +185,10 @@ sap.ui.define([
173
185
  };
174
186
 
175
187
  /**
176
- * Collect data of changes
177
- *
178
- * @param {sap.ui.base.Event} oEvent Event sent from the tool side plugin to request changes
179
- *
180
- */
188
+ * Collects data of changes.
189
+ *
190
+ * @param {sap.ui.base.Event} oEvent - Event sent from the tool side plugin to request changes
191
+ */
181
192
  Flexibility.prototype.onsapUiSupportFlexibilityGetChangesMaps = function (oEvent) {
182
193
  var sAppKey = oEvent.mParameters.appKey;
183
194
  var aAppParameters = sAppKey.split(this.sDelimiter);
@@ -186,20 +197,20 @@ sap.ui.define([
186
197
  };
187
198
 
188
199
  /**
189
- * Handler on tool plugin side; passes the received data from the application plugin tool to a model.
190
- *
191
- * @param {sap.ui.base.Event} oEvent Event sent from the application side plugin with the applications
192
- */
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
+ */
193
204
  Flexibility.prototype.onsapUiSupportFlexibilitySetApps = function (oEvent) {
194
205
  var mApps = oEvent.getParameters();
195
206
  this.oAppModel.setData(mApps);
196
207
  };
197
208
 
198
209
  /**
199
- * Handler on tool plugin side; passes the received data from the application plugin tool to a model.
200
- *
201
- * @param {sap.ui.base.Event} oEvent Event sent from the application side plugin with the changes
202
- */
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
+ */
203
214
  Flexibility.prototype.onsapUiSupportFlexibilitySetChangesMaps = function (oEvent) {
204
215
  var mCacheEntries = oEvent.getParameters();
205
216
  this.oChangesModel.setData(mCacheEntries);
@@ -212,14 +223,21 @@ sap.ui.define([
212
223
  };
213
224
 
214
225
  /**
215
- * Collect data of changes
216
- *
217
- * @param {string} sAppName Name of the application
218
- *
219
- * @private
220
- */
226
+ * Collects data of changes.
227
+ *
228
+ * @param {string} sAppName - Name of the application
229
+ *
230
+ * @private
231
+ */
221
232
  Flexibility.prototype._getChangesMapForApp = function (sAppName) {
222
- function _collectChangesData(mChanges, sControlId) {
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) {
223
241
  mChangedControls[sControlId] = [];
224
242
  var aChangesForControl = mChangeFromPersistence[sControlId];
225
243
  var oControl = sap.ui.getCore().byId(sControlId);
@@ -238,10 +256,10 @@ sap.ui.define([
238
256
  }
239
257
  }
240
258
 
241
- mChangedControls[sControlId] = aChangesForControl.map(_collectDataForSingleChange.bind(this, oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges));
259
+ mChangedControls[sControlId] = aChangesForControl.map(collectDataForSingleChange.bind(this, oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges));
242
260
  }
243
261
 
244
- function _collectDataForSingleChange(oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges, oChange) {
262
+ function collectDataForSingleChange(oControl, aAppliedChanges, aFailedChangesJs, aFailedChangesXml, mChanges, oChange) {
245
263
  var oChangeDetails = {
246
264
  id: oChange.getId(),
247
265
  changeType: oChange.getChangeType(),
@@ -285,7 +303,7 @@ sap.ui.define([
285
303
  return oChangeDetails;
286
304
  }
287
305
 
288
- function _setIsInSubTreeInformation(oChangeDetails, sKey, oDependency) {
306
+ function setIsInSubTreeInformation(oChangeDetails, sKey, oDependency) {
289
307
  var aChangeIds = oDependency.dependencies;
290
308
  if (aChangeIds.indexOf(oChangeDetails.id) !== -1) {
291
309
  var bSameSelector = JSON.stringify(mChanges[sKey].selector) === JSON.stringify(oChangeDetails.selector);
@@ -293,9 +311,9 @@ sap.ui.define([
293
311
  }
294
312
  }
295
313
 
296
- function _setDependentChangeRelatedInformation(sControlId, mChangesOnControl) {
314
+ function setDependentChangeRelatedInformation(sControlId, mChangesOnControl) {
297
315
  mChangesOnControl.forEach(function (oChangeDetails) {
298
- jQuery.each(mDependencies, _setIsInSubTreeInformation.bind(this, oChangeDetails));
316
+ jQuery.each(mDependencies, setIsInSubTreeInformation.bind(this, oChangeDetails));
299
317
 
300
318
  oChangeDetails.allDependendingControlsPresent = oChangeDetails.dependentControls.every(function (mControl) {
301
319
  return mControl.controlPresent;
@@ -327,7 +345,7 @@ sap.ui.define([
327
345
  });
328
346
  }
329
347
 
330
- function _fnCreateChangesNode(aChangesDetails) {
348
+ function fnCreateChangesNode(aChangesDetails) {
331
349
  aChangesDetails = aChangesDetails.filter(function (oChange) {
332
350
  return !aChangesDetails.some(function (oChangeInSameHierarchy) {
333
351
  return oChangeInSameHierarchy.dependentChanges.some(function (oDependentChange) {
@@ -340,28 +358,21 @@ sap.ui.define([
340
358
  return {
341
359
  id: oChange.id,
342
360
  text: oChange.changeType,
343
- nodes: oChange.dependentChanges ? _fnCreateChangesNode(oChange.dependentChanges) : []
361
+ nodes: oChange.dependentChanges ? fnCreateChangesNode(oChange.dependentChanges) : []
344
362
  };
345
363
  });
346
364
  }
347
365
 
348
- function _createRootNodes(sControlId, aChangesDetails) {
366
+ function createRootNodes(sControlId, aChangesDetails) {
349
367
  aTreeNodes.push({
350
368
  text: sControlId,
351
- nodes: _fnCreateChangesNode(aChangesDetails)
369
+ nodes: fnCreateChangesNode(aChangesDetails)
352
370
  });
353
371
  }
354
372
 
355
- var mChanges = {};
356
- var mChangedControls = {};
357
- var aTreeNodes = [];
358
- var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForComponent(sAppName);
359
- var mChangeFromPersistence = oChangePersistence._mChanges.mChanges;
360
- var mDependencies = oChangePersistence._mChangesInitial.mDependencies;
361
-
362
- Object.keys(mChangeFromPersistence).forEach(_collectChangesData.bind(this, mChanges));
363
- jQuery.each(mChangedControls, _setDependentChangeRelatedInformation);
364
- jQuery.each(mChangedControls, _createRootNodes);
373
+ Object.keys(mChangeFromPersistence).forEach(collectChangesData.bind(this, mChanges));
374
+ jQuery.each(mChangedControls, setDependentChangeRelatedInformation);
375
+ jQuery.each(mChangedControls, createRootNodes);
365
376
 
366
377
  this._oStub.sendEvent(this.getId() + "SetChangesMaps", {
367
378
  changes: mChanges,
@@ -0,0 +1,59 @@
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/Component",
9
+ "sap/ui/fl/ChangePersistenceFactory",
10
+ "sap/ui/fl/apply/_internal/changes/FlexCustomData",
11
+ "sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
12
+ "sap/ui/fl/Utils"
13
+ ], function(
14
+ Component,
15
+ ChangePersistenceFactory,
16
+ FlexCustomData,
17
+ Extractor,
18
+ Utils
19
+ ) {
20
+ "use strict";
21
+
22
+ /**
23
+ * Provides an object with the changes for the current application as well as
24
+ * further information. I.e. if the changes were applied and their dependencies.
25
+ *
26
+ * @namespace sap.ui.fl.support._internal.getChangeDependencies
27
+ * @since 1.98
28
+ * @version 1.98.0
29
+ * @private
30
+ * @ui5-restricted sap.ui.fl.support.api.SupportAPI
31
+ */
32
+
33
+ return function () {
34
+ return Utils.getUShellService("AppLifeCycle").then(function (oAppLifeCycleService) {
35
+ var oCurrentAppContainerObject;
36
+
37
+ if (oAppLifeCycleService) {
38
+ oCurrentAppContainerObject = oAppLifeCycleService.getCurrentApplication().componentInstance;
39
+ } else {
40
+ var aApplications = Component.registry.filter(function (oComponent) {
41
+ return oComponent.getManifestObject().getRawJson()["sap.app"].type === "application";
42
+ });
43
+
44
+ if (aApplications.length === 1) {
45
+ oCurrentAppContainerObject = aApplications[0];
46
+ }
47
+ }
48
+
49
+ if (oCurrentAppContainerObject) {
50
+ var oAppComponent = oCurrentAppContainerObject.oContainer.getComponentInstance();
51
+ var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForControl(oAppComponent);
52
+
53
+ return Extractor.extractData(oChangePersistence);
54
+ }
55
+
56
+ return {};
57
+ });
58
+ };
59
+ });
@@ -0,0 +1,28 @@
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/fl/support/_internal/getChangeDependencies"
9
+ ], function(
10
+ getChangeDependencies
11
+ ) {
12
+ "use strict";
13
+
14
+ /**
15
+ * Provides an API for support tools
16
+ *
17
+ * @namespace sap.ui.fl.support.api.SupportAPI
18
+ * @since 1.98
19
+ * @version 1.98.0
20
+ * @private
21
+ * @ui5-restricted ui5 support tools
22
+ */
23
+ var SupportAPI = /** @lends sap.ui.fl.support.api.SupportAPI */{
24
+ getChangeDependencies: getChangeDependencies
25
+ };
26
+
27
+ return SupportAPI;
28
+ });
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @constructor
37
37
  * @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails
38
38
  * @author SAP SE
39
- * @version 1.96.2
39
+ * @version 1.98.0
40
40
  * @experimental Since 1.45
41
41
  */
42
42
  return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
@@ -68,8 +68,8 @@ sap.ui.define([
68
68
  /**
69
69
  * Handler if a route was matched;
70
70
  * Obtains information about layer, namespace, filename, and file type from the route's arguments, and then requests content from Layered Repository.
71
- * @param {Object} oRouteMatch - route object which is specified in the router and matched via regexp
72
- * @returns {Promise} - <code>LRepConnector</code> "getContent" promise
71
+ * @param {object} oRouteMatch - Route object which is specified in the router and matched via regexp
72
+ * @returns {Promise} <code>LRepConnector</code> "getContent" promise
73
73
  * @private
74
74
  */
75
75
  _onRouteMatched: function (oRouteMatch) {
@@ -101,11 +101,11 @@ sap.ui.define([
101
101
  /**
102
102
  * Handler if content data was received;
103
103
  * Formats the received data into the correct file type and requests the file metadata.
104
- * @param {Object} oModelData - model data of current page
105
- * @param {Object} oPage - current page used to set display busy mode on/off
106
- * @param {Object} sContentSuffix - content suffix for sending the metadata request
107
- * @param {Object} oData - data which is received from <code>LRepConnector</code> "getContent" promise
108
- * @returns {Promise} - <code>LRepConnector</code> "getContent" promise
104
+ * @param {object} oModelData - Model data of current page
105
+ * @param {object} oPage - Current page used to set display busy mode on/off
106
+ * @param {object} sContentSuffix - Content suffix for sending the metadata request
107
+ * @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
108
+ * @returns {Promise} <code>LRepConnector</code> "getContent" promise
109
109
  * @private
110
110
  */
111
111
  _onContentReceived: function (oModelData, oPage, sContentSuffix, oData) {
@@ -127,9 +127,9 @@ sap.ui.define([
127
127
  /**
128
128
  * Handler if content metadata was received;
129
129
  * Sets the received data to the current content model, updates the icon tab bar, and releases the busy mode of the current page.
130
- * @param {Object} oModelData - model data of current page
131
- * @param {Object} oPage - current page used to set display busy mode on/off
132
- * @param {Object} oMetadata - metadata which is received from <code>LRepConnector</code> "getContent" promise
130
+ * @param {object} oModelData - Model data of current page
131
+ * @param {object} oPage - Current page used to set display busy mode on/off
132
+ * @param {object} oMetadata - Metadata which is received from <code>LRepConnector</code> "getContent" promise
133
133
  * @private
134
134
  */
135
135
  _onContentMetadataReceived: function (oModelData, oPage, oMetadata) {
@@ -137,7 +137,7 @@ sap.ui.define([
137
137
  this.oSelectedContentModel.setData(oModelData);
138
138
  var oCore = sap.ui.getCore();
139
139
  var sIconTabBarId = this.getView().createId("contentDetailsIconTabBar");
140
- var oIconTabBar = oCore.getElementById(sIconTabBarId);
140
+ var oIconTabBar = oCore.byId(sIconTabBarId);
141
141
  if (oIconTabBar) {
142
142
  var oFirstIconTabBarItem = oIconTabBar.getItems()[0];
143
143
  if (oIconTabBar.getSelectedKey() !== oFirstIconTabBarItem.getId()) {
@@ -282,7 +282,7 @@ sap.ui.define([
282
282
 
283
283
  /**
284
284
  * Handler if a deletion was confirmed.
285
- * @returns {Promise} - <code>LRepConnector</code> "deleteFile" promise
285
+ * @returns {Promise} <code>LRepConnector</code> "deleteFile" promise
286
286
  * @private
287
287
  */
288
288
  _deleteFile: function (sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @constructor
37
37
  * @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit
38
38
  * @author SAP SE
39
- * @version 1.96.2
39
+ * @version 1.98.0
40
40
  * @experimental Since 1.45
41
41
  */
42
42
  return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  /**
68
68
  * Handler if a route was matched;
69
69
  * Obtains information about layer, namespace, filename, and file type from the route's arguments, and then requests content from Layered Repository.
70
- * @param {Object} oRouteMatch - route object which is specified in the router and matched via regexp
70
+ * @param {object} oRouteMatch - Route object which is specified in the router and matched via regexp
71
71
  * @returns {Promise} - <code>LRepConnector</code> "getContent" promise
72
72
  * @private
73
73
  */
@@ -101,11 +101,11 @@ sap.ui.define([
101
101
  /**
102
102
  * Handler if content data was received;
103
103
  * Formats the received data into the correct file type and requests the file metadata.
104
- * @param {Object} oModelData - model data of current page
105
- * @param {Object} oPage - current page used to set display busy mode on/off
106
- * @param {Object} sContentSuffix - content suffix to send metadata request
107
- * @param {Object} oData - data which is received from <code>LRepConnector</code> "getContent" promise
108
- * @returns {Promise} - <code>LRepConnector</code> "getContent" promise
104
+ * @param {object} oModelData - Model data of current page
105
+ * @param {object} oPage - Current page used to set display busy mode on/off
106
+ * @param {object} sContentSuffix - Content suffix to send metadata request
107
+ * @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
108
+ * @returns {Promise} <code>LRepConnector</code> "getContent" promise
109
109
  * @private
110
110
  */
111
111
  _onContentReceived: function (oModelData, oPage, sContentSuffix, oData) {
@@ -202,7 +202,7 @@ sap.ui.define([
202
202
  /**
203
203
  * Send request to back end to saved file.
204
204
  * After the file has been successfully saved, navigates to "Display" mode of the content.
205
- * @returns {Promise} - <code>LRepConnector</code> "saveFiles" promise
205
+ * @returns {Promise} <code>LRepConnector</code> "saveFiles" promise
206
206
  * @private
207
207
  */
208
208
  _saveFile: function (sLayer, sNameSpace, sFileName, sFileType, sData, sTransportId, sPackageName) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @constructor
28
28
  * @alias sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster
29
29
  * @author SAP SE
30
- * @version 1.96.2
30
+ * @version 1.98.0
31
31
  * @experimental Since 1.45
32
32
  */
33
33
  return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  /**
49
49
  * Handler if a route was matched;
50
50
  * Checks if the matched route is current route and then requests content from Layered Repository.
51
- * @param {Object} oRouteMatch - route object specified in the router which was matched via regexp
51
+ * @param {object} oRouteMatch - Route object specified in the router which was matched via regexp
52
52
  * @private
53
53
  */
54
54
  _onRouteMatched: function (oRouteMatch) {
@@ -73,8 +73,8 @@ sap.ui.define([
73
73
  /**
74
74
  * Handler if content data was received;
75
75
  * Sets the received data to the current content model.
76
- * @param {Object} oPage
77
- * @param {Object} oData - data which is received from <code>LRepConnector</code> "getContent" promise
76
+ * @param {object} oPage - Page instance
77
+ * @param {object} oData - Data which is received from <code>LRepConnector</code> "getContent" promise
78
78
  * @private
79
79
  */
80
80
  _onContentReceived: function (oPage, oData) {
@@ -87,7 +87,7 @@ sap.ui.define([
87
87
 
88
88
  /**
89
89
  * Searches for a specific namespace inside layer.
90
- * @param {Object} oEvent - "liveChange" event of search field
90
+ * @param {object} oEvent - <code>liveChange</code> event of search field
91
91
  * @public
92
92
  */
93
93
  onSearch: function (oEvent) {
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  /**
99
99
  * Filters the binding of the master list;
100
100
  * This function is also called once navigation to the page to clear the filters or input search entry.
101
- * @param {String} sQuery - entered string within the search field
101
+ * @param {string} sQuery - Entered string within the search field
102
102
  * @public
103
103
  */
104
104
  filterListByQuery: function (sQuery) {
@@ -123,7 +123,7 @@ sap.ui.define([
123
123
  /**
124
124
  * Handles the selection of a layer entry in the master page;
125
125
  * Gathers the selected namespace and the current layer, then navigates to the target.
126
- * @param {Object} oEvent - press event of master components list
126
+ * @param {object} oEvent - Press event of master components list
127
127
  * @public
128
128
  */
129
129
  onContentSelected: function (oEvent) {
@@ -173,7 +173,7 @@ sap.ui.define([
173
173
  /**
174
174
  * Formatter to shorten namespaces with multiple hierarchies;
175
175
  * If the hierarchy has more than two levels only the first and last levels are shown.
176
- * @returns {String} - shortened namespace for display
176
+ * @returns {string} - Shortened namespace for display
177
177
  * @private
178
178
  */
179
179
  _shortenNamespace: function () {
@@ -193,7 +193,7 @@ sap.ui.define([
193
193
  /**
194
194
  * Handler for displaying errors;
195
195
  * Calls the "ErrorUtils" helper class for error handling.
196
- * @param oEvent - press event on the error button
196
+ * @param {object} oEvent - Press event on the error button
197
197
  * @public
198
198
  */
199
199
  handleMessagePopoverPress: function (oEvent) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @constructor
17
17
  * @alias sap.ui.fl.support.apps.contentbrowser.controller.Layers
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.98.0
20
20
  * @experimental Since 1.45
21
21
  */
22
22
  return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
23
23
  /**
24
24
  * Handler for triggering the navigation to a selected layer.
25
- * @param {Object} oEvent
25
+ * @param {object} oEvent - Event object
26
26
  * @public
27
27
  */
28
28
  onLayerSelected: function (oEvent) {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
 
38
38
  /**
39
39
  * Handler for displaying the stored error messages.
40
- * @param {Object} oEvent
40
+ * @param {object} oEvent - Event object
41
41
  * @public
42
42
  */
43
43
  handleMessagePopoverPress: function (oEvent) {