@openui5/sap.ui.core 1.120.0 → 1.120.1

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 (464) hide show
  1. package/package.json +1 -1
  2. package/src/jquery.sap.global.js +1 -1
  3. package/src/jquery.sap.properties.js +1 -1
  4. package/src/jquery.sap.resources.js +1 -1
  5. package/src/jquery.sap.script.js +1 -1
  6. package/src/jquery.sap.storage.js +3 -3
  7. package/src/sap/base/Event.js +2 -2
  8. package/src/sap/base/Eventing.js +1 -1
  9. package/src/sap/base/config.js +1 -1
  10. package/src/sap/base/i18n/Formatting.js +30 -14
  11. package/src/sap/base/i18n/LanguageTag.js +1 -1
  12. package/src/sap/base/i18n/Localization.js +1 -2
  13. package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
  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 +3 -3
  56. package/src/sap/ui/Global.js +4 -4
  57. package/src/sap/ui/base/Event.js +1 -1
  58. package/src/sap/ui/base/EventProvider.js +1 -1
  59. package/src/sap/ui/base/Interface.js +1 -1
  60. package/src/sap/ui/base/ManagedObject.js +1 -57
  61. package/src/sap/ui/base/ManagedObjectMetadata.js +25 -1
  62. package/src/sap/ui/base/Metadata.js +1 -1
  63. package/src/sap/ui/base/Object.js +1 -1
  64. package/src/sap/ui/base/ObjectPool.js +1 -1
  65. package/src/sap/ui/core/.library +1 -1
  66. package/src/sap/ui/core/BusyIndicator.js +1 -1
  67. package/src/sap/ui/core/Component.js +27 -8
  68. package/src/sap/ui/core/ComponentContainer.js +3 -3
  69. package/src/sap/ui/core/ComponentMetadata.js +1 -1
  70. package/src/sap/ui/core/ComponentSupport.js +1 -1
  71. package/src/sap/ui/core/Configuration.js +9 -7
  72. package/src/sap/ui/core/Control.js +1 -1
  73. package/src/sap/ui/core/Core.js +14 -68
  74. package/src/sap/ui/core/CustomData.js +1 -1
  75. package/src/sap/ui/core/DeclarativeSupport.js +1 -1
  76. package/src/sap/ui/core/Element.js +7 -3
  77. package/src/sap/ui/core/ElementMetadata.js +1 -1
  78. package/src/sap/ui/core/EnabledPropagator.js +1 -1
  79. package/src/sap/ui/core/EventBus.js +1 -1
  80. package/src/sap/ui/core/Fragment.js +3 -3
  81. package/src/sap/ui/core/HTML.js +1 -1
  82. package/src/sap/ui/core/History.js +1 -1
  83. package/src/sap/ui/core/Icon.js +1 -1
  84. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  85. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  86. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  87. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  88. package/src/sap/ui/core/InvisibleText.js +1 -1
  89. package/src/sap/ui/core/Item.js +1 -1
  90. package/src/sap/ui/core/LabelEnablement.js +1 -1
  91. package/src/sap/ui/core/LayoutData.js +1 -1
  92. package/src/sap/ui/core/Lib.js +59 -29
  93. package/src/sap/ui/core/ListItem.js +1 -1
  94. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  95. package/src/sap/ui/core/Locale.js +1 -1
  96. package/src/sap/ui/core/LocaleData.js +1 -1
  97. package/src/sap/ui/core/Manifest.js +1 -1
  98. package/src/sap/ui/core/Message.js +1 -1
  99. package/src/sap/ui/core/RenderManager.js +1 -1
  100. package/src/sap/ui/core/Renderer.js +1 -1
  101. package/src/sap/ui/core/ResizeHandler.js +1 -1
  102. package/src/sap/ui/core/ScrollBar.js +1 -1
  103. package/src/sap/ui/core/SeparatorItem.js +1 -1
  104. package/src/sap/ui/core/Title.js +1 -1
  105. package/src/sap/ui/core/TooltipBase.js +1 -1
  106. package/src/sap/ui/core/UIArea.js +5 -1
  107. package/src/sap/ui/core/UIComponent.js +1 -1
  108. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  109. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  110. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  111. package/src/sap/ui/core/XMLComposite.js +1 -1
  112. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  113. package/src/sap/ui/core/date/Islamic.js +4 -4
  114. package/src/sap/ui/core/date/UI5Date.js +1 -1
  115. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  116. package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
  117. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  118. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  119. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  120. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  121. package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
  122. package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
  123. package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
  124. package/src/sap/ui/core/library.js +3 -3
  125. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  126. package/src/sap/ui/core/message/Message.js +1 -1
  127. package/src/sap/ui/core/message/MessageManager.js +1 -1
  128. package/src/sap/ui/core/message/MessageParser.js +1 -1
  129. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  130. package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +1 -1
  131. package/src/sap/ui/core/mvc/HTMLView.js +1 -1
  132. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  133. package/src/sap/ui/core/mvc/JSView.js +1 -1
  134. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  135. package/src/sap/ui/core/mvc/View.js +2 -2
  136. package/src/sap/ui/core/mvc/XMLView.js +1 -1
  137. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  138. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  139. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  140. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  141. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  142. package/src/sap/ui/core/search/OpenSearchProvider.js +2 -1
  143. package/src/sap/ui/core/search/SearchProvider.js +2 -1
  144. package/src/sap/ui/core/service/Service.js +1 -1
  145. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  146. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  147. package/src/sap/ui/core/support/Plugin.js +1 -1
  148. package/src/sap/ui/core/support/Support.js +1 -1
  149. package/src/sap/ui/core/support/plugins/ControlTree.js +2 -2
  150. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  151. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  152. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  153. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  154. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  155. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  156. package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
  157. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  158. package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
  159. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  160. package/src/sap/ui/core/tmpl/Template.js +1 -1
  161. package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
  162. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  163. package/src/sap/ui/core/util/Export.js +1 -1
  164. package/src/sap/ui/core/util/ExportCell.js +1 -1
  165. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  166. package/src/sap/ui/core/util/ExportRow.js +1 -1
  167. package/src/sap/ui/core/util/ExportType.js +1 -1
  168. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  169. package/src/sap/ui/core/util/File.js +1 -1
  170. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  171. package/src/sap/ui/core/util/MockServer.js +1 -1
  172. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  173. package/src/sap/ui/core/util/_LocalizationHelper.js +122 -0
  174. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  175. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  176. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  177. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  178. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  179. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  180. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  181. package/src/sap/ui/core/webc/WebComponent.js +1 -1
  182. package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
  183. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  184. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  185. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  186. package/src/sap/ui/debug/ControlTree.js +1 -1
  187. package/src/sap/ui/debug/DebugEnv.js +1 -1
  188. package/src/sap/ui/debug/PropertyList.js +1 -1
  189. package/src/sap/ui/model/ClientListBinding.js +6 -3
  190. package/src/sap/ui/model/ClientModel.js +1 -1
  191. package/src/sap/ui/model/ClientTreeBinding.js +6 -3
  192. package/src/sap/ui/model/CompositeDataState.js +1 -1
  193. package/src/sap/ui/model/CompositeType.js +1 -1
  194. package/src/sap/ui/model/DataState.js +1 -1
  195. package/src/sap/ui/model/FilterProcessor.js +17 -17
  196. package/src/sap/ui/model/MetaModel.js +1 -1
  197. package/src/sap/ui/model/Model.js +10 -8
  198. package/src/sap/ui/model/SelectionModel.js +1 -1
  199. package/src/sap/ui/model/SimpleType.js +1 -1
  200. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  201. package/src/sap/ui/model/Type.js +1 -1
  202. package/src/sap/ui/model/json/JSONModel.js +1 -1
  203. package/src/sap/ui/model/message/MessageModel.js +1 -1
  204. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  205. package/src/sap/ui/model/odata/ODataListBinding.js +5 -2
  206. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  207. package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
  208. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  209. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  210. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  211. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  212. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  213. package/src/sap/ui/model/odata/type/Date.js +1 -1
  214. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  215. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  216. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  217. package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
  218. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  219. package/src/sap/ui/model/odata/type/Double.js +1 -1
  220. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  221. package/src/sap/ui/model/odata/type/Int.js +1 -1
  222. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  223. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  224. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  225. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  226. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  227. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  228. package/src/sap/ui/model/odata/type/Single.js +1 -1
  229. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  230. package/src/sap/ui/model/odata/type/String.js +1 -1
  231. package/src/sap/ui/model/odata/type/Time.js +1 -1
  232. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  233. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  234. package/src/sap/ui/model/odata/v2/Context.js +1 -1
  235. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  236. package/src/sap/ui/model/odata/v2/ODataListBinding.js +5 -2
  237. package/src/sap/ui/model/odata/v2/ODataModel.js +6 -55
  238. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +6 -3
  239. package/src/sap/ui/model/odata/v4/Context.js +1 -1
  240. package/src/sap/ui/model/odata/v4/ODataBinding.js +3 -0
  241. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
  242. package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
  243. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +2 -2
  244. package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
  245. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
  246. package/src/sap/ui/model/resource/ResourceModel.js +1 -1
  247. package/src/sap/ui/model/type/Boolean.js +1 -1
  248. package/src/sap/ui/model/type/Currency.js +1 -1
  249. package/src/sap/ui/model/type/Date.js +1 -1
  250. package/src/sap/ui/model/type/DateInterval.js +1 -1
  251. package/src/sap/ui/model/type/DateTime.js +1 -1
  252. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  253. package/src/sap/ui/model/type/FileSize.js +1 -1
  254. package/src/sap/ui/model/type/Float.js +1 -1
  255. package/src/sap/ui/model/type/Integer.js +1 -1
  256. package/src/sap/ui/model/type/String.js +1 -1
  257. package/src/sap/ui/model/type/Time.js +1 -1
  258. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  259. package/src/sap/ui/model/type/Unit.js +1 -1
  260. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  261. package/src/sap/ui/performance/trace/Interaction.js +20 -16
  262. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  263. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  264. package/src/sap/ui/test/actions/EnterText.js +4 -0
  265. package/src/sap/ui/test/generic/TestBase.js +1 -1
  266. package/src/sap/ui/util/Storage.js +1 -1
  267. package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/manifest.json +3 -10
  268. package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/package.json +13 -0
  269. package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +11 -0
  270. package/test/sap/ui/core/demokit/sample/matcher/BindingPath/manifest.json +3 -11
  271. package/test/sap/ui/core/demokit/sample/matcher/BindingPath/package.json +13 -0
  272. package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +11 -0
  273. package/test/sap/ui/core/demokit/sample/matcher/Descendant/Component.js +1 -1
  274. package/test/sap/ui/core/demokit/sample/matcher/Descendant/manifest.json +3 -11
  275. package/test/sap/ui/core/demokit/sample/matcher/Descendant/package.json +13 -0
  276. package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +11 -0
  277. package/test/sap/ui/core/demokit/sample/matcher/I18NText/manifest.json +3 -11
  278. package/test/sap/ui/core/demokit/sample/matcher/I18NText/package.json +13 -0
  279. package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +11 -0
  280. package/test/sap/ui/core/demokit/sample/matcher/LabelFor/manifest.json +3 -11
  281. package/test/sap/ui/core/demokit/sample/matcher/LabelFor/package.json +13 -0
  282. package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +11 -0
  283. package/test/sap/ui/core/demokit/tutorial/databinding/01/Component.js +9 -25
  284. package/test/sap/ui/core/demokit/tutorial/databinding/01/manifest.json +20 -0
  285. package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
  286. package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/manifest.json +5 -0
  287. package/test/sap/ui/core/demokit/tutorial/databinding/02/Component.js +9 -25
  288. package/test/sap/ui/core/demokit/tutorial/databinding/02/manifest.json +20 -0
  289. package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
  290. package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/manifest.json +5 -0
  291. package/test/sap/ui/core/demokit/tutorial/databinding/03/Component.js +9 -25
  292. package/test/sap/ui/core/demokit/tutorial/databinding/03/manifest.json +20 -0
  293. package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
  294. package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/manifest.json +5 -0
  295. package/test/sap/ui/core/demokit/tutorial/databinding/04/Component.js +9 -26
  296. package/test/sap/ui/core/demokit/tutorial/databinding/04/manifest.json +21 -0
  297. package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
  298. package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/manifest.json +5 -0
  299. package/test/sap/ui/core/demokit/tutorial/databinding/05/Component.js +9 -26
  300. package/test/sap/ui/core/demokit/tutorial/databinding/05/manifest.json +21 -0
  301. package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
  302. package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/manifest.json +5 -0
  303. package/test/sap/ui/core/demokit/tutorial/databinding/06/Component.js +9 -27
  304. package/test/sap/ui/core/demokit/tutorial/databinding/06/manifest.json +22 -0
  305. package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
  306. package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/manifest.json +5 -0
  307. package/test/sap/ui/core/demokit/tutorial/databinding/07/Component.js +9 -28
  308. package/test/sap/ui/core/demokit/tutorial/databinding/07/manifest.json +23 -0
  309. package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
  310. package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/manifest.json +5 -0
  311. package/test/sap/ui/core/demokit/tutorial/databinding/08/Component.js +9 -28
  312. package/test/sap/ui/core/demokit/tutorial/databinding/08/manifest.json +23 -0
  313. package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
  314. package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/manifest.json +5 -0
  315. package/test/sap/ui/core/demokit/tutorial/databinding/09/Component.js +9 -29
  316. package/test/sap/ui/core/demokit/tutorial/databinding/09/manifest.json +24 -0
  317. package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
  318. package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/manifest.json +5 -0
  319. package/test/sap/ui/core/demokit/tutorial/databinding/10/Component.js +9 -29
  320. package/test/sap/ui/core/demokit/tutorial/databinding/10/manifest.json +24 -0
  321. package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
  322. package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/manifest.json +5 -0
  323. package/test/sap/ui/core/demokit/tutorial/databinding/11/Component.js +9 -29
  324. package/test/sap/ui/core/demokit/tutorial/databinding/11/manifest.json +24 -0
  325. package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
  326. package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/manifest.json +5 -0
  327. package/test/sap/ui/core/demokit/tutorial/databinding/12/Component.js +9 -30
  328. package/test/sap/ui/core/demokit/tutorial/databinding/12/manifest.json +25 -0
  329. package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
  330. package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/manifest.json +5 -0
  331. package/test/sap/ui/core/demokit/tutorial/databinding/13/Component.js +9 -30
  332. package/test/sap/ui/core/demokit/tutorial/databinding/13/manifest.json +25 -0
  333. package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
  334. package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/manifest.json +5 -0
  335. package/test/sap/ui/core/demokit/tutorial/databinding/14/Component.js +9 -30
  336. package/test/sap/ui/core/demokit/tutorial/databinding/14/manifest.json +25 -0
  337. package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
  338. package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/manifest.json +5 -0
  339. package/test/sap/ui/core/demokit/tutorial/databinding/15/Component.js +9 -32
  340. package/test/sap/ui/core/demokit/tutorial/databinding/15/manifest.json +27 -0
  341. package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
  342. package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/manifest.json +5 -0
  343. package/test/sap/ui/core/demokit/tutorial/mockserver/01/Component.js +9 -30
  344. package/test/sap/ui/core/demokit/tutorial/mockserver/01/manifest.json +24 -0
  345. package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
  346. package/test/sap/ui/core/demokit/tutorial/mockserver/02/Component.js +9 -33
  347. package/test/sap/ui/core/demokit/tutorial/mockserver/02/manifest.json +27 -0
  348. package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
  349. package/test/sap/ui/core/demokit/tutorial/mockserver/03/Component.js +9 -33
  350. package/test/sap/ui/core/demokit/tutorial/mockserver/03/manifest.json +27 -0
  351. package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
  352. package/test/sap/ui/core/demokit/tutorial/mockserver/04/Component.js +9 -33
  353. package/test/sap/ui/core/demokit/tutorial/mockserver/04/manifest.json +27 -0
  354. package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
  355. package/test/sap/ui/core/demokit/tutorial/navigation/01/Component.js +9 -33
  356. package/test/sap/ui/core/demokit/tutorial/navigation/01/manifest.json +28 -0
  357. package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
  358. package/test/sap/ui/core/demokit/tutorial/navigation/02/Component.js +9 -35
  359. package/test/sap/ui/core/demokit/tutorial/navigation/02/manifest.json +30 -0
  360. package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
  361. package/test/sap/ui/core/demokit/tutorial/navigation/03/Component.js +9 -37
  362. package/test/sap/ui/core/demokit/tutorial/navigation/03/manifest.json +32 -0
  363. package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
  364. package/test/sap/ui/core/demokit/tutorial/navigation/04/Component.js +9 -38
  365. package/test/sap/ui/core/demokit/tutorial/navigation/04/manifest.json +33 -0
  366. package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
  367. package/test/sap/ui/core/demokit/tutorial/navigation/05/Component.js +9 -38
  368. package/test/sap/ui/core/demokit/tutorial/navigation/05/manifest.json +33 -0
  369. package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
  370. package/test/sap/ui/core/demokit/tutorial/navigation/06/Component.js +9 -40
  371. package/test/sap/ui/core/demokit/tutorial/navigation/06/manifest.json +35 -0
  372. package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
  373. package/test/sap/ui/core/demokit/tutorial/navigation/07/Component.js +9 -42
  374. package/test/sap/ui/core/demokit/tutorial/navigation/07/manifest.json +37 -0
  375. package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
  376. package/test/sap/ui/core/demokit/tutorial/navigation/08/Component.js +9 -45
  377. package/test/sap/ui/core/demokit/tutorial/navigation/08/manifest.json +40 -0
  378. package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
  379. package/test/sap/ui/core/demokit/tutorial/navigation/09/Component.js +9 -45
  380. package/test/sap/ui/core/demokit/tutorial/navigation/09/manifest.json +40 -0
  381. package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
  382. package/test/sap/ui/core/demokit/tutorial/navigation/10/Component.js +9 -47
  383. package/test/sap/ui/core/demokit/tutorial/navigation/10/manifest.json +42 -0
  384. package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
  385. package/test/sap/ui/core/demokit/tutorial/navigation/11/Component.js +9 -52
  386. package/test/sap/ui/core/demokit/tutorial/navigation/11/manifest.json +47 -0
  387. package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
  388. package/test/sap/ui/core/demokit/tutorial/navigation/12/Component.js +9 -52
  389. package/test/sap/ui/core/demokit/tutorial/navigation/12/manifest.json +47 -0
  390. package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
  391. package/test/sap/ui/core/demokit/tutorial/navigation/13/Component.js +9 -52
  392. package/test/sap/ui/core/demokit/tutorial/navigation/13/manifest.json +47 -0
  393. package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
  394. package/test/sap/ui/core/demokit/tutorial/navigation/14/Component.js +9 -52
  395. package/test/sap/ui/core/demokit/tutorial/navigation/14/manifest.json +47 -0
  396. package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
  397. package/test/sap/ui/core/demokit/tutorial/navigation/15/Component.js +9 -52
  398. package/test/sap/ui/core/demokit/tutorial/navigation/15/manifest.json +47 -0
  399. package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
  400. package/test/sap/ui/core/demokit/tutorial/navigation/16/Component.js +9 -52
  401. package/test/sap/ui/core/demokit/tutorial/navigation/16/manifest.json +47 -0
  402. package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
  403. package/test/sap/ui/core/demokit/tutorial/navigation/17/Component.js +9 -52
  404. package/test/sap/ui/core/demokit/tutorial/navigation/17/manifest.json +47 -0
  405. package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
  406. package/test/sap/ui/core/demokit/tutorial/odatav4/01/Component.js +3 -27
  407. package/test/sap/ui/core/demokit/tutorial/odatav4/01/manifest.json +28 -0
  408. package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
  409. package/test/sap/ui/core/demokit/tutorial/odatav4/02/Component.js +3 -27
  410. package/test/sap/ui/core/demokit/tutorial/odatav4/02/manifest.json +28 -0
  411. package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
  412. package/test/sap/ui/core/demokit/tutorial/odatav4/03/Component.js +3 -27
  413. package/test/sap/ui/core/demokit/tutorial/odatav4/03/manifest.json +28 -0
  414. package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
  415. package/test/sap/ui/core/demokit/tutorial/odatav4/04/Component.js +3 -27
  416. package/test/sap/ui/core/demokit/tutorial/odatav4/04/manifest.json +28 -0
  417. package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
  418. package/test/sap/ui/core/demokit/tutorial/odatav4/05/Component.js +3 -27
  419. package/test/sap/ui/core/demokit/tutorial/odatav4/05/manifest.json +28 -0
  420. package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
  421. package/test/sap/ui/core/demokit/tutorial/odatav4/06/Component.js +3 -27
  422. package/test/sap/ui/core/demokit/tutorial/odatav4/06/manifest.json +28 -0
  423. package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
  424. package/test/sap/ui/core/demokit/tutorial/odatav4/07/Component.js +3 -27
  425. package/test/sap/ui/core/demokit/tutorial/odatav4/07/manifest.json +28 -0
  426. package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
  427. package/test/sap/ui/core/demokit/tutorial/odatav4/08/Component.js +3 -27
  428. package/test/sap/ui/core/demokit/tutorial/odatav4/08/manifest.json +28 -0
  429. package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
  430. package/test/sap/ui/core/demokit/tutorial/odatav4/09/Component.js +3 -27
  431. package/test/sap/ui/core/demokit/tutorial/odatav4/09/manifest.json +28 -0
  432. package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
  433. package/test/sap/ui/core/demokit/tutorial/odatav4/10/Component.js +3 -27
  434. package/test/sap/ui/core/demokit/tutorial/odatav4/10/manifest.json +28 -0
  435. package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
  436. package/test/sap/ui/core/demokit/tutorial/odatav4/11/Component.js +3 -27
  437. package/test/sap/ui/core/demokit/tutorial/odatav4/11/manifest.json +28 -0
  438. package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
  439. package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/Component.js +9 -29
  440. package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/manifest.json +25 -0
  441. package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
  442. package/test/sap/ui/core/qunit/ClientModel.qunit.js +28 -28
  443. package/test/sap/ui/core/qunit/Lib.qunit.js +42 -0
  444. package/test/sap/ui/core/qunit/ManagedObject.qunit.js +86 -3
  445. package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +19 -0
  446. package/test/sap/ui/core/qunit/component/Component.qunit.js +26 -3
  447. package/test/sap/ui/core/qunit/i18n/Islamic.qunit.js +4 -4
  448. package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -2
  449. package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -2
  450. package/test/sap/ui/core/qunit/model/FilterProcessor.qunit.js +46 -18
  451. package/test/sap/ui/core/qunit/model/Model.qunit.js +43 -2
  452. package/test/sap/ui/core/qunit/odata/ODataModel_legacyAPIs.qunit.js +22 -22
  453. package/test/sap/ui/core/qunit/odata/ODataTreeBindingAdapter.qunit.js +1 -1
  454. package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +16 -16
  455. package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +2 -11
  456. package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +17 -17
  457. package/test/sap/ui/core/qunit/odata/v2/ODataV2Model.qunit.js +32 -36
  458. package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +19 -9
  459. package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +5 -5
  460. package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +37 -0
  461. package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +15 -0
  462. package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +11 -2
  463. package/test/sap/ui/core/qunit/performance/trace/Interaction.qunit.js +4 -7
  464. package/test/sap/ui/core/relnotes/changes-1.120.json +82 -0
@@ -1,34 +1,10 @@
1
1
  sap.ui.define([
2
2
  "sap/ui/core/UIComponent"
3
- ], function (UIComponent) {
3
+ ], (UIComponent) => {
4
4
  "use strict";
5
-
6
- var Component = UIComponent.extend("sap.ui.core.tutorial.odatav4.11.Component", {
7
-
5
+ return UIComponent.extend("sap.ui.core.tutorial.odatav4.11.Component", {
8
6
  metadata : {
9
- config : {
10
- sample : {
11
- iframe : "webapp/index.html",
12
- stretch : true,
13
- files : [
14
- "webapp/controller/App.controller.js",
15
- "webapp/i18n/i18n.properties",
16
- "webapp/view/App.view.xml",
17
- "webapp/model/models.js",
18
- "webapp/Component.js",
19
- "webapp/index.html",
20
- "webapp/initMockServer.js",
21
- "webapp/manifest.json",
22
- "webapp/localService/mockdata/people.json",
23
- "webapp/localService/metadata.xml",
24
- "webapp/localService/mockserver.js",
25
- "ui5.yaml",
26
- "package.json"
27
- ]
28
- }
29
- }
7
+ manifest : "json"
30
8
  }
31
9
  });
32
-
33
- return Component;
34
10
  });
@@ -0,0 +1,28 @@
1
+ {
2
+ "sap.app": {
3
+ "id": "sap.ui.core.tutorial.odatav4.11"
4
+ },
5
+ "sap.ui5": {
6
+ "config": {
7
+ "sample": {
8
+ "iframe": "webapp/index.html",
9
+ "stretch": true,
10
+ "files": [
11
+ "webapp/controller/App.controller.js",
12
+ "webapp/i18n/i18n.properties",
13
+ "webapp/view/App.view.xml",
14
+ "webapp/model/models.js",
15
+ "webapp/Component.js",
16
+ "webapp/index.html",
17
+ "webapp/initMockServer.js",
18
+ "webapp/manifest.json",
19
+ "webapp/localService/mockdata/people.json",
20
+ "webapp/localService/metadata.xml",
21
+ "webapp/localService/mockserver.js",
22
+ "ui5.yaml",
23
+ "package.json"
24
+ ]
25
+ }
26
+ }
27
+ }
28
+ }
@@ -4,7 +4,7 @@ metadata:
4
4
  type: application
5
5
  framework:
6
6
  name: OpenUI5
7
- version: "1.120.0" #MainVersion#
7
+ version: "1.120.1" #MainVersion#
8
8
  libraries:
9
9
  - name: sap.m
10
10
  - name: sap.f
@@ -1,30 +1,10 @@
1
- sap.ui.define(['sap/ui/core/UIComponent'],
2
- function (UIComponent) {
3
- "use strict";
4
-
5
- var Component = UIComponent.extend("sap.ui.core.tutorial.troubleshooting.01.Component", {
6
-
7
- metadata: {
8
- config: {
9
- sample: {
10
- iframe: "webapp/index.html",
11
- stretch: true,
12
- files: [
13
- "webapp/Component.js",
14
- "webapp/controller/App.controller.js",
15
- "webapp/css/style.css",
16
- "webapp/i18n/i18n.properties",
17
- "webapp/index.html",
18
- "webapp/manifest.json",
19
- "webapp/model/models.js",
20
- "webapp/view/App.view.xml",
21
- "ui5.yaml",
22
- "package.json"
23
- ]
24
- }
25
- }
26
- }
27
- });
28
-
29
- return Component;
1
+ sap.ui.define([
2
+ "sap/ui/core/UIComponent"
3
+ ], (UIComponent) => {
4
+ "use strict";
5
+ return UIComponent.extend("sap.ui.core.tutorial.troubleshooting.01.Component", {
6
+ metadata : {
7
+ manifest : "json"
8
+ }
30
9
  });
10
+ });
@@ -0,0 +1,25 @@
1
+ {
2
+ "sap.app": {
3
+ "id": "sap.ui.core.tutorial.troubleshooting.01"
4
+ },
5
+ "sap.ui5": {
6
+ "config": {
7
+ "sample": {
8
+ "iframe": "webapp/index.html",
9
+ "stretch": true,
10
+ "files": [
11
+ "webapp/Component.js",
12
+ "webapp/controller/App.controller.js",
13
+ "webapp/css/style.css",
14
+ "webapp/i18n/i18n.properties",
15
+ "webapp/index.html",
16
+ "webapp/manifest.json",
17
+ "webapp/model/models.js",
18
+ "webapp/view/App.view.xml",
19
+ "ui5.yaml",
20
+ "package.json"
21
+ ]
22
+ }
23
+ }
24
+ }
25
+ }
@@ -4,7 +4,7 @@ metadata:
4
4
  type: application
5
5
  framework:
6
6
  name: OpenUI5
7
- version: "1.120.0" #MainVersion#
7
+ version: "1.120.1" #MainVersion#
8
8
  libraries:
9
9
  - name: sap.m
10
10
  - name: sap.ui.layout
@@ -22,17 +22,17 @@ sap.ui.define([
22
22
  });
23
23
 
24
24
  QUnit.test("Empty Arguments", function(assert) {
25
- this.oModel.checkFilterOperation();
25
+ this.oModel.checkFilter();
26
26
  assert.ok(true, "No arguments lead to a positive result");
27
27
 
28
- this.oModel.checkFilterOperation([]);
28
+ this.oModel.checkFilter([]);
29
29
  assert.ok(true, "Empty array lead to a positive result");
30
30
  });
31
31
 
32
32
  QUnit.test("Simple Filters - Supported are OK", function(assert) {
33
33
  // comma separated syntax
34
34
  var oSupported = new Filter("x", FilterOperator.NE, "Foo");
35
- this.oModel.checkFilterOperation(oSupported);
35
+ this.oModel.checkFilter(oSupported);
36
36
  assert.ok(true, "Valid operators are supported");
37
37
 
38
38
  // object syntax
@@ -41,12 +41,12 @@ sap.ui.define([
41
41
  operator: FilterOperator.NE,
42
42
  value1: "FooBar"
43
43
  });
44
- this.oModel.checkFilterOperation(oSupported2);
44
+ this.oModel.checkFilter(oSupported2);
45
45
  assert.ok(true, "Valid operators are supported");
46
46
 
47
47
  // local fnTest - comma separated (should be ignored)
48
48
  var oSupported3 = new Filter("z", function() {});
49
- this.oModel.checkFilterOperation(oSupported3);
49
+ this.oModel.checkFilter(oSupported3);
50
50
  assert.ok(true, true, "local fnTest is ignored (comma separated syntax)");
51
51
 
52
52
  // local fnTest - object syntax (should be ignored)
@@ -54,7 +54,7 @@ sap.ui.define([
54
54
  path: "z",
55
55
  test: function() {}
56
56
  });
57
- this.oModel.checkFilterOperation(oSupported4);
57
+ this.oModel.checkFilter(oSupported4);
58
58
  assert.ok(true, "local fnTest is ignored (object syntax)");
59
59
  });
60
60
 
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  });
69
69
  assert.throws(
70
70
  function() {
71
- this.oModel.checkFilterOperation(oUnsupported3);
71
+ this.oModel.checkFilter(oUnsupported3);
72
72
  }.bind(this),
73
73
  this.getErrorWithMessage(FilterOperator.Any),
74
74
  "Invalid operators are not supported (object syntax)"
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  });
84
84
  assert.throws(
85
85
  function() {
86
- this.oModel.checkFilterOperation(oUnsupported4);
86
+ this.oModel.checkFilter(oUnsupported4);
87
87
  }.bind(this),
88
88
  this.getErrorWithMessage(FilterOperator.All),
89
89
  "Invalid operators are not supported (object syntax)"
@@ -100,7 +100,7 @@ sap.ui.define([
100
100
  });
101
101
  assert.throws(
102
102
  function() {
103
- this.oModel.checkFilterOperation(oUnsupported3);
103
+ this.oModel.checkFilter(oUnsupported3);
104
104
  }.bind(this),
105
105
  this.getErrorWithMessage(FilterOperator.Any),
106
106
  "Invalid operators are not supported (object syntax)"
@@ -115,7 +115,7 @@ sap.ui.define([
115
115
  });
116
116
  assert.throws(
117
117
  function() {
118
- this.oModel.checkFilterOperation(oUnsupported4);
118
+ this.oModel.checkFilter(oUnsupported4);
119
119
  }.bind(this),
120
120
  this.getErrorWithMessage(FilterOperator.All),
121
121
  "Invalid operators are not supported (object syntax)"
@@ -128,7 +128,7 @@ sap.ui.define([
128
128
 
129
129
  // Comma separated syntax
130
130
  var oMultiFilter2 = new Filter([oFilter1, oFilter2], false);
131
- this.oModel.checkFilterOperation(oMultiFilter2);
131
+ this.oModel.checkFilter(oMultiFilter2);
132
132
  assert.ok(true, "Valid operators in multi-filter are supported (comma separated syntax)");
133
133
 
134
134
  // Object Syntax
@@ -137,7 +137,7 @@ sap.ui.define([
137
137
  and: true
138
138
  });
139
139
 
140
- this.oModel.checkFilterOperation(oMultiFilter);
140
+ this.oModel.checkFilter(oMultiFilter);
141
141
  assert.ok(true, "Valid operators in multi-filter are supported (object syntax)");
142
142
  });
143
143
 
@@ -154,7 +154,7 @@ sap.ui.define([
154
154
  });
155
155
  assert.throws(
156
156
  function() {
157
- this.oModel.checkFilterOperation(oMultiFilter);
157
+ this.oModel.checkFilter(oMultiFilter);
158
158
  }.bind(this),
159
159
  this.getErrorWithMessage(FilterOperator.All),
160
160
  "Invalid operators in multi-filter are unsupported (object syntax)"
@@ -167,7 +167,7 @@ sap.ui.define([
167
167
  });
168
168
  assert.throws(
169
169
  function() {
170
- this.oModel.checkFilterOperation(oMultiFilter);
170
+ this.oModel.checkFilter(oMultiFilter);
171
171
  }.bind(this),
172
172
  this.getErrorWithMessage(FilterOperator.All),
173
173
  "Invalid operators in multi-filter are unsupported (object syntax)"
@@ -177,7 +177,7 @@ sap.ui.define([
177
177
  var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
178
178
  assert.throws(
179
179
  function() {
180
- this.oModel.checkFilterOperation(oMultiFilter2);
180
+ this.oModel.checkFilter(oMultiFilter2);
181
181
  }.bind(this),
182
182
  this.getErrorWithMessage(FilterOperator.All),
183
183
  "Invalid operators in multi-filter are unsupported (comma separated syntax)"
@@ -191,7 +191,7 @@ sap.ui.define([
191
191
  oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
192
192
  assert.throws(
193
193
  function() {
194
- this.oModel.checkFilterOperation(oMultiFilter2);
194
+ this.oModel.checkFilter(oMultiFilter2);
195
195
  }.bind(this),
196
196
  this.getErrorWithMessage(FilterOperator.Any),
197
197
  "Invalid operators in multi-filter are unsupported (comma separated syntax)"
@@ -210,7 +210,7 @@ sap.ui.define([
210
210
  });
211
211
  assert.throws(
212
212
  function() {
213
- this.oModel.checkFilterOperation(oMultiFilter);
213
+ this.oModel.checkFilter(oMultiFilter);
214
214
  }.bind(this),
215
215
  this.getErrorWithMessage(FilterOperator.All),
216
216
  "Invalid operators in multi-filter are unsupported (object syntax)"
@@ -223,7 +223,7 @@ sap.ui.define([
223
223
  });
224
224
  assert.throws(
225
225
  function() {
226
- this.oModel.checkFilterOperation(oMultiFilter);
226
+ this.oModel.checkFilter(oMultiFilter);
227
227
  }.bind(this),
228
228
  this.getErrorWithMessage(FilterOperator.All),
229
229
  "Invalid operators in multi-filter are unsupported (object syntax)"
@@ -233,7 +233,7 @@ sap.ui.define([
233
233
  var oMultiFilter2 = new Filter([oFilter1, oFilter2], true);
234
234
  assert.throws(
235
235
  function() {
236
- this.oModel.checkFilterOperation(oMultiFilter2);
236
+ this.oModel.checkFilter(oMultiFilter2);
237
237
  }.bind(this),
238
238
  this.getErrorWithMessage(FilterOperator.All),
239
239
  "Invalid operators in multi-filter are unsupported (comma separated syntax)"
@@ -248,7 +248,7 @@ sap.ui.define([
248
248
 
249
249
  assert.throws(
250
250
  function() {
251
- this.oModel.checkFilterOperation(oMultiFilter2);
251
+ this.oModel.checkFilter(oMultiFilter2);
252
252
  }.bind(this),
253
253
  this.getErrorWithMessage(FilterOperator.Any),
254
254
  "Invalid operators in multi-filter are unsupported (comma separated syntax)"
@@ -269,7 +269,7 @@ sap.ui.define([
269
269
 
270
270
  var oMultiFilter3 = new Filter([oMultiFilter2, oFilter4]);
271
271
 
272
- this.oModel.checkFilterOperation(oMultiFilter3);
272
+ this.oModel.checkFilter(oMultiFilter3);
273
273
  assert.ok(true, "Valid operators in multi-filter are supported");
274
274
  });
275
275
 
@@ -292,7 +292,7 @@ sap.ui.define([
292
292
 
293
293
  assert.throws(
294
294
  function() {
295
- this.oModel.checkFilterOperation(oMultiFilter3);
295
+ this.oModel.checkFilter(oMultiFilter3);
296
296
  }.bind(this),
297
297
  this.getErrorWithMessage(FilterOperator.All),
298
298
  "Invalid operators in multi-filter are unsupported"
@@ -326,7 +326,7 @@ sap.ui.define([
326
326
 
327
327
  assert.throws(
328
328
  function() {
329
- this.oModel.checkFilterOperation(oMultiFilter3);
329
+ this.oModel.checkFilter(oMultiFilter3);
330
330
  }.bind(this),
331
331
  this.getErrorWithMessage(FilterOperator.All),
332
332
  "Invalid operators in multi-filter are unsupported"
@@ -352,7 +352,7 @@ sap.ui.define([
352
352
 
353
353
  QUnit.test("Own model supports the Any operator (Simple)", function(assert) {
354
354
  var oSupportedFilter = new Filter({path: "y", operator: FilterOperator.Any, variable: "x", condition: new Filter("z", FilterOperator.EQ, 100)});
355
- this.oModel.checkFilterOperation(oSupportedFilter);
355
+ this.oModel.checkFilter(oSupportedFilter);
356
356
  assert.ok(true, "Supported lambda operator provided");
357
357
  });
358
358
 
@@ -360,7 +360,7 @@ sap.ui.define([
360
360
  var oSupportedFilter = new Filter({path: "y", operator: FilterOperator.All, variable: "x", condition: new Filter("z", FilterOperator.EQ, 100)});
361
361
  assert.throws(
362
362
  function() {
363
- this.oModel.checkFilterOperation(oSupportedFilter);
363
+ this.oModel.checkFilter(oSupportedFilter);
364
364
  }.bind(this),
365
365
  this.getErrorWithMessage(FilterOperator.All),
366
366
  "Unsupported lambda operator provided"
@@ -381,7 +381,7 @@ sap.ui.define([
381
381
  var oMultiFilter2 = new Filter([oAnyFilter, oFilter3], false);
382
382
  var oMultiFilter3 = new Filter([oMultiFilter2, oFilter4]);
383
383
 
384
- this.oModel.checkFilterOperation(oMultiFilter3);
384
+ this.oModel.checkFilter(oMultiFilter3);
385
385
  assert.ok(true, "Valid operators in multi-filter are supported");
386
386
  });
387
387
 
@@ -401,7 +401,7 @@ sap.ui.define([
401
401
 
402
402
  assert.throws(
403
403
  function() {
404
- this.oModel.checkFilterOperation(oMultiFilter3);
404
+ this.oModel.checkFilter(oMultiFilter3);
405
405
  }.bind(this),
406
406
  this.getErrorWithMessage(FilterOperator.All),
407
407
  "Invalid operators in multi-filter are unsupported"
@@ -420,7 +420,7 @@ sap.ui.define([
420
420
 
421
421
  assert.throws(
422
422
  function() {
423
- this.oModel.checkFilterOperation(oFilter1);
423
+ this.oModel.checkFilter(oFilter1);
424
424
  }.bind(this),
425
425
  this.getErrorWithMessage(FilterOperator.All),
426
426
  "Invalid operators in multi-filter are unsupported"
@@ -446,4 +446,46 @@ sap.ui.define([
446
446
  }, reject);
447
447
  });
448
448
  });
449
+
450
+ /**
451
+ * @deprecated since 1.120
452
+ */
453
+ QUnit.module("Pseudo Module Deprecation", {});
454
+
455
+ QUnit.test("", async function(assert) {
456
+ let oErrorLogSpy;
457
+
458
+ assert.expect(3);
459
+
460
+ sap.ui.predefine('testing/pseudo/modules/deprecation/library', ["sap/ui/core/Lib"], function(Library) {
461
+ const oThisLib = Library.init({
462
+ name: 'testing.pseudo.modules.deprecation',
463
+ noLibraryCSS: true,
464
+ types: ["testing.pseudo.modules.deprecation.Type1"]
465
+ });
466
+
467
+ oThisLib.Type1 = {
468
+ "A": "A",
469
+ "B": "B"
470
+ };
471
+ });
472
+
473
+ await Library.load({
474
+ name: "testing.pseudo.modules.deprecation"
475
+ });
476
+
477
+ await new Promise((resolve, reject) => {
478
+ oErrorLogSpy = this.spy(Log, "error");
479
+ const sExpectedErrorMessage = "Deprecation: Import the type 'testing.pseudo.modules.deprecation.Type1' as a module is deprecated. Please require the corresponding 'library.js' containing the type directly. You can then reference the type via the library's module export.";
480
+
481
+ sap.ui.require(["testing/pseudo/modules/deprecation/Type1"], (Type1) => {
482
+ assert.ok(oErrorLogSpy.calledWith(sExpectedErrorMessage), "Error Message for pseudo module deprecation logged.");
483
+ assert.ok(Type1.A, "A", "pseudo type module export is correct (A).");
484
+ assert.ok(Type1.B, "B", "pseudo type module export is correct (B).");
485
+ resolve();
486
+ }, reject);
487
+ }).finally(() => {
488
+ oErrorLogSpy.restore();
489
+ });
490
+ });
449
491
  });
@@ -15,8 +15,9 @@ sap.ui.define([
15
15
  "sap/ui/model/Sorter",
16
16
  "sap/ui/base/ManagedObjectMetadata",
17
17
  "sap/base/strings/escapeRegExp",
18
- "sap/base/util/isEmptyObject"
19
- ], function(BindingInfo, BindingParser, DataType, ManagedObject, Element, JSONModel, Context, ManagedObjectModel, StringType, Control, Component, UIComponent, Sorter, ManagedObjectMetadata, escapeRegExp, isEmptyObject) {
18
+ "sap/base/util/isEmptyObject",
19
+ "sap/base/util/ObjectPath"
20
+ ], function(BindingInfo, BindingParser, DataType, ManagedObject, Element, JSONModel, Context, ManagedObjectModel, StringType, Control, Component, UIComponent, Sorter, ManagedObjectMetadata, escapeRegExp, isEmptyObject, ObjectPath) {
20
21
  "use strict";
21
22
  var mObjects = {};
22
23
 
@@ -29,6 +30,15 @@ sap.ui.define([
29
30
 
30
31
  DataType.registerEnum("MyEnum", MyEnum);
31
32
 
33
+ // sample item object, will be used as aggregation content for defaultClass test
34
+ const TestItem = ManagedObject.extend("sap.ui.core.TestItem", {
35
+ metadata: {
36
+ properties: {
37
+ name: { type: "string", defaultValue: "hello" }
38
+ }
39
+ }
40
+ });
41
+
32
42
  // define new types for testing
33
43
  var TestManagedObject = ManagedObject.extend("sap.ui.core.TestManagedObject", {
34
44
  metadata : {
@@ -54,7 +64,8 @@ sap.ui.define([
54
64
  singleBindableAggr : { type : "sap.ui.core.TestManagedObject", multiple : false, bindable: "bindable" },
55
65
  subObjects : { type : "sap.ui.core.TestManagedObject", multiple : true, singularName : "subObj"},
56
66
  elements : { type : "sap.ui.core.Element", multiple : true, bindable: "bindable"},
57
- skippedPropagation : { type: "sap.ui.core.Element", multiple: false }
67
+ skippedPropagation : { type: "sap.ui.core.Element", multiple: false },
68
+ itemsWithDefaultClass: { type: "sap.ui.core.TestItem", defaultClass: TestItem, multiple: true}
58
69
  },
59
70
  associations : {
60
71
  selectedObject : { type : "sap.ui.core.TestManagedObject", multiple : false},
@@ -1952,6 +1963,78 @@ sap.ui.define([
1952
1963
  assert.ok(bThrown, "Must throw error on unknown aggregation bind");
1953
1964
  });
1954
1965
 
1966
+ QUnit.module("defaultClass");
1967
+
1968
+ QUnit.test("ManagedObjects created from object-literals", function(assert) {
1969
+ // spy ObjectPath.get() to check if aggregations with default class don't probe the global namespace
1970
+ const oObjectPathGetSpy = this.spy(ObjectPath, "get");
1971
+
1972
+ // Create aggregation content from object literals
1973
+ const oContainer = new TestManagedObject({
1974
+ itemsWithDefaultClass: [{
1975
+ name: "item 0"
1976
+ },
1977
+ {
1978
+ name: "item 1"
1979
+ }]
1980
+ });
1981
+
1982
+ assert.equal(oObjectPathGetSpy.callCount, 0, "No access to global namespace for aggregations with 'defaultClass'");
1983
+
1984
+ // check aggregation content
1985
+ oContainer.getItemsWithDefaultClass().forEach((obj, i) => {
1986
+ assert.ok(obj instanceof TestItem, "Aggregation Item was correctly instantiated from 'defaultClass'");
1987
+ assert.ok(obj.getName(), `item ${i}`, "Aggregation Item properties correctly passed to 'defaultClass' constructor");
1988
+ });
1989
+
1990
+ oObjectPathGetSpy.restore();
1991
+ });
1992
+
1993
+ QUnit.test("validation: defaultClass does not match aggregation type", function(assert) {
1994
+ assert.throws(() => {
1995
+ // sample item object, will be used as aggregation content for defaultClass test
1996
+ ManagedObject.extend("sap.ui.core.FaultyTestClass", {
1997
+ metadata: {
1998
+ aggregations: {
1999
+ items: { type: "sap.ui.core.TestItem", defaultClass: ManagedObject }
2000
+ }
2001
+ }
2002
+ });
2003
+ },
2004
+ new TypeError("The 'defaultClass' of the aggregation 'items' in 'sap.ui.core.FaultyTestClass' is not of type 'sap.ui.core.TestItem'."),
2005
+ "'defaultClass' definition not matching aggregation type leads to a TypeError");
2006
+ });
2007
+
2008
+ QUnit.test("validation: defaultClass is defined together with altTypes containing 'object'", function(assert) {
2009
+ assert.throws(() => {
2010
+ // sample item object, will be used as aggregation content for defaultClass test
2011
+ ManagedObject.extend("sap.ui.core.FaultyTestClass", {
2012
+ metadata: {
2013
+ aggregations: {
2014
+ items: { type: "sap.ui.base.ManagedObject", defaultClass: ManagedObject, altTypes: ["string", "object"] }
2015
+ }
2016
+ }
2017
+ });
2018
+ },
2019
+ new TypeError("The aggregation 'items' in 'sap.ui.core.FaultyTestClass' must not defined a 'defaultClass' together with the altType 'object'."),
2020
+ "'defaultClass' definition together with 'altTypes' definition containing 'object' leads to a TypeError");
2021
+ });
2022
+
2023
+ QUnit.test("validation: defaultClass property is defined, but nullish", function(assert) {
2024
+ assert.throws(() => {
2025
+ // sample item object, will be used as aggregation content for defaultClass test
2026
+ ManagedObject.extend("sap.ui.core.FaultyTestClass", {
2027
+ metadata: {
2028
+ aggregations: {
2029
+ items: { type: "sap.ui.base.ManagedObject", defaultClass: undefined }
2030
+ }
2031
+ }
2032
+ });
2033
+ },
2034
+ new TypeError("The 'defaultClass' of the aggregation 'items' in 'sap.ui.core.FaultyTestClass' is defined with a nullish value (undefined)."),
2035
+ "'defaultClass' definition with nullish value leads to a TypeError");
2036
+ });
2037
+
1955
2038
  QUnit.module("Hidden Aggregations", {
1956
2039
  beforeEach: function() {
1957
2040
  this.testObj = new sapTestTestManagedObject("testObj", {
@@ -274,4 +274,23 @@ sap.ui.define([
274
274
 
275
275
  Formatting.detachChange(formattingChanged);
276
276
  });
277
+
278
+ QUnit.test("CustomIslamicCalendarData", function(assert) {
279
+ var aData = [{
280
+ "dateFormat": "A",
281
+ "islamicMonthStart": "14351201",
282
+ "gregDate": "20140925"
283
+ }, {
284
+ "dateFormat": "A",
285
+ "islamicMonthStart": "14360101",
286
+ "gregDate": "20141024"
287
+ }, {
288
+ "dateFormat": "A",
289
+ "islamicMonthStart": "14360201",
290
+ "gregDate": "20141123"
291
+ }];
292
+
293
+ Formatting.setCustomIslamicCalendarData(aData);
294
+ assert.deepEqual(Formatting.getCustomIslamicCalendarData(), aData, "The customizing data set can be retrieved");
295
+ });
277
296
  });
@@ -129,7 +129,7 @@ sap.ui.define([
129
129
 
130
130
  QUnit.test("Factory Function", function(assert){
131
131
  var oComp = this.oComp;
132
- var oComponent = Component.get(oComp.getId());
132
+ var oComponent = Component.getComponentById(oComp.getId());
133
133
  assert.equal(oComponent, oComp, "Factory function returns the same instance!");
134
134
 
135
135
  return Component.create({
@@ -434,7 +434,7 @@ sap.ui.define([
434
434
  // check the nested component having the ID of the parent component
435
435
  var oNestedComponentContainer = this.oComp.byId("ContButton");
436
436
  var sNestedComponentId = oNestedComponentContainer.getComponent();
437
- var oNestedComponent = Component.get(sNestedComponentId);
437
+ var oNestedComponent = Component.getComponentById(sNestedComponentId);
438
438
  assert.equal(sRefComponentId, Component.getOwnerIdFor(oNestedComponent), "The nested component has the correct component context");
439
439
  // check the control in the nested component to have the correct component context
440
440
  var oNestedControl = oNestedComponent.byId("mybutn");
@@ -739,7 +739,7 @@ sap.ui.define([
739
739
  manifest: "anylocation/manifest.json"
740
740
  }).then(function(oComponent) {
741
741
  assert.ok(true, "Component is loaded properly!");
742
- assert.equal(oComponent, Component.get("myTestComp"), "Component.get returns right component");
742
+ assert.equal(oComponent, Component.getComponentById("myTestComp"), "Component.get returns right component");
743
743
  }, function(oError) {
744
744
  assert.ok(false, "Component should be loaded!");
745
745
  });
@@ -1540,6 +1540,29 @@ sap.ui.define([
1540
1540
 
1541
1541
  });
1542
1542
 
1543
+ QUnit.test("Component.create with loaded manifest content", function(assert) {
1544
+ var oProcessI18nSpy = this.spy(Manifest.prototype, "_processI18n");
1545
+ // there's still one sync path where the i18n file is processed synchronously
1546
+ // it's documented in BLI CPOUI5FRAMEWORK-286
1547
+ var iExpectedSyncCallCount = 1;
1548
+ return LoaderExtensions.loadResource(
1549
+ "sap/ui/test/mixed/manifest.json",
1550
+ {async: true}
1551
+ ).then(function(oManifest) {
1552
+ return Component.create({
1553
+ manifest: oManifest
1554
+ });
1555
+ }).then(function(oComponent) {
1556
+ assert.ok(oComponent, "Component instance is created");
1557
+ var iSyncCall = oProcessI18nSpy.getCalls().reduce(function(acc, oCall) {
1558
+ if (oCall.args.length === 0 || !oCall.args[0]) {
1559
+ acc++;
1560
+ }
1561
+ return acc;
1562
+ }, 0);
1563
+ assert.equal(iSyncCall, iExpectedSyncCallCount, "The number of sync loading of i18n file is the same as expectation");
1564
+ });
1565
+ });
1543
1566
 
1544
1567
  QUnit.module("Models", {
1545
1568
  beforeEach : function() {
@@ -1,10 +1,10 @@
1
1
  /*global QUnit, sinon */
2
2
  sap.ui.define([
3
3
  "sap/base/Log",
4
- "sap/ui/core/Configuration",
4
+ "sap/base/i18n/Formatting",
5
5
  "sap/ui/core/date/Islamic",
6
6
  "sap/ui/core/date/UI5Date"
7
- ], function(Log, Configuration, Islamic, UI5Date) {
7
+ ], function(Log, Formatting, Islamic, UI5Date) {
8
8
  "use strict";
9
9
  /* eslint-disable camelcase */
10
10
 
@@ -172,8 +172,8 @@ sap.ui.define([
172
172
  this.oLogMock.expects("error").never();
173
173
  this.oLogMock.expects("warning").never();
174
174
  // set to "1" and it will fall-back to "A"
175
- this.stub(Configuration.getFormatSettings(), "getLegacyDateFormat").returns("1");
176
- this.stub(Configuration.getFormatSettings(), "getLegacyDateCalendarCustomizing")
175
+ this.stub(Formatting, "getABAPDateFormat").returns("1");
176
+ this.stub(Formatting, "getCustomIslamicCalendarData")
177
177
  .returns(customizingInfo);
178
178
  }
179
179
  });
@@ -34,10 +34,10 @@ sap.ui.define([
34
34
  var oBinding,
35
35
  aFilters = [],
36
36
  oModel = {
37
- checkFilterOperation : function () {}
37
+ checkFilter : function () {}
38
38
  };
39
39
 
40
- this.mock(oModel).expects("checkFilterOperation").withExactArgs(sinon.match.same(aFilters));
40
+ this.mock(oModel).expects("checkFilter").withExactArgs(sinon.match.same(aFilters));
41
41
  this.mock(FilterProcessor).expects("combineFilters")
42
42
  .withExactArgs([], sinon.match.same(aFilters))
43
43
  .returns("~combinedFilters");