@openui5/sap.ui.core 1.93.3 → 1.96.2

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 (416) hide show
  1. package/.eslintrc.json +13 -2
  2. package/.reuse/dep5 +6 -11
  3. package/THIRDPARTY.txt +10 -16
  4. package/package.json +1 -1
  5. package/src/jquery.sap.global.js +5 -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/jquery.sap.stubs.js +2 -1
  11. package/src/jquery.sap.trace.js +2 -1
  12. package/src/sap/base/i18n/ResourceBundle.js +6 -2
  13. package/src/sap/base/strings/whitespaceReplacer.js +52 -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/ui/Device.js +37 -42
  56. package/src/sap/ui/Global.js +8 -7
  57. package/src/sap/ui/base/DataType.js +14 -8
  58. package/src/sap/ui/base/Event.js +1 -1
  59. package/src/sap/ui/base/EventProvider.js +1 -1
  60. package/src/sap/ui/base/ExpressionParser.js +9 -6
  61. package/src/sap/ui/base/Interface.js +3 -49
  62. package/src/sap/ui/base/ManagedObject.js +12 -7
  63. package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
  64. package/src/sap/ui/base/Metadata.js +1 -1
  65. package/src/sap/ui/base/Object.js +49 -4
  66. package/src/sap/ui/base/ObjectPool.js +1 -1
  67. package/src/sap/ui/base/syncXHRFix.js +2 -1
  68. package/src/sap/ui/core/.library +5 -5
  69. package/src/sap/ui/core/AppCacheBuster.js +4 -4
  70. package/src/sap/ui/core/BusyIndicator.js +1 -11
  71. package/src/sap/ui/core/Component.js +300 -140
  72. package/src/sap/ui/core/ComponentContainer.js +24 -8
  73. package/src/sap/ui/core/ComponentMetadata.js +14 -3
  74. package/src/sap/ui/core/ComponentSupport.js +1 -1
  75. package/src/sap/ui/core/Configuration.js +67 -31
  76. package/src/sap/ui/core/Control.js +1 -1
  77. package/src/sap/ui/core/Core.js +103 -25
  78. package/src/sap/ui/core/CustomData.js +1 -1
  79. package/src/sap/ui/core/CustomizingConfiguration.js +35 -260
  80. package/src/sap/ui/core/DeclarativeSupport.js +3 -2
  81. package/src/sap/ui/core/Element.js +1 -1
  82. package/src/sap/ui/core/ElementMetadata.js +4 -2
  83. package/src/sap/ui/core/EnabledPropagator.js +91 -73
  84. package/src/sap/ui/core/EventBus.js +1 -1
  85. package/src/sap/ui/core/ExtensionPoint.js +7 -14
  86. package/src/sap/ui/core/Fragment.js +30 -32
  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 +7 -8
  90. package/src/sap/ui/core/IconPool.js +26 -1097
  91. package/src/sap/ui/core/IconRenderer.js +6 -6
  92. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  93. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  94. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  95. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  96. package/src/sap/ui/core/InvisibleText.js +1 -1
  97. package/src/sap/ui/core/Item.js +1 -1
  98. package/src/sap/ui/core/LabelEnablement.js +1 -1
  99. package/src/sap/ui/core/LayoutData.js +1 -1
  100. package/src/sap/ui/core/ListItem.js +1 -1
  101. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  102. package/src/sap/ui/core/Locale.js +26 -4
  103. package/src/sap/ui/core/LocaleData.js +1 -1
  104. package/src/sap/ui/core/Manifest.js +4 -61
  105. package/src/sap/ui/core/Message.js +1 -1
  106. package/src/sap/ui/core/Patcher.js +27 -3
  107. package/src/sap/ui/core/Placeholder.js +28 -15
  108. package/src/sap/ui/core/RenderManager.js +36 -6
  109. package/src/sap/ui/core/Renderer.js +13 -3
  110. package/src/sap/ui/core/ResizeHandler.js +1 -1
  111. package/src/sap/ui/core/ScrollBar.js +2 -2
  112. package/src/sap/ui/core/SeparatorItem.js +1 -1
  113. package/src/sap/ui/core/ShortcutHintsMixin.js +14 -7
  114. package/src/sap/ui/core/Title.js +1 -1
  115. package/src/sap/ui/core/TooltipBase.js +1 -1
  116. package/src/sap/ui/core/UIArea.js +1 -1
  117. package/src/sap/ui/core/UIComponent.js +42 -16
  118. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  119. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  120. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  121. package/src/sap/ui/core/XMLComposite.js +2 -2
  122. package/src/sap/ui/core/XMLCompositeMetadata.js +2 -2
  123. package/src/sap/ui/core/XMLTemplateProcessor.js +116 -41
  124. package/src/sap/ui/core/_IconRegistry.js +1148 -0
  125. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  126. package/src/sap/ui/core/delegate/ScrollEnablement.js +6 -3
  127. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  128. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  129. package/src/sap/ui/core/dnd/DragInfo.js +2 -2
  130. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  131. package/src/sap/ui/core/format/NumberFormat.js +16 -1
  132. package/src/sap/ui/core/hyphenation/Hyphenation.js +73 -221
  133. package/src/sap/ui/core/hyphenation/HyphenationTestingWords.js +11 -10
  134. package/src/sap/ui/core/library.js +3 -3
  135. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  136. package/src/sap/ui/core/message/Message.js +1 -1
  137. package/src/sap/ui/core/message/MessageManager.js +13 -15
  138. package/src/sap/ui/core/message/MessageParser.js +1 -1
  139. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  140. package/src/sap/ui/core/messagebundle_de.properties +1 -1
  141. package/src/sap/ui/core/messagebundle_fr.properties +1 -1
  142. package/src/sap/ui/core/messagebundle_it.properties +1 -1
  143. package/src/sap/ui/core/messagebundle_pl.properties +1 -1
  144. package/src/sap/ui/core/messagebundle_th.properties +2 -2
  145. package/src/sap/ui/core/mvc/Controller.js +38 -19
  146. package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +30 -32
  147. package/src/sap/ui/core/mvc/ControllerMetadata.js +18 -18
  148. package/src/sap/ui/core/mvc/HTMLView.js +2 -2
  149. package/src/sap/ui/core/mvc/JSONView.js +2 -2
  150. package/src/sap/ui/core/mvc/JSView.js +2 -2
  151. package/src/sap/ui/core/mvc/TemplateView.js +2 -2
  152. package/src/sap/ui/core/mvc/View.js +58 -85
  153. package/src/sap/ui/core/mvc/XMLView.js +2 -2
  154. package/src/sap/ui/core/mvc/XMLViewRenderer.js +17 -20
  155. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  156. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  157. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  158. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  159. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  160. package/src/sap/ui/core/routing/History.js +10 -2
  161. package/src/sap/ui/core/routing/Router.js +8 -1
  162. package/src/sap/ui/core/routing/Target.js +13 -0
  163. package/src/sap/ui/core/routing/Targets.js +13 -2
  164. package/src/sap/ui/core/routing/async/Route.js +1 -1
  165. package/src/sap/ui/core/routing/async/Target.js +353 -259
  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/BootSupportTool.js +11 -0
  172. package/src/sap/ui/core/support/InteractionTree.css +4 -0
  173. package/src/sap/ui/core/support/Plugin.js +1 -1
  174. package/src/sap/ui/core/support/Support.js +1 -1
  175. package/src/sap/ui/core/support/ViewInfo.css +599 -0
  176. package/src/sap/ui/core/support/controls/InteractionTree.js +352 -222
  177. package/src/sap/ui/core/support/controls/ObjectViewer.js +3 -41
  178. package/src/sap/ui/core/support/controls/TimelineOverview.js +49 -24
  179. package/src/sap/ui/core/support/controls/TreeViewer.js +12 -58
  180. package/src/sap/ui/core/support/plugins/ControlTree.js +59 -68
  181. package/src/sap/ui/core/support/plugins/Debugging.js +9 -11
  182. package/src/sap/ui/core/support/plugins/Interaction.js +2 -2
  183. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  184. package/src/sap/ui/core/support/plugins/Performance.js +147 -75
  185. package/src/sap/ui/core/support/plugins/Selector.js +19 -24
  186. package/src/sap/ui/core/support/plugins/TechInfo.js +5 -5
  187. package/src/sap/ui/core/support/plugins/Trace.js +95 -32
  188. package/src/sap/ui/core/support/plugins/ViewInfo.js +9 -73
  189. package/src/sap/ui/core/support/support.css +109 -14
  190. package/src/sap/ui/core/support/support.html +6 -2
  191. package/src/sap/ui/core/support/techinfo/TechnicalInfo.fragment.xml +1 -0
  192. package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +149 -72
  193. package/src/sap/ui/core/themes/base/Icon.less +9 -0
  194. package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
  195. package/src/sap/ui/core/theming/Parameters.js +6 -4
  196. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  197. package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
  198. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  199. package/src/sap/ui/core/tmpl/Template.js +10 -28
  200. package/src/sap/ui/core/tmpl/TemplateControl.js +4 -4
  201. package/src/sap/ui/core/tmpl/_parsePath.js +35 -0
  202. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  203. package/src/sap/ui/core/util/DraftEnabledMockServer.js +9 -4
  204. package/src/sap/ui/core/util/Export.js +1 -1
  205. package/src/sap/ui/core/util/ExportCell.js +1 -1
  206. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  207. package/src/sap/ui/core/util/ExportRow.js +1 -1
  208. package/src/sap/ui/core/util/ExportType.js +1 -1
  209. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  210. package/src/sap/ui/core/util/File.js +1 -1
  211. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  212. package/src/sap/ui/core/util/MockServer.js +5 -5
  213. package/src/sap/ui/core/util/MockServerAnnotationsHandler.js +3 -2
  214. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  215. package/src/sap/ui/core/util/XMLPreprocessor.js +11 -12
  216. package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +136 -63
  217. package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +170 -153
  218. package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +424 -293
  219. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  220. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  221. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  222. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  223. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  224. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  225. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  226. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  227. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  228. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  229. package/src/sap/ui/debug/ControlTree.js +10 -4
  230. package/src/sap/ui/debug/DebugEnv.js +3 -4
  231. package/src/sap/ui/debug/Highlighter.js +8 -2
  232. package/src/sap/ui/debug/PropertyList.css +55 -0
  233. package/src/sap/ui/debug/PropertyList.js +111 -182
  234. package/src/sap/ui/model/Binding.js +174 -118
  235. package/src/sap/ui/model/ClientContextBinding.js +1 -1
  236. package/src/sap/ui/model/ClientListBinding.js +1 -3
  237. package/src/sap/ui/model/ClientModel.js +4 -4
  238. package/src/sap/ui/model/ClientPropertyBinding.js +4 -2
  239. package/src/sap/ui/model/ClientTreeBinding.js +15 -9
  240. package/src/sap/ui/model/ClientTreeBindingAdapter.js +28 -23
  241. package/src/sap/ui/model/CompositeBinding.js +98 -77
  242. package/src/sap/ui/model/CompositeDataState.js +2 -2
  243. package/src/sap/ui/model/CompositeType.js +2 -2
  244. package/src/sap/ui/model/Context.js +4 -2
  245. package/src/sap/ui/model/ContextBinding.js +6 -14
  246. package/src/sap/ui/model/DataState.js +2 -2
  247. package/src/sap/ui/model/Filter.js +255 -53
  248. package/src/sap/ui/model/FilterOperator.js +1 -1
  249. package/src/sap/ui/model/FilterProcessor.js +27 -17
  250. package/src/sap/ui/model/FilterType.js +1 -1
  251. package/src/sap/ui/model/ListBinding.js +180 -117
  252. package/src/sap/ui/model/MetaModel.js +4 -9
  253. package/src/sap/ui/model/Model.js +345 -294
  254. package/src/sap/ui/model/PropertyBinding.js +92 -58
  255. package/src/sap/ui/model/SelectionModel.js +2 -2
  256. package/src/sap/ui/model/SimpleType.js +2 -2
  257. package/src/sap/ui/model/Sorter.js +1 -1
  258. package/src/sap/ui/model/SorterProcessor.js +1 -1
  259. package/src/sap/ui/model/StaticBinding.js +1 -1
  260. package/src/sap/ui/model/TreeAutoExpandMode.js +2 -2
  261. package/src/sap/ui/model/TreeBinding.js +1 -1
  262. package/src/sap/ui/model/TreeBindingAdapter.js +251 -100
  263. package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +16 -9
  264. package/src/sap/ui/model/TreeBindingUtils.js +1 -0
  265. package/src/sap/ui/model/Type.js +1 -1
  266. package/src/sap/ui/model/analytics/AnalyticalBinding.js +8 -4
  267. package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +1 -1
  268. package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +1 -1
  269. package/src/sap/ui/model/analytics/BatchResponseCollector.js +1 -1
  270. package/src/sap/ui/model/analytics/ODataModelAdapter.js +1 -1
  271. package/src/sap/ui/model/analytics/odata4analytics.js +34 -25
  272. package/src/sap/ui/model/base/ManagedObjectModel.js +4 -0
  273. package/src/sap/ui/model/json/JSONListBinding.js +8 -5
  274. package/src/sap/ui/model/json/JSONModel.js +24 -15
  275. package/src/sap/ui/model/json/JSONPropertyBinding.js +4 -3
  276. package/src/sap/ui/model/json/JSONTreeBinding.js +1 -1
  277. package/src/sap/ui/model/message/MessageListBinding.js +6 -3
  278. package/src/sap/ui/model/message/MessageModel.js +23 -15
  279. package/src/sap/ui/model/message/MessagePropertyBinding.js +2 -2
  280. package/src/sap/ui/model/odata/AnnotationHelper.js +1 -1
  281. package/src/sap/ui/model/odata/AnnotationParser.js +1 -1
  282. package/src/sap/ui/model/odata/CountMode.js +1 -1
  283. package/src/sap/ui/model/odata/Filter.js +1 -1
  284. package/src/sap/ui/model/odata/ODataAnnotations.js +2 -2
  285. package/src/sap/ui/model/odata/ODataContextBinding.js +1 -1
  286. package/src/sap/ui/model/odata/ODataListBinding.js +1 -1
  287. package/src/sap/ui/model/odata/ODataMessageParser.js +2 -2
  288. package/src/sap/ui/model/odata/ODataMetaModel.js +5 -3
  289. package/src/sap/ui/model/odata/ODataMetadata.js +2 -2
  290. package/src/sap/ui/model/odata/ODataModel.js +8 -7
  291. package/src/sap/ui/model/odata/ODataPropertyBinding.js +1 -1
  292. package/src/sap/ui/model/odata/ODataTreeBinding.js +65 -33
  293. package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +1 -1
  294. package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +2 -2
  295. package/src/sap/ui/model/odata/ODataUtils.js +13 -11
  296. package/src/sap/ui/model/odata/OperationMode.js +1 -1
  297. package/src/sap/ui/model/odata/_AnnotationHelperExpression.js +1 -1
  298. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  299. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  300. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  301. package/src/sap/ui/model/odata/type/Date.js +1 -1
  302. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  303. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  304. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  305. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  306. package/src/sap/ui/model/odata/type/Double.js +1 -1
  307. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  308. package/src/sap/ui/model/odata/type/Int.js +1 -1
  309. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  310. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  311. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  312. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  313. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  314. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  315. package/src/sap/ui/model/odata/type/Single.js +1 -1
  316. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  317. package/src/sap/ui/model/odata/type/String.js +1 -1
  318. package/src/sap/ui/model/odata/type/Time.js +1 -1
  319. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  320. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  321. package/src/sap/ui/model/odata/v2/Context.js +81 -9
  322. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +3 -3
  323. package/src/sap/ui/model/odata/v2/ODataContextBinding.js +39 -49
  324. package/src/sap/ui/model/odata/v2/ODataListBinding.js +236 -73
  325. package/src/sap/ui/model/odata/v2/ODataModel.js +314 -164
  326. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +110 -97
  327. package/src/sap/ui/model/odata/v2/_CreatedContextsCache.js +129 -0
  328. package/src/sap/ui/model/odata/v4/Context.js +6 -3
  329. package/src/sap/ui/model/odata/v4/ODataBinding.js +5 -6
  330. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +117 -40
  331. package/src/sap/ui/model/odata/v4/ODataListBinding.js +95 -15
  332. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +44 -31
  333. package/src/sap/ui/model/odata/v4/ODataModel.js +86 -78
  334. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +47 -28
  335. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +11 -7
  336. package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +10 -3
  337. package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +8 -1
  338. package/src/sap/ui/model/odata/v4/lib/_Cache.js +24 -16
  339. package/src/sap/ui/model/odata/v4/lib/_Helper.js +32 -30
  340. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +52 -17
  341. package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +2 -2
  342. package/src/sap/ui/model/resource/ResourceModel.js +6 -2
  343. package/src/sap/ui/model/resource/ResourcePropertyBinding.js +1 -1
  344. package/src/sap/ui/model/type/Boolean.js +2 -2
  345. package/src/sap/ui/model/type/Currency.js +2 -2
  346. package/src/sap/ui/model/type/Date.js +9 -3
  347. package/src/sap/ui/model/type/DateInterval.js +4 -2
  348. package/src/sap/ui/model/type/DateTime.js +2 -2
  349. package/src/sap/ui/model/type/DateTimeInterval.js +2 -2
  350. package/src/sap/ui/model/type/FileSize.js +4 -2
  351. package/src/sap/ui/model/type/Float.js +4 -2
  352. package/src/sap/ui/model/type/Integer.js +4 -2
  353. package/src/sap/ui/model/type/String.js +2 -2
  354. package/src/sap/ui/model/type/Time.js +2 -2
  355. package/src/sap/ui/model/type/TimeInterval.js +2 -2
  356. package/src/sap/ui/model/type/Unit.js +14 -7
  357. package/src/sap/ui/model/xml/XMLListBinding.js +15 -9
  358. package/src/sap/ui/model/xml/XMLModel.js +70 -41
  359. package/src/sap/ui/model/xml/XMLPropertyBinding.js +4 -4
  360. package/src/sap/ui/model/xml/XMLTreeBinding.js +5 -4
  361. package/src/sap/ui/performance/trace/Interaction.js +30 -15
  362. package/src/sap/ui/performance/trace/initTraces.js +1 -1
  363. package/src/sap/ui/qunit/QUnitUtils.js +3 -2
  364. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  365. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +9 -11
  366. package/src/sap/ui/test/TestUtils.js +11 -4
  367. package/src/sap/ui/test/actions/Drag.js +6 -2
  368. package/src/sap/ui/test/actions/Drop.js +6 -2
  369. package/src/sap/ui/test/actions/EnterText.js +6 -0
  370. package/src/sap/ui/test/actions/Press.js +6 -0
  371. package/src/sap/ui/test/actions/Scroll.js +6 -0
  372. package/src/sap/ui/test/autowaiter/_resourceWaiter.js +4 -4
  373. package/src/sap/ui/test/launchers/componentLauncher.js +0 -4
  374. package/src/sap/ui/test/matchers/I18NText.js +29 -11
  375. package/src/sap/ui/test/opaQunit.js +5 -0
  376. package/src/sap/ui/thirdparty/crossroads.js +6 -4
  377. package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly.js +1196 -0
  378. package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly_Loader.js +797 -0
  379. package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js +108 -127
  380. package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.wasm +0 -0
  381. package/src/sap/ui/thirdparty/hyphenopoly/patterns/bg.hpb +0 -0
  382. package/src/sap/ui/thirdparty/hyphenopoly/patterns/ca.hpb +0 -0
  383. package/src/sap/ui/thirdparty/hyphenopoly/patterns/da.hpb +0 -0
  384. package/src/sap/ui/thirdparty/hyphenopoly/patterns/de.hpb +0 -0
  385. package/src/sap/ui/thirdparty/hyphenopoly/patterns/el-monoton.hpb +0 -0
  386. package/src/sap/ui/thirdparty/hyphenopoly/patterns/en-us.hpb +0 -0
  387. package/src/sap/ui/thirdparty/hyphenopoly/patterns/es.hpb +0 -0
  388. package/src/sap/ui/thirdparty/hyphenopoly/patterns/et.hpb +0 -0
  389. package/src/sap/ui/thirdparty/hyphenopoly/patterns/fi.hpb +0 -0
  390. package/src/sap/ui/thirdparty/hyphenopoly/patterns/fr.hpb +0 -0
  391. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hi.hpb +0 -0
  392. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hr.hpb +0 -0
  393. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hu.hpb +0 -0
  394. package/src/sap/ui/thirdparty/hyphenopoly/patterns/it.hpb +0 -0
  395. package/src/sap/ui/thirdparty/hyphenopoly/patterns/lt.hpb +0 -0
  396. package/src/sap/ui/thirdparty/hyphenopoly/patterns/nb-no.hpb +0 -0
  397. package/src/sap/ui/thirdparty/hyphenopoly/patterns/nl.hpb +0 -0
  398. package/src/sap/ui/thirdparty/hyphenopoly/patterns/pt.hpb +0 -0
  399. package/src/sap/ui/thirdparty/hyphenopoly/patterns/ru.hpb +0 -0
  400. package/src/sap/ui/thirdparty/hyphenopoly/patterns/sl.hpb +0 -0
  401. package/src/sap/ui/thirdparty/hyphenopoly/patterns/sv.hpb +0 -0
  402. package/src/sap/ui/thirdparty/hyphenopoly/patterns/th.hpb +0 -0
  403. package/src/sap/ui/thirdparty/hyphenopoly/patterns/tr.hpb +0 -0
  404. package/src/sap/ui/thirdparty/hyphenopoly/patterns/uk.hpb +0 -0
  405. package/src/sap/ui/thirdparty/jquery.js +9 -1
  406. package/src/sap/ui/thirdparty/qunit-2.js +1 -1
  407. package/src/sap/ui/thirdparty/qunit.js +1 -1
  408. package/src/sap/ui/util/Mobile.js +2 -20
  409. package/src/sap/ui/util/Storage.js +1 -1
  410. package/src/sap/ui/util/isCrossOriginURL.js +16 -6
  411. package/src/sap-ui-core-nojQuery.js +1 -1
  412. package/src/sap-ui-core.js +1 -1
  413. package/src/sap-ui-debug.js +3 -17
  414. package/ui5.yaml +5 -2
  415. package/src/sap/ui/core/support/plugins/MessageTest.js +0 -96
  416. package/src/sap/ui/thirdparty/hyphenopoly/hyphenopoly.bundle.js +0 -860
@@ -3,7 +3,7 @@
3
3
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
-
6
+ /*eslint-disable max-len */
7
7
  // Provides the base implementation for all model implementations
8
8
  sap.ui.define([
9
9
  'sap/ui/core/message/MessageProcessor',
@@ -16,17 +16,19 @@ sap.ui.define([
16
16
  function(MessageProcessor, BindingMode, Context, Filter, deepEqual, each) {
17
17
  "use strict";
18
18
 
19
- /*global Set */
20
19
 
21
20
  /**
22
21
  * The SAPUI5 Data Binding API.
23
22
  *
24
- * The default binding mode for model implementations (if not implemented otherwise) is two way and the supported binding modes by the model
25
- * are one way, two way and one time. The default binding mode can be changed by the application for each model instance.
26
- * A model implementation should specify its supported binding modes and set the default binding mode accordingly
27
- * (e.g. if the model supports only one way binding the default binding mode should also be set to one way).
23
+ * The default binding mode for model implementations (if not implemented otherwise) is two-way
24
+ * and the supported binding modes by the model are one-way, two-way and one-time. The default
25
+ * binding mode can be changed by the application for each model instance. A model
26
+ * implementation should specify its supported binding modes and set the default binding mode
27
+ * accordingly (e.g. if the model supports only one-way binding the default binding mode should
28
+ * also be set to one-way).
28
29
  *
29
- * The default size limit for models is 100. The size limit determines the number of entries used for the list bindings.
30
+ * The default size limit for models is 100. The size limit determines the number of entries
31
+ * used for the list bindings.
30
32
  *
31
33
  *
32
34
  * @namespace
@@ -37,7 +39,8 @@ sap.ui.define([
37
39
  /**
38
40
  * Constructor for a new Model.
39
41
  *
40
- * Every Model is a MessageProcessor that is able to handle Messages with the normal binding path syntax in the target.
42
+ * Every Model is a MessageProcessor that is able to handle Messages with the normal binding
43
+ * path syntax in the target.
41
44
  *
42
45
  * @class
43
46
  * This is an abstract base class for model objects.
@@ -46,7 +49,7 @@ sap.ui.define([
46
49
  * @extends sap.ui.core.message.MessageProcessor
47
50
  *
48
51
  * @author SAP SE
49
- * @version 1.93.3
52
+ * @version 1.96.2
50
53
  *
51
54
  * @public
52
55
  * @alias sap.ui.model.Model
@@ -96,14 +99,6 @@ sap.ui.define([
96
99
  "attachRequestCompleted", "detachRequestCompleted", "attachRequestFailed", "detachRequestFailed", "attachRequestSent",
97
100
  "detachRequestSent", "attachPropertyChange", "detachPropertyChange", "setSizeLimit", "refresh", "isList", "getObject"
98
101
  ]
99
- /* the following would save code, but requires the new ManagedObject (1.9.1)
100
- , events : {
101
- "parseError" : {},
102
- "requestFailed" : {},
103
- "requestSent" : {},
104
- "requestCompleted" ; {}
105
- }
106
- */
107
102
  }
108
103
  });
109
104
 
@@ -113,40 +108,44 @@ sap.ui.define([
113
108
  */
114
109
  Model.M_EVENTS = {
115
110
  /**
116
- * Depending on the model implementation a ParseError should be fired if a parse error occurred.
111
+ * Depending on the model implementation a ParseError should be fired if a parse error
112
+ * occurred.
117
113
  * Contains the parameters:
118
114
  * errorCode, url, reason, srcText, line, linepos, filepos
119
115
  */
120
116
  ParseError : "parseError",
121
117
 
122
118
  /**
123
- * Depending on the model implementation a RequestFailed should be fired if a request to a backend failed.
119
+ * Depending on the model implementation a RequestFailed should be fired if a request to a
120
+ * backend failed.
124
121
  * Contains the parameters:
125
122
  * message, statusCode, statusText and responseText
126
- *
127
123
  */
128
124
  RequestFailed : "requestFailed",
129
125
 
130
126
  /**
131
- * Depending on the model implementation a RequestSent should be fired when a request to a backend is sent.
132
- * Contains Parameters: url, type, async, info (<strong>deprecated</strong>), infoObject
133
- *
127
+ * Depending on the model implementation a RequestSent should be fired when a request to a
128
+ * backend is sent.
129
+ * Contains Parameters:
130
+ * url, type, async, info (<strong>deprecated</strong>), infoObject
134
131
  */
135
132
  RequestSent : "requestSent",
136
133
 
137
134
  /**
138
- * Depending on the model implementation a RequestCompleted should be fired when a request to a backend is completed regardless if the request failed or succeeded.
139
- * Contains Parameters: url, type, async, info (<strong>deprecated</strong>), infoObject, success, errorobject
140
- *
135
+ * Depending on the model implementation a RequestCompleted should be fired when a request
136
+ * to a backend is completed regardless if the request failed or succeeded.
137
+ * Contains Parameters:
138
+ * url, type, async, info (<strong>deprecated</strong>), infoObject, success, errorobject
141
139
  */
142
140
  RequestCompleted : "requestCompleted",
143
141
 
144
142
  /**
145
- * Event is fired when changes occur to a property value in the model. The event contains a reason parameter which describes the cause of the property value change.
146
- * Currently the event is only fired with reason <code>sap.ui.model.ChangeReason.Binding</code> which is fired when two way changes occur to a value of a property binding.
143
+ * Event is fired when changes occur to a property value in the model. The event contains a
144
+ * reason parameter which describes the cause of the property value change. Currently the
145
+ * event is only fired with reason <code>sap.ui.model.ChangeReason.Binding</code> which is
146
+ * fired when two way changes occur to a value of a property binding.
147
147
  * Contains the parameters:
148
148
  * reason, path, context, value
149
- *
150
149
  */
151
150
  PropertyChange : "propertyChange"
152
151
  };
@@ -154,38 +153,44 @@ sap.ui.define([
154
153
  /**
155
154
  * The <code>requestFailed</code> event is fired, when data retrieval from a backend failed.
156
155
  *
157
- * Note: Subclasses might add additional parameters to the event object. Optional parameters can be omitted.
156
+ * Note: Subclasses might add additional parameters to the event object. Optional parameters can
157
+ * be omitted.
158
158
  *
159
159
  * @name sap.ui.model.Model#requestFailed
160
160
  * @event
161
161
  * @param {sap.ui.base.Event} oEvent
162
162
  * @param {sap.ui.base.EventProvider} oEvent.getSource
163
163
  * @param {object} oEvent.getParameters
164
-
165
- * @param {string} oEvent.getParameters.message A text that describes the failure.
166
- * @param {string} oEvent.getParameters.statusCode HTTP status code returned by the request (if available)
167
- * @param {string} oEvent.getParameters.statusText The status as a text, details not specified, intended only for diagnosis output
168
- * @param {string} [oEvent.getParameters.responseText] Response that has been received for the request, as a text string
164
+ * @param {string} oEvent.getParameters.message
165
+ * A text that describes the failure.
166
+ * @param {string} oEvent.getParameters.statusCode
167
+ * HTTP status code returned by the request (if available)
168
+ * @param {string} oEvent.getParameters.statusText
169
+ * The status as a text, details not specified, intended only for diagnosis output
170
+ * @param {string} [oEvent.getParameters.responseText]
171
+ * Response that has been received for the request, as a text string
169
172
  * @public
170
173
  */
171
174
 
172
175
  /**
173
- * Attaches event handler <code>fnFunction</code> to the {@link #event:requestFailed requestFailed} event of this
174
- * <code>sap.ui.model.Model</code>.
175
- *
176
- * When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code>
177
- * if specified, otherwise it will be bound to this <code>sap.ui.model.Model</code> itself.
178
- *
179
- * @param {object}
180
- * [oData] An application-specific payload object that will be passed to the event handler
181
- * along with the event object when firing the event
182
- * @param {function}
183
- * fnFunction The function to be called, when the event occurs
184
- * @param {object}
185
- * [oListener] Context object to call the event handler with. Defaults to this
186
- * <code>sap.ui.model.Model</code> itself
187
- *
188
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
176
+ * Attaches event handler <code>fnFunction</code> to the
177
+ * {@link #event:requestFailed requestFailed} event of this <code>sap.ui.model.Model</code>.
178
+ *
179
+ * When called, the context of the event handler (its <code>this</code>) will be bound to
180
+ * <code>oListener</code> if specified, otherwise it will be bound to this
181
+ * <code>sap.ui.model.Model</code> itself.
182
+ *
183
+ * @param {object} [oData]
184
+ * An application-specific payload object that will be passed to the event handler along with
185
+ * the event object when firing the event
186
+ * @param {function} fnFunction
187
+ * The function to be called when the event occurs
188
+ * @param {object} [oListener]
189
+ * Context object to call the event handler with. Defaults to this
190
+ * <code>sap.ui.model.Model</code> itself
191
+ *
192
+ * @returns {this}
193
+ * Reference to <code>this</code> in order to allow method chaining
189
194
  * @public
190
195
  */
191
196
  Model.prototype.attachRequestFailed = function(oData, fnFunction, oListener) {
@@ -194,15 +199,14 @@ sap.ui.define([
194
199
  };
195
200
 
196
201
  /**
197
- * Detaches event handler <code>fnFunction</code> from the {@link #event:requestFailed requestFailed} event of this
198
- * <code>sap.ui.model.Model</code>.
202
+ * Detaches event handler <code>fnFunction</code> from the
203
+ * {@link #event:requestFailed requestFailed} event of this <code>sap.ui.model.Model</code>.
199
204
  *
200
205
  * The passed function and listener object must match the ones used for event registration.
201
206
  *
202
- * @param {function}
203
- * fnFunction The function to be called, when the event occurs
204
- * @param {object}
205
- * [oListener] Context object on which the given function had to be called
207
+ * @param {function} fnFunction The function to be called when the event occurs
208
+ * @param {object} [oListener] Context object on which the given function had to be called
209
+ *
206
210
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
207
211
  * @public
208
212
  */
@@ -214,13 +218,19 @@ sap.ui.define([
214
218
  /**
215
219
  * Fires event {@link #event:requestFailed requestFailed} to attached listeners.
216
220
  *
217
- * @param {object} [oParameters] Parameters to pass along with the event
218
- * @param {string} [oParameters.message] A text that describes the failure.
219
- * @param {string} [oParameters.statusCode] HTTP status code returned by the request (if available)
220
- * @param {string} [oParameters.statusText] The status as a text, details not specified, intended only for diagnosis output
221
- * @param {string} [oParameters.responseText] Response that has been received for the request ,as a text string
222
- *
223
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
221
+ * @param {object} [oParameters]
222
+ * Parameters to pass along with the event
223
+ * @param {string} [oParameters.message]
224
+ * A text that describes the failure.
225
+ * @param {string} [oParameters.statusCode]
226
+ * HTTP status code returned by the request (if available)
227
+ * @param {string} [oParameters.statusText]
228
+ * The status as a text, details not specified, intended only for diagnosis output
229
+ * @param {string} [oParameters.responseText]
230
+ * Response that has been received for the request, as a text string
231
+ *
232
+ * @returns {this}
233
+ * Reference to <code>this</code> in order to allow method chaining
224
234
  * @protected
225
235
  */
226
236
  Model.prototype.fireRequestFailed = function(oParameters) {
@@ -230,7 +240,8 @@ sap.ui.define([
230
240
 
231
241
 
232
242
  /**
233
- * The <code>parseError</code> event is fired when parsing of a model document (e.g. XML response) fails.
243
+ * The <code>parseError</code> event is fired when parsing of a model document (e.g. XML
244
+ * response) fails.
234
245
  *
235
246
  * @name sap.ui.model.Model#parseError
236
247
  * @event
@@ -248,22 +259,24 @@ sap.ui.define([
248
259
  */
249
260
 
250
261
  /**
251
- * Attaches event handler <code>fnFunction</code> to the {@link #event:parseError parseError} event of this
252
- * <code>sap.ui.model.Model</code>.
253
- *
254
- * When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code>
255
- * if specified, otherwise it will be bound to this <code>sap.ui.model.Model</code> itself.
256
- *
257
- * @param {object}
258
- * [oData] An application-specific payload object that will be passed to the event handler
259
- * along with the event object when firing the event
260
- * @param {function}
261
- * fnFunction The function to be called, when the event occurs
262
- * @param {object}
263
- * [oListener] Context object to call the event handler with. Defaults to this
264
- * <code>sap.ui.model.Model</code> itself.
265
- *
266
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
262
+ * Attaches event handler <code>fnFunction</code> to the
263
+ * {@link #event:parseError parseError} event of this <code>sap.ui.model.Model</code>.
264
+ *
265
+ * When called, the context of the event handler (its <code>this</code>) will be bound to
266
+ * <code>oListener</code> if specified, otherwise it will be bound to this
267
+ * <code>sap.ui.model.Model</code> itself.
268
+ *
269
+ * @param {object} [oData]
270
+ * An application-specific payload object that will be passed to the event handler along with
271
+ * the event object when firing the event
272
+ * @param {function} fnFunction
273
+ * The function to be called when the event occurs
274
+ * @param {object} [oListener]
275
+ * Context object to call the event handler with. Defaults to this
276
+ * <code>sap.ui.model.Model</code> itself.
277
+ *
278
+ * @returns {this}
279
+ * Reference to <code>this</code> in order to allow method chaining
267
280
  * @public
268
281
  */
269
282
  Model.prototype.attachParseError = function(oData, fnFunction, oListener) {
@@ -272,16 +285,18 @@ sap.ui.define([
272
285
  };
273
286
 
274
287
  /**
275
- * Detaches event handler <code>fnFunction</code> from the {@link #event:parseError parseError} event of this
276
- * <code>sap.ui.model.Model</code>.
288
+ * Detaches event handler <code>fnFunction</code> from the
289
+ * {@link #event:parseError parseError} event of this <code>sap.ui.model.Model</code>.
277
290
  *
278
291
  * The passed function and listener object must match the ones used for event registration.
279
292
  *
280
- * @param {function}
281
- * fnFunction The function to be called, when the event occurs
282
- * @param {object}
283
- * [oListener] Context object on which the given function had to be called
284
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
293
+ * @param {function} fnFunction
294
+ * The function to be called when the event occurs
295
+ * @param {object} [oListener]
296
+ * Context object on which the given function had to be called
297
+ *
298
+ * @returns {this}
299
+ * Reference to <code>this</code> in order to allow method chaining
285
300
  * @public
286
301
  */
287
302
  Model.prototype.detachParseError = function(fnFunction, oListener) {
@@ -312,38 +327,46 @@ sap.ui.define([
312
327
  /**
313
328
  * The <code>requestSent</code> event is fired, after a request has been sent to a backend.
314
329
  *
315
- * Note: Subclasses might add additional parameters to the event object. Optional parameters can be omitted.
330
+ * Note: Subclasses might add additional parameters to the event object. Optional parameters can
331
+ * be omitted.
316
332
  *
317
333
  * @name sap.ui.model.Model#requestSent
318
334
  * @event
319
335
  * @param {sap.ui.base.Event} oEvent
320
336
  * @param {sap.ui.base.EventProvider} oEvent.getSource
321
337
  * @param {object} oEvent.getParameters
322
- * @param {string} oEvent.getParameters.url The url which is sent to the backend
323
- * @param {string} [oEvent.getParameters.type] The type of the request (if available)
324
- * @param {boolean} [oEvent.getParameters.async] If the request is synchronous or asynchronous (if available)
325
- * @param {string} [oEvent.getParameters.info] Additional information for the request (if available) <strong>deprecated</strong>
326
- * @param {object} [oEvent.getParameters.infoObject] Additional information for the request (if available)
338
+ * @param {string} oEvent.getParameters.url
339
+ * The url which is sent to the back end
340
+ * @param {string} [oEvent.getParameters.type]
341
+ * The type of the request (if available)
342
+ * @param {boolean} [oEvent.getParameters.async]
343
+ * If the request is synchronous or asynchronous (if available)
344
+ * @param {string} [oEvent.getParameters.info]
345
+ * Additional information for the request (if available) <strong>deprecated</strong>
346
+ * @param {object} [oEvent.getParameters.infoObject]
347
+ * Additional information for the request (if available)
327
348
  * @public
328
349
  */
329
350
 
330
351
  /**
331
- * Attaches event handler <code>fnFunction</code> to the {@link #event:requestSent requestSent} event of this
332
- * <code>sap.ui.model.Model</code>.
333
- *
334
- * When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code>
335
- * if specified, otherwise it will be bound to this <code>sap.ui.model.Model</code> itself.
336
- *
337
- * @param {object}
338
- * [oData] An application-specific payload object that will be passed to the event handler
339
- * along with the event object when firing the event
340
- * @param {function}
341
- * fnFunction The function to be called, when the event occurs
342
- * @param {object}
343
- * [oListener] Context object to call the event handler with. Defaults to this
344
- * <code>sap.ui.model.Model</code> itself
345
- *
346
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
352
+ * Attaches event handler <code>fnFunction</code> to the
353
+ * {@link #event:requestSent requestSent} event of this <code>sap.ui.model.Model</code>.
354
+ *
355
+ * When called, the context of the event handler (its <code>this</code>) will be bound to
356
+ * <code>oListener</code> if specified, otherwise it will be bound to this
357
+ * <code>sap.ui.model.Model</code> itself.
358
+ *
359
+ * @param {object} [oData]
360
+ * An application-specific payload object that will be passed to the event handler along with
361
+ * the event object when firing the event
362
+ * @param {function} fnFunction
363
+ * The function to be called when the event occurs
364
+ * @param {object} [oListener]
365
+ * Context object to call the event handler with. Defaults to this
366
+ * <code>sap.ui.model.Model</code> itself
367
+ *
368
+ * @returns {this}
369
+ * Reference to <code>this</code> in order to allow method chaining
347
370
  * @public
348
371
  */
349
372
  Model.prototype.attachRequestSent = function(oData, fnFunction, oListener) {
@@ -352,15 +375,14 @@ sap.ui.define([
352
375
  };
353
376
 
354
377
  /**
355
- * Detaches event handler <code>fnFunction</code> from the {@link #event:requestSent requestSent} event of this
356
- * <code>sap.ui.model.Model</code>.
378
+ * Detaches event handler <code>fnFunction</code> from the
379
+ * {@link #event:requestSent requestSent} event of this <code>sap.ui.model.Model</code>.
357
380
  *
358
381
  * The passed function and listener object must match the ones used for event registration.
359
382
  *
360
- * @param {function}
361
- * fnFunction The function to be called, when the event occurs
362
- * @param {object}
363
- * [oListener] Context object on which the given function had to be called
383
+ * @param {function} fnFunction The function to be called, when the event occurs
384
+ * @param {object} [oListener] Context object on which the given function had to be called
385
+ *
364
386
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
365
387
  * @public
366
388
  */
@@ -372,12 +394,19 @@ sap.ui.define([
372
394
  /**
373
395
  * Fires event {@link #event:requestSent requestSent} to attached listeners.
374
396
  *
375
- * @param {object} [oParameters] Parameters to pass along with the event
376
- * @param {string} [oParameters.url] The url which is sent to the backend.
377
- * @param {string} [oParameters.type] The type of the request (if available)
378
- * @param {boolean} [oParameters.async] If the request is synchronous or asynchronous (if available)
379
- * @param {string} [oParameters.info] additional information for the request (if available) <strong>deprecated</strong>
380
- * @param {object} [oParameters.infoObject] Additional information for the request (if available)
397
+ * @param {object} [oParameters]
398
+ * Parameters to pass along with the event
399
+ * @param {string} [oParameters.url]
400
+ * The url which is sent to the back end.
401
+ * @param {string} [oParameters.type]
402
+ * The type of the request (if available)
403
+ * @param {boolean} [oParameters.async]
404
+ * If the request is synchronous or asynchronous (if available)
405
+ * @param {string} [oParameters.info]
406
+ * Additional information for the request (if available) <strong>deprecated</strong>
407
+ * @param {object} [oParameters.infoObject]
408
+ * Additional information for the request (if available)
409
+ *
381
410
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
382
411
  * @protected
383
412
  */
@@ -387,49 +416,58 @@ sap.ui.define([
387
416
  };
388
417
 
389
418
  /**
390
- * The <code>requestCompleted</code> event is fired, after a request has been completed (includes receiving
391
- * a response), no matter whether the request succeeded or not.
419
+ * The <code>requestCompleted</code> event is fired, after a request has been completed
420
+ * (includes receiving a response), no matter whether the request succeeded or not.
392
421
  *
393
- * Note: Subclasses might add additional parameters to the event object. Optional parameters can be omitted.
422
+ * Note: Subclasses might add additional parameters to the event object. Optional parameters can
423
+ * be omitted.
394
424
  *
395
425
  * @name sap.ui.model.Model#requestCompleted
396
426
  * @event
397
427
  * @param {sap.ui.base.Event} oEvent
428
+ * The <code>requestCompleted</code> event
398
429
  * @param {sap.ui.base.EventProvider} oEvent.getSource
430
+ * The source of the request
399
431
  * @param {object} oEvent.getParameters
400
- * @param {string} oEvent.getParameters.url URL which was sent to the backend
401
- * @param {string} [oEvent.getParameters.type] Type of the request (if available)
432
+ * The request parameters
433
+ * @param {string} oEvent.getParameters.url
434
+ * URL which was sent to the back end
435
+ * @param {string} [oEvent.getParameters.type]
436
+ * Type of the request (if available)
402
437
  * @param {boolean} oEvent.getParameters.success
403
- * Whether the request has been successful or not. In case of errors, consult the optional
404
- * <code>errorobject</code> parameter.
438
+ * Whether the request has been successful or not. In case of errors, consult the optional
439
+ * <code>errorobject</code> parameter.
405
440
  * @param {object} [oEvent.getParameters.errorobject]
406
- * If the request failed the error if any can be accessed in this property.
441
+ * If the request failed the error if any can be accessed in this property.
407
442
  * @param {boolean} [oEvent.getParameters.async]
408
- * If the request is synchronous or asynchronous (if available)
443
+ * If the request is synchronous or asynchronous (if available)
409
444
  * @param {string} [oEvent.getParameters.info]
410
- * Additional information for the request (if available) <strong>deprecated</strong>
445
+ * Additional information for the request (if available) <strong>deprecated</strong>
411
446
  * @param {object} [oEvent.getParameters.infoObject]
412
- * Additional information for the request (if available)
447
+ * Additional information for the request (if available)
413
448
  * @public
414
449
  */
415
450
 
416
451
  /**
417
- * Attaches event handler <code>fnFunction</code> to the {@link #event:requestCompleted requestCompleted} event of this
452
+ * Attaches event handler <code>fnFunction</code> to the
453
+ * {@link #event:requestCompleted requestCompleted} event of this
418
454
  * <code>sap.ui.model.Model</code>.
419
455
  *
420
- * When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code>
421
- * if specified, otherwise it will be bound to this <code>sap.ui.model.Model</code> itself.
422
- *
423
- * @param {object}
424
- * [oData] An application-specific payload object that will be passed to the event handler
425
- * along with the event object when firing the event
426
- * @param {function}
427
- * fnFunction The function to be called, when the event occurs
428
- * @param {object}
429
- * [oListener] Context object to call the event handler with. Defaults to this
430
- * <code>sap.ui.model.Model</code> itself
431
- *
432
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
456
+ * When called, the context of the event handler (its <code>this</code>) will be bound to
457
+ * <code>oListener</code> if specified, otherwise it will be bound to this
458
+ * <code>sap.ui.model.Model</code> itself.
459
+ *
460
+ * @param {object} [oData]
461
+ * An application-specific payload object that will be passed to the event handler along with
462
+ * the event object when firing the event
463
+ * @param {function} fnFunction
464
+ * The function to be called when the event occurs
465
+ * @param {object} [oListener]
466
+ * Context object to call the event handler with. Defaults to this
467
+ * <code>sap.ui.model.Model</code> itself
468
+ *
469
+ * @returns {this}
470
+ * Reference to <code>this</code> in order to allow method chaining
433
471
  * @public
434
472
  */
435
473
  Model.prototype.attachRequestCompleted = function(oData, fnFunction, oListener) {
@@ -438,16 +476,17 @@ sap.ui.define([
438
476
  };
439
477
 
440
478
  /**
441
- * Detaches event handler <code>fnFunction</code> from the {@link #event:requestCompleted requestCompleted} event of this
479
+ * Detaches event handler <code>fnFunction</code> from the
480
+ * {@link #event:requestCompleted requestCompleted} event of this
442
481
  * <code>sap.ui.model.Model</code>.
443
482
  *
444
483
  * The passed function and listener object must match the ones used for event registration.
445
484
  *
446
- * @param {function}
447
- * fnFunction The function to be called, when the event occurs
448
- * @param {object}
449
- * [oListener] Context object on which the given function had to be called
450
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
485
+ * @param {function} fnFunction The function to be called, when the event occurs
486
+ * @param {object} [oListener] Context object on which the given function had to be called
487
+ *
488
+ * @returns {this}
489
+ * Reference to <code>this</code> in order to allow method chaining
451
490
  * @public
452
491
  */
453
492
  Model.prototype.detachRequestCompleted = function(fnFunction, oListener) {
@@ -458,14 +497,21 @@ sap.ui.define([
458
497
  /**
459
498
  * Fires event {@link #event:requestCompleted requestCompleted} to attached listeners.
460
499
  *
461
- * @param {object} [oParameters] Parameters to pass along with the event
462
- * @param {string} [oParameters.url] The url which was sent to the backend.
463
- * @param {string} [oParameters.type] The type of the request (if available)
464
- * @param {boolean} [oParameters.async] If the request was synchronous or asynchronous (if available)
465
- * @param {string} [oParameters.info] additional information for the request (if available) <strong>deprecated</strong>
466
- * @param {object} [oParameters.infoObject] Additional information for the request (if available)
467
- *
468
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
500
+ * @param {object} [oParameters]
501
+ * Parameters to pass along with the event
502
+ * @param {string} [oParameters.url]
503
+ * The url which was sent to the back end.
504
+ * @param {string} [oParameters.type]
505
+ * The type of the request (if available)
506
+ * @param {boolean} [oParameters.async]
507
+ * If the request was synchronous or asynchronous (if available)
508
+ * @param {string} [oParameters.info]
509
+ * additional information for the request (if available) <strong>deprecated</strong>
510
+ * @param {object} [oParameters.infoObject]
511
+ * Additional information for the request (if available)
512
+ *
513
+ * @returns {this}
514
+ * Reference to <code>this</code> in order to allow method chaining
469
515
  * @protected
470
516
  */
471
517
  Model.prototype.fireRequestCompleted = function(oParameters) {
@@ -489,8 +535,8 @@ sap.ui.define([
489
535
  * @param {object} [oParameters] Parameters to pass along with the event
490
536
  * @param {sap.ui.model.ChangeReason} [oParameters.reason] The reason of the property change
491
537
  * @param {string} [oParameters.path] The path of the property
492
- * @param {object} [oParameters.context] the context of the property
493
- * @param {object} [oParameters.value] the value of the property
538
+ * @param {object} [oParameters.context] The context of the property
539
+ * @param {object} [oParameters.value] The value of the property
494
540
  *
495
541
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
496
542
  * @protected
@@ -501,44 +547,53 @@ sap.ui.define([
501
547
  };
502
548
 
503
549
  /**
504
- * The <code>propertyChange</code> event is fired when changes occur to a property value in the model.
550
+ * The <code>propertyChange</code> event is fired when changes occur to a property value in the
551
+ * model.
505
552
  *
506
- * The event contains a <code>reason</code> parameter which describes the cause of the property value change.
507
- * Currently the event is only fired with reason <code>sap.ui.model.ChangeReason.Binding</code> which is fired
508
- * when two way changes occur to a value of a property binding.
553
+ * The event contains a <code>reason</code> parameter which describes the cause of the property
554
+ * value change. Currently the event is only fired with reason
555
+ * <code>sap.ui.model.ChangeReason.Binding</code> which is fired when two way changes occur to a
556
+ * value of a property binding.
509
557
  *
510
- * Note: Subclasses might add additional parameters to the event object. Optional parameters can be omitted.
558
+ * Note: Subclasses might add additional parameters to the event object. Optional parameters can
559
+ * be omitted.
511
560
  *
512
561
  * @name sap.ui.model.Model#propertyChange
513
562
  * @event
514
563
  * @param {sap.ui.base.Event} oEvent
515
564
  * @param {sap.ui.base.EventProvider} oEvent.getSource
516
565
  * @param {object} oEvent.getParameters
517
- * @param {sap.ui.model.ChangeReason} oEvent.getParameters.reason The cause of the property value change
518
- * @param {string} oEvent.getParameters.path The path of the property
519
- * @param {sap.ui.model.Context} [oEvent.getParameters.context] The binding context (if available)
520
- * @param {object} oEvent.getParameters.value The current value of the property
566
+ * @param {sap.ui.model.ChangeReason} oEvent.getParameters.reason
567
+ * The cause of the property value change
568
+ * @param {string} oEvent.getParameters.path
569
+ * The path of the property
570
+ * @param {sap.ui.model.Context} [oEvent.getParameters.context]
571
+ * The binding context (if available)
572
+ * @param {object} oEvent.getParameters.value
573
+ * The current value of the property
521
574
  * @public
522
575
  * @since 1.40
523
576
  */
524
577
 
525
578
  /**
526
- * Attaches event handler <code>fnFunction</code> to the {@link #event:propertyChange propertyChange} event of this
527
- * <code>sap.ui.model.Model</code>.
528
- *
529
- * When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code>
530
- * if specified, otherwise it will be bound to this <code>sap.ui.model.Model</code> itself.
531
- *
532
- * @param {object}
533
- * [oData] An application-specific payload object that will be passed to the event handler
534
- * along with the event object when firing the event
535
- * @param {function}
536
- * fnFunction The function to be called, when the event occurs
537
- * @param {object}
538
- * [oListener] Context object to call the event handler with. Defaults to this
539
- * <code>sap.ui.model.Model</code> itself
540
- *
541
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
579
+ * Attaches event handler <code>fnFunction</code> to the
580
+ * {@link #event:propertyChange propertyChange} event of this <code>sap.ui.model.Model</code>.
581
+ *
582
+ * When called, the context of the event handler (its <code>this</code>) will be bound to
583
+ * <code>oListener</code> if specified, otherwise it will be bound to this
584
+ * <code>sap.ui.model.Model</code> itself.
585
+ *
586
+ * @param {object} [oData]
587
+ * An application-specific payload object that will be passed to the event handler along with
588
+ * the event object when firing the event
589
+ * @param {function} fnFunction
590
+ * The function to be called when the event occurs
591
+ * @param {object} [oListener]
592
+ * Context object to call the event handler with. Defaults to this
593
+ * <code>sap.ui.model.Model</code> itself
594
+ *
595
+ * @returns {this}
596
+ * Reference to <code>this</code> in order to allow method chaining
542
597
  * @public
543
598
  */
544
599
  Model.prototype.attachPropertyChange = function(oData, fnFunction, oListener) {
@@ -547,16 +602,16 @@ sap.ui.define([
547
602
  };
548
603
 
549
604
  /**
550
- * Detaches event handler <code>fnFunction</code> from the {@link #event:propertyChange propertyChange} event of this
551
- * <code>sap.ui.model.Model</code>.
605
+ * Detaches event handler <code>fnFunction</code> from the
606
+ * {@link #event:propertyChange propertyChange} event of this <code>sap.ui.model.Model</code>.
552
607
  *
553
608
  * The passed function and listener object must match the ones used for event registration.
554
609
  *
555
- * @param {function}
556
- * fnFunction The function to be called, when the event occurs
557
- * @param {object}
558
- * [oListener] Context object on which the given function had to be called
559
- * @returns {this} Reference to <code>this</code> in order to allow method chaining
610
+ * @param {function} fnFunction The function to be called when the event occurs
611
+ * @param {object} [oListener] Context object on which the given function had to be called
612
+ *
613
+ * @returns {this}
614
+ * Reference to <code>this</code> in order to allow method chaining
560
615
  * @public
561
616
  */
562
617
  Model.prototype.detachPropertyChange = function(fnFunction, oListener) {
@@ -564,126 +619,113 @@ sap.ui.define([
564
619
  return this;
565
620
  };
566
621
 
567
- // the 'abstract methods' to be implemented by child classes
568
-
569
622
  /**
570
- * Implement in inheriting classes.
571
623
  * @abstract
572
624
  *
573
625
  * @name sap.ui.model.Model.prototype.bindProperty
574
626
  * @function
575
- * @param {string}
576
- * sPath the path pointing to the property that should be bound
577
- * @param {sap.ui.model.Context}
578
- * [oContext=null] the context object for this databinding (optional)
579
- * @param {object}
580
- * [mParameters=null] additional model specific parameters (optional)
581
- * @return {sap.ui.model.PropertyBinding}
627
+ * @param {string} sPath The path pointing to the property that should be bound
628
+ * @param {sap.ui.model.Context} [oContext] The context object for this databinding
629
+ * @param {object} [mParameters] Additional model-specific parameters
582
630
  *
631
+ * @return {sap.ui.model.PropertyBinding} The newly created binding
583
632
  * @public
584
633
  */
585
634
 
586
635
  /**
587
- * Implement in inheriting classes.
588
636
  * @abstract
589
637
  *
590
638
  * @name sap.ui.model.Model.prototype.bindList
591
639
  * @function
592
- * @param {string}
593
- * sPath the path pointing to the list / array that should be bound
594
- * @param {sap.ui.model.Context}
595
- * [oContext=null] the context object for this databinding (optional)
596
- * @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]}
597
- * [aSorters=null] initial sort order (can be either a sorter or an array of sorters) (optional)
598
- * @param {sap.ui.model.Filter|sap.ui.model.Filter[]}
599
- * [aFilters=null] predefined filter/s (can be either a filter or an array of filters) (optional)
600
- * @param {object}
601
- * [mParameters=null] additional model specific parameters (optional)
640
+ * @param {string} sPath
641
+ * The path pointing to the list / array that should be bound
642
+ * @param {sap.ui.model.Context} [oContext]
643
+ * The context object for this databinding
644
+ * @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} [aSorters]
645
+ * Initial sort order (can be either a sorter or an array of sorters)
646
+ * @param {sap.ui.model.Filter|sap.ui.model.Filter[]} [aFilters]
647
+ * Predefined filter/s (can be either a filter or an array of filters)
648
+ * @param {object} [mParameters]
649
+ * Additional model-specific parameters
650
+ *
602
651
  * @return {sap.ui.model.ListBinding}
603
-
652
+ * The newly created binding
604
653
  * @public
605
654
  */
606
655
 
607
656
  /**
608
- * Implement in inheriting classes.
609
657
  * @abstract
610
658
  *
611
659
  * @name sap.ui.model.Model.prototype.bindTree
612
660
  * @function
613
- * @param {string}
614
- * sPath the path pointing to the tree / array that should be bound
615
- * @param {sap.ui.model.Context}
616
- * [oContext=null] the context object for this databinding (optional)
617
- * @param {sap.ui.model.Filter[]}
618
- * [aFilters=null] predefined filter/s contained in an array (optional)
619
- * @param {object}
620
- * [mParameters=null] additional model specific parameters (optional)
621
- * @param {sap.ui.model.Sorter[]}
622
- * [aSorters=null] predefined sap.ui.model.sorter/s contained in an array (optional)
661
+ * @param {string} sPath
662
+ * The path pointing to the tree / array that should be bound
663
+ * @param {sap.ui.model.Context} [oContext]
664
+ * The context object for this databinding
665
+ * @param {sap.ui.model.Filter[]} [aFilters]
666
+ * Predefined filter/s contained in an array
667
+ * @param {object} [mParameters]
668
+ * Additional model specific parameters
669
+ * @param {sap.ui.model.Sorter[]} [aSorters]
670
+ * Predefined sap.ui.model.sorter/s contained in an array
671
+ *
623
672
  * @return {sap.ui.model.TreeBinding}
624
-
673
+ * The newly created binding
625
674
  * @public
626
675
  */
627
676
 
628
677
  /**
629
- * Implement in inheriting classes.
630
678
  * @abstract
631
679
  *
632
680
  * @name sap.ui.model.Model.prototype.createBindingContext
633
681
  * @function
634
- * @param {string}
635
- * sPath the path to create the new context from
636
- * @param {sap.ui.model.Context}
637
- * [oContext=null] the context which should be used to create the new binding context
638
- * @param {object}
639
- * [mParameters=null] the parameters used to create the new binding context
640
- * @param {function}
641
- * [fnCallBack] the function which should be called after the binding context has been created
642
- * @param {boolean}
643
- * [bReload] force reload even if data is already available. For server side models this should
644
- * refetch the data from the server
645
- * @return {sap.ui.model.Context} the binding context, if it could be created synchronously
646
- *
682
+ * @param {string} sPath
683
+ * The path to create the new context from
684
+ * @param {sap.ui.model.Context} [oContext]
685
+ * The context which should be used to create the new binding context
686
+ * @param {object} [mParameters]
687
+ * The parameters used to create the new binding context
688
+ * @param {function} [fnCallBack]
689
+ * The function which should be called after the binding context has been created
690
+ * @param {boolean} [bReload]
691
+ * Force reload even if data is already available; for server-side models this should refetch
692
+ * the data from the server
693
+ *
694
+ * @return {sap.ui.model.Context}
695
+ * The binding context, if it could be created synchronously
647
696
  * @public
648
697
  */
649
698
 
650
699
  /**
651
- * Implement in inheriting classes.
652
700
  * @abstract
653
701
  *
654
702
  * @name sap.ui.model.Model.prototype.destroyBindingContext
655
703
  * @function
656
- * @param {sap.ui.model.Context}
657
- * oContext to destroy
658
-
704
+ * @param {sap.ui.model.Context} oContext The context to destroy
659
705
  * @public
660
706
  */
661
707
 
662
708
  /**
663
- * Implement in inheriting classes.
664
709
  * @abstract
665
710
  *
666
711
  * @name sap.ui.model.Model.prototype.getProperty
667
712
  * @function
668
- * @param {string}
669
- * sPath the path to where to read the attribute value
670
- * @param {sap.ui.model.Context}
671
- * [oContext=null] the context with which the path should be resolved
713
+ * @param {string} sPath The path to where to read the attribute value
714
+ * @param {sap.ui.model.Context} [oContext] The context with which the path should be resolved
715
+ *
672
716
  * @returns {any} Value of the addressed property
673
717
  * @public
674
718
  */
675
719
 
676
720
  /**
677
- * Implement in inheriting classes.
678
721
  * @abstract
679
722
  *
680
- * @param {string}
681
- * sPath Path to where to read the object
682
- * @param {sap.ui.model.Context}
683
- * [oContext=null] Context with which the path should be resolved
684
- * @param {object}
685
- * [mParameters] Additional model specific parameters
686
- * @returns {any} The value for the given path/context or <code>undefined</code> if data could not be found
723
+ * @param {string} sPath Path to where to read the object
724
+ * @param {sap.ui.model.Context} [oContext] Context with which the path should be resolved
725
+ * @param {object} [mParameters] Additional model-specific parameters
726
+ *
727
+ * @returns {any}
728
+ * The value for the given path/context or <code>undefined</code> if data could not be found
687
729
  * @public
688
730
  */
689
731
  Model.prototype.getObject = function(sPath, oContext, mParameters) {
@@ -697,24 +739,22 @@ sap.ui.define([
697
739
  *
698
740
  * @name sap.ui.model.Model.prototype.bindContext
699
741
  * @function
700
- * @param {string}
701
- * sPath the path pointing to the property that should be bound
702
- * @param {sap.ui.model.Context}
703
- * [oContext=null] the context object for this databinding (optional)
704
- * @param {object}
705
- * [mParameters=null] additional model specific parameters (optional)
706
- * @param {object}
707
- * [oEvents=null] event handlers can be passed to the binding ({change:myHandler})
708
- * @return {sap.ui.model.ContextBinding}
742
+ * @param {string} sPath The path pointing to the property that should be bound
743
+ * @param {sap.ui.model.Context} [oContext] The context object for this databinding
744
+ * @param {object} [mParameters] Additional model-specific parameters
745
+ * @param {object} [oEvents] Event handlers can be passed to the binding ({change:myHandler})
709
746
  *
747
+ * @return {sap.ui.model.ContextBinding} The newly created binding
710
748
  * @public
711
749
  */
712
750
 
713
751
  /**
714
- * Gets a binding context. If context already exists, return it from the map,
715
- * otherwise create one using the context constructor.
752
+ * Gets a binding context. If the context already exists, return it from the map, otherwise create
753
+ * one using the context constructor.
716
754
  *
717
- * @param {string} sPath the path
755
+ * @param {string} sPath The path
756
+ *
757
+ * @returns {sap.ui.model.Context} The context for the path
718
758
  */
719
759
  Model.prototype.getContext = function(sPath) {
720
760
  if (!sPath.startsWith("/")) {
@@ -738,9 +778,10 @@ sap.ui.define([
738
778
  * setting the 'legacySyntax' property. Then an unresolvable, relative path
739
779
  * is automatically converted into an absolute path.
740
780
  *
741
- * @param {string} sPath path to resolve
742
- * @param {sap.ui.model.Context} [oContext] context to resolve a relative path against
743
- * @return {string} resolved path or undefined
781
+ * @param {string} sPath Path to resolve
782
+ * @param {sap.ui.model.Context} [oContext] Context to resolve a relative path against
783
+ *
784
+ * @return {string} Resolved path or undefined
744
785
  */
745
786
  Model.prototype.resolve = function(sPath, oContext) {
746
787
  var bIsRelative = typeof sPath == "string" && !sPath.startsWith("/"),
@@ -780,7 +821,7 @@ sap.ui.define([
780
821
  /**
781
822
  * Add a binding to this model.
782
823
  *
783
- * @param {sap.ui.model.Binding} oBinding the binding to be added
824
+ * @param {sap.ui.model.Binding} oBinding The binding to be added
784
825
  */
785
826
  Model.prototype.addBinding = function(oBinding) {
786
827
  this._cleanUpBindings();
@@ -790,7 +831,7 @@ sap.ui.define([
790
831
  /**
791
832
  * Returns a copy of all active bindings of the model.
792
833
  *
793
- * @return {sap.ui.model.Binding[]} aBindings The active bindings of the model
834
+ * @return {sap.ui.model.Binding[]} The active bindings of the model
794
835
  * @private
795
836
  */
796
837
  Model.prototype.getBindings = function() {
@@ -827,9 +868,9 @@ sap.ui.define([
827
868
  /**
828
869
  * Set the default binding mode for the model.
829
870
  *
830
- * If the default binding mode should be changed, this method should be called directly after model instance
831
- * creation and before any binding creation. Otherwise it is not guaranteed that the existing bindings will
832
- * be updated with the new binding mode.
871
+ * If the default binding mode should be changed, this method should be called directly after
872
+ * model instance creation and before any binding creation. Otherwise it is not guaranteed that
873
+ * the existing bindings will be updated with the new binding mode.
833
874
  *
834
875
  * @param {sap.ui.model.BindingMode} sMode The default binding mode to set for the model
835
876
  * @returns {this} Reference to <code>this</code> in order to allow method chaining
@@ -908,7 +949,8 @@ sap.ui.define([
908
949
  /**
909
950
  * Refresh the model.
910
951
  *
911
- * This will check all bindings for updated data and update the controls if data has been changed.
952
+ * This will check all bindings for updated data and update the controls if data has been
953
+ * changed.
912
954
  *
913
955
  * @param {boolean} [bForceUpdate=false] Update controls even if data has not been changed
914
956
  * @public
@@ -1034,7 +1076,8 @@ sap.ui.define([
1034
1076
  };
1035
1077
 
1036
1078
  /**
1037
- * Private method iterating the registered bindings of this model instance and initiating their check for messages.
1079
+ * Private method iterating the registered bindings of this model instance and initiating their
1080
+ * check for messages.
1038
1081
  * @private
1039
1082
  */
1040
1083
  Model.prototype.checkMessages = function() {
@@ -1048,8 +1091,8 @@ sap.ui.define([
1048
1091
  /**
1049
1092
  * Destroys the model and clears the model data.
1050
1093
  *
1051
- * A model implementation may override this function and perform model specific cleanup tasks e.g.
1052
- * abort requests, prevent new requests, etc.
1094
+ * A model implementation may override this function and perform model-specific cleanup tasks
1095
+ * e.g. abort requests, prevent new requests, etc.
1053
1096
  *
1054
1097
  * @see sap.ui.base.Object.prototype.destroy
1055
1098
  * @public
@@ -1077,7 +1120,8 @@ sap.ui.define([
1077
1120
  * model type.
1078
1121
  * @abstract
1079
1122
  * @public
1080
- * @returns {sap.ui.model.MetaModel} The meta model or <code>undefined</code> if no meta model exists.
1123
+ * @returns {sap.ui.model.MetaModel}
1124
+ * The meta model or <code>undefined</code> if no meta model exists.
1081
1125
  */
1082
1126
  Model.prototype.getMetaModel = function() {
1083
1127
  return undefined;
@@ -1086,7 +1130,8 @@ sap.ui.define([
1086
1130
  /**
1087
1131
  * Returns the original value for the property with the given path and context.
1088
1132
  *
1089
- * The original value is the value that was last responded by a server if using a server model implementation.
1133
+ * The original value is the value that was last responded by a server if using a server model
1134
+ * implementation.
1090
1135
  *
1091
1136
  * @param {string} sPath Path/name of the property
1092
1137
  * @param {sap.ui.model.Context} [oContext] Context if available to access the property value
@@ -1114,15 +1159,18 @@ sap.ui.define([
1114
1159
  /**
1115
1160
  * Checks whether the given filters contain an unsupported operator.
1116
1161
  *
1117
- * OData v1, v2 and Client Bindings cannot be filtered with <code>sap.ui.model.FilterOperator</code>s
1118
- * <code>"Any"</code> and <code>"All"</code>. The model property <code>mUnsupportedFilterOperators</code>
1119
- * can be configured in each model subclass to describe the unsupported operators.
1162
+ * OData v1, v2 and Client Bindings cannot be filtered with
1163
+ * <code>sap.ui.model.FilterOperator</code>s, <code>"Any"</code> and <code>"All"</code>. The
1164
+ * model property <code>mUnsupportedFilterOperators</code> can be configured in each model
1165
+ * subclass to describe the unsupported operators.
1120
1166
  *
1121
1167
  * If any of the given filters contains nested filters, those are checked recursively.
1122
1168
  *
1123
- * @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilters Single filter or an array of filter instances
1124
- * @throws {Error} if at least one filter uses an <code>sap.ui.model.FilterOperator</code>
1125
- * that is not supported by the related model instance
1169
+ * @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilters
1170
+ * Single filter or an array of filter instances
1171
+ * @throws {Error}
1172
+ * If at least one filter uses an <code>sap.ui.model.FilterOperator</code> that is not
1173
+ * supported by the related model instance
1126
1174
  * @private
1127
1175
  * @ui5-restricted sap.ui.model
1128
1176
  */
@@ -1155,8 +1203,11 @@ sap.ui.define([
1155
1203
  /**
1156
1204
  * Traverses the given filter tree.
1157
1205
  *
1158
- * @param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters Array of filters or a single filter instance, which will be checked for unsupported filter operators
1159
- * @param {function} fnCheck Check function which is called for each filter instance in the tree
1206
+ * @param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters
1207
+ * Array of filters or a single filter instance, which will be checked for unsupported filter
1208
+ * operators
1209
+ * @param {function} fnCheck
1210
+ * Check function which is called for each filter instance in the tree
1160
1211
  * @private
1161
1212
  */
1162
1213
  function _traverseFilter (vFilters, fnCheck) {