@openui5/sap.ui.core 1.115.1 → 1.116.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 (541) hide show
  1. package/.dtsgenrc +18 -0
  2. package/.eslintrc.json +11 -0
  3. package/.reuse/dep5 +0 -5
  4. package/THIRDPARTY.txt +1 -7
  5. package/package.json +1 -1
  6. package/src/jquery.sap.global.js +1 -1
  7. package/src/jquery.sap.properties.js +1 -1
  8. package/src/jquery.sap.resources.js +1 -1
  9. package/src/jquery.sap.script.js +1 -1
  10. package/src/jquery.sap.sjax.js +2 -2
  11. package/src/jquery.sap.storage.js +3 -3
  12. package/src/sap/base/Event.js +106 -0
  13. package/src/sap/base/Eventing.js +320 -0
  14. package/src/sap/base/config.js +1 -1
  15. package/src/sap/base/i18n/Formatting.js +991 -0
  16. package/src/sap/base/i18n/LanguageTag.js +189 -0
  17. package/src/sap/base/i18n/Localization.js +711 -0
  18. package/src/sap/base/i18n/ResourceBundle.js +5 -20
  19. package/src/sap/base/i18n/date/CalendarType.js +54 -0
  20. package/src/sap/base/i18n/date/CalendarWeekNumbering.js +105 -0
  21. package/src/sap/base/i18n/date/TimezoneUtils.js +287 -0
  22. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  23. package/src/sap/base/util/restricted/_castArray.js +1 -1
  24. package/src/sap/base/util/restricted/_compact.js +1 -1
  25. package/src/sap/base/util/restricted/_curry.js +1 -1
  26. package/src/sap/base/util/restricted/_debounce.js +1 -1
  27. package/src/sap/base/util/restricted/_difference.js +1 -1
  28. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  29. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  30. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  31. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  32. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  33. package/src/sap/base/util/restricted/_flatten.js +1 -1
  34. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  35. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  36. package/src/sap/base/util/restricted/_intersection.js +1 -1
  37. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  38. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  39. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  40. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  41. package/src/sap/base/util/restricted/_isNil.js +1 -1
  42. package/src/sap/base/util/restricted/_max.js +1 -1
  43. package/src/sap/base/util/restricted/_merge.js +1 -1
  44. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  45. package/src/sap/base/util/restricted/_min.js +1 -1
  46. package/src/sap/base/util/restricted/_omit.js +1 -1
  47. package/src/sap/base/util/restricted/_pick.js +1 -1
  48. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  49. package/src/sap/base/util/restricted/_throttle.js +1 -1
  50. package/src/sap/base/util/restricted/_toArray.js +1 -1
  51. package/src/sap/base/util/restricted/_union.js +1 -1
  52. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  53. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  54. package/src/sap/base/util/restricted/_uniq.js +1 -1
  55. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  56. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  57. package/src/sap/base/util/restricted/_without.js +1 -1
  58. package/src/sap/base/util/restricted/_xor.js +1 -1
  59. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  60. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  61. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  62. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  63. package/src/sap/ui/Device.js +3 -3
  64. package/src/sap/ui/Global.js +4 -4
  65. package/src/sap/ui/base/Event.js +1 -1
  66. package/src/sap/ui/base/EventProvider.js +4 -12
  67. package/src/sap/ui/base/Interface.js +1 -1
  68. package/src/sap/ui/base/ManagedObject.js +8 -12
  69. package/src/sap/ui/base/ManagedObjectMetadata.js +30 -7
  70. package/src/sap/ui/base/Metadata.js +1 -1
  71. package/src/sap/ui/base/Object.js +1 -1
  72. package/src/sap/ui/base/ObjectPool.js +1 -1
  73. package/src/sap/ui/base/SyncPromise.js +10 -5
  74. package/src/sap/ui/core/.library +2 -2
  75. package/src/sap/ui/core/AccessKeysEnablement.js +10 -5
  76. package/src/sap/ui/core/AnimationMode.js +49 -0
  77. package/src/sap/ui/core/BusyIndicator.js +33 -42
  78. package/src/sap/ui/core/CalendarType.js +11 -37
  79. package/src/sap/ui/core/Component.js +4 -5
  80. package/src/sap/ui/core/ComponentContainer.js +1 -1
  81. package/src/sap/ui/core/ComponentMetadata.js +2 -2
  82. package/src/sap/ui/core/ComponentSupport.js +1 -1
  83. package/src/sap/ui/core/Configuration.js +409 -1270
  84. package/src/sap/ui/core/Control.js +4 -12
  85. package/src/sap/ui/core/ControlBehavior.js +157 -0
  86. package/src/sap/ui/core/Core.js +124 -132
  87. package/src/sap/ui/core/CustomData.js +1 -1
  88. package/src/sap/ui/core/DeclarativeSupport.js +1 -1
  89. package/src/sap/ui/core/Element.js +14 -3
  90. package/src/sap/ui/core/ElementMetadata.js +1 -1
  91. package/src/sap/ui/core/EnabledPropagator.js +1 -1
  92. package/src/sap/ui/core/EventBus.js +1 -1
  93. package/src/sap/ui/core/Fragment.js +1 -1
  94. package/src/sap/ui/core/HTML.js +1 -1
  95. package/src/sap/ui/core/History.js +1 -1
  96. package/src/sap/ui/core/Icon.js +1 -1
  97. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  98. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  99. package/src/sap/ui/core/InvisibleMessage.js +5 -7
  100. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  101. package/src/sap/ui/core/InvisibleText.js +12 -12
  102. package/src/sap/ui/core/Item.js +1 -1
  103. package/src/sap/ui/core/LabelEnablement.js +1 -1
  104. package/src/sap/ui/core/LayoutData.js +1 -1
  105. package/src/sap/ui/core/Lib.js +109 -22
  106. package/src/sap/ui/core/ListItem.js +1 -1
  107. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  108. package/src/sap/ui/core/Locale.js +151 -430
  109. package/src/sap/ui/core/LocaleData.js +39 -11
  110. package/src/sap/ui/core/Manifest.js +1 -1
  111. package/src/sap/ui/core/Message.js +1 -1
  112. package/src/sap/ui/core/RenderManager.js +1 -1
  113. package/src/sap/ui/core/Renderer.js +1 -1
  114. package/src/sap/ui/core/ResizeHandler.js +1 -1
  115. package/src/sap/ui/core/ScrollBar.js +1 -1
  116. package/src/sap/ui/core/SeparatorItem.js +1 -1
  117. package/src/sap/ui/core/StaticArea.js +31 -17
  118. package/src/sap/ui/core/Theming.js +451 -0
  119. package/src/sap/ui/core/Title.js +1 -1
  120. package/src/sap/ui/core/TooltipBase.js +1 -1
  121. package/src/sap/ui/core/UIArea.js +1 -1
  122. package/src/sap/ui/core/UIComponent.js +1 -1
  123. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  124. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  125. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  126. package/src/sap/ui/core/XMLComposite.js +1 -1
  127. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  128. package/src/sap/ui/core/XMLTemplateProcessor.js +1 -0
  129. package/src/sap/ui/core/_IconRegistry.js +7 -1
  130. package/src/sap/ui/core/date/CalendarWeekNumbering.js +12 -83
  131. package/src/sap/ui/core/date/UI5Date.js +2 -2
  132. package/src/sap/ui/core/delegate/ItemNavigation.js +8 -10
  133. package/src/sap/ui/core/delegate/ScrollEnablement.js +5 -5
  134. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  135. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  136. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  137. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  138. package/src/sap/ui/core/format/DateFormat.js +20 -15
  139. package/src/sap/ui/core/format/TimezoneUtil.js +15 -273
  140. package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
  141. package/src/sap/ui/core/library.js +3 -3
  142. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  143. package/src/sap/ui/core/message/Message.js +1 -1
  144. package/src/sap/ui/core/message/MessageManager.js +1 -1
  145. package/src/sap/ui/core/message/MessageParser.js +1 -1
  146. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  147. package/src/sap/ui/core/messagebundle_cs.properties +1 -1
  148. package/src/sap/ui/core/messagebundle_cy.properties +1 -1
  149. package/src/sap/ui/core/messagebundle_da.properties +1 -1
  150. package/src/sap/ui/core/messagebundle_de.properties +1 -1
  151. package/src/sap/ui/core/messagebundle_el.properties +1 -1
  152. package/src/sap/ui/core/messagebundle_en.properties +1 -1
  153. package/src/sap/ui/core/messagebundle_en_GB.properties +1 -1
  154. package/src/sap/ui/core/messagebundle_es.properties +1 -1
  155. package/src/sap/ui/core/messagebundle_es_MX.properties +1 -1
  156. package/src/sap/ui/core/messagebundle_et.properties +1 -1
  157. package/src/sap/ui/core/messagebundle_id.properties +1 -1
  158. package/src/sap/ui/core/messagebundle_it.properties +49 -49
  159. package/src/sap/ui/core/messagebundle_iw.properties +1 -1
  160. package/src/sap/ui/core/messagebundle_kk.properties +1 -1
  161. package/src/sap/ui/core/messagebundle_ko.properties +1 -1
  162. package/src/sap/ui/core/messagebundle_lt.properties +1 -1
  163. package/src/sap/ui/core/messagebundle_lv.properties +1 -1
  164. package/src/sap/ui/core/messagebundle_ms.properties +8 -8
  165. package/src/sap/ui/core/messagebundle_nl.properties +1 -1
  166. package/src/sap/ui/core/messagebundle_no.properties +1 -1
  167. package/src/sap/ui/core/messagebundle_pl.properties +1 -1
  168. package/src/sap/ui/core/messagebundle_pt.properties +1 -1
  169. package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -1
  170. package/src/sap/ui/core/messagebundle_ro.properties +1 -1
  171. package/src/sap/ui/core/messagebundle_sh.properties +1 -1
  172. package/src/sap/ui/core/messagebundle_sv.properties +1 -1
  173. package/src/sap/ui/core/messagebundle_th.properties +1 -1
  174. package/src/sap/ui/core/messagebundle_uk.properties +21 -21
  175. package/src/sap/ui/core/messagebundle_vi.properties +1 -1
  176. package/src/sap/ui/core/mvc/HTMLView.js +1 -1
  177. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  178. package/src/sap/ui/core/mvc/JSView.js +1 -1
  179. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  180. package/src/sap/ui/core/mvc/View.js +1 -1
  181. package/src/sap/ui/core/mvc/XMLView.js +1 -1
  182. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  183. package/src/sap/ui/core/plugin/LessSupport.js +14 -16
  184. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  185. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  186. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  187. package/src/sap/ui/core/routing/HashChanger.js +1 -0
  188. package/src/sap/ui/core/routing/Route.js +1 -0
  189. package/src/sap/ui/core/routing/Router.js +3 -1
  190. package/src/sap/ui/core/rules/Config.support.js +2 -2
  191. package/src/sap/ui/core/rules/Model.support.js +3 -1
  192. package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
  193. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  194. package/src/sap/ui/core/service/Service.js +1 -1
  195. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  196. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  197. package/src/sap/ui/core/support/Plugin.js +1 -1
  198. package/src/sap/ui/core/support/Support.js +1 -1
  199. package/src/sap/ui/core/support/controls/TimelineOverview.js +1 -1
  200. package/src/sap/ui/core/support/plugins/ControlTree.js +2 -2
  201. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  202. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  203. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  204. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  205. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  206. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  207. package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
  208. package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +4 -4
  209. package/src/sap/ui/core/themes/base/base.less +41 -20
  210. package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
  211. package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
  212. package/src/sap/ui/core/theming/Parameters.js +6 -5
  213. package/src/sap/ui/core/theming/ThemeManager.js +310 -447
  214. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  215. package/src/sap/ui/core/tmpl/DOMElement.js +5 -10
  216. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  217. package/src/sap/ui/core/tmpl/Template.js +1 -1
  218. package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
  219. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  220. package/src/sap/ui/core/util/Export.js +1 -1
  221. package/src/sap/ui/core/util/ExportCell.js +1 -1
  222. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  223. package/src/sap/ui/core/util/ExportRow.js +1 -1
  224. package/src/sap/ui/core/util/ExportType.js +1 -1
  225. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  226. package/src/sap/ui/core/util/File.js +1 -1
  227. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  228. package/src/sap/ui/core/util/MockServer.js +1 -1
  229. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  230. package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +3 -1
  231. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  232. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  233. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  234. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  235. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  236. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  237. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  238. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  239. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  240. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  241. package/src/sap/ui/debug/ControlTree.js +1 -1
  242. package/src/sap/ui/debug/DebugEnv.js +1 -1
  243. package/src/sap/ui/debug/PropertyList.js +1 -1
  244. package/src/sap/ui/events/PseudoEvents.js +17 -9
  245. package/src/sap/ui/model/Binding.js +19 -15
  246. package/src/sap/ui/model/ClientModel.js +1 -1
  247. package/src/sap/ui/model/CompositeBinding.js +57 -19
  248. package/src/sap/ui/model/CompositeDataState.js +1 -1
  249. package/src/sap/ui/model/CompositeType.js +1 -1
  250. package/src/sap/ui/model/DataState.js +1 -1
  251. package/src/sap/ui/model/ListBinding.js +42 -1
  252. package/src/sap/ui/model/MetaModel.js +1 -1
  253. package/src/sap/ui/model/Model.js +5 -4
  254. package/src/sap/ui/model/PropertyBinding.js +10 -0
  255. package/src/sap/ui/model/SelectionModel.js +1 -1
  256. package/src/sap/ui/model/SimpleType.js +4 -1
  257. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  258. package/src/sap/ui/model/Type.js +1 -1
  259. package/src/sap/ui/model/base/ManagedObjectModel.js +1 -1
  260. package/src/sap/ui/model/json/JSONModel.js +1 -1
  261. package/src/sap/ui/model/message/MessageModel.js +1 -1
  262. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  263. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  264. package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
  265. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  266. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  267. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  268. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  269. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  270. package/src/sap/ui/model/odata/type/Date.js +1 -1
  271. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  272. package/src/sap/ui/model/odata/type/DateTimeBase.js +8 -1
  273. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  274. package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
  275. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  276. package/src/sap/ui/model/odata/type/Double.js +1 -1
  277. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  278. package/src/sap/ui/model/odata/type/Int.js +1 -1
  279. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  280. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  281. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  282. package/src/sap/ui/model/odata/type/ODataType.js +3 -3
  283. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  284. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  285. package/src/sap/ui/model/odata/type/Single.js +1 -1
  286. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  287. package/src/sap/ui/model/odata/type/String.js +1 -1
  288. package/src/sap/ui/model/odata/type/Time.js +1 -1
  289. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  290. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  291. package/src/sap/ui/model/odata/v2/Context.js +3 -2
  292. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  293. package/src/sap/ui/model/odata/v2/ODataListBinding.js +14 -3
  294. package/src/sap/ui/model/odata/v2/ODataModel.js +45 -31
  295. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
  296. package/src/sap/ui/model/odata/v4/Context.js +7 -3
  297. package/src/sap/ui/model/odata/v4/ODataBinding.js +68 -39
  298. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +12 -8
  299. package/src/sap/ui/model/odata/v4/ODataListBinding.js +30 -8
  300. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +11 -9
  301. package/src/sap/ui/model/odata/v4/ODataModel.js +10 -14
  302. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +64 -31
  303. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +21 -16
  304. package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +2 -0
  305. package/src/sap/ui/model/odata/v4/lib/_Cache.js +37 -14
  306. package/src/sap/ui/model/odata/v4/lib/_Helper.js +11 -1
  307. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +7 -4
  308. package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +4 -4
  309. package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +1 -1
  310. package/src/sap/ui/model/resource/ResourceModel.js +1 -1
  311. package/src/sap/ui/model/type/Boolean.js +1 -1
  312. package/src/sap/ui/model/type/Currency.js +1 -1
  313. package/src/sap/ui/model/type/Date.js +1 -1
  314. package/src/sap/ui/model/type/DateInterval.js +1 -1
  315. package/src/sap/ui/model/type/DateTime.js +1 -1
  316. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  317. package/src/sap/ui/model/type/FileSize.js +1 -1
  318. package/src/sap/ui/model/type/Float.js +1 -1
  319. package/src/sap/ui/model/type/Integer.js +1 -1
  320. package/src/sap/ui/model/type/String.js +1 -1
  321. package/src/sap/ui/model/type/Time.js +1 -1
  322. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  323. package/src/sap/ui/model/type/Unit.js +1 -1
  324. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  325. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  326. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  327. package/src/sap/ui/test/Opa5.js +1 -1
  328. package/src/sap/ui/test/autowaiter/_autoWaiter.js +1 -1
  329. package/src/sap/ui/test/generic/TestBase.js +1 -1
  330. package/src/sap/ui/test/gherkin/simpleGherkinParser.js +10 -5
  331. package/src/sap/ui/test/matchers/LabelFor.js +1 -0
  332. package/src/sap/ui/thirdparty/caja-html-sanitizer.js +111 -96
  333. package/src/sap/ui/util/ActivityDetection.js +7 -1
  334. package/src/sap/ui/util/Mobile.js +11 -8
  335. package/src/sap/ui/util/Storage.js +1 -1
  336. package/src/ui5loader-autoconfig.js +5 -2
  337. package/src/ui5loader.js +169 -185
  338. package/test/sap/ui/core/FormatHelper.js +3 -2
  339. package/test/sap/ui/core/demokit/docuindex.json +6 -0
  340. package/test/sap/ui/core/demokit/sample/OpaBusyIndicator/OpaBusyIndicator.js +1 -1
  341. package/test/sap/ui/core/demokit/sample/OpaMatchers/OpaMatchers.js +2 -2
  342. package/test/sap/ui/core/demokit/sample/ViewTemplate/types/MIT.ODataTypes.html +9 -14
  343. package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +7 -0
  344. package/test/sap/ui/core/demokit/sample/common/pages/Any.js +1 -1
  345. package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/tests/filter.js +2 -2
  346. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Component.js +27 -0
  347. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.controller.js +43 -0
  348. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.view.xml +47 -0
  349. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.controller.js +27 -0
  350. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.view.xml +7 -0
  351. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/NotFound.view.xml +8 -0
  352. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.controller.js +123 -0
  353. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.view.xml +92 -0
  354. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.html +27 -0
  355. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +69 -0
  356. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/README.html +55 -0
  357. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/SandboxModel.js +56 -0
  358. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/POST-SalesOrderList.json +66 -0
  359. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000')-SO_2_SOITEM.json +57 -0
  360. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000').json +20 -0
  361. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000001').json +9 -0
  362. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000007')-SO_2_BP.json +12 -0
  363. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList.json +62 -0
  364. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.json +85 -0
  365. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.xml +185 -0
  366. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.json +93 -0
  367. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.xml +262 -0
  368. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/metadata.xml +1779 -0
  369. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/manifest.json +134 -0
  370. package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/pages/Main.js +119 -0
  371. package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/pages/Main.js +0 -41
  372. package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/manifest.json +1 -1
  373. package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/manifest.json +1 -1
  374. package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +5 -17
  375. package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Main.view.xml +3 -3
  376. package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/test/integration/arrangements/Startup.js +1 -1
  377. package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/test/integration/arrangements/Startup.js +1 -1
  378. package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +25 -7
  379. package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +86 -2
  380. package/test/sap/ui/core/qunit/DataState.qunit.js +2 -7
  381. package/test/sap/ui/core/qunit/HTML.qunit.js +31 -31
  382. package/test/sap/ui/core/qunit/Lib.qunit.js +55 -2
  383. package/test/sap/ui/core/qunit/LocalBusyIndicator.qunit.js +22 -15
  384. package/test/sap/ui/core/qunit/ManagedObject.qunit.js +5 -3
  385. package/test/sap/ui/core/qunit/Object.qunit.js +4 -1
  386. package/test/sap/ui/core/qunit/ThemeManager.qunit.js +2 -2
  387. package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +9 -3
  388. package/test/sap/ui/core/qunit/Theming.beforeBootstrap.qunit.js +13 -0
  389. package/test/sap/ui/core/qunit/Theming.qunit.js +229 -0
  390. package/test/sap/ui/core/qunit/analytics/AnalyticalTreeBindingAdapter.qunit.js +2 -7
  391. package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +2 -7
  392. package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +2 -7
  393. package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +24 -0
  394. package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +275 -0
  395. package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +259 -0
  396. package/test/sap/ui/core/qunit/base/i18n/ResourceBundle.qunit.js +5 -6
  397. package/test/sap/ui/core/qunit/base/security/sanitizeHTML.qunit.js +17 -0
  398. package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload.qunit.js +1 -2
  399. package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomBootTask.beforeBootstrap.qunit.js +13 -12
  400. package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +388 -254
  401. package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +19 -30
  402. package/test/sap/ui/core/qunit/component/Models.qunit.js +7 -28
  403. package/test/sap/ui/core/qunit/component/Models_unavoidablySync.qunit.js +8 -26
  404. package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js +2 -2
  405. package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.json +1 -1
  406. package/test/sap/ui/core/qunit/component/testdata/async/lib2/library.js +2 -2
  407. package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.js +2 -2
  408. package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.json +1 -1
  409. package/test/sap/ui/core/qunit/component/testdata/async/lib3/library.js +2 -2
  410. package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.js +2 -2
  411. package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.json +1 -1
  412. package/test/sap/ui/core/qunit/component/testdata/async/lib4/library.js +2 -2
  413. package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component-preload.js +1 -1
  414. package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component.js +2 -2
  415. package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component-preload.js +1 -1
  416. package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component.js +2 -2
  417. package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component-preload.js +1 -1
  418. package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component.js +2 -3
  419. package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/Component.js +0 -4
  420. package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/sync/Component.js +2 -6
  421. package/test/sap/ui/core/qunit/component/testdata/customizing/customersub/Component.js +0 -4
  422. package/test/sap/ui/core/qunit/component/testdata/inherit/Component.js +2 -7
  423. package/test/sap/ui/core/qunit/component/testdata/inherit/parent/Component.js +2 -7
  424. package/test/sap/ui/core/qunit/component/testdata/inheritAsync/Component.js +2 -2
  425. package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentA/Component.js +2 -2
  426. package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentB/Component.js +2 -2
  427. package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/Component.js +2 -2
  428. package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentA/Component.js +2 -2
  429. package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentB/Component.js +2 -2
  430. package/test/sap/ui/core/qunit/component/testdata/other/Component.js +2 -7
  431. package/test/sap/ui/core/qunit/component/testdata/terminologies/Component.js +2 -2
  432. package/test/sap/ui/core/qunit/component/testdata/terminologies/component1/Component.js +2 -2
  433. package/test/sap/ui/core/qunit/component/testdata/terminologies/component2/Component.js +2 -2
  434. package/test/sap/ui/core/qunit/component/testdata/terminologies/component3/Component.js +2 -2
  435. package/test/sap/ui/core/qunit/component/testdata/terminologies/component5/Component.js +2 -2
  436. package/test/sap/ui/core/qunit/component/testdata/terminologies/reuse/Component.js +2 -3
  437. package/test/sap/ui/core/qunit/component/testdata/v1/Component.js +2 -7
  438. package/test/sap/ui/core/qunit/component/testdata/v1empty/Component.js +2 -7
  439. package/test/sap/ui/core/qunit/component/testdata/v1inline/Component.js +2 -5
  440. package/test/sap/ui/core/qunit/component/testdata/v1missing/Component.js +2 -7
  441. package/test/sap/ui/core/qunit/component/testdata/v2/Component.js +2 -5
  442. package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/Component.js +2 -5
  443. package/test/sap/ui/core/qunit/component/testdata/v2empty/Component.js +2 -9
  444. package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +2 -5
  445. package/test/sap/ui/core/qunit/component/testdata/v2missing/Component.js +2 -9
  446. package/test/sap/ui/core/qunit/component/testdata/v2version/Component.js +2 -2
  447. package/test/sap/ui/core/qunit/dnd/DragDropInfo.qunit.js +1 -2
  448. package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +2 -0
  449. package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +2 -0
  450. package/test/sap/ui/core/qunit/gherkin/dataTableUtils.qunit.js +2 -2
  451. package/test/sap/ui/core/qunit/i18n/Locale.qunit.js +0 -52
  452. package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +1 -1
  453. package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +14 -24
  454. package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +18 -0
  455. package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +1 -0
  456. package/test/sap/ui/core/qunit/json/JSONListBinding.qunit.js +2 -7
  457. package/test/sap/ui/core/qunit/json/JSONPropertyBinding.qunit.js +7 -12
  458. package/test/sap/ui/core/qunit/json/JSONTwoWay.qunit.js +3 -8
  459. package/test/sap/ui/core/qunit/loader/fixture/amd-with-export-true/module1.js +2 -2
  460. package/test/sap/ui/core/qunit/messages/MessageMixin.qunit.js +2 -7
  461. package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +1 -1
  462. package/test/sap/ui/core/qunit/model/Binding.qunit.js +36 -11
  463. package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -7
  464. package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -7
  465. package/test/sap/ui/core/qunit/model/CompositeDataState.qunit.js +2 -7
  466. package/test/sap/ui/core/qunit/model/Context.qunit.js +2 -7
  467. package/test/sap/ui/core/qunit/model/ContextBinding.qunit.js +2 -7
  468. package/test/sap/ui/core/qunit/model/ListBinding.qunit.js +63 -6
  469. package/test/sap/ui/core/qunit/model/Model.qunit.js +2 -7
  470. package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +40 -0
  471. package/test/sap/ui/core/qunit/model/TreeBinding.qunit.js +2 -7
  472. package/test/sap/ui/core/qunit/model/TreeBindingAdapter.qunit.js +2 -7
  473. package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +9 -8
  474. package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +4 -4
  475. package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +4 -4
  476. package/test/sap/ui/core/qunit/odata/AnnotationParserNoFakeService.qunit.js +2 -7
  477. package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +1 -1
  478. package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +2 -8
  479. package/test/sap/ui/core/qunit/odata/ODataMetadataNoFakeService.qunit.js +1 -6
  480. package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +24 -0
  481. package/test/sap/ui/core/qunit/odata/v2/Context.qunit.js +2 -7
  482. package/test/sap/ui/core/qunit/odata/v2/ODataContextBindingNoFakeService.qunit.js +2 -7
  483. package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +31 -17
  484. package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +28 -19
  485. package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +70 -15
  486. package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBindingNoFakeService.qunit.js +2 -7
  487. package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingFlatNoFakeService.qunit.js +4 -9
  488. package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +2 -7
  489. package/test/sap/ui/core/qunit/odata/v2/_CreatedContextsCache.qunit.js +2 -7
  490. package/test/sap/ui/core/qunit/odata/v4/AnnotationHelper.qunit.js +1 -1
  491. package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +45 -17
  492. package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +152 -151
  493. package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +55 -27
  494. package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +119 -4
  495. package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -3
  496. package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +754 -195
  497. package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +42 -53
  498. package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +283 -170
  499. package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +103 -78
  500. package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +3 -0
  501. package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +87 -58
  502. package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +3 -1
  503. package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +124 -22
  504. package/test/sap/ui/core/qunit/odata/v4/testsuite.odatav4.qunit.js +4 -0
  505. package/test/sap/ui/core/qunit/opa/_LogCollector.qunit.js +1 -1
  506. package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +5 -0
  507. package/test/sap/ui/core/qunit/resource/ResourceModel.qunit.js +17 -37
  508. package/test/sap/ui/core/qunit/routing/HashChanger.qunit.js +1 -6
  509. package/test/sap/ui/core/qunit/routing/RouterHashChanger.qunit.js +1 -10
  510. package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +1 -22
  511. package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -4
  512. package/test/sap/ui/core/qunit/rule/model/modelSupport.qunit.js +34 -1
  513. package/test/sap/ui/core/qunit/testdata/fastnavigation/view/FastNavigation.view.xml +2 -2
  514. package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/i18n.properties +1 -0
  515. package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/library.js +10 -0
  516. package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/manifest.json +10 -0
  517. package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/library.js +10 -0
  518. package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/messagebundle.properties +1 -0
  519. package/test/sap/ui/core/qunit/testsuites/testsuite.databinding.qunit.js +3 -0
  520. package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +29 -0
  521. package/test/sap/ui/core/qunit/types/DateFormatTimezones.qunit.js +397 -607
  522. package/test/sap/ui/core/qunit/types/SimpleType.qunit.js +16 -2
  523. package/test/sap/ui/core/qunit/types/Types.qunit.js +2 -37
  524. package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +1 -1
  525. package/test/sap/ui/core/qunit/util/SyncPromise.qunit.js +4 -1
  526. package/test/sap/ui/core/qunit/util/jQuery.sap.measure.qunit.js +16 -11
  527. package/test/sap/ui/core/qunit/xml/XMLListBinding.qunit.js +1 -3
  528. package/test/sap/ui/core/qunit/xml/XMLModel.qunit.js +4 -14
  529. package/test/sap/ui/core/qunit/xml/XMLPropertyBinding.qunit.js +7 -11
  530. package/test/sap/ui/core/qunit/xml/XMLTreeBinding.qunit.js +1 -1
  531. package/test/sap/ui/core/qunit/xml/XMLTwoWay.qunit.js +3 -7
  532. package/test/sap/ui/core/relnotes/changes-1.115.json +1 -37
  533. package/test/sap/ui/core/relnotes/changes-1.116.json +82 -0
  534. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/firstItem-contextMenu.ref.lnk +1 -1
  535. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/initial.ref.lnk +1 -1
  536. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/lastItem-contextMenu.ref.lnk +1 -1
  537. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/leftDownBtn-contextMenu.ref.lnk +1 -1
  538. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/myButtonSample-contextMenu.ref.lnk +1 -1
  539. package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/rightDownBtn-contextMenu.ref.lnk +1 -1
  540. package/test/testsuite/js/samples.js +2 -0
  541. package/ui5.yaml +1 -1
@@ -0,0 +1,47 @@
1
+ <mvc:View
2
+ class="sapUiSizeCompact"
3
+ controllerName="sap.ui.core.sample.odata.v4.DeepCreate.ListReport"
4
+ xmlns="sap.m"
5
+ xmlns:mvc="sap.ui.core.mvc">
6
+ <Page showHeader="false">
7
+ <Table growing="true" growingThreshold="10" id="SalesOrderList"
8
+ items="{path : '/SalesOrderList',
9
+ parameters : {
10
+ $count : true,
11
+ $$getKeepAliveContext : true,
12
+ $$patchWithoutSideEffects : true
13
+ }}">
14
+ <headerToolbar>
15
+ <Toolbar>
16
+ <Title level="H1" text="Sales Order List">
17
+ </Title>
18
+ <Link text="Read Me" target="_blank"
19
+ href="test-resources/sap/ui/core/demokit/sample/odata/v4/DeepCreate/README.html"/>
20
+ <ToolbarSpacer/>
21
+ <Button icon="sap-icon://add" id="create" press="onCreateSalesOrder"
22
+ text="Create" tooltip="Create Sales Order"/>
23
+ </Toolbar>
24
+ </headerToolbar>
25
+ <columns>
26
+ <Column hAlign="Right" width="9em">
27
+ <Text text="Sales Order ID"/>
28
+ </Column>
29
+ <Column>
30
+ <Text text="Buyer Name"/>
31
+ </Column>
32
+ <Column hAlign="Right">
33
+ <Text text="Gross Amount"/>
34
+ </Column>
35
+ <Column>
36
+ <Text text="Currency"/>
37
+ </Column>
38
+ </columns>
39
+ <ColumnListItem type="Navigation" press=".onListItemPressed">
40
+ <Text id="salesOrderId" text="{SalesOrderID}"/>
41
+ <Text binding="{SO_2_BP}" text="{CompanyName}"/>
42
+ <Text id="grossAmount" text="{GrossAmount}"/>
43
+ <Text text="{CurrencyCode}"/>
44
+ </ColumnListItem>
45
+ </Table>
46
+ </Page>
47
+ </mvc:View>
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/ui/core/sample/common/Controller",
6
+ "sap/ui/model/json/JSONModel"
7
+ ], function (Controller, JSONModel) {
8
+ "use strict";
9
+
10
+ return Controller.extend("sap.ui.core.sample.odata.v4.DeepCreate.Main", {
11
+
12
+ onExit : function () {
13
+ this.oUIModel.destroy(); // avoid changes on UI elements if this view destroys
14
+ Controller.prototype.onExit.apply(this);
15
+ },
16
+
17
+ onInit : function () {
18
+ var oView = this.getView();
19
+
20
+ this.oUIModel = new JSONModel({
21
+ oContext : null,
22
+ iMessages : 0
23
+ });
24
+ oView.setModel(this.oUIModel, "ui");
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,7 @@
1
+ <mvc:View
2
+ class="sapUiSizeCompact"
3
+ controllerName="sap.ui.core.sample.odata.v4.DeepCreate.Main"
4
+ xmlns="sap.m"
5
+ xmlns:mvc="sap.ui.core.mvc">
6
+ <App id="app"/>
7
+ </mvc:View>
@@ -0,0 +1,8 @@
1
+ <mvc:View
2
+ xmlns="sap.m"
3
+ xmlns:mvc="sap.ui.core.mvc">
4
+ <MessagePage
5
+ title="Not Found"
6
+ text="Sorry, but the requested resource is not available."
7
+ description="Please check the URL and try again."/>
8
+ </mvc:View>
@@ -0,0 +1,123 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ sap.ui.define([
5
+ "sap/m/MessageToast",
6
+ "sap/ui/core/UIComponent",
7
+ "sap/ui/core/date/UI5Date",
8
+ "sap/ui/core/sample/common/Controller"
9
+ ], function (MessageToast, UIComponent, UI5Date, Controller) {
10
+ "use strict";
11
+
12
+ return Controller.extend("sap.ui.core.sample.odata.v4.DeepCreate.ObjectPage", {
13
+ navTo : function (oContext) {
14
+ UIComponent.getRouterFor(this)
15
+ .navTo("objectPage", {id : oContext.getProperty("SalesOrderID")}, true);
16
+ },
17
+
18
+ newLineItem : function () {
19
+ var oDeliveryDate = UI5Date.getInstance(),
20
+ oType = this.getView().getModel().getMetaModel()
21
+ .getUI5Type("/SalesOrderList/SO_2_SOITEM/DeliveryDate");
22
+
23
+ oDeliveryDate.setFullYear(oDeliveryDate.getFullYear() + 1);
24
+
25
+ return {
26
+ CurrencyCode : "EUR",
27
+ DeliveryDate : oType.getModelValue(oDeliveryDate),
28
+ GrossAmount : "42.0",
29
+ ProductID : "HT-1000",
30
+ Quantity : "2.000",
31
+ QuantityUnit : "EA"
32
+ };
33
+ },
34
+
35
+ onCreateLineItem : function () {
36
+ this.byId("SO_2_SOITEM").getBinding("items")
37
+ .create(this.newLineItem("manual created note")).created()
38
+ .catch(function (oError) {
39
+ if (!oError.canceled) {
40
+ throw oError; // unexpected error
41
+ }
42
+ });
43
+ },
44
+
45
+ onDeleteLineItem : function () {
46
+ var aItems = this.byId("SO_2_SOITEM").getSelectedItems();
47
+
48
+ if (!aItems.length) {
49
+ MessageToast.show("nothing selected");
50
+ return;
51
+ }
52
+ aItems.forEach(function (oItem) {
53
+ oItem.getBindingContext().delete().catch(function (oError) {
54
+ if (!oError.canceled) {
55
+ // error was already reported to message model
56
+ }
57
+ });
58
+ });
59
+ },
60
+
61
+ onInit : function () {
62
+ var oRouter = UIComponent.getRouterFor(this);
63
+
64
+ this.initMessagePopover("showMessages");
65
+ this.getView().setModel(sap.ui.getCore().getMessageManager().getMessageModel(),
66
+ "messages");
67
+ oRouter.getRoute("create").attachPatternMatched(this.onPatternMatched, this);
68
+ oRouter.getRoute("objectPage").attachPatternMatched(this.onPatternMatched, this);
69
+ },
70
+
71
+ onPatternMatched : function (oEvent) {
72
+ var oContext,
73
+ sPath = "/SalesOrderList('" + oEvent.getParameter("arguments").id + "')",
74
+ oView = this.getView();
75
+
76
+ oContext = oView.getBindingContext();
77
+ if (oContext && !oContext.isTransient()) {
78
+ oContext.setKeepAlive(false);
79
+ }
80
+ if (oEvent.getParameter("name") === "create") {
81
+ oContext = this.getView().getModel("ui").getProperty("/oContext");
82
+ if (!oContext) {
83
+ UIComponent.getRouterFor(this).navTo("listReport");
84
+ return;
85
+ }
86
+ this.getView().getModel("ui").setProperty("/oContext", null);
87
+ oView.setBindingContext(oContext);
88
+ } else {
89
+ oContext = oView.getModel().getKeepAliveContext(sPath, /*bRequestMessages*/ true,
90
+ {$$patchWithoutSideEffects : true});
91
+ oView.setBindingContext(oContext);
92
+ oView.setBusy(true);
93
+ oContext.requestProperty("SalesOrderID").catch(function () {
94
+ // ignore; it's logged anyway
95
+ }).finally(function () {
96
+ oView.setBusy(false);
97
+ });
98
+ }
99
+ this.getView().setModel(this.getView().getModel(), "headerContext");
100
+ this.byId("lineItemsTitle").setBindingContext(
101
+ this.byId("SO_2_SOITEM").getBinding("items").getHeaderContext(),
102
+ "headerContext");
103
+ },
104
+
105
+ onResetChanges : function () {
106
+ var oModel = this.getView().getModel();
107
+
108
+ oModel.resetChanges(oModel.getUpdateGroupId());
109
+ },
110
+
111
+ onSave : function () {
112
+ var oContext = this.getView().getBindingContext(),
113
+ oModel = this.getView().getModel();
114
+
115
+ if (!oContext.isTransient()) {
116
+ oContext.requestSideEffects(["GrossAmount", "Messages"])
117
+ .catch(function () { /*may fail because of previous request*/ });
118
+ }
119
+
120
+ oModel.submitBatch(oModel.getUpdateGroupId());
121
+ }
122
+ });
123
+ });
@@ -0,0 +1,92 @@
1
+ <mvc:View
2
+ class="sapUiSizeCompact"
3
+ controllerName="sap.ui.core.sample.odata.v4.DeepCreate.ObjectPage"
4
+ xmlns="sap.m"
5
+ xmlns:demo="sap.ui.core.sample.common"
6
+ xmlns:form="sap.ui.layout.form"
7
+ xmlns:mvc="sap.ui.core.mvc">
8
+ <Page showHeader="false" floatingFooter="true">
9
+ <form:SimpleForm ariaLabelledBy="objectPageTitle" backgroundDesign="Transparent"
10
+ editable="true" id="objectPage" layout="ResponsiveGridLayout">
11
+ <form:toolbar>
12
+ <Toolbar design="Transparent">
13
+ <Title id="objectPageTitle" level="H2" text="Sales Order Details"/>
14
+ </Toolbar>
15
+ </form:toolbar>
16
+ <Label labelFor="SalesOrder::id" text="Sales Order ID"/>
17
+ <Input editable="false" id="SalesOrder::id" value="{SalesOrderID}"/>
18
+ <Label labelFor="SalesOrder::buyerID" text="Buyer Name"/>
19
+ <Input editable="false" id="SalesOrder::CompanyName" value="{SO_2_BP/CompanyName}"/>
20
+ <Label labelFor="SalesOrder::status" text="Lifecycle Status"/>
21
+ <Input editable="false" id="SalesOrder::status" value="{LifecycleStatusDesc}"/>
22
+ <Label labelFor="SalesOrder::grossAmount" text="Gross Amount"/>
23
+ <Input editable="false" id="SalesOrder::grossAmount" value="{GrossAmount}"/>
24
+ <Label labelFor="SalesOrder::currency" text="Currency"/>
25
+ <demo:ValueHelp id="SalesOrder::currency" value="{CurrencyCode}"/>
26
+ <Label labelFor="SalesOrder::note" text="Note"/>
27
+ <Input id="SalesOrder::note" value="{Note}"/>
28
+ </form:SimpleForm>
29
+ <Table growing="true" growingThreshold="5" id="SO_2_SOITEM"
30
+ items="{
31
+ parameters : {
32
+ $count : true,
33
+ $$ownRequest : true
34
+ },
35
+ path : 'SO_2_SOITEM'
36
+ }" mode="MultiSelect">
37
+ <headerToolbar>
38
+ <Toolbar id="lineItemsToolbar">
39
+ <Title id="lineItemsTitle" level="H2"
40
+ text="{headerContext>$count} Sales Order Line Items"/>
41
+ <ToolbarSpacer/>
42
+ <Button press="onCreateLineItem" tooltip="Create Line Item"
43
+ id="createLineItem" icon="sap-icon://add" text="Create"/>
44
+ <Button press="onDeleteLineItem" tooltip="Delete Selected Line Items"
45
+ id="deleteLineItem" icon="sap-icon://delete" text="Delete"/>
46
+ </Toolbar>
47
+ </headerToolbar>
48
+ <columns>
49
+ <Column>
50
+ <Text text="Item Position"/>
51
+ </Column>
52
+ <Column>
53
+ <Text text="ProductID"/>
54
+ </Column>
55
+ <Column hAlign="Right">
56
+ <Text text="Quantity"/>
57
+ </Column>
58
+ <Column>
59
+ <Text text="Quantity Unit" width="8em"/>
60
+ </Column>
61
+ <Column hAlign="Right">
62
+ <Text text="Gross Amount"/>
63
+ </Column>
64
+ <Column>
65
+ <Text text="Currency"/>
66
+ </Column>
67
+ <Column>
68
+ <Text text="Note"/>
69
+ </Column>
70
+ </columns>
71
+ <ColumnListItem id="lineItem">
72
+ <Text text="{ItemPosition}" width="8em"/>
73
+ <demo:ValueHelp id="productID" value="{ProductID}"/>
74
+ <Input value="{Quantity}" textAlign="Right" width="8em"/>
75
+ <Text text="{QuantityUnit}" width="3em"/>
76
+ <Text text="{GrossAmount}"/>
77
+ <Text text="{CurrencyCode}"/>
78
+ <Input value="{Note}" width="16em"/>
79
+ </ColumnListItem>
80
+ </Table>
81
+ <footer>
82
+ <OverflowToolbar>
83
+ <Button id="showMessages" icon="sap-icon://message-popup" tooltip="Show messages"
84
+ press="onToggleMessagePopover" text="{ui>/iMessages} Messages"
85
+ type="{= ${ui>/iMessages} ? 'Emphasized' : 'Default' }"/>
86
+ <ToolbarSpacer/>
87
+ <Button id="resetChanges" press="onResetChanges" text="Reset Changes"/>
88
+ <Button id="save" press="onSave" text="Save" type="Emphasized"/>
89
+ </OverflowToolbar>
90
+ </footer>
91
+ </Page>
92
+ </mvc:View>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>OPA for Deep Create</title>
6
+
7
+ <base href="../../../../../../../../../">
8
+
9
+ <script src="test-resources/sap/ui/core/shared-config.js"></script>
10
+ <script id="sap-ui-bootstrap" src="resources/sap-ui-core.js"
11
+ data-sap-ui-async="true"
12
+ data-sap-ui-compatversion="edge"
13
+ data-sap-ui-libs="sap.m"
14
+ data-sap-ui-resourceroots='{"sap.ui.core.sample":"test-resources/sap/ui/core/demokit/sample"}'>
15
+ </script>
16
+
17
+ <link href="resources/sap/ui/thirdparty/qunit-2.css" media="screen" rel="stylesheet">
18
+ <script src="resources/sap/ui/thirdparty/qunit-2.js"></script>
19
+ <script src="resources/sap/ui/qunit/qunit-junit.js"></script>
20
+ <script
21
+ src="test-resources/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js">
22
+ </script>
23
+ </head>
24
+ <body>
25
+ <div id="qunit"></div>
26
+ </body>
27
+ </html>
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ QUnit.config.autostart = false;
5
+ sap.ui.getCore().attachInit(function () {
6
+ "use strict";
7
+
8
+ sap.ui.require([
9
+ "sap/ui/core/sample/common/Helper",
10
+ "sap/ui/core/sample/common/pages/Any",
11
+ "sap/ui/core/sample/odata/v4/DeepCreate/pages/Main",
12
+ "sap/ui/test/Opa",
13
+ "sap/ui/test/opaQunit",
14
+ "sap/ui/test/TestUtils"
15
+ ], function (Helper, Any, Main, Opa, opaTest, TestUtils) {
16
+ Helper.qUnitModule("sap.ui.core.sample.odata.v4.DeepCreate");
17
+
18
+ //*****************************************************************************
19
+ opaTest("Deep Create", function (Given, When, Then) {
20
+ var bRealOData = TestUtils.isRealOData();
21
+
22
+ When.onAnyPage.applySupportAssistant();
23
+ Given.iStartMyUIComponent({
24
+ autoWait : true,
25
+ componentConfig : {
26
+ name : "sap.ui.core.sample.odata.v4.DeepCreate"
27
+ }
28
+ });
29
+
30
+ Opa.getContext().sViewName = "sap.ui.core.sample.odata.v4.DeepCreate.ObjectPage";
31
+
32
+ // create order, create and delete line items and reset -> show list report
33
+ When.onTheListReport.pressCreate();
34
+ Then.onTheObjectPage.checkSalesOrderID("");
35
+ When.onTheObjectPage.pressCreateLineItem();
36
+ Then.onTheObjectPage.checkSalesOrderItemsCount(1);
37
+ When.onTheObjectPage.pressCreateLineItem();
38
+ When.onTheObjectPage.pressCreateLineItem();
39
+ Then.onTheObjectPage.checkSalesOrderItemsCount(3);
40
+ When.onTheObjectPage.selectLineItem(0);
41
+ When.onTheObjectPage.selectLineItem(2);
42
+ When.onTheObjectPage.pressDeleteSelectedLineItems();
43
+ Then.onTheObjectPage.checkSalesOrderItemsCount(1);
44
+ When.onTheObjectPage.pressResetChanges();
45
+
46
+ // create order, create line items and save
47
+ When.onTheListReport.pressCreate();
48
+ When.onTheObjectPage.pressCreateLineItem();
49
+ When.onTheObjectPage.pressCreateLineItem();
50
+ Then.onTheObjectPage.checkSalesOrderItemsCount(2);
51
+ When.onTheObjectPage.pressSave();
52
+ if (bRealOData) {
53
+ Then.onTheObjectPage.checkGrossAmount("4,550.56");
54
+ Then.onTheObjectPage.checkSalesOrderItemsCount(2);
55
+ } else {
56
+ Then.onTheObjectPage.checkSalesOrderID("0500000007");
57
+ Then.onTheObjectPage.checkSalesOrderItemsCount(3); // got a bonus item
58
+ Then.onTheObjectPage.checkGrossAmount("6,825.84");
59
+ }
60
+
61
+ When.onAnyPage.cleanUp("SO_2_SOITEM");
62
+ Then.onAnyPage.checkLog();
63
+ Then.onAnyPage.analyzeSupportAssistant();
64
+ Then.iTeardownMyUIComponent();
65
+ });
66
+
67
+ QUnit.start();
68
+ });
69
+ });
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE HTML>
2
+ <html lang="en">
3
+ <head>
4
+ <style>
5
+ body {font-family: Arial, Helvetica, sans-serif;}
6
+ </style>
7
+ <title>Demo Application: Deep Create</title>
8
+ </head>
9
+ <body>
10
+ <h1>Demo Application: Deep Create</h1>
11
+ <h2>DESCRIPTION</h2>
12
+ This demo application demonstrates how to work with deep created entities, composed via
13
+ <a href="https://sdk.openui5.org/api/sap.ui.model.odata.v4.ODataListBinding/methods/create">
14
+ V4 ODataModel#getKeepAliveContext API</a> which are
15
+ displayed within a list report and an object page that are synchronised via
16
+ <a href="https://sdk.openui5.org/api/sap.ui.model.odata.v4.ODataModel/methods/getKeepAliveContext">
17
+ V4 ODataModel#getKeepAliveContext</a> API.
18
+
19
+ <h3>Start Up</h3>
20
+ <ol>
21
+ <li>Start the DeepCreate application with URL:
22
+ <a href="/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.DeepCreate">
23
+ /test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.DeepCreate
24
+ </a></li>
25
+ <li><b>Note:</b> The list report appears and you see some sales orders.</li>
26
+ </ol>
27
+ <h2>Scenario: Create sales order, create line items and reset changes</h2>
28
+ <ol>
29
+ <li>Press the <code>Create</code> button.</li>
30
+ <li><b>Note:</b> The object page with an inital sales order appears.</li>
31
+ <li>Press the <code>Create</code> button for the line items several times.</li>
32
+ <li><b>Note:</b> The line items table reflects the deeply created line items.</li>
33
+ <li><b>Note:</b> The title of the line items table reflects the correct count.</li>
34
+ <li>Select the <code>check mark</code> of one or more line items.</li>
35
+ <li>Press the <code>Delete</code> button.</li>
36
+ <li><b>Note:</b> The checked line items are gone and the title of the line items table
37
+ reflects the correct count.</li>
38
+ <li>Press the <code>Reset Changes</code> button.</li>
39
+ <li><b>Note:</b> The list report is displayed again and the created sales order is gone.
40
+ </li>
41
+ </ol>
42
+ <h2>Scenario: Create sales order, create line items and save</h2>
43
+ <ol>
44
+ <li>Press the <code>Create</code> button.</li>
45
+ <li><b>Note:</b> The object page with an inital sales order appears.</li>
46
+ <li>Press the <code>Create</code> button for the line items two times.</li>
47
+ <li><b>Note:</b> The line items table reflects the deeply created line items and the
48
+ title of the line items table reflects the correct count.</li>
49
+ <li>Press the <code>Save</code> button.</li>
50
+ <li><b>Note:</b> The <code>Sales Order ID</code> now is "0500000007",
51
+ <code>Buyer Name</code> is "SAP", <code>Gross Amount</code> is "6825,84", the
52
+ <code>Item Position</code> are filled and you got a bonus line item.</li>
53
+ </ol>
54
+ </body>
55
+ </html>
@@ -0,0 +1,56 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ // The SandboxModel is used in the manifest instead of OData V4 model for the following purposes:
5
+ // Certain constructor parameters are taken from URL parameters. For the "non-realOData" case, a
6
+ // mock server for the back-end requests is set up.
7
+ sap.ui.define([
8
+ "sap/ui/core/sample/common/SandboxModelHelper",
9
+ "sap/ui/model/odata/v4/ODataModel"
10
+ ], function (SandboxModelHelper, ODataModel) {
11
+ "use strict";
12
+
13
+ var oMockData = {
14
+ sFilterBase : "/sap/opu/odata4/sap/zui5_testv4/default/sap/zui5_epm_sample/0002/",
15
+ mFixture : {
16
+ "SalesOrderList?$count=true&$select=CurrencyCode,GrossAmount,SalesOrderID&$expand=SO_2_BP($select=BusinessPartnerID,CompanyName)&$skip=0&$top=10" : {
17
+ source : "SalesOrderList.json"
18
+ },
19
+ "SalesOrderList('0500000000')?$select=LifecycleStatusDesc,Messages,Note" : {
20
+ source : "SalesOrderList('0500000000').json"
21
+ },
22
+ "SalesOrderList('0500000000')/SO_2_SOITEM?$count=true&$select=CurrencyCode,GrossAmount,ItemPosition,Note,ProductID,Quantity,QuantityUnit,SalesOrderID&$skip=0&$top=5" : {
23
+ source : "SalesOrderList('0500000000')-SO_2_SOITEM.json"
24
+ },
25
+ "POST SalesOrderList" : {
26
+ source : "POST-SalesOrderList.json"
27
+ },
28
+ "SalesOrderList('0500000007')?$select=Messages&$expand=SO_2_BP($select=BusinessPartnerID,CompanyName)" : {
29
+ source : "SalesOrderList('0500000007')-SO_2_BP.json"
30
+ },
31
+ "/sap/opu/odata4/sap/zui5_testv4/f4/sap/h_tcurc-sh/0001;ps=%27default-zui5_epm_sample-0002%27;va=%27com.sap.gateway.default.zui5_epm_sample.v0002.ET-SALESORDER.CURRENCY_CODE%27/H_TCURC_SH_Set?$select=LTEXT,WAERS&$skip=0&$top=20" : {
32
+ source : "VH_CurrencyCode.json"
33
+ },
34
+ "/sap/opu/odata4/sap/zui5_testv4/f4/sap/h_epm_pr-sh/0001;ps=%27default-zui5_epm_sample-0002%27;va=%27com.sap.gateway.default.zui5_epm_sample.v0002.ET-SO_ITEM.PRODUCT_ID%27/H_EPM_PR_SH_Set?$select=LANGU,NODE_KEY,PRODUCT_ID,SUPPLIER_ID,SUPPLIER_KEY,TEXT&$skip=0&$top=20" : {
35
+ source : "VH_ProductID.json"
36
+ }
37
+ },
38
+ aRegExps : [{
39
+ regExp : /^GET [\w\/]+\/zui5_epm_sample\/0002\/\$metadata\?sap-language=..$/,
40
+ response : {source : "metadata.xml"}
41
+ }, {
42
+ regExp : /^GET [-\w\/;=%.]+\.ET-SALESORDER.CURRENCY_CODE%27\/\$metadata\?sap-language=..$/,
43
+ response : {source : "VH_CurrencyCode.xml"}
44
+ }, {
45
+ regExp : /^GET [-\w\/;=%.]+\.ET-SO_ITEM.PRODUCT_ID%27\/\$metadata\?sap-language=..$/,
46
+ response : {source : "VH_ProductID.xml"}
47
+ }],
48
+ sSourceBase : "sap/ui/core/sample/odata/v4/DeepCreate/data"
49
+ };
50
+
51
+ return ODataModel.extend("sap.ui.core.sample.odata.v4.DeepCreate.SandboxModel", {
52
+ constructor : function (mParameters) {
53
+ return SandboxModelHelper.adaptModelParametersAndCreateModel(mParameters, oMockData);
54
+ }
55
+ });
56
+ });
@@ -0,0 +1,66 @@
1
+ {
2
+ "@odata.context" : "$metadata#SalesOrderList(SO_2_SOITEM())/$entity",
3
+ "@odata.metadataEtag" : "W/\"20230620150020\"",
4
+ "@odata.etag" : "W/\"20230622064216.2786150 \"",
5
+ "SalesOrderID" : "0500000007",
6
+ "Note" : "from server",
7
+ "NoteLanguage" : "E",
8
+ "BuyerID" : "0100000000",
9
+ "CurrencyCode" : "EUR",
10
+ "GrossAmount" : "6825.84",
11
+ "NetAmount" : "3824",
12
+ "TaxAmount" : "726.56",
13
+ "LifecycleStatus" : "N",
14
+ "LifecycleStatusDesc" : "New",
15
+ "BillingStatus" : "",
16
+ "BillingStatusDesc" : "Initial",
17
+ "DeliveryStatus" : "",
18
+ "DeliveryStatusDesc" : "Initial",
19
+ "CreatedAt" : "2023-06-22T06:42:16.119431Z",
20
+ "ChangedAt" : "2023-06-22T06:42:16.278615Z",
21
+ "SOItemCount" : 2,
22
+ "SO_2_SOITEM" : [
23
+ {
24
+ "SalesOrderID" : "0500000007",
25
+ "ItemPosition" : "0000000010",
26
+ "Note" : "",
27
+ "NoteLanguage" : "E",
28
+ "CurrencyCode" : "EUR",
29
+ "GrossAmount" : "2275.28",
30
+ "NetAmount" : "1912",
31
+ "TaxAmount" : "363.28",
32
+ "DeliveryDate" : "2024-06-22T06:42:08.07Z",
33
+ "Quantity" : "2.000",
34
+ "QuantityUnit" : "EA",
35
+ "ProductID" : "HT-1000"
36
+ },
37
+ {
38
+ "SalesOrderID" : "0500000007",
39
+ "ItemPosition" : "0000000020",
40
+ "Note" : "",
41
+ "NoteLanguage" : "E",
42
+ "CurrencyCode" : "EUR",
43
+ "GrossAmount" : "2275.28",
44
+ "NetAmount" : "1912",
45
+ "TaxAmount" : "363.28",
46
+ "DeliveryDate" : "2024-06-22T06:42:07.257Z",
47
+ "Quantity" : "2.000",
48
+ "QuantityUnit" : "EA",
49
+ "ProductID" : "HT-1000"
50
+ },
51
+ {
52
+ "SalesOrderID" : "0500000007",
53
+ "ItemPosition" : "0000000030",
54
+ "Note" : "spent bonus item",
55
+ "NoteLanguage" : "E",
56
+ "CurrencyCode" : "EUR",
57
+ "GrossAmount" : "2275.28",
58
+ "NetAmount" : "1912",
59
+ "TaxAmount" : "363.28",
60
+ "DeliveryDate" : "2024-06-22T06:42:07.257Z",
61
+ "Quantity" : "2.000",
62
+ "QuantityUnit" : "EA",
63
+ "ProductID" : "HT-1000"
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "@odata.context" : "../$metadata#SalesOrderList('0500000000')/SO_2_SOITEM(CurrencyCode,GrossAmount,ItemPosition,Note,ProductID,Quantity,QuantityUnit,SalesOrderID)",
3
+ "@odata.metadataEtag" : "W/\"20230620150020\"",
4
+ "@odata.count" : 10,
5
+ "value" : [
6
+ {
7
+ "SalesOrderID" : "0500000000",
8
+ "ItemPosition" : "0000000010",
9
+ "Note" : "EPM DG: SO ID 0500000000 Item 0000000010",
10
+ "CurrencyCode" : "EUR",
11
+ "GrossAmount" : 1137.64,
12
+ "Quantity" : 1.000,
13
+ "QuantityUnit" : "EA",
14
+ "ProductID" : "HT-1000"
15
+ },
16
+ {
17
+ "SalesOrderID" : "0500000000",
18
+ "ItemPosition" : "0000000020",
19
+ "Note" : "EPM DG: SO ID 0500000000 Item 0000000020",
20
+ "CurrencyCode" : "EUR",
21
+ "GrossAmount" : 2972.62,
22
+ "Quantity" : 2.000,
23
+ "QuantityUnit" : "EA",
24
+ "ProductID" : "HT-1001"
25
+ },
26
+ {
27
+ "SalesOrderID" : "0500000000",
28
+ "ItemPosition" : "0000000030",
29
+ "Note" : "EPM DG: SO ID 0500000000 Item 0000000030",
30
+ "CurrencyCode" : "USD",
31
+ "GrossAmount" : 3736.6,
32
+ "Quantity" : 2.000,
33
+ "QuantityUnit" : "EA",
34
+ "ProductID" : "HT-1002"
35
+ },
36
+ {
37
+ "SalesOrderID" : "0500000000",
38
+ "ItemPosition" : "0000000040",
39
+ "Note" : "EPM DG: SO ID 0500000000 Item 0000000040",
40
+ "CurrencyCode" : "EUR",
41
+ "GrossAmount" : 3927,
42
+ "Quantity" : 2.000,
43
+ "QuantityUnit" : "EA",
44
+ "ProductID" : "HT-1003"
45
+ },
46
+ {
47
+ "SalesOrderID" : "0500000000",
48
+ "ItemPosition" : "0000000050",
49
+ "Note" : "EPM DG: SO ID 0500000000 Item 0000000050",
50
+ "CurrencyCode" : "USD",
51
+ "GrossAmount" : 1067.43,
52
+ "Quantity" : 3.000,
53
+ "QuantityUnit" : "EA",
54
+ "ProductID" : "HT-1007"
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "@odata.context" : "$metadata#SalesOrderList(LifecycleStatusDesc,Messages,Note,SalesOrderID)/$entity",
3
+ "@odata.metadataEtag" : "W/\"20230620150020\"",
4
+ "@odata.etag" : "W/\"20230621220000.0000000 \"",
5
+ "SalesOrderID" : "0500000000",
6
+ "Note" : "EPM DG: SO ID 0500000000 Deliver as fast as possible",
7
+ "LifecycleStatusDesc" : "New",
8
+ "Messages" : [
9
+ {
10
+ "additionalInfo" : "",
11
+ "additionalTargets" : [],
12
+ "code" : "ZUI5_EPM_SAMPLE/004",
13
+ "longtextUrl" : "",
14
+ "message" : "Enter a minimum quantity of 2",
15
+ "numericSeverity" : 4,
16
+ "target" : "SO_2_SOITEM(SalesOrderID='0500000000',ItemPosition='0000000010')/Quantity",
17
+ "transition" : false
18
+ }
19
+ ]
20
+ }