@openui5/sap.ui.core 1.94.0 → 1.97.0

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