@openui5/sap.ui.core 1.102.1 → 1.103.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 (299) hide show
  1. package/package.json +1 -1
  2. package/src/jquery.sap.global.js +2 -2
  3. package/src/jquery.sap.properties.js +1 -1
  4. package/src/jquery.sap.resources.js +1 -1
  5. package/src/jquery.sap.script.js +1 -1
  6. package/src/jquery.sap.storage.js +3 -3
  7. package/src/sap/base/i18n/ResourceBundle.js +2 -2
  8. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  9. package/src/sap/base/util/restricted/_castArray.js +1 -1
  10. package/src/sap/base/util/restricted/_compact.js +1 -1
  11. package/src/sap/base/util/restricted/_curry.js +1 -1
  12. package/src/sap/base/util/restricted/_debounce.js +1 -1
  13. package/src/sap/base/util/restricted/_difference.js +1 -1
  14. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  15. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  16. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  17. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  18. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  19. package/src/sap/base/util/restricted/_flatten.js +1 -1
  20. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  21. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  22. package/src/sap/base/util/restricted/_intersection.js +1 -1
  23. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  24. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  25. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  26. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  27. package/src/sap/base/util/restricted/_isNil.js +1 -1
  28. package/src/sap/base/util/restricted/_max.js +1 -1
  29. package/src/sap/base/util/restricted/_merge.js +1 -1
  30. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  31. package/src/sap/base/util/restricted/_min.js +1 -1
  32. package/src/sap/base/util/restricted/_omit.js +1 -1
  33. package/src/sap/base/util/restricted/_pick.js +1 -1
  34. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  35. package/src/sap/base/util/restricted/_throttle.js +1 -1
  36. package/src/sap/base/util/restricted/_toArray.js +1 -1
  37. package/src/sap/base/util/restricted/_union.js +1 -1
  38. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  39. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  40. package/src/sap/base/util/restricted/_uniq.js +1 -1
  41. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  42. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  43. package/src/sap/base/util/restricted/_without.js +1 -1
  44. package/src/sap/base/util/restricted/_xor.js +1 -1
  45. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  46. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  47. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  48. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  49. package/src/sap/ui/Device.js +9 -3
  50. package/src/sap/ui/Global.js +4 -4
  51. package/src/sap/ui/VersionInfo.js +12 -6
  52. package/src/sap/ui/base/Event.js +1 -1
  53. package/src/sap/ui/base/EventProvider.js +2 -2
  54. package/src/sap/ui/base/ExpressionParser.js +2 -2
  55. package/src/sap/ui/base/Interface.js +1 -1
  56. package/src/sap/ui/base/ManagedObject.js +10 -8
  57. package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
  58. package/src/sap/ui/base/Metadata.js +1 -1
  59. package/src/sap/ui/base/Object.js +1 -1
  60. package/src/sap/ui/base/ObjectPool.js +1 -1
  61. package/src/sap/ui/base/SyncPromise.js +2 -0
  62. package/src/sap/ui/core/.library +1 -89
  63. package/src/sap/ui/core/AppCacheBuster.js +4 -4
  64. package/src/sap/ui/core/BusyIndicator.js +1 -1
  65. package/src/sap/ui/core/Component.js +4 -4
  66. package/src/sap/ui/core/ComponentContainer.js +1 -1
  67. package/src/sap/ui/core/ComponentMetadata.js +1 -1
  68. package/src/sap/ui/core/ComponentSupport.js +1 -1
  69. package/src/sap/ui/core/Configuration.js +1 -1
  70. package/src/sap/ui/core/Control.js +2 -2
  71. package/src/sap/ui/core/Core.js +8 -8
  72. package/src/sap/ui/core/CustomData.js +1 -1
  73. package/src/sap/ui/core/DeclarativeSupport.js +10 -9
  74. package/src/sap/ui/core/Element.js +12 -11
  75. package/src/sap/ui/core/ElementMetadata.js +1 -1
  76. package/src/sap/ui/core/EnabledPropagator.js +4 -2
  77. package/src/sap/ui/core/EventBus.js +1 -1
  78. package/src/sap/ui/core/FocusHandler.js +2 -2
  79. package/src/sap/ui/core/Fragment.js +17 -14
  80. package/src/sap/ui/core/HTML.js +2 -2
  81. package/src/sap/ui/core/History.js +1 -1
  82. package/src/sap/ui/core/Icon.js +6 -6
  83. package/src/sap/ui/core/IconPool.js +1 -3
  84. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  85. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  86. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  87. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  88. package/src/sap/ui/core/InvisibleText.js +1 -1
  89. package/src/sap/ui/core/Item.js +1 -1
  90. package/src/sap/ui/core/LabelEnablement.js +1 -1
  91. package/src/sap/ui/core/LayoutData.js +1 -1
  92. package/src/sap/ui/core/ListItem.js +1 -1
  93. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  94. package/src/sap/ui/core/Locale.js +28 -4
  95. package/src/sap/ui/core/LocaleData.js +1 -1
  96. package/src/sap/ui/core/Manifest.js +1 -1
  97. package/src/sap/ui/core/Message.js +1 -1
  98. package/src/sap/ui/core/Popup.js +4 -2
  99. package/src/sap/ui/core/RenderManager.js +1 -1
  100. package/src/sap/ui/core/Renderer.js +1 -1
  101. package/src/sap/ui/core/ResizeHandler.js +1 -1
  102. package/src/sap/ui/core/ScrollBar.js +1 -1
  103. package/src/sap/ui/core/SeparatorItem.js +1 -1
  104. package/src/sap/ui/core/ThemeCheck.js +7 -7
  105. package/src/sap/ui/core/Title.js +1 -1
  106. package/src/sap/ui/core/TooltipBase.js +1 -1
  107. package/src/sap/ui/core/UIArea.js +3 -2
  108. package/src/sap/ui/core/UIComponent.js +2 -2
  109. package/src/sap/ui/core/UIComponentMetadata.js +2 -2
  110. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  111. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  112. package/src/sap/ui/core/XMLComposite.js +1 -1
  113. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  114. package/src/sap/ui/core/XMLTemplateProcessor.js +3 -5
  115. package/src/sap/ui/core/cache/LRUPersistentCache.js +2 -1
  116. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  117. package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
  118. package/src/sap/ui/core/dnd/DragAndDrop.js +1 -1
  119. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  120. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  121. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  122. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  123. package/src/sap/ui/core/format/DateFormat.js +2 -2
  124. package/src/sap/ui/core/format/NumberFormat.js +3 -3
  125. package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
  126. package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
  127. package/src/sap/ui/core/library.js +3 -3
  128. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  129. package/src/sap/ui/core/message/Message.js +1 -1
  130. package/src/sap/ui/core/message/MessageManager.js +1 -1
  131. package/src/sap/ui/core/message/MessageParser.js +2 -2
  132. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  133. package/src/sap/ui/core/messagebundle_el.properties +2 -2
  134. package/src/sap/ui/core/messagebundle_it.properties +56 -56
  135. package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
  136. package/src/sap/ui/core/mvc/HTMLView.js +12 -12
  137. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  138. package/src/sap/ui/core/mvc/JSView.js +1 -1
  139. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  140. package/src/sap/ui/core/mvc/View.js +1 -1
  141. package/src/sap/ui/core/mvc/XMLView.js +1 -1
  142. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  143. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  144. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  145. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  146. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  147. package/src/sap/ui/core/routing/History.js +5 -3
  148. package/src/sap/ui/core/routing/Router.js +4 -2
  149. package/src/sap/ui/core/routing/Targets.js +2 -2
  150. package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
  151. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  152. package/src/sap/ui/core/service/Service.js +1 -1
  153. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  154. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  155. package/src/sap/ui/core/support/Plugin.js +1 -1
  156. package/src/sap/ui/core/support/RuleEngineOpaExtension.js +1 -1
  157. package/src/sap/ui/core/support/Support.js +1 -1
  158. package/src/sap/ui/core/support/ToolsAPI.js +4 -1
  159. package/src/sap/ui/core/support/plugins/ControlTree.js +3 -1
  160. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  161. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  162. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  163. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  164. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  165. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  166. package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
  167. package/src/sap/ui/core/theming/Parameters.js +1 -1
  168. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  169. package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
  170. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  171. package/src/sap/ui/core/tmpl/Template.js +4 -4
  172. package/src/sap/ui/core/tmpl/TemplateControl.js +2 -2
  173. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  174. package/src/sap/ui/core/util/Export.js +1 -1
  175. package/src/sap/ui/core/util/ExportCell.js +1 -1
  176. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  177. package/src/sap/ui/core/util/ExportRow.js +1 -1
  178. package/src/sap/ui/core/util/ExportType.js +1 -1
  179. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  180. package/src/sap/ui/core/util/File.js +1 -1
  181. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  182. package/src/sap/ui/core/util/MockServer.js +1 -1
  183. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  184. package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +2 -2
  185. package/src/sap/ui/core/util/XMLPreprocessor.js +1 -1
  186. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  187. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  188. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  189. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  190. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  191. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  192. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  193. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  194. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  195. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  196. package/src/sap/ui/debug/ControlTree.js +1 -1
  197. package/src/sap/ui/debug/DebugEnv.js +1 -1
  198. package/src/sap/ui/debug/PropertyList.js +1 -1
  199. package/src/sap/ui/dom/_ready.js +34 -0
  200. package/src/sap/ui/dom/containsOrEquals.js +2 -2
  201. package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
  202. package/src/sap/ui/dom/jquery/Focusable.js +1 -1
  203. package/src/sap/ui/dom/jquery/control.js +1 -1
  204. package/src/sap/ui/events/jquery/EventExtension.js +1 -1
  205. package/src/sap/ui/events/jquery/EventSimulation.js +1 -1
  206. package/src/sap/ui/model/ClientModel.js +1 -1
  207. package/src/sap/ui/model/CompositeDataState.js +1 -1
  208. package/src/sap/ui/model/CompositeType.js +1 -1
  209. package/src/sap/ui/model/DataState.js +1 -1
  210. package/src/sap/ui/model/MetaModel.js +1 -1
  211. package/src/sap/ui/model/Model.js +1 -1
  212. package/src/sap/ui/model/SelectionModel.js +1 -1
  213. package/src/sap/ui/model/SimpleType.js +1 -1
  214. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  215. package/src/sap/ui/model/TreeBindingAdapter.js +134 -0
  216. package/src/sap/ui/model/Type.js +1 -1
  217. package/src/sap/ui/model/json/JSONModel.js +1 -1
  218. package/src/sap/ui/model/message/MessageModel.js +1 -1
  219. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  220. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  221. package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
  222. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  223. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  224. package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +6 -0
  225. package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +279 -4
  226. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  227. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  228. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  229. package/src/sap/ui/model/odata/type/Date.js +1 -1
  230. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  231. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  232. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  233. package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
  234. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  235. package/src/sap/ui/model/odata/type/Double.js +1 -1
  236. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  237. package/src/sap/ui/model/odata/type/Int.js +1 -1
  238. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  239. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  240. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  241. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  242. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  243. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  244. package/src/sap/ui/model/odata/type/Single.js +1 -1
  245. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  246. package/src/sap/ui/model/odata/type/String.js +1 -1
  247. package/src/sap/ui/model/odata/type/Time.js +1 -1
  248. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  249. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  250. package/src/sap/ui/model/odata/v2/Context.js +1 -1
  251. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  252. package/src/sap/ui/model/odata/v2/ODataModel.js +1 -1
  253. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +36 -4
  254. package/src/sap/ui/model/odata/v4/Context.js +7 -10
  255. package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
  256. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
  257. package/src/sap/ui/model/odata/v4/ODataListBinding.js +29 -2
  258. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -5
  259. package/src/sap/ui/model/odata/v4/ODataModel.js +66 -3
  260. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
  261. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
  262. package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
  263. package/src/sap/ui/model/odata/v4/lib/_Cache.js +183 -20
  264. package/src/sap/ui/model/odata/v4/lib/_Helper.js +10 -3
  265. package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
  266. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -7
  267. package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
  268. package/src/sap/ui/model/resource/ResourceModel.js +1 -1
  269. package/src/sap/ui/model/type/Boolean.js +1 -1
  270. package/src/sap/ui/model/type/Currency.js +1 -1
  271. package/src/sap/ui/model/type/Date.js +1 -1
  272. package/src/sap/ui/model/type/DateInterval.js +1 -1
  273. package/src/sap/ui/model/type/DateTime.js +1 -1
  274. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  275. package/src/sap/ui/model/type/FileSize.js +1 -1
  276. package/src/sap/ui/model/type/Float.js +1 -1
  277. package/src/sap/ui/model/type/Integer.js +1 -1
  278. package/src/sap/ui/model/type/String.js +1 -1
  279. package/src/sap/ui/model/type/Time.js +1 -1
  280. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  281. package/src/sap/ui/model/type/Unit.js +1 -1
  282. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  283. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  284. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  285. package/src/sap/ui/security/FrameOptions.js +4 -2
  286. package/src/sap/ui/test/OpaBuilder.js +1 -1
  287. package/src/sap/ui/test/OpaPlugin.js +3 -3
  288. package/src/sap/ui/test/_ControlFinder.js +5 -4
  289. package/src/sap/ui/test/actions/Drag.js +2 -2
  290. package/src/sap/ui/test/actions/Drop.js +2 -2
  291. package/src/sap/ui/test/actions/EnterText.js +8 -8
  292. package/src/sap/ui/test/actions/Press.js +5 -5
  293. package/src/sap/ui/test/actions/Scroll.js +1 -1
  294. package/src/sap/ui/test/generic/TestBase.js +1 -1
  295. package/src/sap/ui/util/Mobile.js +59 -33
  296. package/src/sap/ui/util/Storage.js +2 -2
  297. package/src/sap/ui/util/openWindow.js +1 -1
  298. package/src/ui5loader.js +3 -3
  299. package/ui5.yaml +71 -0
@@ -13,7 +13,7 @@ sap.ui.define([
13
13
 
14
14
  return {
15
15
  /**
16
- * Creates a cache that requests the mininum and maximum values together with the first
16
+ * Creates a cache that requests the minimum and maximum values together with the first
17
17
  * request. Subsequent requests remain unchanged.
18
18
  *
19
19
  * @param {sap.ui.model.odata.v4.lib._Requestor} oRequestor
@@ -860,17 +860,13 @@ sap.ui.define([
860
860
  *
861
861
  * @param {string} sMetaPath
862
862
  * The meta path, e.g. "/SalesOrderList/SO_2_BP"
863
- * @param {boolean} [bAsName]
864
- * If <code>true</code>, the name of the type is delivered instead of the type itself. This
865
- * must be used when asking for a property type to avoid that the function logs an error
866
- * because there are no objects for primitive types like "Edm.Stream".
867
863
  * @returns {sap.ui.base.SyncPromise}
868
- * A promise that is resolved with the type at the given path or its name.
864
+ * A promise that is resolved with the type at the given path.
869
865
  *
870
866
  * @private
871
867
  */
872
- _Requestor.prototype.fetchTypeForPath = function (sMetaPath, bAsName) {
873
- return this.oModelInterface.fetchMetadata(sMetaPath + (bAsName ? "/$Type" : "/"));
868
+ _Requestor.prototype.fetchTypeForPath = function (sMetaPath) {
869
+ return this.oModelInterface.fetchMetadata(sMetaPath + "/");
874
870
  };
875
871
 
876
872
  /**
@@ -715,7 +715,7 @@ sap.ui.define([
715
715
 
716
716
  this.associations[sName] = this.association = {
717
717
  referentialConstraint : null,
718
- roles : {} // maps role name -> AssocationEnd
718
+ roles : {} // maps role name -> AssociationEnd
719
719
  };
720
720
  };
721
721
 
@@ -228,7 +228,7 @@ sap.ui.define([
228
228
  *
229
229
  * @extends sap.ui.model.Model
230
230
  * @public
231
- * @version 1.102.1
231
+ * @version 1.103.0
232
232
  */
233
233
  var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
234
234
 
@@ -19,7 +19,7 @@ sap.ui.define(['sap/ui/model/SimpleType', 'sap/ui/model/FormatException', 'sap/u
19
19
  * @extends sap.ui.model.SimpleType
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions]
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.model.CompositeType
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.102.1
35
+ * @version 1.103.0
36
36
  *
37
37
  * @public
38
38
  * @param {object} [oFormatOptions]
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.model.CompositeType
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.102.1
36
+ * @version 1.103.0
37
37
  *
38
38
  * @public
39
39
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.Date
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.DateInterval
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.model.SimpleType
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.102.1
27
+ * @version 1.103.0
28
28
  *
29
29
  * @public
30
30
  * @param {object} [oFormatOptions] formatting options. Supports the same options as {@link sap.ui.core.format.FileSizeFormat.getInstance FileSizeFormat.getInstance}
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.102.1
29
+ * @version 1.103.0
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.model.SimpleType
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.102.1
27
+ * @version 1.103.0
28
28
  *
29
29
  * @alias sap.ui.model.type.String
30
30
  * @param {object} [oFormatOptions]
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.Date
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.DateInterval
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.102.1
22
+ * @version 1.103.0
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  *
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.102.1
50
+ * @version 1.103.0
51
51
  *
52
52
  * @public
53
53
  * @param {object} [oFormatOptions]
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.model.ClientModel
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.102.1
50
+ * @version 1.103.0
51
51
  *
52
52
  * @param {object} oData either the URL where to load the XML from or an XML
53
53
  * @public
@@ -53,7 +53,7 @@ sap.ui.define(['sap/ui/core/Core', "sap/ui/VersionInfo"],
53
53
  * @namespace
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.102.1
56
+ * @version 1.103.0
57
57
  *
58
58
  * @public
59
59
  * @since 1.48.0
@@ -27,7 +27,7 @@ sap.ui.define([ 'sap/ui/core/Element', 'sap/ui/core/Control', 'sap/ui/core/Core'
27
27
  * @namespace
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.102.1
30
+ * @version 1.103.0
31
31
  *
32
32
  * @public
33
33
  * @since 1.48.0
@@ -76,6 +76,8 @@ sap.ui.define(['sap/base/Log'], function(Log) {
76
76
  var bOk = false;
77
77
  var bTrue = true;
78
78
  do {
79
+ // Accessing a property on the window to check whether we are within the same origin.
80
+ // In cross origin scenarios this will cause an exception which will be handled below.
79
81
  var test = oParentWindow.document.domain;
80
82
  if (oParentWindow == FrameOptions.__top) {
81
83
  if (test != undefined) {
@@ -85,12 +87,12 @@ sap.ui.define(['sap/base/Log'], function(Log) {
85
87
  }
86
88
  oParentWindow = oParentWindow.parent;
87
89
  // eslint-disable-next-line no-unmodified-loop-condition
88
- } while (bTrue); // TODO: refactor loop condition bTrue
90
+ } while (bTrue);
89
91
  if (bOk) {
90
92
  this._applyState(true, true);
91
93
  }
92
94
  } catch (e) {
93
- // access to the top window is not possible
95
+ // access to the top window (oParentWindow.document.domain) is not possible
94
96
  this._sendRequireMessage();
95
97
  }
96
98
 
@@ -1123,7 +1123,7 @@ sap.ui.define(
1123
1123
  * Creates a matcher function that returns an aggregation element of a control at a given index.
1124
1124
  * @param {string} sAggregationName the name of the aggregation that is used for matching
1125
1125
  * @param {int} iIndex the index within the aggregation
1126
- * @returns {function} the matcher function returns the item at a certain index in the aggregation or null if index not in range
1126
+ * @returns {function} the matcher function returns the item at a certain index in the aggregation or <code>undefined</code> if index not in range
1127
1127
  * @public
1128
1128
  * @static
1129
1129
  */
@@ -64,8 +64,8 @@ sap.ui.define([
64
64
  * Returns the view with a specific name. The result should be a unique view.
65
65
  * If there are multiple visible views with that name, none will be returned.
66
66
  *
67
- * @param {string} sViewName the name of the view
68
- * @returns {sap.ui.core.mvc.View} or undefined
67
+ * @param {string} sViewName Name of the view
68
+ * @returns {sap.ui.core.mvc.View|undefined} Unique view or <code>undefined</code>
69
69
  * @public
70
70
  */
71
71
  getView: function (sViewName) {
@@ -489,7 +489,7 @@ sap.ui.define([
489
489
  * @param {object} oOptions a map of match conditions. Must contain an id property
490
490
  * @param {string|string[]} [oOptions.id] required - ID to match. Can be string, regex or array
491
491
  * @param {string|function} [oOptions.controlType] optional - control type to match
492
- * @returns {sap.ui.core.Element|sap.ui.core.Element[]} all matching controls
492
+ * @returns {sap.ui.core.Element|sap.ui.core.Element[]|null} all matching controls
493
493
  * <ul>
494
494
  * <li>if a oOptions.id is a string, will return the single matching control or null if no controls match</li>
495
495
  * <li>otherwise, will return an array of matching controls, or an empty array, if no controls match</li>
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * Retrieves the property value of a control
119
119
  * @param {sap.ui.core.Control} oControl
120
120
  * @param {string} sProperty The property to look for
121
- * @returns {object} The control value for the property or null if no such property is defined
121
+ * @returns {object|null} The control value for the property or null if no such property is defined
122
122
  * @private
123
123
  */
124
124
  _ControlFinder._getControlProperty = function (oControl, sProperty) {
@@ -128,9 +128,10 @@ sap.ui.define([
128
128
  };
129
129
 
130
130
  /**
131
- * Retrieves the ID suffix of a DOM element
132
- * @param {object} oElement DOM element
133
- * @returns {string} ID suffix or undefined
131
+ * Retrieves the ID suffix of a DOM element that is part of the given UI5 control
132
+ * @param {Element} oElement DOM element
133
+ * @param {sap.ui.core.Control} oControl UI5 control
134
+ * @returns {string|false} ID suffix or false if the suffix can't be determined
134
135
  * @private
135
136
  */
136
137
  _ControlFinder._getDomElementIDSuffix = function (oElement, oControl) {
@@ -26,11 +26,11 @@ sap.ui.define([
26
26
  * [mSettings] Optional object with initial settings for the new instance
27
27
  * @extends sap.ui.test.actions.Action
28
28
  * @public
29
- * @name sap.ui.test.actions.Drag
29
+ * @alias sap.ui.test.actions.Drag
30
30
  * @author SAP SE
31
31
  * @since 1.76
32
32
  */
33
- var Drag = Action.extend("sap.ui.test.actions.Drag", {
33
+ var Drag = Action.extend("sap.ui.test.actions.Drag", /** @lends sap.ui.test.actions.Drag.prototype */ {
34
34
 
35
35
  metadata : {
36
36
  publicMethods : [ "executeOn" ]
@@ -33,11 +33,11 @@ sap.ui.define([
33
33
  * [mSettings] Optional object with initial settings for the new instance
34
34
  * @extends sap.ui.test.actions.Action
35
35
  * @public
36
- * @name sap.ui.test.actions.Drop
36
+ * @alias sap.ui.test.actions.Drop
37
37
  * @author SAP SE
38
38
  * @since 1.76
39
39
  */
40
- var Drop = Action.extend("sap.ui.test.actions.Drop", {
40
+ var Drop = Action.extend("sap.ui.test.actions.Drop", /** @lends sap.ui.test.actions.Drop.prototype */ {
41
41
 
42
42
  metadata : {
43
43
  properties: {
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * [mSettings] Optional object with initial settings for the new instance
32
32
  * @extends sap.ui.test.actions.Action
33
33
  * @public
34
- * @name sap.ui.test.actions.EnterText
34
+ * @alias sap.ui.test.actions.EnterText
35
35
  * @author SAP SE
36
36
  * @since 1.34
37
37
  */
@@ -161,6 +161,9 @@ sap.ui.define([
161
161
  * A map of ID suffixes for controls that require a special DOM reference for
162
162
  * <code>EnterText</code> interaction.
163
163
  *
164
+ * You can specify an ID suffix for specific controls in this map.
165
+ * The enter text action will be triggered on the DOM element with the specified suffix.
166
+ *
164
167
  * Here is a sublist of supported controls and their <code>EnterText</code> control adapter:
165
168
  * <ul>
166
169
  * <li>sap.m.StepInput - internal Input</li>
@@ -179,8 +182,8 @@ sap.ui.define([
179
182
  * </code>
180
183
  * </pre>
181
184
  *
182
- * It contains two input tags in its dom.
183
- * When you render your control it creates the following dom:
185
+ * It contains two input tags in its DOM.
186
+ * When you render your control it creates the following DOM:
184
187
  *
185
188
  *
186
189
  * <pre>
@@ -200,17 +203,14 @@ sap.ui.define([
200
203
  *
201
204
  * // Example usage
202
205
  * new EnterText(); // executes on second Input since it is set as default
203
- * new EnterText({ idSuffix: "firstInput"}); // executes on the first input has to be the same as the last part of the id in the dom
206
+ * new EnterText({ idSuffix: "firstInput"}); // executes on the first input has to be the same as the last part of the ID in the DOM
204
207
  * </code>
205
208
  * </pre>
206
209
  *
207
210
  *
208
211
  * @public
209
212
  * @static
210
- * @name sap.ui.test.actions.EnterText.controlAdapters
211
- * You can specify an Id suffix for specific controls in this map.
212
- * The enter text action will be triggered on the DOM element with the specified suffix
213
- * @type map
213
+ * @type Object<string,(string|function(sap.ui.core.Control):string)>
214
214
  */
215
215
  EnterText.controlAdapters = {};
216
216
  EnterText.controlAdapters["sap.m.StepInput"] = "input-inner"; // focusDomRef: <input>
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * [mSettings] Optional object with initial settings for the new instance
36
36
  * @extends sap.ui.test.actions.Action
37
37
  * @public
38
- * @name sap.ui.test.actions.Press
38
+ * @alias sap.ui.test.actions.Press
39
39
  * @author SAP SE
40
40
  * @since 1.34
41
41
  */
@@ -159,6 +159,9 @@ sap.ui.define([
159
159
  * A map of ID suffixes for controls that require a special DOM reference for
160
160
  * <code>Press</code> interaction.
161
161
  *
162
+ * You can specify an ID suffix for specific controls in this map.
163
+ * The press action will be triggered on the DOM element with the specified suffix.
164
+ *
162
165
  * Here is a sublist of supported controls and their <code>Press</code> control adapter:
163
166
  * <ul>
164
167
  * <li>sap.m.ComboBox - Arrow button</li>
@@ -215,10 +218,7 @@ sap.ui.define([
215
218
  *
216
219
  * @public
217
220
  * @static
218
- * @name sap.ui.test.actions.Press.controlAdapters
219
- * You can specify an Id suffix for specific controls in this map.
220
- * The press action will be triggered on the DOM element with the specified suffix
221
- * @type map
221
+ * @type Object<string,(string|function(sap.ui.core.Control):string)>
222
222
  */
223
223
  Press.controlAdapters = {};
224
224
  Press.controlAdapters["sap.m.Input"] = "vhi"; // focusDomRef: <input>
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * [mSettings] Optional object with initial settings for the new instance
24
24
  * @extends sap.ui.test.actions.Action
25
25
  * @public
26
- * @name sap.ui.test.actions.Scroll
26
+ * @alias sap.ui.test.actions.Scroll
27
27
  * @author SAP SE
28
28
  * @since 1.90
29
29
  */
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.base.Object
25
25
  * @abstract
26
26
  * @author SAP SE
27
- * @version 1.102.1
27
+ * @version 1.103.0
28
28
  * @since 1.100
29
29
  */
30
30
  return BaseObject.extend("sap.ui.test.generic.TestBase", {
@@ -7,7 +7,7 @@
7
7
  * IMPORTANT: This is a private module, its API must not be used and is subject to change.
8
8
  * Code other than the OpenUI5 libraries must not introduce dependencies to this module.
9
9
  */
10
- sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], function(Device, Log, jQuery) {
10
+ sap.ui.define(['sap/ui/Device', 'sap/base/Log', 'sap/base/util/extend', 'sap/ui/dom/_ready'], function(Device, Log, extend, _ready) {
11
11
  "use strict";
12
12
 
13
13
  /**
@@ -20,6 +20,25 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
20
20
 
21
21
  var _bInitTriggered = false;
22
22
 
23
+ function addElementToHead(sTag, mAttributes) {
24
+ mAttributes = mAttributes || {};
25
+
26
+ var oTag = document.createElement(sTag);
27
+ for (var key in mAttributes) {
28
+ if (mAttributes[key]) {
29
+ oTag.setAttribute(key, mAttributes[key]);
30
+ }
31
+ }
32
+ document.head.appendChild(oTag);
33
+ }
34
+
35
+ function removeFromHead(sSelector) {
36
+ var aElements = document.head.querySelectorAll(sSelector);
37
+ for (var i = 0, l = aElements.length; i < l; i++) {
38
+ aElements[i].remove(aElements[i]);
39
+ }
40
+ }
41
+
23
42
  /**
24
43
  * Does some basic modifications to the HTML page that make it more suitable for mobile apps.
25
44
  * Only the first call to this method is executed, subsequent calls are ignored. Note that this method is also
@@ -72,12 +91,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
72
91
  * @public
73
92
  */
74
93
  Mobile.init = function(options) {
75
- var $head = jQuery("head");
76
-
77
94
  if (!_bInitTriggered) { // only one initialization per HTML page
78
95
  _bInitTriggered = true;
79
96
 
80
- options = jQuery.extend({}, { // merge in the default values
97
+ options = extend({}, { // merge in the default values
81
98
  viewport: true,
82
99
  statusBar: "default",
83
100
  hideBrowser: true,
@@ -91,10 +108,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
91
108
  // en-/disable automatic link generation for phone numbers
92
109
  if (options.preventPhoneNumberDetection) {
93
110
  // iOS specific meta tag
94
- $head.append(jQuery('<meta name="format-detection" content="telephone=no">')); // this only works
95
- // for all DOM
96
- // created
97
- // afterwards
111
+ addElementToHead("meta", {
112
+ name: "format-detection",
113
+ content: "telephone=no"
114
+ });// this only works for all DOM created afterwards
98
115
  }
99
116
 
100
117
  // initialize viewport
@@ -121,7 +138,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
121
138
  sMeta += ", maximum-scale=1.0, user-scalable=no";
122
139
  }
123
140
 
124
- $head.append(jQuery('<meta name="viewport" content="' + sMeta + '">'));
141
+ addElementToHead("meta", {
142
+ name: "viewport",
143
+ content: sMeta
144
+ });
125
145
 
126
146
  // Update Device API resize info, which is necessary in some scenarios after setting the viewport info
127
147
  if ((iInnerHeightBefore !== window.innerHeight || iInnerWidthBefore !== window.innerWidth) && Device.resize._update){
@@ -130,13 +150,13 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
130
150
  }
131
151
 
132
152
  if (options.useFullScreenHeight) {
133
- jQuery(function() {
153
+ _ready().then(function() {
134
154
  document.documentElement.style.height = "100%"; // set html root tag to 100% height
135
155
  });
136
156
  }
137
157
 
138
158
  if (options.preventScroll && (Device.os.ios || (Device.os.mac && Device.browser.mobile))) {
139
- jQuery(function() {
159
+ _ready().then(function() {
140
160
  document.documentElement.style.position = "fixed";
141
161
  document.documentElement.style.overflow = "hidden";
142
162
  document.documentElement.style.height = "100%";
@@ -155,7 +175,7 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
155
175
  favicon: options.homeIcon
156
176
  };
157
177
  } else {
158
- oIcons = jQuery.extend({}, options.homeIcon);
178
+ oIcons = Object.assign({}, options.homeIcon);
159
179
  oIcons.phone = options.homeIcon.phone || options.homeIcon.icon || oIcons.favicon;
160
180
  oIcons.favicon = oIcons.favicon || options.homeIcon.icon || options.homeIcon.phone;
161
181
  oIcons.icon = undefined;
@@ -226,8 +246,7 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
226
246
  return;
227
247
  }
228
248
 
229
- var $head = jQuery("head"),
230
- precomposed = oIcons.precomposed ? "-precomposed" : "",
249
+ var precomposed = oIcons.precomposed ? "-precomposed" : "",
231
250
  getBestFallback = function(res) {
232
251
  return oIcons[res] || oIcons['tablet@2'] || oIcons['phone@2'] || oIcons['phone'] || oIcons['tablet']; // fallback logic
233
252
  },
@@ -241,30 +260,31 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
241
260
  // desktop icon
242
261
  if (oIcons["favicon"]) {
243
262
  // remove any other favicons
244
- var $fav = $head.find("[rel=icon]");
245
- $fav.each(function() {
246
- if (this.rel === "icon") {
247
- jQuery(this).remove();
248
- }
249
- });
263
+ removeFromHead("link[rel=icon]");
250
264
 
251
265
  // create favicon
252
- $head.append(jQuery('<link rel="icon" href="' + oIcons["favicon"] + '">'));
266
+ addElementToHead("link", {
267
+ rel: "icon",
268
+ href: oIcons["favicon"]
269
+ });
253
270
  }
254
271
 
255
272
  // mobile home screen icons
256
273
  if (getBestFallback("phone")) {
257
274
 
258
275
  // if any home icon is given remove old ones
259
- $head.find("[rel=apple-touch-icon]").remove();
260
- $head.find("[rel=apple-touch-icon-precomposed]").remove();
276
+ removeFromHead("[rel=apple-touch-icon]");
277
+ removeFromHead("[rel=apple-touch-icon-precomposed]");
261
278
  }
262
279
 
263
280
  for (var platform in mSizes) {
264
281
  oIcons[platform] = oIcons[platform] || getBestFallback(platform);
265
282
  if (oIcons[platform]) {
266
- var size = mSizes[platform];
267
- $head.append(jQuery('<link rel="apple-touch-icon' + precomposed + '" ' + (size ? 'sizes="' + size + '"' : "") + ' href="' + oIcons[platform] + '">'));
283
+ addElementToHead("link", {
284
+ rel: "apple-touch-icon" + precomposed,
285
+ href: oIcons[platform],
286
+ sizes: mSizes[platform]
287
+ });
268
288
  }
269
289
  }
270
290
  };
@@ -293,22 +313,28 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
293
313
  return;
294
314
  }
295
315
 
296
- var $Head = jQuery("head"),
297
- aPrefixes = ["", "apple"],
316
+ var aPrefixes = ["", "apple"],
298
317
  sNameBase = "mobile-web-app-capable",
299
318
  sContent = bValue ? "yes" : "no",
300
- i, sName, $WebAppMeta;
319
+ i, sName, oWebAppMetaTag;
301
320
 
302
321
  for (i = 0; i < aPrefixes.length; i++) {
303
322
  sName = aPrefixes[i] ? (aPrefixes[i] + "-" + sNameBase) : sNameBase;
304
- $WebAppMeta = $Head.children('meta[name="' + sName + '"]');
305
- if ($WebAppMeta.length) {
306
- $WebAppMeta.attr("content", sContent);
323
+ oWebAppMetaTag = document.head.querySelector('meta[name="' + sName + '"]');
324
+
325
+ if (oWebAppMetaTag) {
326
+ oWebAppMetaTag.setAttribute("content", sContent);
307
327
  } else {
308
- $Head.append(jQuery('<meta name="' + sName + '" content="' + sContent + '">'));
328
+ addElementToHead("meta", {
329
+ name: sName,
330
+ content: sContent
331
+ });
309
332
  if (aPrefixes[i] === "apple") {
310
333
  // iOS specific meta tag should be added only first time the corresponding apple-mobile-web-app-capable is added
311
- $Head.append(jQuery('<meta name="apple-mobile-web-app-status-bar-style" content="' + (sAppleStatusBarStyle ? sAppleStatusBarStyle : 'default') + '">'));
334
+ addElementToHead("meta", {
335
+ name: "apple-mobile-web-app-status-bar-style",
336
+ content: sAppleStatusBarStyle ? sAppleStatusBarStyle : 'default'
337
+ });
312
338
  }
313
339
  }
314
340
  }
@@ -142,7 +142,7 @@ sap.ui.define(["sap/base/assert"], function (assert) {
142
142
  * Retrieves data item for a specific key.
143
143
  *
144
144
  * @param {string} sKey key to retrieve
145
- * @return {object|null} keys value or null
145
+ * @returns {object|null} key's value or <code>null</code>
146
146
  * @public
147
147
  * @function
148
148
  * @name module:sap/ui/util/Storage#get
@@ -250,7 +250,7 @@ sap.ui.define(["sap/base/assert"], function (assert) {
250
250
  *
251
251
  * @enum {string}
252
252
  * @public
253
- * @version 1.102.1
253
+ * @version 1.103.0
254
254
  */
255
255
  Storage.Type = {
256
256
  /**
@@ -14,7 +14,7 @@ sap.ui.define([], function() {
14
14
  *
15
15
  * @param {sap.ui.core.URI} sUrl URL of a document that should be loaded in the new window
16
16
  * @param {string} sWindowName Name of the new window
17
- * @returns {Window|null} The newly returned window object or null
17
+ * @returns {Window|null} The newly returned window object or <code>null</code>
18
18
  * @private
19
19
  * @ui5-restricted
20
20
  * @alias module:sap/ui/util/openWindow