@openui5/sap.ui.fl 1.94.0 → 1.97.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 (216) hide show
  1. package/.reuse/dep5 +12 -12
  2. package/THIRDPARTY.txt +21 -17
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +1 -1
  5. package/src/sap/ui/fl/Cache.js +1 -1
  6. package/src/sap/ui/fl/Change.js +18 -14
  7. package/src/sap/ui/fl/ChangePersistence.js +98 -86
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  9. package/src/sap/ui/fl/EventHistory.js +1 -1
  10. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
  11. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
  12. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  13. package/src/sap/ui/fl/FlexController.js +28 -22
  14. package/src/sap/ui/fl/FlexControllerFactory.js +17 -6
  15. package/src/sap/ui/fl/LayerUtils.js +34 -22
  16. package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
  17. package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
  18. package/src/sap/ui/fl/Utils.js +61 -41
  19. package/src/sap/ui/fl/Variant.js +2 -11
  20. package/src/sap/ui/fl/XmlPreprocessorImpl.js +10 -11
  21. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  22. package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +2 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +33 -11
  24. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +3 -2
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +52 -0
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  44. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  45. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  46. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +299 -288
  47. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +39 -9
  48. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  49. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +10 -8
  50. package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +14 -0
  51. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +103 -33
  52. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +45 -4
  53. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -1
  54. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  55. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
  56. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
  57. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
  58. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
  59. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +7 -7
  60. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -4
  61. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +25 -38
  62. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
  63. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +86 -6
  64. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +83 -14
  65. package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
  66. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  67. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  68. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  69. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
  70. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
  71. package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
  72. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  73. package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
  74. package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
  76. package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
  77. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  78. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  79. package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +6 -2
  81. package/src/sap/ui/fl/codeExt/CodeExtManager.js +16 -10
  82. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  83. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +18 -1
  84. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  85. package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +12 -8
  86. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +10 -4
  87. package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
  88. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
  89. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
  90. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -3
  91. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
  92. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  93. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  94. package/src/sap/ui/fl/library.js +9 -9
  95. package/src/sap/ui/fl/library.support.js +56 -46
  96. package/src/sap/ui/fl/messagebundle.properties +30 -2
  97. package/src/sap/ui/fl/messagebundle_ar.properties +21 -2
  98. package/src/sap/ui/fl/messagebundle_bg.properties +21 -2
  99. package/src/sap/ui/fl/messagebundle_ca.properties +21 -2
  100. package/src/sap/ui/fl/messagebundle_cs.properties +21 -2
  101. package/src/sap/ui/fl/messagebundle_cy.properties +21 -2
  102. package/src/sap/ui/fl/messagebundle_da.properties +21 -2
  103. package/src/sap/ui/fl/messagebundle_de.properties +21 -2
  104. package/src/sap/ui/fl/messagebundle_el.properties +21 -2
  105. package/src/sap/ui/fl/messagebundle_en.properties +21 -2
  106. package/src/sap/ui/fl/messagebundle_en_GB.properties +21 -2
  107. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +21 -2
  108. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +21 -2
  109. package/src/sap/ui/fl/messagebundle_es.properties +21 -2
  110. package/src/sap/ui/fl/messagebundle_es_MX.properties +21 -2
  111. package/src/sap/ui/fl/messagebundle_et.properties +21 -2
  112. package/src/sap/ui/fl/messagebundle_fi.properties +21 -2
  113. package/src/sap/ui/fl/messagebundle_fr.properties +21 -2
  114. package/src/sap/ui/fl/messagebundle_fr_CA.properties +21 -2
  115. package/src/sap/ui/fl/messagebundle_hi.properties +21 -2
  116. package/src/sap/ui/fl/messagebundle_hr.properties +21 -2
  117. package/src/sap/ui/fl/messagebundle_hu.properties +21 -2
  118. package/src/sap/ui/fl/messagebundle_id.properties +21 -2
  119. package/src/sap/ui/fl/messagebundle_it.properties +22 -3
  120. package/src/sap/ui/fl/messagebundle_iw.properties +21 -2
  121. package/src/sap/ui/fl/messagebundle_ja.properties +21 -2
  122. package/src/sap/ui/fl/messagebundle_kk.properties +21 -2
  123. package/src/sap/ui/fl/messagebundle_ko.properties +21 -2
  124. package/src/sap/ui/fl/messagebundle_lt.properties +21 -2
  125. package/src/sap/ui/fl/messagebundle_lv.properties +21 -2
  126. package/src/sap/ui/fl/messagebundle_ms.properties +21 -2
  127. package/src/sap/ui/fl/messagebundle_nl.properties +21 -2
  128. package/src/sap/ui/fl/messagebundle_no.properties +21 -2
  129. package/src/sap/ui/fl/messagebundle_pl.properties +21 -2
  130. package/src/sap/ui/fl/messagebundle_pt.properties +21 -2
  131. package/src/sap/ui/fl/messagebundle_pt_PT.properties +21 -2
  132. package/src/sap/ui/fl/messagebundle_ro.properties +21 -2
  133. package/src/sap/ui/fl/messagebundle_ru.properties +21 -2
  134. package/src/sap/ui/fl/messagebundle_sh.properties +21 -2
  135. package/src/sap/ui/fl/messagebundle_sk.properties +21 -2
  136. package/src/sap/ui/fl/messagebundle_sl.properties +21 -2
  137. package/src/sap/ui/fl/messagebundle_sv.properties +21 -2
  138. package/src/sap/ui/fl/messagebundle_th.properties +19 -0
  139. package/src/sap/ui/fl/messagebundle_tr.properties +21 -2
  140. package/src/sap/ui/fl/messagebundle_uk.properties +21 -2
  141. package/src/sap/ui/fl/messagebundle_vi.properties +21 -2
  142. package/src/sap/ui/fl/messagebundle_zh_CN.properties +21 -2
  143. package/src/sap/ui/fl/messagebundle_zh_TW.properties +21 -2
  144. package/src/sap/ui/fl/registry/Settings.js +71 -38
  145. package/src/sap/ui/fl/support/Flexibility.js +83 -72
  146. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +12 -12
  147. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +8 -8
  148. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +9 -9
  149. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +3 -3
  150. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +51 -52
  151. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +129 -125
  152. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  153. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -2
  154. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
  155. package/src/sap/ui/fl/themes/base/VariantManagement.less +9 -37
  156. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  157. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -4
  158. package/src/sap/ui/fl/util/IFrame.js +10 -3
  159. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  160. package/src/sap/ui/fl/util/getContainerUserInfo.js +32 -28
  161. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  162. package/src/sap/ui/fl/variants/VariantManagement.js +279 -30
  163. package/src/sap/ui/fl/variants/VariantModel.js +178 -73
  164. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +12 -2
  165. package/src/sap/ui/fl/write/_internal/Storage.js +7 -5
  166. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
  167. package/src/sap/ui/fl/write/_internal/Versions.js +61 -54
  168. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
  169. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  170. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  171. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +20 -1
  172. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +25 -3
  173. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  174. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
  175. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -23
  176. package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +2 -1
  177. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +3 -3
  178. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  179. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  180. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  181. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  182. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  183. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  184. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  185. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  186. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  187. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  188. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
  190. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  191. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +5 -17
  192. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  193. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.fragment.xml +1 -0
  194. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +48 -19
  195. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +60 -22
  196. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  197. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  198. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.fragment.xml +1 -1
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +15 -22
  200. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +20 -0
  201. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +15 -11
  202. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +14 -13
  203. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +5 -7
  204. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -5
  205. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -2
  206. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +117 -13
  207. package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -0
  208. package/src/sap/ui/fl/write/api/FieldExtensibility.js +28 -9
  209. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -1
  210. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +20 -16
  211. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
  212. package/ui5.yaml +135 -1
  213. package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -477
  214. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/annotationsEditor/AnnotationsEditor.js +0 -49
  215. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/dateEditor/DateEditor.js +0 -43
  216. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/dateTimeEditor/DateTimeEditor.js +0 -38
@@ -3,21 +3,37 @@
3
3
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- /*global Error */
7
6
 
8
7
  sap.ui.define([
9
8
  "sap/ui/fl/write/_internal/Storage",
9
+ "sap/ui/fl/Utils",
10
10
  "sap/base/Log"
11
11
  ], function(
12
12
  Storage,
13
+ Utils,
13
14
  Log
14
15
  ) {
15
16
  "use strict";
16
17
 
18
+ function retrieveUserId() {
19
+ var oUShellContainer = Utils.getUshellContainer();
20
+ if (oUShellContainer) {
21
+ return Utils.getUShellService("UserInfo")
22
+ .then(function(oUserInfoService) {
23
+ var oUser = oUserInfoService.getUser();
24
+ return oUser && oUser.getId();
25
+ })
26
+ .catch(function(oError) {
27
+ Log.error("Error getting service from Unified Shell: " + oError.message);
28
+ });
29
+ }
30
+ return Promise.resolve();
31
+ }
32
+
17
33
  /**
18
34
  * FlexSettings access
19
35
  *
20
- * @param {object} oSettings settings as JSON object
36
+ * @param {object} oSettings - Settings as JSON object
21
37
  * @constructor
22
38
  * @alias sap.ui.fl.registry.Settings
23
39
  * @private
@@ -33,8 +49,8 @@ sap.ui.define([
33
49
  /**
34
50
  * attaches a callback to an event on the event provider of Settings
35
51
  *
36
- * @param {string} sEventId name of the event
37
- * @param {function} oCallback
52
+ * @param {string} sEventId - Name of the event
53
+ * @param {function} oCallback - Callback that should be attached to the event
38
54
  */
39
55
  Settings.attachEvent = function(sEventId, oCallback) {
40
56
  Settings._oEventProvider.attachEvent(sEventId, oCallback);
@@ -43,8 +59,8 @@ sap.ui.define([
43
59
  /**
44
60
  * detaches a callback to an event on the event provider of Settings
45
61
  *
46
- * @param {string} sEventId name of the event
47
- * @param {function} oCallback
62
+ * @param {string} sEventId - Name of the event
63
+ * @param {function} oCallback - Callback that should be detached from the event
48
64
  */
49
65
  Settings.detachEvent = function(sEventId, oCallback) {
50
66
  Settings._oEventProvider.detachEvent(sEventId, oCallback);
@@ -54,7 +70,7 @@ sap.ui.define([
54
70
  * Returns a settings instance after reading the settings from the back end if not already done. There is only one instance of settings during a
55
71
  * session.
56
72
  *
57
- * @returns {Promise} with parameter <code>oInstance</code> of type {sap.ui.fl.registry.Settings}
73
+ * @returns {Promise} With parameter <code>oInstance</code> of type {sap.ui.fl.registry.Settings}
58
74
  */
59
75
  Settings.getInstance = function() {
60
76
  if (Settings._instance) {
@@ -72,29 +88,36 @@ sap.ui.define([
72
88
  * @returns {Promise} With parameter <code>oInstance</code> of type {sap.ui.fl.registry.Settings}
73
89
  */
74
90
  Settings._loadSettings = function() {
75
- var oLoadingPromise = Storage.loadFeatures().then(function (oSettings) {
76
- if (!oSettings) {
77
- Log.error("The request for flexibility settings failed; A default response is generated and returned to consuming APIs");
78
- // in case the back end cannot respond resolve with a default response
79
- oSettings = {
80
- isKeyUser: false,
81
- isKeyUserTranslationEnabled: false,
82
- isVariantSharingEnabled: false,
83
- isVariantPersonalizationEnabled: true,
84
- isAtoAvailable: false,
85
- isAtoEnabled: false,
86
- isAppVariantSaveAsEnabled: false,
87
- isCondensingEnabled: false,
88
- isProductiveSystem: true,
89
- isPublicLayerAvailable: false,
90
- isVariantAdaptationEnabled: false,
91
- versioning: {},
92
- _bFlexChangeMode: false,
93
- _bFlexibilityAdaptationButtonAllowed: false
94
- };
95
- }
96
- return Settings._storeInstance(oSettings);
97
- });
91
+ var oSettings;
92
+ var oLoadingPromise = Storage.loadFeatures()
93
+ .then(function(oLoadedSettings) {
94
+ oSettings = oLoadedSettings;
95
+ return retrieveUserId();
96
+ })
97
+ .then(function (sUserId) {
98
+ if (!oSettings) {
99
+ Log.error("The request for flexibility settings failed; A default response is generated and returned to consuming APIs");
100
+ // in case the back end cannot respond resolve with a default response
101
+ oSettings = {
102
+ isKeyUser: false,
103
+ isKeyUserTranslationEnabled: false,
104
+ isVariantSharingEnabled: false,
105
+ isVariantPersonalizationEnabled: true,
106
+ isAtoAvailable: false,
107
+ isAtoEnabled: false,
108
+ isAppVariantSaveAsEnabled: false,
109
+ isCondensingEnabled: false,
110
+ isProductiveSystem: true,
111
+ isPublicLayerAvailable: false,
112
+ isVariantAdaptationEnabled: false,
113
+ versioning: {},
114
+ _bFlexChangeMode: false,
115
+ _bFlexibilityAdaptationButtonAllowed: false
116
+ };
117
+ }
118
+ oSettings.userId = sUserId;
119
+ return Settings._storeInstance(oSettings);
120
+ });
98
121
  Settings._oLoadSettingsPromise = oLoadingPromise;
99
122
  return oLoadingPromise;
100
123
  };
@@ -103,7 +126,7 @@ sap.ui.define([
103
126
  * Writes the data received from the storage into an internal instance and then returns the settings object within a Promise.
104
127
  *
105
128
  * @param {object} oSettings - Data received from the storage
106
- * @returns {Promise} with parameter <code>oInstance</code> of type {sap.ui.fl.registry.Settings}
129
+ * @returns {Promise} With parameter <code>oInstance</code> of type {sap.ui.fl.registry.Settings}
107
130
  *
108
131
  */
109
132
  Settings._storeInstance = function(oSettings) {
@@ -117,7 +140,7 @@ sap.ui.define([
117
140
  * Returns a settings instance from the local instance cache. There is only one instance of settings during a session. If no instance has been
118
141
  * created before, undefined will be returned.
119
142
  *
120
- * @returns {sap.ui.fl.registry.Settings} instance or undefined if no instance has been created so far
143
+ * @returns {sap.ui.fl.registry.Settings} Instance or undefined if no instance has been created so far
121
144
  */
122
145
  Settings.getInstanceOrUndef = function() {
123
146
  return Settings._instance;
@@ -154,7 +177,7 @@ sap.ui.define([
154
177
  /**
155
178
  * Reads boolean property of settings.
156
179
  *
157
- * @param {string} sPropertyName name of property
180
+ * @param {string} sPropertyName - Name of property
158
181
  * @returns {boolean} <code>true</code> if the property exists and is true
159
182
  */
160
183
  Settings.prototype._getBooleanProperty = function(sPropertyName) {
@@ -173,7 +196,7 @@ sap.ui.define([
173
196
  /**
174
197
  * Returns the information if translation is enabled for the KeyUser or not (has admin role).
175
198
  *
176
- * @returns {boolean} true if the user is a flexibility key user and has the admin role.
199
+ * @returns {boolean} <code>true</code> if the user is a flexibility key user and has the admin role.
177
200
  */
178
201
  Settings.prototype.isKeyUserTranslationEnabled = function() {
179
202
  return this._getBooleanProperty("isKeyUserTranslationEnabled");
@@ -290,24 +313,34 @@ sap.ui.define([
290
313
  };
291
314
 
292
315
  /**
293
- * Getter for the system Id of the connected backend.
316
+ * Getter for the system ID of the connected back end.
294
317
  * Taken from the property 'system' of the flex settings. Only filled for an ABAP backend.
295
318
  *
296
- * @returns {String} system Id of the connected backend or undefined (when property 'system' does not exist in the flex settings file)
319
+ * @returns {string} System ID of the connected back end or undefined (when property <code>system</code> does not exist in the flex settings file)
297
320
  */
298
321
  Settings.prototype.getSystem = function() {
299
322
  return this._oSettings.system;
300
323
  };
301
324
 
302
325
  /**
303
- * Getter for the client of the connected backend.
326
+ * Getter for the client of the connected back end.
304
327
  * Taken from the property 'client' of the flex settings. Only filled for an ABAP backend.
305
328
  *
306
- * @returns {String} client of the connected backend or undefined (when property 'system' does not exist in the flex settings file)
329
+ * @returns {string} Client of the connected backend or undefined (when property <code>system</code> does not exist in the flex settings file)
307
330
  */
308
331
  Settings.prototype.getClient = function() {
309
332
  return this._oSettings.client;
310
333
  };
311
334
 
335
+ /**
336
+ * Getter for the id of the current user.
337
+ * Taken from the property 'userId' of the flex settings. Only filled when UShell is available.
338
+ *
339
+ * @returns {string} User ID of the current user. Undefined if UShell is not available.
340
+ */
341
+ Settings.prototype.getUserId = function() {
342
+ return this._oSettings.userId;
343
+ };
344
+
312
345
  return Settings;
313
346
  }, /* bExport= */true);
@@ -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.94.0
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.97.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,
@@ -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.94.0
39
+ * @version 1.97.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) {
@@ -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) {
@@ -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.94.0
39
+ * @version 1.97.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) {
@@ -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.94.0
30
+ * @version 1.97.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) {