@openui5/sap.ui.core 1.102.2 → 1.104.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 (374) hide show
  1. package/.reuse/dep5 +17 -0
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +35 -2
  4. package/package.json +1 -1
  5. package/src/jquery.sap.global.js +2 -2
  6. package/src/jquery.sap.properties.js +1 -1
  7. package/src/jquery.sap.resources.js +1 -1
  8. package/src/jquery.sap.script.js +1 -1
  9. package/src/jquery.sap.storage.js +3 -3
  10. package/src/sap/base/i18n/ResourceBundle.js +2 -2
  11. package/src/sap/base/util/LoaderExtensions.js +69 -61
  12. package/src/sap/base/util/fetch.js +230 -0
  13. package/src/sap/base/util/mixedFetch.js +69 -0
  14. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  15. package/src/sap/base/util/restricted/_castArray.js +1 -1
  16. package/src/sap/base/util/restricted/_compact.js +1 -1
  17. package/src/sap/base/util/restricted/_curry.js +1 -1
  18. package/src/sap/base/util/restricted/_debounce.js +1 -1
  19. package/src/sap/base/util/restricted/_difference.js +1 -1
  20. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  21. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  22. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  23. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  24. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  25. package/src/sap/base/util/restricted/_flatten.js +1 -1
  26. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  27. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  28. package/src/sap/base/util/restricted/_intersection.js +1 -1
  29. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  30. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  31. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  32. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  33. package/src/sap/base/util/restricted/_isNil.js +1 -1
  34. package/src/sap/base/util/restricted/_max.js +1 -1
  35. package/src/sap/base/util/restricted/_merge.js +1 -1
  36. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  37. package/src/sap/base/util/restricted/_min.js +1 -1
  38. package/src/sap/base/util/restricted/_omit.js +1 -1
  39. package/src/sap/base/util/restricted/_pick.js +1 -1
  40. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  41. package/src/sap/base/util/restricted/_throttle.js +1 -1
  42. package/src/sap/base/util/restricted/_toArray.js +1 -1
  43. package/src/sap/base/util/restricted/_union.js +1 -1
  44. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  45. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  46. package/src/sap/base/util/restricted/_uniq.js +1 -1
  47. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  48. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  49. package/src/sap/base/util/restricted/_without.js +1 -1
  50. package/src/sap/base/util/restricted/_xor.js +1 -1
  51. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  52. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  53. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  54. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  55. package/src/sap/base/util/syncFetch.js +73 -0
  56. package/src/sap/ui/Device.js +9 -3
  57. package/src/sap/ui/Global.js +4 -4
  58. package/src/sap/ui/VersionInfo.js +12 -6
  59. package/src/sap/ui/base/Event.js +1 -1
  60. package/src/sap/ui/base/EventProvider.js +2 -2
  61. package/src/sap/ui/base/ExpressionParser.js +2 -2
  62. package/src/sap/ui/base/Interface.js +1 -1
  63. package/src/sap/ui/base/ManagedObject.js +10 -8
  64. package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
  65. package/src/sap/ui/base/Metadata.js +1 -1
  66. package/src/sap/ui/base/Object.js +1 -1
  67. package/src/sap/ui/base/ObjectPool.js +1 -1
  68. package/src/sap/ui/base/SyncPromise.js +2 -0
  69. package/src/sap/ui/core/.library +17 -90
  70. package/src/sap/ui/core/AppCacheBuster.js +69 -55
  71. package/src/sap/ui/core/BusyIndicator.js +1 -1
  72. package/src/sap/ui/core/Component.js +51 -24
  73. package/src/sap/ui/core/ComponentContainer.js +1 -1
  74. package/src/sap/ui/core/ComponentMetadata.js +2 -2
  75. package/src/sap/ui/core/ComponentSupport.js +1 -1
  76. package/src/sap/ui/core/Configuration.js +45 -22
  77. package/src/sap/ui/core/Control.js +2 -2
  78. package/src/sap/ui/core/Core.js +56 -68
  79. package/src/sap/ui/core/CustomData.js +1 -1
  80. package/src/sap/ui/core/DeclarativeSupport.js +10 -9
  81. package/src/sap/ui/core/Element.js +20 -11
  82. package/src/sap/ui/core/ElementMetadata.js +1 -1
  83. package/src/sap/ui/core/EnabledPropagator.js +4 -2
  84. package/src/sap/ui/core/EventBus.js +1 -1
  85. package/src/sap/ui/core/FocusHandler.js +58 -35
  86. package/src/sap/ui/core/Fragment.js +17 -14
  87. package/src/sap/ui/core/HTML.js +2 -2
  88. package/src/sap/ui/core/History.js +1 -1
  89. package/src/sap/ui/core/Icon.js +6 -6
  90. package/src/sap/ui/core/IconPool.js +1 -3
  91. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  92. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  93. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  94. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  95. package/src/sap/ui/core/InvisibleText.js +4 -1
  96. package/src/sap/ui/core/Item.js +1 -1
  97. package/src/sap/ui/core/LabelEnablement.js +1 -1
  98. package/src/sap/ui/core/LayoutData.js +1 -1
  99. package/src/sap/ui/core/ListItem.js +1 -1
  100. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  101. package/src/sap/ui/core/Locale.js +28 -4
  102. package/src/sap/ui/core/LocaleData.js +3 -45
  103. package/src/sap/ui/core/Manifest.js +1 -1
  104. package/src/sap/ui/core/Message.js +1 -1
  105. package/src/sap/ui/core/Popup.js +4 -2
  106. package/src/sap/ui/core/RenderManager.js +11 -21
  107. package/src/sap/ui/core/Renderer.js +1 -1
  108. package/src/sap/ui/core/ResizeHandler.js +22 -43
  109. package/src/sap/ui/core/ScrollBar.js +1 -1
  110. package/src/sap/ui/core/SeparatorItem.js +1 -1
  111. package/src/sap/ui/core/ThemeCheck.js +7 -7
  112. package/src/sap/ui/core/Title.js +1 -1
  113. package/src/sap/ui/core/TooltipBase.js +1 -1
  114. package/src/sap/ui/core/UIArea.js +8 -5
  115. package/src/sap/ui/core/UIComponent.js +2 -2
  116. package/src/sap/ui/core/UIComponentMetadata.js +2 -2
  117. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  118. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  119. package/src/sap/ui/core/XMLComposite.js +1 -1
  120. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  121. package/src/sap/ui/core/XMLTemplateProcessor.js +3 -5
  122. package/src/sap/ui/core/_IconRegistry.js +66 -55
  123. package/src/sap/ui/core/cache/CacheManager.js +18 -14
  124. package/src/sap/ui/core/cache/CacheManagerNOP.js +5 -2
  125. package/src/sap/ui/core/cache/LRUPersistentCache.js +17 -9
  126. package/src/sap/ui/core/cldr/en.json +0 -1
  127. package/src/sap/ui/core/date/Buddhist.js +15 -13
  128. package/src/sap/ui/core/date/Japanese.js +0 -6
  129. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  130. package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
  131. package/src/sap/ui/core/dnd/DragAndDrop.js +1 -1
  132. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  133. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  134. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  135. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  136. package/src/sap/ui/core/format/DateFormat.js +2 -2
  137. package/src/sap/ui/core/format/NumberFormat.js +3 -3
  138. package/src/sap/ui/core/format/TimezoneUtil.js +2 -2
  139. package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
  140. package/src/sap/ui/core/library.js +3 -3
  141. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  142. package/src/sap/ui/core/message/Message.js +1 -1
  143. package/src/sap/ui/core/message/MessageManager.js +1 -1
  144. package/src/sap/ui/core/message/MessageParser.js +2 -2
  145. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  146. package/src/sap/ui/core/messagebundle_ar.properties +54 -53
  147. package/src/sap/ui/core/messagebundle_bg.properties +54 -53
  148. package/src/sap/ui/core/messagebundle_ca.properties +28 -27
  149. package/src/sap/ui/core/messagebundle_cs.properties +37 -36
  150. package/src/sap/ui/core/messagebundle_cy.properties +56 -55
  151. package/src/sap/ui/core/messagebundle_da.properties +53 -52
  152. package/src/sap/ui/core/messagebundle_de.properties +54 -53
  153. package/src/sap/ui/core/messagebundle_el.properties +47 -46
  154. package/src/sap/ui/core/messagebundle_en_US_sappsd.properties +1 -0
  155. package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +1 -0
  156. package/src/sap/ui/core/messagebundle_en_US_saptrc.properties +1 -0
  157. package/src/sap/ui/core/messagebundle_es.properties +42 -41
  158. package/src/sap/ui/core/messagebundle_es_MX.properties +54 -53
  159. package/src/sap/ui/core/messagebundle_et.properties +51 -50
  160. package/src/sap/ui/core/messagebundle_fi.properties +48 -47
  161. package/src/sap/ui/core/messagebundle_fr.properties +36 -35
  162. package/src/sap/ui/core/messagebundle_fr_CA.properties +21 -20
  163. package/src/sap/ui/core/messagebundle_hi.properties +41 -40
  164. package/src/sap/ui/core/messagebundle_hr.properties +55 -54
  165. package/src/sap/ui/core/messagebundle_hu.properties +55 -54
  166. package/src/sap/ui/core/messagebundle_id.properties +55 -54
  167. package/src/sap/ui/core/messagebundle_it.properties +58 -57
  168. package/src/sap/ui/core/messagebundle_iw.properties +55 -54
  169. package/src/sap/ui/core/messagebundle_ja.properties +48 -47
  170. package/src/sap/ui/core/messagebundle_kk.properties +41 -40
  171. package/src/sap/ui/core/messagebundle_ko.properties +17 -16
  172. package/src/sap/ui/core/messagebundle_lt.properties +55 -54
  173. package/src/sap/ui/core/messagebundle_lv.properties +55 -54
  174. package/src/sap/ui/core/messagebundle_ms.properties +52 -51
  175. package/src/sap/ui/core/messagebundle_nl.properties +53 -52
  176. package/src/sap/ui/core/messagebundle_no.properties +53 -52
  177. package/src/sap/ui/core/messagebundle_pl.properties +52 -51
  178. package/src/sap/ui/core/messagebundle_pt.properties +54 -53
  179. package/src/sap/ui/core/messagebundle_pt_PT.properties +55 -54
  180. package/src/sap/ui/core/messagebundle_ro.properties +56 -55
  181. package/src/sap/ui/core/messagebundle_ru.properties +52 -51
  182. package/src/sap/ui/core/messagebundle_sh.properties +56 -55
  183. package/src/sap/ui/core/messagebundle_sk.properties +54 -53
  184. package/src/sap/ui/core/messagebundle_sl.properties +56 -55
  185. package/src/sap/ui/core/messagebundle_sv.properties +52 -51
  186. package/src/sap/ui/core/messagebundle_th.properties +25 -24
  187. package/src/sap/ui/core/messagebundle_tr.properties +56 -55
  188. package/src/sap/ui/core/messagebundle_uk.properties +55 -54
  189. package/src/sap/ui/core/messagebundle_vi.properties +55 -54
  190. package/src/sap/ui/core/messagebundle_zh_CN.properties +55 -54
  191. package/src/sap/ui/core/messagebundle_zh_TW.properties +55 -54
  192. package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
  193. package/src/sap/ui/core/mvc/HTMLView.js +12 -12
  194. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  195. package/src/sap/ui/core/mvc/JSView.js +1 -1
  196. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  197. package/src/sap/ui/core/mvc/View.js +1 -1
  198. package/src/sap/ui/core/mvc/XMLView.js +1 -2
  199. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  200. package/src/sap/ui/core/plugin/LessSupport.js +16 -14
  201. package/src/sap/ui/core/plugin/TemplatingSupport.js +2 -1
  202. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  203. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  204. package/src/sap/ui/core/routing/History.js +5 -3
  205. package/src/sap/ui/core/routing/Router.js +4 -2
  206. package/src/sap/ui/core/routing/Targets.js +2 -2
  207. package/src/sap/ui/core/routing/async/TargetCache.js +4 -0
  208. package/src/sap/ui/core/rules/Config.support.js +1 -1
  209. package/src/sap/ui/core/rules/View.support.js +11 -4
  210. package/src/sap/ui/core/search/OpenSearchProvider.js +24 -11
  211. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  212. package/src/sap/ui/core/service/Service.js +1 -1
  213. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  214. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  215. package/src/sap/ui/core/support/Plugin.js +1 -1
  216. package/src/sap/ui/core/support/RuleEngineOpaExtension.js +1 -1
  217. package/src/sap/ui/core/support/Support.js +2 -2
  218. package/src/sap/ui/core/support/ToolsAPI.js +4 -1
  219. package/src/sap/ui/core/support/plugins/ControlTree.js +3 -1
  220. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  221. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  222. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  223. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  224. package/src/sap/ui/core/support/plugins/TechInfo.js +46 -33
  225. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  226. package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
  227. package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +1 -1
  228. package/src/sap/ui/core/themes/base/base.less +26 -26
  229. package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
  230. package/src/sap/ui/core/theming/Parameters.js +46 -40
  231. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  232. package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
  233. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  234. package/src/sap/ui/core/tmpl/Template.js +5 -5
  235. package/src/sap/ui/core/tmpl/TemplateControl.js +2 -2
  236. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  237. package/src/sap/ui/core/util/Export.js +1 -1
  238. package/src/sap/ui/core/util/ExportCell.js +1 -1
  239. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  240. package/src/sap/ui/core/util/ExportRow.js +1 -1
  241. package/src/sap/ui/core/util/ExportType.js +1 -1
  242. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  243. package/src/sap/ui/core/util/File.js +1 -1
  244. package/src/sap/ui/core/util/LibraryInfo.js +61 -42
  245. package/src/sap/ui/core/util/MockServer.js +1 -1
  246. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  247. package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +2 -2
  248. package/src/sap/ui/core/util/XMLPreprocessor.js +2 -2
  249. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  250. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  251. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  252. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  253. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  254. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  255. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  256. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  257. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  258. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  259. package/src/sap/ui/debug/ControlTree.js +1 -1
  260. package/src/sap/ui/debug/DebugEnv.js +1 -1
  261. package/src/sap/ui/debug/PropertyList.js +19 -9
  262. package/src/sap/ui/dom/_ready.js +34 -0
  263. package/src/sap/ui/dom/containsOrEquals.js +2 -2
  264. package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
  265. package/src/sap/ui/dom/jquery/Focusable.js +1 -1
  266. package/src/sap/ui/dom/jquery/control.js +1 -1
  267. package/src/sap/ui/events/jquery/EventExtension.js +1 -1
  268. package/src/sap/ui/events/jquery/EventSimulation.js +1 -1
  269. package/src/sap/ui/model/ClientModel.js +1 -1
  270. package/src/sap/ui/model/CompositeDataState.js +1 -1
  271. package/src/sap/ui/model/CompositeType.js +1 -1
  272. package/src/sap/ui/model/DataState.js +2 -2
  273. package/src/sap/ui/model/MetaModel.js +1 -1
  274. package/src/sap/ui/model/Model.js +1 -1
  275. package/src/sap/ui/model/SelectionModel.js +1 -1
  276. package/src/sap/ui/model/SimpleType.js +1 -1
  277. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  278. package/src/sap/ui/model/TreeBindingAdapter.js +134 -0
  279. package/src/sap/ui/model/Type.js +1 -1
  280. package/src/sap/ui/model/analytics/odata4analytics.js +2 -2
  281. package/src/sap/ui/model/json/JSONModel.js +1 -1
  282. package/src/sap/ui/model/message/MessageModel.js +1 -1
  283. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  284. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  285. package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
  286. package/src/sap/ui/model/odata/ODataMetadata.js +6 -3
  287. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  288. package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +6 -0
  289. package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +407 -91
  290. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  291. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  292. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  293. package/src/sap/ui/model/odata/type/Date.js +1 -1
  294. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  295. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  296. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  297. package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
  298. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  299. package/src/sap/ui/model/odata/type/Double.js +1 -1
  300. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  301. package/src/sap/ui/model/odata/type/Int.js +1 -1
  302. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  303. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  304. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  305. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  306. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  307. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  308. package/src/sap/ui/model/odata/type/Single.js +1 -1
  309. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  310. package/src/sap/ui/model/odata/type/String.js +1 -1
  311. package/src/sap/ui/model/odata/type/Time.js +1 -1
  312. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  313. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  314. package/src/sap/ui/model/odata/v2/Context.js +1 -1
  315. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  316. package/src/sap/ui/model/odata/v2/ODataContextBinding.js +4 -1
  317. package/src/sap/ui/model/odata/v2/ODataModel.js +112 -104
  318. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +50 -5
  319. package/src/sap/ui/model/odata/v4/Context.js +9 -10
  320. package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
  321. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
  322. package/src/sap/ui/model/odata/v4/ODataListBinding.js +30 -2
  323. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -5
  324. package/src/sap/ui/model/odata/v4/ODataModel.js +66 -3
  325. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
  326. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
  327. package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
  328. package/src/sap/ui/model/odata/v4/lib/_Cache.js +203 -30
  329. package/src/sap/ui/model/odata/v4/lib/_Helper.js +52 -3
  330. package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
  331. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -7
  332. package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
  333. package/src/sap/ui/model/resource/ResourceModel.js +1 -1
  334. package/src/sap/ui/model/type/Boolean.js +1 -1
  335. package/src/sap/ui/model/type/Currency.js +1 -1
  336. package/src/sap/ui/model/type/Date.js +1 -1
  337. package/src/sap/ui/model/type/DateInterval.js +1 -1
  338. package/src/sap/ui/model/type/DateTime.js +1 -1
  339. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  340. package/src/sap/ui/model/type/FileSize.js +1 -1
  341. package/src/sap/ui/model/type/Float.js +1 -1
  342. package/src/sap/ui/model/type/Integer.js +1 -1
  343. package/src/sap/ui/model/type/String.js +1 -1
  344. package/src/sap/ui/model/type/Time.js +1 -1
  345. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  346. package/src/sap/ui/model/type/Unit.js +1 -1
  347. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  348. package/src/sap/ui/qunit/sinon-qunit-bridge.js +1 -1
  349. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  350. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  351. package/src/sap/ui/security/FrameOptions.js +4 -2
  352. package/src/sap/ui/test/Opa5.js +1 -1
  353. package/src/sap/ui/test/OpaBuilder.js +1 -1
  354. package/src/sap/ui/test/OpaPlugin.js +3 -3
  355. package/src/sap/ui/test/TestUtils.js +35 -2
  356. package/src/sap/ui/test/_ControlFinder.js +5 -4
  357. package/src/sap/ui/test/actions/Drag.js +2 -2
  358. package/src/sap/ui/test/actions/Drop.js +2 -2
  359. package/src/sap/ui/test/actions/EnterText.js +8 -8
  360. package/src/sap/ui/test/actions/Press.js +5 -5
  361. package/src/sap/ui/test/actions/Scroll.js +1 -1
  362. package/src/sap/ui/test/generic/TestBase.js +1 -1
  363. package/src/sap/ui/test/matchers/Matcher.js +9 -11
  364. package/src/sap/ui/test/opaQunit.js +4 -3
  365. package/src/sap/ui/thirdparty/IPv6.js +1 -1
  366. package/src/sap/ui/thirdparty/SecondLevelDomains.js +1 -1
  367. package/src/sap/ui/thirdparty/URI.js +8 -2
  368. package/src/sap/ui/thirdparty/URITemplate.js +1 -1
  369. package/src/sap/ui/util/Mobile.js +59 -33
  370. package/src/sap/ui/util/Storage.js +2 -2
  371. package/src/sap/ui/util/XMLHelper.js +1 -1
  372. package/src/sap/ui/util/openWindow.js +1 -1
  373. package/src/ui5loader.js +3 -3
  374. package/ui5.yaml +71 -0
@@ -1,11 +1,11 @@
1
1
  // /**
2
- // * Copyright (c) 2012-2020 SAP SE or an SAP affiliate company. All rights reserved.
2
+ // * Copyright (c) 2012-2022 SAP SE or an SAP affiliate company and Theming Base Content contributors. Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
3
3
  // * Theming Engine 1.69.2
4
- // * data:{"sModified":"2022-04-26T06:31:06Z"}
4
+ // * data:{"sModified":"2022-05-24T07:19:31Z"}
5
5
  // */
6
6
 
7
7
 
8
- /******************* FILE /Base/baseLib/baseTheme/base.less (Version 11.1.39) *******************/
8
+ /******************* FILE /Base/baseLib/baseTheme/base.less (Version 11.1.40) *******************/
9
9
 
10
10
 
11
11
  // [Label "Brand Color"]
@@ -3885,28 +3885,28 @@
3885
3885
  // font-family: '72';
3886
3886
  // font-style: normal;
3887
3887
  // font-weight: 300;
3888
- // src: local('72-Light'), @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff');
3888
+ // src: @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff'), local('72-Light');
3889
3889
  // }
3890
3890
 
3891
3891
  // @font-face {
3892
3892
  // font-family: '72';
3893
3893
  // font-style: normal;
3894
3894
  // font-weight: 400;
3895
- // src: local('72'), @sapFontUrl_72_Regular_woff2 format('woff2'), @sapFontUrl_72_Regular_woff format('woff');
3895
+ // src: @sapFontUrl_72_Regular_woff2 format('woff2'), @sapFontUrl_72_Regular_woff format('woff'), local('72');
3896
3896
  // }
3897
3897
 
3898
3898
  // @font-face {
3899
3899
  // font-family: '72';
3900
3900
  // font-style: normal;
3901
3901
  // font-weight: 600;
3902
- // src: local('72-Semibold'), @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff');
3902
+ // src: @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff'), local('72-Semibold');
3903
3903
  // }
3904
3904
 
3905
3905
  // @font-face {
3906
3906
  // font-family: '72';
3907
3907
  // font-style: normal;
3908
3908
  // font-weight: 700;
3909
- // src: local('72-Bold'), @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff');
3909
+ // src: @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff'), local('72-Bold');
3910
3910
  // }
3911
3911
 
3912
3912
  // @font-face {
@@ -3941,14 +3941,14 @@
3941
3941
  // font-family: '72';
3942
3942
  // font-style: normal;
3943
3943
  // font-weight: 900;
3944
- // src: local('72Black'), @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff');
3944
+ // src: @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff'), local('72Black');
3945
3945
  // }
3946
3946
 
3947
3947
  // @font-face {
3948
3948
  // font-family: '72';
3949
3949
  // font-style: italic;
3950
3950
  // font-weight: 700;
3951
- // src: local('72-BoldItalic'), @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff');
3951
+ // src: @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff'), local('72-BoldItalic');
3952
3952
  // }
3953
3953
 
3954
3954
  // @font-face {
@@ -3956,7 +3956,7 @@
3956
3956
  // font-style: normal;
3957
3957
  // font-weight: 400;
3958
3958
  // font-stretch: condensed;
3959
- // src: local('72-Condensed'), @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff');
3959
+ // src: @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff'), local('72-Condensed');
3960
3960
  // }
3961
3961
 
3962
3962
  // @font-face {
@@ -3964,19 +3964,19 @@
3964
3964
  // font-style: normal;
3965
3965
  // font-weight: 700;
3966
3966
  // font-stretch: condensed;
3967
- // src: local('72-CondensedBold'), @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff');
3967
+ // src: @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff'), local('72-CondensedBold');
3968
3968
  // }
3969
3969
 
3970
3970
  // @font-face {
3971
3971
  // font-family: '72';
3972
3972
  // font-style: italic;
3973
3973
  // font-weight: 400;
3974
- // src: local('72-Italic'), @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff');
3974
+ // src: @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff'), local('72-Italic');
3975
3975
  // }
3976
3976
 
3977
3977
  // @font-face {
3978
3978
  // font-family: '72-Light';
3979
- // src: local('72-Light'), @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff');
3979
+ // src: @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff'), local('72-Light');
3980
3980
  // }
3981
3981
 
3982
3982
  // @font-face {
@@ -3986,7 +3986,7 @@
3986
3986
 
3987
3987
  // @font-face {
3988
3988
  // font-family: '72-Bold';
3989
- // src: local('72-Bold'), @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff');
3989
+ // src: @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff'), local('72-Bold');
3990
3990
  // }
3991
3991
 
3992
3992
  // @font-face {
@@ -3996,7 +3996,7 @@
3996
3996
 
3997
3997
  // @font-face {
3998
3998
  // font-family: '72-Semibold';
3999
- // src: local('72-Semibold'), @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff');
3999
+ // src: @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff'), local('72-Semibold');
4000
4000
  // }
4001
4001
 
4002
4002
  // @font-face {
@@ -4006,7 +4006,7 @@
4006
4006
 
4007
4007
  // @font-face {
4008
4008
  // font-family: '72-SemiboldDuplex';
4009
- // src: local('72-SemiboldDuplex'), @sapFontUrl_72_SemiboldDuplex_woff2 format('woff2'), @sapFontUrl_72_SemiboldDuplex_woff format('woff');
4009
+ // src: @sapFontUrl_72_SemiboldDuplex_woff2 format('woff2'), @sapFontUrl_72_SemiboldDuplex_woff format('woff'), local('72-SemiboldDuplex');
4010
4010
  // }
4011
4011
 
4012
4012
  // @font-face {
@@ -4016,32 +4016,32 @@
4016
4016
 
4017
4017
  // @font-face {
4018
4018
  // font-family: '72Black';
4019
- // src: local('72Black'), @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff');
4019
+ // src: @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff'), local('72Black');
4020
4020
  // }
4021
4021
 
4022
4022
  // @font-face {
4023
4023
  // font-family: '72-BoldItalic';
4024
- // src: local('72-BoldItalic'), @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff');
4024
+ // src: @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff'), local('72-BoldItalic');
4025
4025
  // }
4026
4026
 
4027
4027
  // @font-face {
4028
4028
  // font-family: '72-Condensed';
4029
- // src: local('72-Condensed'), @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff');
4029
+ // src: @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff'), local('72-Condensed');
4030
4030
  // }
4031
4031
 
4032
4032
  // @font-face {
4033
4033
  // font-family: '72-CondensedBold';
4034
- // src: local('72-CondensedBold'), @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff');
4034
+ // src: @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff'), local('72-CondensedBold');
4035
4035
  // }
4036
4036
 
4037
4037
  // @font-face {
4038
4038
  // font-family: '72-Italic';
4039
- // src: local('72-Italic'), @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff');
4039
+ // src: @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff'), local('72-Italic');
4040
4040
  // }
4041
4041
 
4042
4042
  // @font-face {
4043
4043
  // font-family: '72Mono';
4044
- // src: local('72Mono'), @sapFontUrl_72Mono_Regular_woff2 format('woff2'), @sapFontUrl_72Mono_Regular_woff format('woff');
4044
+ // src: @sapFontUrl_72Mono_Regular_woff2 format('woff2'), @sapFontUrl_72Mono_Regular_woff format('woff'), local('72Mono');
4045
4045
  // }
4046
4046
 
4047
4047
  // @font-face {
@@ -4051,7 +4051,7 @@
4051
4051
 
4052
4052
  // @font-face {
4053
4053
  // font-family: '72Mono-Bold';
4054
- // src: local('72Mono-Bold'), @sapFontUrl_72Mono_Bold_woff2 format('woff2'), @sapFontUrl_72Mono_Bold_woff format('woff');
4054
+ // src: @sapFontUrl_72Mono_Bold_woff2 format('woff2'), @sapFontUrl_72Mono_Bold_woff format('woff'), local('72Mono-Bold');
4055
4055
  // }
4056
4056
 
4057
4057
  // @font-face {
@@ -4076,13 +4076,13 @@
4076
4076
  // }
4077
4077
 
4078
4078
  // /**
4079
- // * Copyright (c) 2012-2020 SAP SE or an SAP affiliate company. All rights reserved.
4079
+ // * Copyright (c) 2012-2022 SAP SE or an SAP affiliate company and Theming Base Content contributors. Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
4080
4080
  // * Theming Engine 1.69.2
4081
- // * data:{"sModified":"2022-04-26T06:31:06Z"}
4081
+ // * data:{"sModified":"2022-05-24T07:19:31Z"}
4082
4082
  // */
4083
4083
 
4084
4084
 
4085
- /******************* FILE /Base/baseLib/sap_belize_hcw/base.less (Version 11.1.39) *******************/
4085
+ /******************* FILE /Base/baseLib/sap_belize_hcw/base.less (Version 11.1.40) *******************/
4086
4086
 
4087
4087
 
4088
4088
  // [Tags "SapInternal", "Base", "Dimension", "Protected"]
@@ -16,11 +16,11 @@ sap.ui.define([
16
16
  'sap/base/util/UriParameters',
17
17
  'sap/base/Log',
18
18
  'sap/base/util/extend',
19
+ 'sap/base/util/syncFetch',
19
20
  'sap/ui/core/ThemeCheck',
20
- 'sap/ui/thirdparty/jquery',
21
21
  './ThemeHelper'
22
22
  ],
23
- function(URI, Element, UriParameters, Log, extend, ThemeCheck, jQuery, ThemeHelper) {
23
+ function(URI, Element, UriParameters, Log, extend, syncFetch, ThemeCheck, ThemeHelper) {
24
24
  "use strict";
25
25
 
26
26
  var oCfgData = window["sap-ui-config"] || {};
@@ -118,8 +118,8 @@ sap.ui.define([
118
118
  }
119
119
 
120
120
  function forEachStyleSheet(fnCallback) {
121
- jQuery("link[id^=sap-ui-theme-]").each(function() {
122
- fnCallback(this.getAttribute("id"));
121
+ document.querySelectorAll("link[id^=sap-ui-theme-]").forEach(function(linkNode) {
122
+ fnCallback(linkNode.getAttribute("id"));
123
123
  });
124
124
  }
125
125
 
@@ -135,8 +135,8 @@ sap.ui.define([
135
135
  // In some browsers (e.g. Safari) it might happen that after switching the theme or adopting the <link>'s href,
136
136
  // the parameters from the previous stylesheet are taken. This can be prevented by checking whether the theme is applied.
137
137
  if (bThemeApplied && bUseInlineParameters) {
138
- var $link = jQuery(document.getElementById(sId));
139
- var sDataUri = $link.css("background-image");
138
+ var oLink = document.getElementById(sId);
139
+ var sDataUri = window.getComputedStyle(oLink).getPropertyValue("background-image");
140
140
  var aParams = /\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(sDataUri);
141
141
  if (aParams && aParams.length >= 2) {
142
142
  var sParams = aParams[1];
@@ -233,27 +233,46 @@ sap.ui.define([
233
233
  * @param {boolean[]} aWithCredentials probing values for requesting with or without credentials
234
234
  */
235
235
  function loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials) {
236
- var bCurrentWithCredentials = aWithCredentials.shift();
236
+ var oHeaders = {
237
+ Accept: syncFetch.ContentTypes.JSON
238
+ };
237
239
 
238
- var mHeaders = bCurrentWithCredentials ? {
240
+ var bCurrentWithCredentials = aWithCredentials.shift();
241
+ if (bCurrentWithCredentials) {
239
242
  // the X-Requested-With Header is essential for the Theming-Service to determine if a GET request will be handled
240
243
  // This forces a preflight request which should give us valid Allow headers:
241
244
  // Access-Control-Allow-Origin: ... fully qualified requestor origin ...
242
245
  // Access-Control-Allow-Credentials: true
243
- "X-Requested-With": "XMLHttpRequest"
244
- } : {};
246
+ oHeaders["X-Requested-With"] = "XMLHttpRequest";
247
+ }
248
+
249
+ function fnErrorCallback(error) {
250
+ // ignore failure at least temporarily as long as there are libraries built using outdated tools which produce no json file
251
+ Log.error("Could not load theme parameters from: " + sUrl, error); // could be an error as well, but let's avoid more CSN messages...
252
+
253
+ if (aWithCredentials.length > 0) {
254
+ // In a CORS scenario, IF we have sent credentials on the first try AND the request failed,
255
+ // we expect that a service could have answered with the following Allow header:
256
+ // Access-Control-Allow-Origin: *
257
+ // In this case we must not send credentials, otherwise the service would have answered with:
258
+ // Access-Control-Allow-Origin: https://...
259
+ // Access-Control-Allow-Credentials: true
260
+ // Due to security constraints, the browser does not hand out any more information in a CORS scenario,
261
+ // so now we try again without credentials.
262
+ Log.warning("Initial library-parameters.json request failed ('withCredentials=" + bCurrentWithCredentials + "'; sUrl: '" + sUrl + "').\n" +
263
+ "Retrying with 'withCredentials=" + !bCurrentWithCredentials + "'.", "sap.ui.core.theming.Parameters");
264
+ loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials);
265
+ }
266
+ }
245
267
 
246
268
  // load and evaluate parameter file
247
- jQuery.ajax({
248
- url: sUrl,
249
- dataType: 'json',
250
- async: false,
251
- xhrFields: {
252
- // default is false
253
- withCredentials: bCurrentWithCredentials
254
- },
255
- headers: mHeaders,
256
- success: function(data, textStatus, xhr) {
269
+ try {
270
+ var response = syncFetch(sUrl, {
271
+ credentials: bCurrentWithCredentials ? "include" : "omit",
272
+ headers: oHeaders
273
+ });
274
+ if (response.ok) {
275
+ var data = response.json();
257
276
  // Once we have a successful request we track the credentials setting for this origin
258
277
  var sThemeOrigin = new URI(sThemeBaseUrl).origin();
259
278
  mOriginsNeedingCredentials[sThemeOrigin] = bCurrentWithCredentials;
@@ -267,26 +286,13 @@ sap.ui.define([
267
286
  } else {
268
287
  mergeParameters(data, sThemeBaseUrl);
269
288
  }
270
- },
271
- error: function(xhr, textStatus, error) {
272
- // ignore failure at least temporarily as long as there are libraries built using outdated tools which produce no json file
273
- Log.error("Could not load theme parameters from: " + sUrl, error); // could be an error as well, but let's avoid more CSN messages...
274
-
275
- if (aWithCredentials.length > 0) {
276
- // In a CORS scenario, IF we have sent credentials on the first try AND the request failed,
277
- // we expect that a service could have answered with the following Allow header:
278
- // Access-Control-Allow-Origin: *
279
- // In this case we must not send credentials, otherwise the service would have answered with:
280
- // Access-Control-Allow-Origin: https://...
281
- // Access-Control-Allow-Credentials: true
282
- // Due to security constraints, the browser does not hand out any more information in a CORS scenario,
283
- // so now we try again without credentials.
284
- Log.warning("Initial library-parameters.json request failed ('withCredentials=" + bCurrentWithCredentials + "'; sUrl: '" + sUrl + "').\n" +
285
- "Retrying with 'withCredentials=" + !bCurrentWithCredentials + "'.", "sap.ui.core.theming.Parameters");
286
- loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials);
287
- }
289
+ } else {
290
+ throw new Error(response.statusText || response.status);
288
291
  }
289
- });
292
+
293
+ } catch (error) {
294
+ fnErrorCallback(error);
295
+ }
290
296
  }
291
297
 
292
298
  /**
@@ -368,7 +374,7 @@ sap.ui.define([
368
374
  * @param {boolean} mOptions.loadPendingParameters If set to "true" and no parameter value is found,
369
375
  * all pending parameters will be loaded (see Parameters._addLibraryTheme)
370
376
  * @param {boolean} mOptions.async whether the parameter value should be retrieved asynchronous
371
- * @returns {string} parameter value or undefined
377
+ * @returns {string|undefined} parameter value or undefined
372
378
  * @private
373
379
  */
374
380
  function getParam(mOptions) {
@@ -19,7 +19,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/ui/core/library'],
19
19
  * @class
20
20
  * Represents a DOM attribute of a DOM element.
21
21
  * @extends sap.ui.core.Element
22
- * @version 1.102.2
22
+ * @version 1.104.0
23
23
  *
24
24
  * @public
25
25
  * @since 1.15
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * Represents a DOM element. It allows to use databinding for the properties and nested DOM attributes.
29
29
  * @extends sap.ui.core.Control
30
- * @version 1.102.2
30
+ * @version 1.104.0
31
31
  *
32
32
  * @public
33
33
  * @since 1.15
@@ -84,7 +84,7 @@ sap.ui.define([
84
84
  // handle custom attributes if not already defined in settings
85
85
  if (!mSettings["attributes"]) {
86
86
  var aAttributes = mSettings["attributes"] = [];
87
- jQuery.each(mSettings, function(sKey, oValue) {
87
+ jQuery.each(mSettings, function(sKey, oValue) { // @legacy-relevant: jQuery usage in deprecated code
88
88
  if (sKey !== "id" && !mJSONKeys[sKey] && typeof oValue === "string") {
89
89
  // add custom settings as DOM attributes
90
90
  aAttributes.push(new DOMAttribute({
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.core.tmpl.Template
47
47
  * @abstract
48
48
  * @author SAP SE
49
- * @version 1.102.2
49
+ * @version 1.104.0
50
50
  * @alias sap.ui.core.tmpl.HandlebarsTemplate
51
51
  * @since 1.15
52
52
  * @deprecated since 1.56
@@ -52,10 +52,10 @@ function(
52
52
  * @extends sap.ui.base.ManagedObject
53
53
  * @abstract
54
54
  * @author SAP SE
55
- * @version 1.102.2
55
+ * @version 1.104.0
56
56
  * @alias sap.ui.core.tmpl.Template
57
57
  * @since 1.15
58
- * @deprecated since 1.56, use an {@link sap.ui.core.mvc.XMLView XMLView} or {@link sap.ui.core.mvc.JSView JSView} instead.
58
+ * @deprecated since 1.56, use an {@link sap.ui.core.mvc.XMLView XMLView} or a {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed View} instead.
59
59
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
60
60
  */
61
61
  var Template = ManagedObject.extend("sap.ui.core.tmpl.Template", /** @lends sap.ui.core.tmpl.Template.prototype */
@@ -451,7 +451,7 @@ function(
451
451
 
452
452
  // lookup all kind of DOM elements for having a type which is supported
453
453
  var aTemplates = [];
454
- jQuery.each(Template._mSupportedTypes, function(sType, sClass) {
454
+ jQuery.each(Template._mSupportedTypes, function(sType, sClass) { // @legacy-relevant: jQuery usage in deprecated code
455
455
  jQuery("script[type='" + sType + "'], [data-type='" + sType + "']").each(function(iIndex, oElement) {
456
456
  aTemplates.push(sap.ui.template({
457
457
  id: oElement.id,
@@ -479,7 +479,7 @@ function(
479
479
  }
480
480
 
481
481
  // apply the default values
482
- oTemplate = jQuery.extend({
482
+ oTemplate = jQuery.extend({ // @legacy-relevant: jQuery usage in deprecated code
483
483
  type: Template.DEFAULT_TEMPLATE
484
484
  }, oTemplate);
485
485
 
@@ -493,7 +493,7 @@ function(
493
493
  if (bLoadTemplate) {
494
494
 
495
495
  // load the template from the specified URL
496
- jQuery.ajax({
496
+ jQuery.ajax({ // @legacy-relevant: jQuery usage in deprecated code
497
497
  url: oTemplate.src,
498
498
  dataType: "text",
499
499
  async: false,
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @class
44
44
  * This is the base class for all template controls. Template controls are declared based on templates.
45
45
  * @extends sap.ui.core.Control
46
- * @version 1.102.2
46
+ * @version 1.104.0
47
47
  *
48
48
  * @public
49
49
  * @since 1.15
@@ -383,7 +383,7 @@ sap.ui.define([
383
383
  // sap.ui.core.Element.create doesn't work because there is no type
384
384
  // conversion for the values done (would be the better approach)
385
385
  var mHTMLSettings = {};
386
- jQuery.each(mSettings, function(sKey, oValue) {
386
+ jQuery.each(mSettings, function(sKey, oValue) { // @legacy-relevant: jQuery usage in deprecated code
387
387
  mHTMLSettings["data-" + hyphenate(sKey)] = oValue;
388
388
  });
389
389
  var $control = jQuery("<div></div>", mHTMLSettings);
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
12
12
  *
13
13
  * @class Utility class for asyncHints
14
14
  * @author SAP SE
15
- * @version 1.102.2
15
+ * @version 1.104.0
16
16
  *
17
17
  * @private
18
18
  * @ui5-restricted sap.ushell
@@ -141,7 +141,7 @@ sap.ui.define([
141
141
  * @extends sap.ui.core.Control
142
142
  *
143
143
  * @author SAP SE
144
- * @version 1.102.2
144
+ * @version 1.104.0
145
145
  * @since 1.22.0
146
146
  *
147
147
  * @public
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element'],
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.102.2
23
+ * @version 1.104.0
24
24
  * @since 1.22.0
25
25
  *
26
26
  * @public
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.base.ManagedObject
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.102.2
26
+ * @version 1.104.0
27
27
  * @since 1.22.0
28
28
  *
29
29
  * @public
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.base.ManagedObject
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.102.2
26
+ * @version 1.104.0
27
27
  * @since 1.22.0
28
28
  *
29
29
  * @public
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/ManagedObject'],
20
20
  * @extends sap.ui.base.ManagedObject
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.102.2
23
+ * @version 1.104.0
24
24
  * @since 1.22.0
25
25
  *
26
26
  * @public
@@ -38,7 +38,7 @@ sap.ui.define(['./ExportType'],
38
38
  * @extends sap.ui.core.util.ExportType
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.102.2
41
+ * @version 1.104.0
42
42
  * @since 1.22.0
43
43
  *
44
44
  * @public
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
13
13
  * Utility class to handle files.
14
14
  *
15
15
  * @author SAP SE
16
- * @version 1.102.2
16
+ * @version 1.104.0
17
17
  * @namespace
18
18
  *
19
19
  * @public
@@ -8,10 +8,11 @@
8
8
  sap.ui.define([
9
9
  'sap/ui/base/Object',
10
10
  "sap/base/Log",
11
+ "sap/base/util/fetch",
11
12
  "sap/base/util/Version",
12
13
  "sap/ui/thirdparty/jquery"
13
14
  ],
14
- function(BaseObject, Log, Version, jQuery) {
15
+ function(BaseObject, Log, fetch, Version, jQuery) {
15
16
  "use strict";
16
17
 
17
18
  /**
@@ -20,7 +21,7 @@ sap.ui.define([
20
21
  *
21
22
  * @extends sap.ui.base.Object
22
23
  * @author SAP SE
23
- * @version 1.102.2
24
+ * @version 1.104.0
24
25
  * @private
25
26
  * @alias sap.ui.core.util.LibraryInfo
26
27
  */
@@ -67,19 +68,28 @@ sap.ui.define([
67
68
 
68
69
  sRequestUrl = typeof that.getResourceUrl === "function" ? that.getResourceUrl(sUrl) : sUrl;
69
70
 
70
- jQuery.ajax({
71
- url : sRequestUrl + sLibraryType,
72
- dataType : "xml",
73
- error : function(xhr, status, e) {
74
- Log.error("failed to load library details from '" + sUrl + sLibraryType + ": " + status + ", " + e);
75
- that._oLibInfos[sLibraryName] = {name: sLibraryName, data: null, url: sUrl};
76
- fnCallback(that._oLibInfos[sLibraryName]);
77
- },
78
- success : function(oData, sStatus, oXHR) {
79
- that._oLibInfos[sLibraryName] = {name: sLibraryName, data: oData, url: sUrl};
80
- fnCallback(that._oLibInfos[sLibraryName]);
71
+ function fnErrorCallback(error) {
72
+ Log.error("failed to load library details from '" + sUrl + sLibraryType + ": " + error.message + ", " + error);
73
+ that._oLibInfos[sLibraryName] = {name: sLibraryName, data: null, url: sUrl};
74
+ fnCallback(that._oLibInfos[sLibraryName]);
75
+ }
76
+
77
+ fetch(sRequestUrl + sLibraryType, {
78
+ headers: {
79
+ Accept: fetch.ContentTypes.XML
81
80
  }
82
- });
81
+ }).then(function(response) {
82
+ if (response.ok) {
83
+ return response.text().then(function(responseText) {
84
+ var parser = new DOMParser();
85
+ var oData = parser.parseFromString(responseText, "text/xml");
86
+ that._oLibInfos[sLibraryName] = {name: sLibraryName, data: oData, url: sUrl};
87
+ fnCallback(that._oLibInfos[sLibraryName]);
88
+ });
89
+ } else {
90
+ throw new Error(response.statusText || response.status);
91
+ }
92
+ }).catch(fnErrorCallback);
83
93
  };
84
94
 
85
95
 
@@ -158,18 +168,23 @@ sap.ui.define([
158
168
  sUrl = that.getResourceUrl(sUrl);
159
169
  }
160
170
 
161
- jQuery.ajax({
162
- url : sUrl,
163
- dataType : "json",
164
- error : function(xhr, status, e) {
165
- Log.error("failed to load library docu from '" + sUrl + "': " + status + ", " + e);
166
- fnCallback(result);
167
- },
168
- success : function(oData, sStatus, oXHR) {
169
- oData.library = lib;
170
- oData.libraryUrl = libUrl;
171
- fnCallback(oData);
171
+ fetch(sUrl, {
172
+ headers: {
173
+ Accept: fetch.ContentTypes.JSON
174
+ }
175
+ }).then(function(response) {
176
+ if (response.ok) {
177
+ response.json().then(function(oData) {
178
+ oData.library = lib;
179
+ oData.libraryUrl = libUrl;
180
+ fnCallback(oData);
181
+ });
182
+ } else {
183
+ throw new Error(response.statusText || response.status);
172
184
  }
185
+ }).catch(function(error) {
186
+ Log.error("failed to load library docu from '" + sUrl + "': " + error.message + ", " + error);
187
+ fnCallback(result);
173
188
  });
174
189
  });
175
190
  };
@@ -236,25 +251,29 @@ sap.ui.define([
236
251
  sUrl = that.getResourceUrl(sUrl);
237
252
  }
238
253
 
239
- // load the changelog/releasenotes
240
- jQuery.ajax({
241
- url : sUrl,
242
- dataType : "json",
243
- error : function(xhr, status, e) {
244
- if (status === "parsererror") {
245
- Log.error("failed to parse release notes for library '" + sLibraryName + ", " + e);
246
- } else {
247
- Log.warning("failed to load release notes for library '" + sLibraryName + ", " + e);
248
- }
249
- fnCallback({});
250
- },
251
- success : function(oData, sStatus, oXHR) {
252
- // in case of a version is specified we return only the content
253
- // of the specific version instead of the full data of the release notes file.
254
- fnCallback(oData, sVersion);
254
+ // load the changelog
255
+ fetch(sUrl, {
256
+ headers: {
257
+ Accept: fetch.ContentTypes.JSON
258
+ }
259
+ }).then(function(response) {
260
+ if (response.ok) {
261
+ return response.json().then(function(oData) {
262
+ // in case of a version is specified we return only the content
263
+ // of the specific version instead of the full data of the release notes file.
264
+ fnCallback(oData, sVersion);
265
+ });
266
+ } else {
267
+ throw new Error(response.statusText || response.status);
255
268
  }
269
+ }).catch(function(error) {
270
+ if (error.name === "SyntaxError") {
271
+ Log.error("failed to parse release notes for library '" + sLibraryName + ", " + error);
272
+ } else {
273
+ Log.warning("failed to load release notes for library '" + sLibraryName + ", " + error);
274
+ }
275
+ fnCallback({});
256
276
  });
257
-
258
277
  });
259
278
  };
260
279