@openui5/sap.ui.fl 1.96.2 → 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 (152) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  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/ChangePersistence.js +6 -4
  7. package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
  8. package/src/sap/ui/fl/EventHistory.js +1 -1
  9. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
  10. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
  11. package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
  12. package/src/sap/ui/fl/FlexController.js +1 -1
  13. package/src/sap/ui/fl/FlexControllerFactory.js +9 -5
  14. package/src/sap/ui/fl/LayerUtils.js +1 -1
  15. package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
  16. package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
  17. package/src/sap/ui/fl/Utils.js +8 -8
  18. package/src/sap/ui/fl/Variant.js +1 -1
  19. package/src/sap/ui/fl/XmlPreprocessorImpl.js +10 -11
  20. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
  21. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  22. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  42. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +263 -263
  44. package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +39 -9
  45. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  46. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +3 -33
  47. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -16
  48. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +1 -1
  49. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  50. package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
  51. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +1 -1
  53. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
  54. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +2 -2
  55. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -4
  56. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +13 -11
  57. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
  58. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +86 -6
  59. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +58 -9
  60. package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
  61. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  62. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  63. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  64. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
  65. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
  66. package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
  67. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  68. package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
  69. package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
  70. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
  71. package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
  72. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  73. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  74. package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
  76. package/src/sap/ui/fl/codeExt/CodeExtManager.js +16 -10
  77. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  78. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  79. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  80. package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
  81. package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +1 -1
  82. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
  83. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +1 -1
  84. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -3
  85. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
  86. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  87. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  88. package/src/sap/ui/fl/library.js +9 -9
  89. package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +19 -2
  90. package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -35
  91. package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +19 -2
  92. package/src/sap/ui/fl/registry/Settings.js +15 -16
  93. package/src/sap/ui/fl/support/Flexibility.js +83 -72
  94. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +12 -12
  95. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +8 -8
  96. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +9 -9
  97. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +3 -3
  98. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +51 -52
  99. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +129 -125
  100. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
  101. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -2
  102. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
  103. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  104. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -4
  105. package/src/sap/ui/fl/util/IFrame.js +1 -1
  106. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  107. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  108. package/src/sap/ui/fl/variants/VariantModel.js +1 -1
  109. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +12 -2
  110. package/src/sap/ui/fl/write/_internal/Storage.js +1 -1
  111. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
  112. package/src/sap/ui/fl/write/_internal/Versions.js +1 -1
  113. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
  114. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
  115. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  116. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +1 -1
  117. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +3 -2
  118. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  119. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
  120. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -23
  121. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +1 -1
  122. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  123. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  124. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  125. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  126. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  127. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  128. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +1 -1
  129. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  130. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  131. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  132. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  133. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
  134. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  135. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +1 -1
  136. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  137. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +2 -2
  138. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  139. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  140. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  141. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +4 -3
  142. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +5 -4
  143. package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +5 -7
  144. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -5
  145. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -2
  146. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +117 -13
  147. package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -0
  148. package/src/sap/ui/fl/write/api/FieldExtensibility.js +7 -3
  149. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -1
  150. package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
  151. package/ui5.yaml +132 -1
  152. package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -479
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
13
13
  * @constructor
14
14
  * @alias sap.ui.fl.support.apps.contentbrowser.lrepConnector.LRepConnector
15
15
  * @author SAP SE
16
- * @version 1.96.2
16
+ * @version 1.97.0
17
17
  * @experimental Since 1.45
18
18
  */
19
19
  var LrepConnector = {};
@@ -25,11 +25,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
25
25
  /**
26
26
  * Gets content from the layered repository.
27
27
  *
28
- * @param {String} sLayer - determines the layer for obtaining the content
29
- * @param {String} sContentSuffix - namespace plus filename and file type of content
30
- * @param {boolean} bReadContextMetadata - read content plus metadata information
31
- * @param {boolean} bReadRuntimeContext - gets the content in runtime instead of design time
32
- * @param {boolean} bRequestAsText - gets content data as plain text
28
+ * @param {string} sLayer - Determines the layer for obtaining the content
29
+ * @param {string} sContentSuffix - Namespace plus filename and file type of content
30
+ * @param {boolean} bReadContextMetadata - Read content plus metadata information
31
+ * @param {boolean} bReadRuntimeContext - Gets the content in runtime instead of design time
32
+ * @param {boolean} bRequestAsText - Gets content data as plain text
33
33
  * @returns {Promise} Promise of GET content request to the back end
34
34
  * @public
35
35
  */
@@ -51,13 +51,13 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
51
51
  /**
52
52
  * Saves a file to the layered repository.
53
53
  *
54
- * @param {String} sLayer - determines the layer for saving the content
55
- * @param {String} sNamespace - namespace of the file
56
- * @param {String} sFilename - name of the file
57
- * @param {String} sFileType - type of the file
58
- * @param {String} sContent - content of the file saved to the layered repository
59
- * @param [String] sTransportId - id of an ABAP transport or ATO_NOTIFICATION
60
- * @param [String] sPackageName - name of an ABAP package
54
+ * @param {string} sLayer - Determines the layer for saving the content
55
+ * @param {string} sNamespace - Namespace of the file
56
+ * @param {string} sFilename - Name of the file
57
+ * @param {string} sFileType - Type of the file
58
+ * @param {string} sContent - Content of the file saved to the layered repository
59
+ * @param {string} sTransportId - ID of an ABAP transport or ATO_NOTIFICATION
60
+ * @param {string} sPackageName - Name of an ABAP package
61
61
  * @returns {Promise} Promise of the SAVE content request to the back end
62
62
  * @public
63
63
  */
@@ -80,11 +80,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
80
80
  /**
81
81
  * Deletes a file from the layered repository.
82
82
  *
83
- * @param {String} sLayer - determines the layer for deleting the content
84
- * @param {String} sNamespace - namespace of the file
85
- * @param {String} sFileName - name of the file
86
- * @param {String} sFileType - type of the file
87
- * @param [String] sTransportId - id of the ABAP transport or ATO_NOTIFICATION
83
+ * @param {string} sLayer - Determines the layer for deleting the content
84
+ * @param {string} sNamespace - Namespace of the file
85
+ * @param {string} sFileName - Name of the file
86
+ * @param {string} sFileType - Type of the file
87
+ * @param {string} sTransportId - ID of the ABAP transport or ATO_NOTIFICATION
88
88
  * @returns {Promise} Promise of DELETE content request to the back end
89
89
  * @public
90
90
  */
@@ -141,8 +141,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
141
141
  /**
142
142
  * Get layer suffix for request URL;
143
143
  * If all layers are selected, the layer suffix is empty.
144
- * @param {String} sLayer - normal layer plus 'All'
145
- * @returns {String} correct layer suffix
144
+ * @param {string} sLayer - Normal layer plus 'All'
145
+ * @returns {string} Correct layer suffix
146
146
  * @private
147
147
  */
148
148
  LrepConnector._getLayerSuffix = function (sLayer) {
@@ -154,8 +154,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
154
154
 
155
155
  /**
156
156
  * Get changelist suffix for request URL;
157
- * @param {String} sChangeList - transport id
158
- * @returns {String} correct changelist suffix
157
+ * @param {string} sChangeList - Transport ID
158
+ * @returns {string} Correct changelist suffix
159
159
  * @private
160
160
  */
161
161
  LrepConnector._getChangeListSuffix = function (sChangeList) {
@@ -164,8 +164,8 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
164
164
 
165
165
  /**
166
166
  * Get package suffix for request URL;
167
- * @param {String} sPackage - package name
168
- * @returns {String} correct package suffix
167
+ * @param {string} sPackage - Package name
168
+ * @returns {string} Correct package suffix
169
169
  * @private
170
170
  */
171
171
  LrepConnector._getPackageSuffix = function (sPackage) {
@@ -175,10 +175,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
175
175
  /**
176
176
  * Get context suffix for request URL.
177
177
  *
178
- * @param {String} sLayerSuffix - layer suffix based on selected layer
179
- * @param {boolean} bReadRuntimeContext - gets content in runtime instead of design time
180
- * @param {boolean} bReadContextMetadata - reads content plus metadata information
181
- * @returns {String} correct context suffix for URL request
178
+ * @param {string} sLayerSuffix - Layer suffix based on selected layer
179
+ * @param {boolean} bReadRuntimeContext - Gets content in runtime instead of design time
180
+ * @param {boolean} bReadContextMetadata - Reads content plus metadata information
181
+ * @returns {string} Correct context suffix for URL request
182
182
  * @private
183
183
  */
184
184
  LrepConnector._getContextSuffix = function (sLayerSuffix, bReadRuntimeContext, bReadContextMetadata) {
@@ -197,9 +197,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
197
197
  /**
198
198
  * Reports an error during back-end request.
199
199
  *
200
- * @param {Object} oJqXHR - "jqXHR " object which is returned from ajax request
201
- * @param {String} sTextStatus - status text of the error
202
- * @param {Object} oErrorThrown - object which containing the error description
200
+ * @param {object} oJqXHR - <code>jqXHR</code> object which is returned from ajax request
201
+ * @param {string} sTextStatus - Status text of the error
202
+ * @param {object} oErrorThrown - Object that contains the error description
203
203
  * @private
204
204
  */
205
205
  LrepConnector._reportError = function (oJqXHR, sTextStatus, oErrorThrown) {
@@ -211,10 +211,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
211
211
  /**
212
212
  * Sends a GET content request to the back end.
213
213
  *
214
- * @param {String} sUrl - request URL
215
- * @param {Function} fnResolve - callback function if request was resolved
216
- * @param {Function} fnReject - callback function if request was rejected
217
- * @param {boolean} bRequestAsText - sends ajax request with data type as plain text
214
+ * @param {string} sUrl - Request URL
215
+ * @param {function} fnResolve - Callback function if request was resolved
216
+ * @param {function} fnReject - Callback function if request was rejected
217
+ * @param {boolean} bRequestAsText - Sends ajax request with data type as plain text
218
218
  * @private
219
219
  */
220
220
  LrepConnector._sendContentRequest = function (sUrl, fnResolve, fnReject, bRequestAsText) {
@@ -239,11 +239,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
239
239
  /**
240
240
  * Gets the token and sends an updating request.
241
241
  *
242
- * @param {String} sUrl - request URL
243
- * @param {Object} oData - data for PUT request
244
- * @param {Function} fnResolve - callback function if request was resolved
245
- * @param {Function} fnReject - callback function if request was rejected
246
- * @param {Function} fnReject - callback function if request was rejected
242
+ * @param {string} sUrl - Request URL
243
+ * @param {object} oData - Data for PUT request
244
+ * @param {function} fnResolve - Callback function if request was resolved
245
+ * @param {function} fnReject - Callback function if request was rejected
247
246
  * @private
248
247
  */
249
248
  LrepConnector._getTokenAndSendPutRequest = function (sUrl, oData, fnResolve, fnReject) {
@@ -256,11 +255,11 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
256
255
  /**
257
256
  * Sends PUT content request to the back end.
258
257
  *
259
- * @param {Object} oXcsrfToken - token object
260
- * @param {String} sUrl - request URL
261
- * @param {Object} oData - data of PUT request
262
- * @param {Function} fnResolve - callback function if request was resolved
263
- * @param {Function} fnReject - callback function if request was rejected
258
+ * @param {object} oXcsrfToken - Token object
259
+ * @param {string} sUrl - Request URL
260
+ * @param {object} oData - Data of PUT request
261
+ * @param {function} fnResolve - Callback function if request was resolved
262
+ * @param {function} fnReject - Callback function if request was rejected
264
263
  * @private
265
264
  */
266
265
  LrepConnector._sendPutRequest = function (oXcsrfToken, sUrl, oData, fnResolve, fnReject) {
@@ -286,9 +285,9 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
286
285
  /**
287
286
  * Gets token and sends DELETE content request to the back end.
288
287
  *
289
- * @param {String} sUrl - request URL
290
- * @param {Function} fnResolve - callback function if request was resolved
291
- * @param {Function} fnReject - callback function if request was rejected
288
+ * @param {string} sUrl - Request URL
289
+ * @param {function} fnResolve - Callback function if request was resolved
290
+ * @param {function} fnReject - Callback function if request was rejected
292
291
  * @private
293
292
  */
294
293
  LrepConnector._getTokenAndSendDeletionRequest = function (sUrl, fnResolve, fnReject) {
@@ -301,10 +300,10 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
301
300
  /**
302
301
  * Sends DELETE request to the back end.
303
302
  *
304
- * @param {Object} oXcsrfToken - token object
305
- * @param {String} sUrl - request URL
306
- * @param {Function} fnResolve - callback function if request was resolved
307
- * @param {Function} fnReject - callback function if request was rejected
303
+ * @param {object} oXcsrfToken - Token object
304
+ * @param {string} sUrl - Request URL
305
+ * @param {function} fnResolve - Callback function if request was resolved
306
+ * @param {function} fnReject - Callback function if request was rejected
308
307
  * @private
309
308
  */
310
309
  LrepConnector._sendDeletionRequest = function (oXcsrfToken, sUrl, fnResolve, fnReject) {
@@ -4,143 +4,147 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(["sap/m/GroupHeaderListItem", "sap/ui/thirdparty/jquery"],
8
- function(GroupHeaderListItem, jQuery) {
9
- "use strict";
7
+ sap.ui.define([
8
+ "sap/m/GroupHeaderListItem",
9
+ "sap/ui/thirdparty/jquery"
10
+ ], function(
11
+ GroupHeaderListItem,
12
+ jQuery
13
+ ) {
14
+ "use strict";
15
+
16
+ /**
17
+ * Provides data utility functions for the Content Browser.
18
+ *
19
+ * @constructor
20
+ * @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
21
+ * @author SAP SE
22
+ * @version 1.97.0
23
+ * @experimental Since 1.45
24
+ */
25
+ var DataUtils = {
26
+ aExcludeList: [{
27
+ category: "NS",
28
+ name: "LREP_HOME_CONTENT",
29
+ ns: "UIF/"
30
+ }, {
31
+ category: "NS",
32
+ name: "virtual~",
33
+ ns: "/"
34
+ }],
10
35
 
11
36
  /**
12
- * Provides data utility functions for the Content Browser.
37
+ * Pretty printer for specific file types.
13
38
  *
14
- * @constructor
15
- * @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
16
- * @author SAP SE
17
- * @version 1.96.2
18
- * @experimental Since 1.45
39
+ * @param {Object} oData - Data to be formatted
40
+ * @param {String} sFileType - File type of data
41
+ * @returns {Object} Data after formatting
42
+ * @public
19
43
  */
20
- var DataUtils = {
21
- aExcludeList: [{
22
- category: "NS",
23
- name: "LREP_HOME_CONTENT",
24
- ns: "UIF/"
25
- }, {
26
- category: "NS",
27
- name: "virtual~",
28
- ns: "/"
29
- }],
30
-
31
- /**
32
- * Pretty printer for specific file types.
33
- *
34
- * @param {Object} oData - data to be formatted
35
- * @param {String} sFileType - file type of data
36
- * @returns {Object} oData - data after formatting
37
- * @public
38
- */
39
- formatData: function (oData, sFileType) {
40
- // code extension and properties files do not need formation
41
- if ((sFileType === "js") || (sFileType === "properties")) {
42
- return oData;
43
- }
44
- // other files should be formatted to JSON
45
- try {
46
- oData = JSON.parse(oData);
47
- return JSON.stringify(oData, null, '\t');
48
- } catch (oError) {
49
- var ErrorUtils = sap.ui.require("sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils");
50
- ErrorUtils.displayError("Error", oError.name, oError.message);
51
- return oData;
52
- }
53
- },
54
-
55
- /**
56
- * Factory for creating list group header objects for the metadata list.
57
- * @param {Object} oGroup - group data passed from the lists model binding
58
- * @returns {sap.m.GroupHeaderListItem}
59
- * @public
60
- */
61
- getGroupHeader: function (oGroup) {
62
- var sTitle = "{i18n>systemData}";
44
+ formatData: function (oData, sFileType) {
45
+ // code extension and properties files do not need formation
46
+ if ((sFileType === "js") || (sFileType === "properties")) {
47
+ return oData;
48
+ }
49
+ // other files should be formatted to JSON
50
+ try {
51
+ oData = JSON.parse(oData);
52
+ return JSON.stringify(oData, null, '\t');
53
+ } catch (oError) {
54
+ var ErrorUtils = sap.ui.require("sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils");
55
+ ErrorUtils.displayError("Error", oError.name, oError.message);
56
+ return oData;
57
+ }
58
+ },
63
59
 
64
- if (oGroup.key === "custom") {
65
- sTitle = "{i18n>externalReferences}";
66
- }
60
+ /**
61
+ * Factory for creating list group header objects for the metadata list.
62
+ * @param {Object} oGroup - Group data passed from the lists model binding
63
+ * @returns {sap.m.GroupHeaderListItem} New GroupHeaderListItem
64
+ * @public
65
+ */
66
+ getGroupHeader: function (oGroup) {
67
+ var sTitle = "{i18n>systemData}";
67
68
 
68
- return new GroupHeaderListItem({
69
- title: sTitle,
70
- upperCase: false
71
- });
72
- },
69
+ if (oGroup.key === "custom") {
70
+ sTitle = "{i18n>externalReferences}";
71
+ }
73
72
 
74
- /**
75
- * Verifies if item content is not in the exclude list.
76
- * @param {Object} oContentItem - content item needs to be verified
77
- * @returns {boolean} - <code>true</code> if the item is not excluded
78
- * @public
79
- */
80
- isNotExcluded: function (oContentItem) {
81
- var bNotExcluded = true;
82
- jQuery.each(this.aExcludeList, function (index, mExcludeListElement) {
83
- var bAllPropertiesMatched = true;
73
+ return new GroupHeaderListItem({
74
+ title: sTitle,
75
+ upperCase: false
76
+ });
77
+ },
84
78
 
85
- jQuery.each(mExcludeListElement, function (sProperty, sValue) {
86
- bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] === sValue;
87
- });
79
+ /**
80
+ * Verifies if item content is not in the exclude list.
81
+ * @param {Object} oContentItem - Content item needs to be verified
82
+ * @returns {boolean} <code>true</code> if the item is not excluded
83
+ * @public
84
+ */
85
+ isNotExcluded: function (oContentItem) {
86
+ var bNotExcluded = true;
87
+ jQuery.each(this.aExcludeList, function (index, mExcludeListElement) {
88
+ var bAllPropertiesMatched = true;
88
89
 
89
- if (bAllPropertiesMatched) {
90
- bNotExcluded = false;
91
- return false; // break each
92
- }
90
+ jQuery.each(mExcludeListElement, function (sProperty, sValue) {
91
+ bAllPropertiesMatched = bAllPropertiesMatched && oContentItem[sProperty] === sValue;
93
92
  });
94
- return bNotExcluded;
95
- },
96
93
 
97
- /**
98
- * Removes leading and trailing slashes from a string.
99
- * @param {String} sNamespace - input string
100
- * @returns {String} - string after removing leading and trailing slashes
101
- * @public
102
- */
103
- cleanLeadingAndTrailingSlashes: function (sNamespace) {
104
- if (!sNamespace) {
105
- return "";
94
+ if (bAllPropertiesMatched) {
95
+ bNotExcluded = false;
96
+ return false; // break each
106
97
  }
107
- if (sNamespace[0] === "/") {
108
- var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
109
- return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
110
- }
111
- if (sNamespace[sNamespace.length - 1] === "/") {
112
- var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
113
- return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
114
- }
115
- return sNamespace;
116
- },
98
+ });
99
+ return bNotExcluded;
100
+ },
117
101
 
118
- /**
119
- * Title formatter: combines the items namespace, filename and type.
120
- * @param {object} mModelData
121
- * @param {string} mModelData.namespace
122
- * @param {string} mModelData.fileName
123
- * @param {string} mModelData.fileType
124
- * @returns {string} - item title after formatting
125
- * @public
126
- */
127
- formatItemTitle: function (mModelData) {
128
- return mModelData.namespace + mModelData.fileName + "." + mModelData.fileType;
129
- },
130
-
131
- /**
132
- * Helper function to determine if a file ends with a specified suffix.
133
- *
134
- * @param {string} sString - string that has to be checked
135
- * @param {string} sSuffix - suffix
136
- * @returns {boolean} <code>true</code> if the passed suffix is the last part of the passed string
137
- * @public
138
- */
139
- endsStringWith: function (sString, sSuffix) {
140
- return sString.indexOf(sSuffix, sString.length - sSuffix.length) !== -1;
102
+ /**
103
+ * Removes leading and trailing slashes from a string.
104
+ * @param {String} sNamespace - Input string
105
+ * @returns {String} String after removing leading and trailing slashes
106
+ * @public
107
+ */
108
+ cleanLeadingAndTrailingSlashes: function (sNamespace) {
109
+ if (!sNamespace) {
110
+ return "";
111
+ }
112
+ if (sNamespace[0] === "/") {
113
+ var sNamespaceWithoutLeadingSlash = sNamespace.substring(1, sNamespace.length);
114
+ return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutLeadingSlash);
115
+ }
116
+ if (sNamespace[sNamespace.length - 1] === "/") {
117
+ var sNamespaceWithoutTrailingSlash = sNamespace.substring(0, sNamespace.length - 1);
118
+ return this.cleanLeadingAndTrailingSlashes(sNamespaceWithoutTrailingSlash);
141
119
  }
142
- };
120
+ return sNamespace;
121
+ },
122
+
123
+ /**
124
+ * Title formatter: combines the items namespace, filename and type.
125
+ * @param {object} mModelData - Object with model data
126
+ * @param {string} mModelData.namespace - Namespace
127
+ * @param {string} mModelData.fileName - Filename
128
+ * @param {string} mModelData.fileType - Filetype
129
+ * @returns {string} Item title after formatting
130
+ * @public
131
+ */
132
+ formatItemTitle: function (mModelData) {
133
+ return mModelData.namespace + mModelData.fileName + "." + mModelData.fileType;
134
+ },
135
+
136
+ /**
137
+ * Helper function to determine if a file ends with a specified suffix.
138
+ *
139
+ * @param {string} sString - String that has to be checked
140
+ * @param {string} sSuffix - Suffix
141
+ * @returns {boolean} <code>true</code> if the passed suffix is the last part of the passed string
142
+ * @public
143
+ */
144
+ endsStringWith: function (sString, sSuffix) {
145
+ return sString.indexOf(sSuffix, sString.length - sSuffix.length) !== -1;
146
+ }
147
+ };
143
148
 
144
- return DataUtils;
145
- }, true
146
- );
149
+ return DataUtils;
150
+ }, true);
@@ -16,7 +16,7 @@ function (MessagePopoverItem, MessagePopover) {
16
16
  * @constructor
17
17
  * @alias sap.ui.fl.support.apps.contentbrowser.utils.ErrorUtils
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  * @experimental Since 1.45
21
21
  */
22
22
  var ErrorUtils = {};
@@ -4,8 +4,6 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- /* global FileReader */
8
-
9
7
  sap.ui.define([
10
8
  "sap/ui/core/mvc/Controller",
11
9
  "sap/ui/model/json/JSONModel",
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @constructor
17
17
  * @alias sap.ui.fl.support.Flexibility
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  * @experimental Since 1.52
21
21
  */
22
22
  return Controller.extend("sap.ui.fl.support.diagnostics.Flexibility", {
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @alias sap.ui.fl.transport.TransportSelection
18
18
  * @constructor
19
19
  * @author SAP SE
20
- * @version 1.96.2
20
+ * @version 1.97.0
21
21
  * @since 1.38.0
22
22
  * Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
23
23
  * of the SmartVariant control.
@@ -90,10 +90,8 @@ sap.ui.define([
90
90
  throw new Error("Id " + sId + " must not start with reserved " + layer_prefixes[sKey]);
91
91
  }
92
92
  });
93
- } else {
94
- if (!sId.startsWith(sPrefix)) {
95
- throw new Error("Id " + sId + " must start with " + sPrefix);
96
- }
93
+ } else if (!sId.startsWith(sPrefix)) {
94
+ throw new Error("Id " + sId + " must start with " + sPrefix);
97
95
  }
98
96
  }
99
97
 
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.core.Control
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.96.2
53
+ * @version 1.97.0
54
54
  *
55
55
  * @constructor
56
56
  * @private
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.core.Element
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.2
28
+ * @version 1.97.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  *
35
35
  * @function
36
36
  * @author SAP SE
37
- * @version 1.96.2
37
+ * @version 1.97.0
38
38
  * @alias sap.ui.fl.util.resolveBinding
39
39
  * @experimental
40
40
  * @since 1.91
@@ -275,7 +275,7 @@ sap.ui.define([
275
275
  * @class Variant model implementation for JSON format.
276
276
  * @extends sap.ui.model.json.JSONModel
277
277
  * @author SAP SE
278
- * @version 1.96.2
278
+ * @version 1.97.0
279
279
  * @param {object} oData - Either the URL where to load the JSON from or a JS object
280
280
  * @param {object} mPropertyBag - Map of properties required for the constructor
281
281
  * @param {sap.ui.fl.FlexController} mPropertyBag.flexController - <code>FlexController</code> instance for the component which uses the variant model
@@ -11,8 +11,7 @@ sap.ui.define([
11
11
  "sap/m/MessageStrip",
12
12
  "sap/ui/core/MessageType",
13
13
  "sap/base/util/restricted/_isEqual"
14
- ],
15
- function (
14
+ ], function (
16
15
  Controller,
17
16
  Fragment,
18
17
  WriteStorage,
@@ -114,6 +113,7 @@ function (
114
113
 
115
114
  /**
116
115
  * If restricted radio button is selected, then it reveals the hidden selected contexts list.
116
+ * @param {sap.ui.base.Event} oEvent - Event object
117
117
  */
118
118
  onSelectRestrictedRadioButton: function(oEvent) {
119
119
  oEvent.getSource().setSelected(true);
@@ -129,6 +129,7 @@ function (
129
129
  /**
130
130
  * Checks if all data is loaded from back end.
131
131
  * If not, it retrieves the next chunk from the back end and then updates the model.
132
+ * @returns {Promise} Resolves with additional data
132
133
  */
133
134
  _appendDataFromBackend: function() {
134
135
  var oRoles = this.oContextsModel.getProperty("/values");
@@ -143,6 +144,8 @@ function (
143
144
  * Proxy handler that is called if <code>updateStarted</code> events are fired.
144
145
  * Delegates to <code>_appendDataFromBackend</code> in case of a <code>Growing</code> event.
145
146
  * <code>Growing</code> events are triggered if the user clicks on <code>More</code> or scrolls down in the <code>Select Contexts</code> list.
147
+ * @param {sap.ui.base.Event} oEvent - Event object
148
+ * @returns {Promise} Resolves with additional data
146
149
  */
147
150
  _updateStartedHandler: function(oEvent) {
148
151
  if (oEvent.getParameter && oEvent.getParameter("reason") === "Growing") {
@@ -153,6 +156,8 @@ function (
153
156
 
154
157
  /**
155
158
  * Retrieves contexts from the back end, then opens a new <code>Select Contexts</code> dialog.
159
+ * @param {object} oDialog - The Select Contexts dialog
160
+ * @returns {Promise} Resolves as soon as the dialog is opened
156
161
  */
157
162
  _addContexts: function(oDialog) {
158
163
  oDialog.clearSelection();
@@ -164,6 +169,7 @@ function (
164
169
 
165
170
  /**
166
171
  * Proxy handler method that calls <code>_addContext</code> if the <code>Select Contexts</code> dialog is not yet opened.
172
+ * @returns {Promise} Resolves as soon as the dialog is opened
167
173
  */
168
174
  onAddContextsHandler: function() {
169
175
  if (!this._oDialog) {
@@ -176,6 +182,8 @@ function (
176
182
 
177
183
  /**
178
184
  * Retrieves filtered data from the back end, then updates the model.
185
+ * @param {sap.ui.base.Event} oEvent - Event object
186
+ * @returns {Promise<object>} The data
179
187
  */
180
188
  onSearch: function(oEvent) {
181
189
  oEvent.getSource().clearSelection();
@@ -195,6 +203,7 @@ function (
195
203
 
196
204
  /**
197
205
  * Removes a single selected context.
206
+ * @param {sap.ui.base.Event} oEvent - Event object
198
207
  */
199
208
  onDeleteContext: function(oEvent) {
200
209
  var aItems = this.oSelectedContextsModel.getProperty("/selected");
@@ -217,6 +226,7 @@ function (
217
226
 
218
227
  /**
219
228
  * Shows or removes error message depending on the input.
229
+ * @param {boolean} bShowError - Whether the error should be shown on the UI
220
230
  */
221
231
  showErrorMessage: function(bShowError) {
222
232
  var sErrorMessageId = this.getView().getId() + "--noSelectedRolesError";
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @namespace sap.ui.fl.write._internal.Storage
24
24
  * @since 1.67
25
- * @version 1.96.2
25
+ * @version 1.97.0
26
26
  * @private
27
27
  * @ui5-restricted sap.ui.fl
28
28
  */
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @namespace sap.ui.fl.write._internal.StorageFeaturesMerger
18
18
  * @since 1.70
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  * @private
21
21
  * @ui5-restricted sap.ui.fl.write._internal.Storage
22
22
  */