@openui5/sap.ui.core 1.105.0 → 1.106.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 (314) hide show
  1. package/.reuse/dep5 +20 -17
  2. package/THIRDPARTY.txt +31 -21
  3. package/package.json +1 -1
  4. package/src/jquery.sap.dom.js +10 -10
  5. package/src/jquery.sap.global.js +24 -216
  6. package/src/jquery.sap.history.js +1 -1
  7. package/src/jquery.sap.properties.js +2 -2
  8. package/src/jquery.sap.resources.js +1 -1
  9. package/src/jquery.sap.script.js +1 -1
  10. package/src/jquery.sap.storage.js +4 -4
  11. package/src/sap/base/i18n/ResourceBundle.js +7 -11
  12. package/src/sap/base/util/ObjectPath.js +1 -1
  13. package/src/sap/base/util/Properties.js +1 -1
  14. package/src/sap/base/util/fetch.js +8 -10
  15. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  16. package/src/sap/base/util/restricted/_castArray.js +1 -1
  17. package/src/sap/base/util/restricted/_compact.js +1 -1
  18. package/src/sap/base/util/restricted/_curry.js +1 -1
  19. package/src/sap/base/util/restricted/_debounce.js +1 -1
  20. package/src/sap/base/util/restricted/_difference.js +1 -1
  21. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  22. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  23. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  24. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  25. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  26. package/src/sap/base/util/restricted/_flatten.js +1 -1
  27. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  28. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  29. package/src/sap/base/util/restricted/_intersection.js +1 -1
  30. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  31. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  32. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  33. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  34. package/src/sap/base/util/restricted/_isNil.js +1 -1
  35. package/src/sap/base/util/restricted/_max.js +1 -1
  36. package/src/sap/base/util/restricted/_merge.js +1 -1
  37. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  38. package/src/sap/base/util/restricted/_min.js +1 -1
  39. package/src/sap/base/util/restricted/_omit.js +1 -1
  40. package/src/sap/base/util/restricted/_pick.js +1 -1
  41. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  42. package/src/sap/base/util/restricted/_throttle.js +1 -1
  43. package/src/sap/base/util/restricted/_toArray.js +1 -1
  44. package/src/sap/base/util/restricted/_union.js +1 -1
  45. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  46. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  47. package/src/sap/base/util/restricted/_uniq.js +1 -1
  48. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  49. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  50. package/src/sap/base/util/restricted/_without.js +1 -1
  51. package/src/sap/base/util/restricted/_xor.js +1 -1
  52. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  53. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  54. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  55. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  56. package/src/sap/base/util/syncFetch.js +9 -16
  57. package/src/sap/ui/Device.js +3 -3
  58. package/src/sap/ui/Global.js +7 -14
  59. package/src/sap/ui/VersionInfo.js +57 -54
  60. package/src/sap/ui/base/BindingInfo.js +198 -0
  61. package/src/sap/ui/base/DataType.js +1 -1
  62. package/src/sap/ui/base/Event.js +2 -2
  63. package/src/sap/ui/base/EventProvider.js +2 -2
  64. package/src/sap/ui/base/Interface.js +1 -1
  65. package/src/sap/ui/base/ManagedObject.js +209 -979
  66. package/src/sap/ui/base/ManagedObjectMetadata.js +6 -6
  67. package/src/sap/ui/base/Metadata.js +1 -1
  68. package/src/sap/ui/base/Object.js +1 -1
  69. package/src/sap/ui/base/ObjectPool.js +1 -1
  70. package/src/sap/ui/core/.library +13 -9
  71. package/src/sap/ui/core/BusyIndicator.js +1 -1
  72. package/src/sap/ui/core/Component.js +5 -5
  73. package/src/sap/ui/core/ComponentContainer.js +1 -1
  74. package/src/sap/ui/core/ComponentMetadata.js +5 -12
  75. package/src/sap/ui/core/ComponentSupport.js +1 -1
  76. package/src/sap/ui/core/Configuration.js +525 -336
  77. package/src/sap/ui/core/Control.js +1 -1
  78. package/src/sap/ui/core/Core.js +78 -125
  79. package/src/sap/ui/core/CustomData.js +1 -1
  80. package/src/sap/ui/core/DeclarativeSupport.js +1 -1
  81. package/src/sap/ui/core/Element.js +60 -4
  82. package/src/sap/ui/core/ElementMetadata.js +1 -1
  83. package/src/sap/ui/core/EnabledPropagator.js +1 -1
  84. package/src/sap/ui/core/EventBus.js +1 -1
  85. package/src/sap/ui/core/FocusHandler.js +29 -7
  86. package/src/sap/ui/core/Fragment.js +1 -1
  87. package/src/sap/ui/core/HTML.js +1 -1
  88. package/src/sap/ui/core/History.js +1 -1
  89. package/src/sap/ui/core/Icon.js +1 -1
  90. package/src/sap/ui/core/IconPool.js +8 -8
  91. package/src/sap/ui/core/IndicationColorSupport.js +2 -2
  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 +1 -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 +1 -1
  102. package/src/sap/ui/core/LocaleData.js +5 -5
  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 +13 -8
  106. package/src/sap/ui/core/RenderManager.js +7 -1
  107. package/src/sap/ui/core/Renderer.js +1 -1
  108. package/src/sap/ui/core/ResizeHandler.js +7 -7
  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/Title.js +1 -1
  112. package/src/sap/ui/core/TooltipBase.js +12 -13
  113. package/src/sap/ui/core/UIArea.js +8 -9
  114. package/src/sap/ui/core/UIComponent.js +3 -3
  115. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  116. package/src/sap/ui/core/ValueStateSupport.js +2 -2
  117. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  118. package/src/sap/ui/core/XMLComposite.js +2 -2
  119. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  120. package/src/sap/ui/core/XMLTemplateProcessor.js +7 -7
  121. package/src/sap/ui/core/_ConfigurationProvider.js +187 -0
  122. package/src/sap/ui/core/cache/CacheManager.js +2 -2
  123. package/src/sap/ui/core/cldr/es_BO.json +3 -3
  124. package/src/sap/ui/core/cldr/es_CL.json +3 -3
  125. package/src/sap/ui/core/cldr/es_MX.json +3 -3
  126. package/src/sap/ui/core/cldr/es_PE.json +3 -3
  127. package/src/sap/ui/core/cldr/es_UY.json +3 -3
  128. package/src/sap/ui/core/cldr/es_VE.json +2 -2
  129. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  130. package/src/sap/ui/core/delegate/ScrollEnablement.js +7 -6
  131. package/src/sap/ui/core/dnd/DragAndDrop.js +13 -9
  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 +5 -0
  137. package/src/sap/ui/core/format/NumberFormat.js +1 -1
  138. package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
  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 +1 -1
  145. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  146. package/src/sap/ui/core/mvc/Controller.js +5 -0
  147. package/src/sap/ui/core/mvc/HTMLView.js +1 -1
  148. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  149. package/src/sap/ui/core/mvc/JSView.js +2 -2
  150. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  151. package/src/sap/ui/core/mvc/View.js +1 -1
  152. package/src/sap/ui/core/mvc/XMLView.js +1 -1
  153. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  154. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  155. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  156. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  157. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  158. package/src/sap/ui/core/routing/Router.js +1 -1
  159. package/src/sap/ui/core/rules/App.support.js +11 -13
  160. package/src/sap/ui/core/rules/Config.support.js +13 -13
  161. package/src/sap/ui/core/rules/CoreHelper.support.js +3 -3
  162. package/src/sap/ui/core/rules/Model.support.js +8 -8
  163. package/src/sap/ui/core/rules/Rendering.support.js +1 -1
  164. package/src/sap/ui/core/rules/Theming.support.js +8 -8
  165. package/src/sap/ui/core/rules/View.support.js +9 -9
  166. package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
  167. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  168. package/src/sap/ui/core/service/Service.js +1 -1
  169. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  170. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  171. package/src/sap/ui/core/support/Hotkeys.js +2 -3
  172. package/src/sap/ui/core/support/Plugin.js +1 -1
  173. package/src/sap/ui/core/support/Support.js +1 -1
  174. package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
  175. package/src/sap/ui/core/support/plugins/Debugging.js +3 -3
  176. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  177. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  178. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  179. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  180. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  181. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  182. package/src/sap/ui/core/support/plugins/ViewInfo.js +2 -2
  183. package/src/sap/ui/core/support/support.html +1 -1
  184. package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +3 -3
  185. package/src/sap/ui/core/themes/base/shared.less +6 -0
  186. package/src/sap/ui/core/theming/Parameters.js +8 -15
  187. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  188. package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
  189. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  190. package/src/sap/ui/core/tmpl/Template.js +6 -4
  191. package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
  192. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  193. package/src/sap/ui/core/util/Export.js +1 -1
  194. package/src/sap/ui/core/util/ExportCell.js +1 -1
  195. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  196. package/src/sap/ui/core/util/ExportRow.js +1 -1
  197. package/src/sap/ui/core/util/ExportType.js +1 -1
  198. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  199. package/src/sap/ui/core/util/File.js +1 -1
  200. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  201. package/src/sap/ui/core/util/MockServer.js +45 -71
  202. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  203. package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +4 -3
  204. package/src/sap/ui/core/util/XMLPreprocessor.js +2 -2
  205. package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +1 -1
  206. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  207. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  208. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  209. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  210. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  211. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  212. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  213. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  214. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  215. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  216. package/src/sap/ui/debug/ControlTree.js +1 -1
  217. package/src/sap/ui/debug/DebugEnv.js +1 -1
  218. package/src/sap/ui/debug/PropertyList.css +1 -31
  219. package/src/sap/ui/debug/PropertyList.js +6 -250
  220. package/src/sap/ui/dom/getScrollbarSize.js +1 -1
  221. package/src/sap/ui/dom/jquery/control.js +1 -0
  222. package/src/sap/ui/events/jquery/EventSimulation.js +4 -4
  223. package/src/sap/ui/model/ClientModel.js +1 -1
  224. package/src/sap/ui/model/CompositeDataState.js +1 -1
  225. package/src/sap/ui/model/CompositeType.js +1 -1
  226. package/src/sap/ui/model/Context.js +3 -0
  227. package/src/sap/ui/model/ContextBinding.js +1 -1
  228. package/src/sap/ui/model/DataState.js +2 -2
  229. package/src/sap/ui/model/ListBinding.js +2 -2
  230. package/src/sap/ui/model/ManagedObjectBindingSupport.js +871 -0
  231. package/src/sap/ui/model/MetaModel.js +1 -1
  232. package/src/sap/ui/model/Model.js +16 -5
  233. package/src/sap/ui/model/SelectionModel.js +1 -1
  234. package/src/sap/ui/model/SimpleType.js +2 -2
  235. package/src/sap/ui/model/Sorter.js +2 -2
  236. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  237. package/src/sap/ui/model/Type.js +1 -1
  238. package/src/sap/ui/model/json/JSONModel.js +2 -2
  239. package/src/sap/ui/model/message/MessageModel.js +1 -1
  240. package/src/sap/ui/model/odata/AnnotationHelper.js +4 -4
  241. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  242. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  243. package/src/sap/ui/model/odata/ODataMetaModel.js +10 -10
  244. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  245. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  246. package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +22 -29
  247. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  248. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  249. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  250. package/src/sap/ui/model/odata/type/Date.js +1 -1
  251. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  252. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  253. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  254. package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
  255. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  256. package/src/sap/ui/model/odata/type/Double.js +1 -1
  257. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  258. package/src/sap/ui/model/odata/type/Int.js +1 -1
  259. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  260. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  261. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  262. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  263. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  264. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  265. package/src/sap/ui/model/odata/type/Single.js +1 -1
  266. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  267. package/src/sap/ui/model/odata/type/String.js +1 -1
  268. package/src/sap/ui/model/odata/type/Time.js +1 -1
  269. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  270. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  271. package/src/sap/ui/model/odata/v2/Context.js +5 -5
  272. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  273. package/src/sap/ui/model/odata/v2/ODataContextBinding.js +1 -1
  274. package/src/sap/ui/model/odata/v2/ODataListBinding.js +1 -1
  275. package/src/sap/ui/model/odata/v2/ODataModel.js +4 -4
  276. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
  277. package/src/sap/ui/model/odata/v4/AnnotationHelper.js +3 -3
  278. package/src/sap/ui/model/odata/v4/Context.js +88 -54
  279. package/src/sap/ui/model/odata/v4/ODataBinding.js +47 -4
  280. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +86 -66
  281. package/src/sap/ui/model/odata/v4/ODataListBinding.js +96 -68
  282. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +13 -10
  283. package/src/sap/ui/model/odata/v4/ODataModel.js +247 -27
  284. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +23 -5
  285. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +14 -8
  286. package/src/sap/ui/model/odata/v4/ODataUtils.js +7 -4
  287. package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +8 -8
  288. package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +40 -6
  289. package/src/sap/ui/model/odata/v4/lib/_Cache.js +89 -69
  290. package/src/sap/ui/model/odata/v4/lib/_ConcatHelper.js +2 -3
  291. package/src/sap/ui/model/odata/v4/lib/_Helper.js +47 -35
  292. package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +2 -3
  293. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +5 -0
  294. package/src/sap/ui/model/resource/ResourceModel.js +2 -2
  295. package/src/sap/ui/model/type/Boolean.js +1 -1
  296. package/src/sap/ui/model/type/Currency.js +2 -2
  297. package/src/sap/ui/model/type/Date.js +1 -1
  298. package/src/sap/ui/model/type/DateInterval.js +1 -1
  299. package/src/sap/ui/model/type/DateTime.js +1 -1
  300. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  301. package/src/sap/ui/model/type/FileSize.js +1 -1
  302. package/src/sap/ui/model/type/Float.js +1 -1
  303. package/src/sap/ui/model/type/Integer.js +1 -1
  304. package/src/sap/ui/model/type/String.js +2 -2
  305. package/src/sap/ui/model/type/Time.js +1 -1
  306. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  307. package/src/sap/ui/model/type/Unit.js +1 -1
  308. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  309. package/src/sap/ui/qunit/QUnitUtils.js +1 -2
  310. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  311. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  312. package/src/sap/ui/test/OpaBuilder.js +1 -1
  313. package/src/sap/ui/test/generic/TestBase.js +1 -1
  314. package/src/sap/ui/util/Storage.js +1 -1
@@ -10,21 +10,16 @@ sap.ui.define('sap/ui/debug/PropertyList', [
10
10
  'sap/ui/base/EventProvider',
11
11
  'sap/ui/core/Element',
12
12
  'sap/ui/core/ElementMetadata',
13
- 'sap/base/util/fetch',
14
13
  'sap/base/util/isEmptyObject',
15
- 'sap/base/security/encodeXML',
16
- 'sap/ui/thirdparty/jquery',
17
- 'sap/ui/dom/jquery/rect' // jQuery Plugin "rect"
14
+ 'sap/base/security/encodeXML'
18
15
  ],
19
16
  function(
20
17
  DataType,
21
18
  EventProvider,
22
19
  Element,
23
20
  ElementMetadata,
24
- fetch,
25
21
  isEmptyObject,
26
- encodeXML,
27
- jQuery
22
+ encodeXML
28
23
  ) {
29
24
  "use strict";
30
25
 
@@ -37,7 +32,7 @@ sap.ui.define('sap/ui/debug/PropertyList', [
37
32
  *
38
33
  * @extends sap.ui.base.EventProvider
39
34
  * @author Martin Schaus
40
- * @version 1.105.0
35
+ * @version 1.106.0
41
36
  *
42
37
  * @param {sap.ui.core.Core}
43
38
  * oCore Core instance of the app; version might differ!
@@ -56,7 +51,6 @@ sap.ui.define('sap/ui/debug/PropertyList', [
56
51
  this.oParentDomRef = oParentDomRef;
57
52
  // this.oCore = oWindow.sap.ui.getCore();
58
53
  this.oCore = oCore;
59
- this.bEmbedded = window.top === oWindow;
60
54
  // Note: window.top is assumed to refer to the app window in embedded mode or to the testsuite window otherwise
61
55
  var link = window.top.document.createElement("link");
62
56
  link.rel = "stylesheet";
@@ -69,12 +63,6 @@ sap.ui.define('sap/ui/debug/PropertyList', [
69
63
  oParentDomRef.addEventListener("focusin", this.onfocus);
70
64
  this.onkeydown = PropertyList.prototype.onkeydown.bind(this);
71
65
  oParentDomRef.addEventListener("keydown", this.onkeydown);
72
- if ( !this.bEmbedded ) {
73
- this.onmouseover = PropertyList.prototype.onmouseover.bind(this);
74
- oParentDomRef.addEventListener("mouseover", this.onmouseover);
75
- this.onmouseout = PropertyList.prototype.onmouseout.bind(this);
76
- oParentDomRef.addEventListener("mouseout", this.onmouseout);
77
- }
78
66
  //this.oParentDomRef.style.backgroundColor = "#e0e0e0";
79
67
  //this.oParentDomRef.style.border = "solid 1px gray";
80
68
  //this.oParentDomRef.style.padding = "2px";
@@ -90,10 +78,6 @@ sap.ui.define('sap/ui/debug/PropertyList', [
90
78
  this.oParentDomRef.removeEventListener("change", this.onchange);
91
79
  this.oParentDomRef.removeEventListener("focusin", this.onfocus);
92
80
  this.oParentDomRef.removeEventListener("keydown", this.onkeydown);
93
- if ( !this.bEmbedded ) {
94
- this.oParentDomRef.removeEventListener("mouseover", this.onmouseover);
95
- this.oParentDomRef.removeEventListener("mouseout", this.onmouseout);
96
- }
97
81
  };
98
82
 
99
83
  /**
@@ -111,11 +95,8 @@ sap.ui.define('sap/ui/debug/PropertyList', [
111
95
  }
112
96
  var oMetadata = oControl.getMetadata(),
113
97
  aHTML = [];
114
- aHTML.push("<span data-sap-ui-quickhelp='" + this._calcHelpId(oMetadata) + "'>Type : " + oMetadata.getName() + "</span><br >");
98
+ aHTML.push("Type : " + oMetadata.getName() + "<br >");
115
99
  aHTML.push("Id : " + oControl.getId() + "<br >");
116
- if ( !this.bEmbedded ) {
117
- aHTML.push("<div id='sap-ui-quickhelp' class='sapDbgQH'>Help</div>");
118
- }
119
100
  aHTML.push("<div class='sapDbgSeparator'>&nbsp;</div>");
120
101
  aHTML.push("<table class='sapDbgPropertyList' cellspacing='1'><tbody>");
121
102
 
@@ -164,7 +145,7 @@ sap.ui.define('sap/ui/debug/PropertyList', [
164
145
  oType = oSetting.multiple === false ? DataType.getType(oSetting.altTypes[0]) : oSetting.getType();
165
146
 
166
147
  aHTML.push("<tr><td>");
167
- aHTML.push("<span data-sap-ui-quickhelp='", this._calcHelpId(oSetting._oParent, sName), "' >", sName, '</span>');
148
+ aHTML.push(sName);
168
149
  aHTML.push("</td><td>");
169
150
  var sTitle = "";
170
151
 
@@ -205,7 +186,7 @@ sap.ui.define('sap/ui/debug/PropertyList', [
205
186
  aHTML.push("<input type='text' " + sValueClass + " value='" + encodeXML("" + oValue) + "'" + sTitle + " data-name='" + sName + "'>");
206
187
  }
207
188
  aHTML.push("</td></tr>");
208
- }.bind(this));
189
+ });
209
190
  };
210
191
 
211
192
  /**
@@ -268,231 +249,6 @@ sap.ui.define('sap/ui/debug/PropertyList', [
268
249
  }
269
250
  };
270
251
 
271
- PropertyList.prototype.showQuickHelp = function(oSource) {
272
- if ( this.oQuickHelpTimer ) {
273
- clearTimeout(this.oQuickHelpTimer);
274
- this.oQuickHelpTimer = undefined;
275
- }
276
- var oTooltipDomRef = this.oParentDomRef.ownerDocument.getElementById("sap-ui-quickhelp");
277
- if ( oTooltipDomRef ) {
278
- this.sCurrentHelpId = oSource.getAttribute("data-sap-ui-quickhelp");
279
- var oRect = jQuery(oSource).rect();
280
- oTooltipDomRef.style.left = (oRect.left + 40 + 10) + "px";
281
- oTooltipDomRef.style.top = (oRect.top - 40) + "px";
282
- oTooltipDomRef.style.display = 'block';
283
- oTooltipDomRef.style.opacity = '0.2';
284
- if ( this.mHelpDocs[this.sCurrentHelpId] ) {
285
- this.updateQuickHelp(this.mHelpDocs[this.sCurrentHelpId], 2000);
286
- } else {
287
- oTooltipDomRef.innerHTML = "<b>Quickhelp</b> for " + this.sCurrentHelpId + " is being retrieved...";
288
- this.sCurrentHelpDoc = this.sCurrentHelpId;
289
- this.sCurrentHelpDocPart = undefined;
290
- if ( this.sCurrentHelpId.indexOf('#') >= 0 ) {
291
- this.sCurrentHelpDoc = this.sCurrentHelpId.substring(0, this.sCurrentHelpId.indexOf('#'));
292
- this.sCurrentHelpDocPart = this.sCurrentHelpId.substring(this.sCurrentHelpId.indexOf('#') + 1);
293
- }
294
- var sUrl = this.oWindow.jQuery.sap.getModulePath(this.sCurrentHelpDoc, ".control");
295
- var that = this;
296
-
297
- fetch(sUrl, {
298
- headers: {
299
- Accept: fetch.ContentTypes.XML
300
- }
301
- }).then(function(response) {
302
- if (response.ok) {
303
- return response.text().then(function(responseText) {
304
- var parser = new DOMParser();
305
- var data = parser.parseFromString(responseText, "application/xml");
306
- that.receiveQuickHelp(data);
307
- });
308
- } else {
309
- throw new Error(response.statusText || response.status);
310
- }
311
- }).catch(function() {
312
- that.receiveQuickHelp(undefined);
313
- });
314
- this.oQuickHelpTimer = setTimeout(function () {
315
- that.hideQuickHelp();
316
- }, 2000);
317
- }
318
- }
319
- };
320
-
321
- // ---- Quickhelp ----
322
-
323
- PropertyList.prototype.receiveQuickHelp = function(oDocument) {
324
- if ( oDocument ) {
325
- var oControlNode = oDocument.getElementsByTagName("control")[0];
326
- if ( oControlNode ) {
327
- var get = function(oXMLNode, sName) {
328
- var result = [];
329
- var oCandidate = oXMLNode.firstChild;
330
- while ( oCandidate ) {
331
- if ( sName === oCandidate.nodeName ) {
332
- result.push(oCandidate);
333
- }
334
- oCandidate = oCandidate.nextSibling;
335
- }
336
- return result;
337
- };
338
- var aName = get(oControlNode, "name");
339
- var sName = '';
340
- if ( aName[0] ) {
341
- sName = aName[0].text || aName[0].textContent;
342
- }
343
- var aDocumentation = get(oControlNode, "documentation");
344
- if ( aDocumentation[0] ) {
345
- if ( sName && aDocumentation[0] ) {
346
- var doc = [];
347
- doc.push("<div class='sapDbgQHClassTitle'>", sName.replace('/', '.'), "</div>");
348
- doc.push("<div class='sapDbgQHDocPadding'>", aDocumentation[0].text || aDocumentation[0].textContent, "</div>");
349
- this.mHelpDocs[this.sCurrentHelpDoc] = doc.join("");
350
- }
351
- }
352
- var aProperties = get(oControlNode, "properties");
353
- if ( aProperties[0] ) {
354
- aProperties = get(aProperties[0], "property");
355
- }
356
- for (var i = 0, l = aProperties.length; i < l; i++) {
357
- var oProperty = aProperties[i];
358
- var sName = oProperty.getAttribute("name");
359
- var sType = oProperty.getAttribute("type") || "string";
360
- var sDefaultValue = oProperty.getAttribute("defaultValue") || "empty/undefined";
361
- var aDocumentation = get(oProperty, "documentation");
362
- if ( sName && aDocumentation[0] ) {
363
- var doc = [];
364
- doc.push("<div class='sapDbgQHSettingDoc'>", sName, "</div>");
365
- doc.push("<div class='sapDbgQHDocPadding'><i><strong>Type</strong></i>: ", sType, "</div>");
366
- doc.push("<div class='sapDbgQHDocPadding'>", aDocumentation[0].text || aDocumentation[0].textContent, "</div>");
367
- doc.push("<div class='sapDbgQHDocPadding'><i><strong>Default Value</strong></i>: ", sDefaultValue, "</div>");
368
- this.mHelpDocs[this.sCurrentHelpDoc + "#" + sName] = doc.join("");
369
- }
370
- }
371
- var aProperties = get(oControlNode, "aggregations");
372
- if ( aProperties[0] ) {
373
- aProperties = get(aProperties[0], "aggregation");
374
- }
375
- for (var i = 0, l = aProperties.length; i < l; i++) {
376
- var oProperty = aProperties[i];
377
- var sName = oProperty.getAttribute("name");
378
- var sType = oProperty.getAttribute("type") || "sap.ui.core/Control";
379
- var sDefaultValue = oProperty.getAttribute("defaultValue") || "empty/undefined";
380
- var aDocumentation = get(oProperty, "documentation");
381
- if ( sName && aDocumentation[0] && !this.mHelpDocs[this.sCurrentHelpDoc + "#" + sName]) {
382
- var doc = [];
383
- doc.push("<div class='sapDbgQHSettingTitle'>", sName, "</div>");
384
- doc.push("<div class='sapDbgQHDocPadding'><i><strong>Type</strong></i>: ", sType, "</div>");
385
- doc.push("<div class='sapDbgQHDocPadding'>", aDocumentation[0].text || aDocumentation[0].textContent, "</div>");
386
- doc.push("<div class='sapDbgQHDocPadding'><i><strong>Default Value</strong></i>: ", sDefaultValue, "</div>");
387
- this.mHelpDocs[this.sCurrentHelpDoc + "#" + sName] = doc.join("");
388
- }
389
- }
390
- }
391
- if ( this.mHelpDocs[this.sCurrentHelpId] ) {
392
- this.updateQuickHelp(this.mHelpDocs[this.sCurrentHelpId], 2000);
393
- } else {
394
- this.updateQuickHelp(undefined, 0);
395
- }
396
- } else {
397
- this.updateQuickHelp(undefined, 0);
398
- }
399
- };
400
-
401
- PropertyList.prototype.updateQuickHelp = function(sNewContent, iTimeout) {
402
- if ( this.oQuickHelpTimer ) {
403
- clearTimeout(this.oQuickHelpTimer);
404
- this.oQuickHelpTimer = undefined;
405
- }
406
- var oTooltipDomRef = this.oParentDomRef.ownerDocument.getElementById("sap-ui-quickhelp");
407
- if ( oTooltipDomRef ) {
408
- if ( !sNewContent ) {
409
- oTooltipDomRef.innerHTML = "<i>No quick help...</i>";
410
- oTooltipDomRef.style.display = 'none';
411
- } else {
412
- oTooltipDomRef.innerHTML = sNewContent;
413
- this.oQuickHelpTimer = setTimeout(function () {
414
- this.hideQuickHelp();
415
- }.bind(this), iTimeout);
416
- }
417
- }
418
- };
419
-
420
- PropertyList.prototype.hideQuickHelp = function() {
421
- var oTooltipDomRef = this.oParentDomRef.ownerDocument.getElementById("sap-ui-quickhelp");
422
- if ( oTooltipDomRef ) {
423
- oTooltipDomRef.style.display = 'none';
424
- }
425
- this.bMovedOverTooltip = false;
426
- };
427
-
428
- PropertyList.prototype._calcHelpId = function(oMetadata, sName) {
429
- var sHelpId = oMetadata.getName();
430
- if ( sName ) {
431
- sHelpId = sHelpId + "#" + sName;
432
- }
433
- return sHelpId;
434
- };
435
-
436
- PropertyList.prototype._isChildOfQuickHelp = function(oDomRef) {
437
- while ( oDomRef ) {
438
- if ( oDomRef.id === "sap-ui-quickhelp" ) {
439
- return true;
440
- }
441
- oDomRef = oDomRef.parentNode;
442
- }
443
- return false;
444
- };
445
-
446
- /**
447
- * TODO: missing internal JSDoc... @author please update
448
- * @private
449
- */
450
- PropertyList.prototype.onmouseover = function(oEvent) {
451
- var oSource = oEvent.target;
452
- if ( this._isChildOfQuickHelp(oSource) ) {
453
- // if the user enters the tooltip with the mouse, we don't close it automatically
454
- if ( this.oQuickHelpTimer ) {
455
- clearTimeout(this.oQuickHelpTimer);
456
- this.oQuickHelpTimer = undefined;
457
- }
458
- this.bMovedOverTooltip = true;
459
- var oTooltipDomRef = this.oParentDomRef.ownerDocument.getElementById("sap-ui-quickhelp");
460
- if ( oTooltipDomRef ) {
461
- oTooltipDomRef.style.opacity = '';
462
- }
463
- } else if ( oSource.getAttribute("data-sap-ui-quickhelp") ) {
464
- this.showQuickHelp(oSource);
465
- }
466
- };
467
-
468
- /**
469
- * TODO: missing internal JSDoc... @author please update
470
- * @private
471
- */
472
- PropertyList.prototype.onmouseout = function(oEvent) {
473
- var oSource = oEvent.target;
474
- if ( this._isChildOfQuickHelp(oSource) ) {
475
- if ( this.oQuickHelpTimer ) {
476
- clearTimeout(this.oQuickHelpTimer);
477
- this.oQuickHelpTimer = undefined;
478
- }
479
- this.bMovedOverTooltip = false;
480
- this.oQuickHelpTimer = setTimeout(function () {
481
- this.hideQuickHelp();
482
- }.bind(this), 50);
483
- } else if (oSource.getAttribute("data-sap-ui-quickhelp")) {
484
- if ( this.oQuickHelpTimer ) {
485
- clearTimeout(this.oQuickHelpTimer);
486
- this.oQuickHelpTimer = undefined;
487
- }
488
- if ( !this.bMovedOverTooltip ) {
489
- this.oQuickHelpTimer = setTimeout(function () {
490
- this.hideQuickHelp();
491
- }.bind(this), 800);
492
- }
493
- }
494
- };
495
-
496
252
  return PropertyList;
497
253
 
498
254
  });
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/thirdparty/jquery'], function(jQuery) {
17
17
  * @since 1.58
18
18
  * @param {string} [sClasses=null] The CSS class that should be added to the test element.
19
19
  * @param {boolean} [bForce=false] Force recalculation of size (e.g. when CSS was changed). When no classes are passed all calculated sizes are reset.
20
- * @return {object} Object with properties <code>width</code> and <code>height</code> (the values are of type number and are pixels).
20
+ * @returns {{width: number, height: number}} Object with properties <code>width</code> and <code>height</code> (the values are of type number and are pixels).
21
21
  * @public
22
22
  * @alias module:sap/ui/dom/getScrollbarSize
23
23
  */
@@ -25,6 +25,7 @@ sap.ui.define(['sap/ui/thirdparty/jquery', 'sap/ui/Global'],
25
25
  * @name jQuery#control
26
26
  * @function
27
27
  * @public
28
+ * @deprecated Since 1.106. Instead, use {@link sap.ui.core.Element.closestTo}.
28
29
  * @requires module:sap/ui/dom/jquery/control
29
30
  */
30
31
  jQuery.fn.control = function(iIndex, bIncludeRelated) {
@@ -5,15 +5,15 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  'sap/base/util/Version',
8
+ 'sap/ui/core/Element',
8
9
  'sap/ui/events/PseudoEvents',
9
10
  'sap/ui/events/checkMouseEnterOrLeave',
10
11
  'sap/ui/events/ControlEvents',
11
12
  'sap/ui/Device',
12
13
  'sap/ui/events/TouchToMouseMapping',
13
14
  'sap/ui/thirdparty/jquery',
14
- 'sap/ui/thirdparty/jquery-mobile-custom',
15
- 'sap/ui/dom/jquery/control'
16
- ], function(Version, PseudoEvents, checkMouseEnterOrLeave, ControlEvents, Device, TouchToMouseMapping, jQuery /*, jQueryMobile, control, EventExtension*/) {
15
+ 'sap/ui/thirdparty/jquery-mobile-custom'
16
+ ], function(Version, Element, PseudoEvents, checkMouseEnterOrLeave, ControlEvents, Device, TouchToMouseMapping, jQuery /*, jQueryMobile*/) {
17
17
  "use strict";
18
18
 
19
19
  /**
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  }
114
114
 
115
115
  var $DomRef = jQuery(oConfig.domRef),
116
- oControl = jQuery.fn.control ? jQuery(oEvent.target).control(0) : null,
116
+ oControl = Element.closestTo(oEvent.target),
117
117
  sTouchStartControlId = $DomRef.data("__touchstart_control"),
118
118
  oTouchStartControlDOM = sTouchStartControlId && window.document.getElementById(sTouchStartControlId);
119
119
 
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.model.Model
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.105.0
32
+ * @version 1.106.0
33
33
  *
34
34
  * @param {string} [oData] URL where to load the data from
35
35
  * @public
@@ -14,7 +14,7 @@ sap.ui.define(['./DataState', "sap/base/util/deepEqual", "sap/base/util/each"],
14
14
  * @extends sap.ui.model.DataState
15
15
  *
16
16
  * @author SAP SE
17
- * @version 1.105.0
17
+ * @version 1.106.0
18
18
  *
19
19
  * @public
20
20
  * @alias sap.ui.model.CompositeDataState
@@ -39,7 +39,7 @@ sap.ui.define(['./SimpleType'],
39
39
  * <code>true</code>.
40
40
  * @extends sap.ui.model.SimpleType
41
41
  * @public
42
- * @version 1.105.0
42
+ * @version 1.106.0
43
43
  */
44
44
  var CompositeType = SimpleType.extend("sap.ui.model.CompositeType", /** @lends sap.ui.model.CompositeType.prototype */ {
45
45
 
@@ -198,6 +198,9 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/util/isPlainObject"],
198
198
  * @private
199
199
  */
200
200
  Context.hasChanged = function(oOldContext, oNewContext) {
201
+ // The check below is used in ManagedObject.setBindingContext as well to avoid
202
+ // a dependency to Context (ManagedObject should be databinding free).
203
+ // Both places must kept in sync!
201
204
  return oOldContext !== oNewContext
202
205
  || !!oNewContext && !!oNewContext.hasChanged();
203
206
  };
@@ -55,7 +55,7 @@ sap.ui.define(['./Binding'],
55
55
  /**
56
56
  * Return the bound context.
57
57
  *
58
- * @returns {sap.ui.model.Context}
58
+ * @returns {sap.ui.model.Context|null}
59
59
  * Context object used by this context binding or <code>null</code>
60
60
  * @public
61
61
  */
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @extends sap.ui.base.Object
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.105.0
68
+ * @version 1.106.0
69
69
  *
70
70
  * @public
71
71
  * @alias sap.ui.model.DataState
@@ -310,7 +310,7 @@ sap.ui.define([
310
310
  * value was not rejected it returns <code>undefined</code>. In this case the current
311
311
  * model value can be accessed using the {@link #getValue} method.
312
312
  *
313
- * @returns {any} The value that was rejected or <code>undefined</code>
313
+ * @returns {any|undefined} The value that was rejected or <code>undefined</code>
314
314
  * @public
315
315
  */
316
316
  DataState.prototype.getInvalidValue = function() {
@@ -173,7 +173,7 @@ sap.ui.define(['./Binding', './Filter', './FilterType', './Sorter', 'sap/base/ut
173
173
  *
174
174
  * @function
175
175
  * @name sap.ui.model.ListBinding.prototype.sort
176
- * @param {sap.ui.model.Sorter|Array} aSorters
176
+ * @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} aSorters
177
177
  * The Sorter object or an array of sorters which defines the sort order
178
178
  * @return {this}
179
179
  * Returns <code>this</code> to facilitate method chaining
@@ -573,7 +573,7 @@ sap.ui.define(['./Binding', './Filter', './FilterType', './Sorter', 'sap/base/ut
573
573
  * A callback function to filter only relevant messages. The callback returns whether the
574
574
  * given {@link sap.ui.core.message.Message} is considered. If no callback function is given,
575
575
  * all messages are considered.
576
- * @returns {Promise<sap.ui.model.Filter>}
576
+ * @returns {Promise<sap.ui.model.Filter|null>}
577
577
  * A Promise that resolves with a {@link sap.ui.model.Filter} representing the entries with
578
578
  * messages; it resolves with <code>null</code> if the binding is not resolved or if the
579
579
  * binding knows that there is no message for any entry