@openui5/sap.ui.core 1.94.0 → 1.95.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 (316) hide show
  1. package/.eslintrc.json +1 -2
  2. package/.reuse/dep5 +1 -6
  3. package/THIRDPARTY.txt +3 -9
  4. package/package.json +1 -1
  5. package/src/jquery.sap.global.js +1 -1
  6. package/src/jquery.sap.properties.js +1 -1
  7. package/src/jquery.sap.resources.js +1 -1
  8. package/src/jquery.sap.script.js +1 -1
  9. package/src/jquery.sap.storage.js +3 -3
  10. package/src/sap/base/i18n/ResourceBundle.js +6 -2
  11. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  12. package/src/sap/base/util/restricted/_castArray.js +1 -1
  13. package/src/sap/base/util/restricted/_compact.js +1 -1
  14. package/src/sap/base/util/restricted/_curry.js +1 -1
  15. package/src/sap/base/util/restricted/_debounce.js +1 -1
  16. package/src/sap/base/util/restricted/_difference.js +1 -1
  17. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  18. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  19. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  20. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  21. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  22. package/src/sap/base/util/restricted/_flatten.js +1 -1
  23. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  24. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  25. package/src/sap/base/util/restricted/_intersection.js +1 -1
  26. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  27. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  28. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  29. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  30. package/src/sap/base/util/restricted/_isNil.js +1 -1
  31. package/src/sap/base/util/restricted/_max.js +1 -1
  32. package/src/sap/base/util/restricted/_merge.js +1 -1
  33. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  34. package/src/sap/base/util/restricted/_min.js +1 -1
  35. package/src/sap/base/util/restricted/_omit.js +1 -1
  36. package/src/sap/base/util/restricted/_pick.js +1 -1
  37. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  38. package/src/sap/base/util/restricted/_throttle.js +1 -1
  39. package/src/sap/base/util/restricted/_toArray.js +1 -1
  40. package/src/sap/base/util/restricted/_union.js +1 -1
  41. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  42. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  43. package/src/sap/base/util/restricted/_uniq.js +1 -1
  44. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  45. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  46. package/src/sap/base/util/restricted/_without.js +1 -1
  47. package/src/sap/base/util/restricted/_xor.js +1 -1
  48. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  49. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  50. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  51. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  52. package/src/sap/ui/Device.js +14 -10
  53. package/src/sap/ui/Global.js +4 -4
  54. package/src/sap/ui/base/DataType.js +14 -8
  55. package/src/sap/ui/base/Event.js +1 -1
  56. package/src/sap/ui/base/EventProvider.js +1 -1
  57. package/src/sap/ui/base/Interface.js +1 -1
  58. package/src/sap/ui/base/ManagedObject.js +11 -6
  59. package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
  60. package/src/sap/ui/base/Metadata.js +1 -1
  61. package/src/sap/ui/base/Object.js +1 -1
  62. package/src/sap/ui/base/ObjectPool.js +1 -1
  63. package/src/sap/ui/core/.library +5 -5
  64. package/src/sap/ui/core/AppCacheBuster.js +4 -4
  65. package/src/sap/ui/core/BusyIndicator.js +1 -1
  66. package/src/sap/ui/core/Component.js +272 -125
  67. package/src/sap/ui/core/ComponentContainer.js +3 -5
  68. package/src/sap/ui/core/ComponentMetadata.js +1 -1
  69. package/src/sap/ui/core/ComponentSupport.js +1 -1
  70. package/src/sap/ui/core/Configuration.js +62 -31
  71. package/src/sap/ui/core/Control.js +1 -1
  72. package/src/sap/ui/core/Core.js +15 -9
  73. package/src/sap/ui/core/CustomData.js +1 -1
  74. package/src/sap/ui/core/CustomizingConfiguration.js +35 -260
  75. package/src/sap/ui/core/DeclarativeSupport.js +1 -1
  76. package/src/sap/ui/core/Element.js +1 -1
  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/ExtensionPoint.js +6 -13
  81. package/src/sap/ui/core/Fragment.js +29 -31
  82. package/src/sap/ui/core/HTML.js +1 -1
  83. package/src/sap/ui/core/History.js +1 -1
  84. package/src/sap/ui/core/Icon.js +5 -5
  85. package/src/sap/ui/core/IconPool.js +15 -1097
  86. package/src/sap/ui/core/IconRenderer.js +2 -2
  87. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  88. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  89. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  90. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  91. package/src/sap/ui/core/InvisibleText.js +1 -1
  92. package/src/sap/ui/core/Item.js +1 -1
  93. package/src/sap/ui/core/LabelEnablement.js +1 -1
  94. package/src/sap/ui/core/LayoutData.js +1 -1
  95. package/src/sap/ui/core/ListItem.js +1 -1
  96. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  97. package/src/sap/ui/core/Locale.js +26 -4
  98. package/src/sap/ui/core/LocaleData.js +1 -1
  99. package/src/sap/ui/core/Manifest.js +2 -60
  100. package/src/sap/ui/core/Message.js +1 -1
  101. package/src/sap/ui/core/RenderManager.js +17 -3
  102. package/src/sap/ui/core/Renderer.js +13 -3
  103. package/src/sap/ui/core/ResizeHandler.js +1 -1
  104. package/src/sap/ui/core/ScrollBar.js +1 -1
  105. package/src/sap/ui/core/SeparatorItem.js +1 -1
  106. package/src/sap/ui/core/ShortcutHintsMixin.js +14 -7
  107. package/src/sap/ui/core/Title.js +1 -1
  108. package/src/sap/ui/core/TooltipBase.js +1 -1
  109. package/src/sap/ui/core/UIArea.js +1 -1
  110. package/src/sap/ui/core/UIComponent.js +17 -8
  111. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  112. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  113. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  114. package/src/sap/ui/core/XMLComposite.js +1 -1
  115. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  116. package/src/sap/ui/core/XMLTemplateProcessor.js +1 -1
  117. package/src/sap/ui/core/_IconRegistry.js +1215 -0
  118. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  119. package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
  120. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  121. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  122. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  123. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  124. package/src/sap/ui/core/hyphenation/Hyphenation.js +61 -80
  125. package/src/sap/ui/core/library.js +3 -3
  126. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  127. package/src/sap/ui/core/message/Message.js +1 -1
  128. package/src/sap/ui/core/message/MessageManager.js +13 -15
  129. package/src/sap/ui/core/message/MessageParser.js +1 -1
  130. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  131. package/src/sap/ui/core/messagebundle_de.properties +1 -1
  132. package/src/sap/ui/core/messagebundle_fr.properties +1 -1
  133. package/src/sap/ui/core/messagebundle_it.properties +1 -1
  134. package/src/sap/ui/core/messagebundle_pl.properties +1 -1
  135. package/src/sap/ui/core/messagebundle_th.properties +2 -2
  136. package/src/sap/ui/core/mvc/Controller.js +1 -1
  137. package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +30 -32
  138. package/src/sap/ui/core/mvc/ControllerMetadata.js +18 -18
  139. package/src/sap/ui/core/mvc/HTMLView.js +2 -2
  140. package/src/sap/ui/core/mvc/JSONView.js +2 -2
  141. package/src/sap/ui/core/mvc/JSView.js +2 -2
  142. package/src/sap/ui/core/mvc/TemplateView.js +2 -2
  143. package/src/sap/ui/core/mvc/View.js +58 -85
  144. package/src/sap/ui/core/mvc/XMLView.js +2 -2
  145. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  146. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  147. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  148. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  149. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  150. package/src/sap/ui/core/routing/Route.js +10 -1
  151. package/src/sap/ui/core/routing/Router.js +8 -5
  152. package/src/sap/ui/core/routing/Targets.js +26 -0
  153. package/src/sap/ui/core/routing/async/Route.js +6 -3
  154. package/src/sap/ui/core/routing/async/Target.js +26 -0
  155. package/src/sap/ui/core/routing/sync/Target.js +15 -0
  156. package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
  157. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  158. package/src/sap/ui/core/service/Service.js +1 -1
  159. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  160. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  161. package/src/sap/ui/core/support/Plugin.js +1 -1
  162. package/src/sap/ui/core/support/Support.js +1 -1
  163. package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
  164. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  165. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  166. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  167. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  168. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  169. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  170. package/src/sap/ui/core/support/plugins/ViewInfo.js +2 -2
  171. package/src/sap/ui/core/support/support.css +2 -8
  172. package/src/sap/ui/core/support/techinfo/TechnicalInfo.fragment.xml +1 -0
  173. package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +149 -72
  174. package/src/sap/ui/core/theming/Parameters.js +21 -0
  175. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  176. package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
  177. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  178. package/src/sap/ui/core/tmpl/Template.js +1 -1
  179. package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
  180. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  181. package/src/sap/ui/core/util/Export.js +1 -1
  182. package/src/sap/ui/core/util/ExportCell.js +1 -1
  183. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  184. package/src/sap/ui/core/util/ExportRow.js +1 -1
  185. package/src/sap/ui/core/util/ExportType.js +1 -1
  186. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  187. package/src/sap/ui/core/util/File.js +1 -1
  188. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  189. package/src/sap/ui/core/util/MockServer.js +1 -1
  190. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  191. package/src/sap/ui/core/util/XMLPreprocessor.js +11 -12
  192. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  193. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  194. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  195. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  196. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  197. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  198. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  199. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  200. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  201. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  202. package/src/sap/ui/debug/ControlTree.js +1 -1
  203. package/src/sap/ui/debug/DebugEnv.js +1 -1
  204. package/src/sap/ui/debug/PropertyList.js +1 -1
  205. package/src/sap/ui/model/ClientModel.js +1 -1
  206. package/src/sap/ui/model/ClientPropertyBinding.js +3 -1
  207. package/src/sap/ui/model/ClientTreeBinding.js +14 -8
  208. package/src/sap/ui/model/CompositeDataState.js +1 -1
  209. package/src/sap/ui/model/CompositeType.js +1 -1
  210. package/src/sap/ui/model/DataState.js +1 -1
  211. package/src/sap/ui/model/MetaModel.js +1 -1
  212. package/src/sap/ui/model/Model.js +1 -1
  213. package/src/sap/ui/model/SelectionModel.js +1 -1
  214. package/src/sap/ui/model/SimpleType.js +1 -1
  215. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  216. package/src/sap/ui/model/Type.js +1 -1
  217. package/src/sap/ui/model/analytics/AnalyticalBinding.js +6 -3
  218. package/src/sap/ui/model/base/ManagedObjectModel.js +4 -0
  219. package/src/sap/ui/model/json/JSONModel.js +4 -2
  220. package/src/sap/ui/model/message/MessageModel.js +4 -2
  221. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  222. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  223. package/src/sap/ui/model/odata/ODataMetaModel.js +3 -1
  224. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  225. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  226. package/src/sap/ui/model/odata/ODataUtils.js +12 -10
  227. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  228. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  229. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  230. package/src/sap/ui/model/odata/type/Date.js +1 -1
  231. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  232. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  233. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  234. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  235. package/src/sap/ui/model/odata/type/Double.js +1 -1
  236. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  237. package/src/sap/ui/model/odata/type/Int.js +1 -1
  238. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  239. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  240. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  241. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  242. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  243. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  244. package/src/sap/ui/model/odata/type/Single.js +1 -1
  245. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  246. package/src/sap/ui/model/odata/type/String.js +1 -1
  247. package/src/sap/ui/model/odata/type/Time.js +1 -1
  248. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  249. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  250. package/src/sap/ui/model/odata/v2/Context.js +2 -2
  251. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  252. package/src/sap/ui/model/odata/v2/ODataModel.js +179 -109
  253. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +29 -20
  254. package/src/sap/ui/model/odata/v4/Context.js +1 -1
  255. package/src/sap/ui/model/odata/v4/ODataBinding.js +3 -3
  256. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +76 -11
  257. package/src/sap/ui/model/odata/v4/ODataListBinding.js +74 -4
  258. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +3 -1
  259. package/src/sap/ui/model/odata/v4/ODataModel.js +25 -12
  260. package/src/sap/ui/model/odata/v4/ODataParentBinding.js +10 -0
  261. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +11 -7
  262. package/src/sap/ui/model/odata/v4/lib/_Cache.js +8 -5
  263. package/src/sap/ui/model/odata/v4/lib/_Requestor.js +39 -3
  264. package/src/sap/ui/model/resource/ResourceModel.js +5 -2
  265. package/src/sap/ui/model/type/Boolean.js +1 -1
  266. package/src/sap/ui/model/type/Currency.js +1 -1
  267. package/src/sap/ui/model/type/Date.js +1 -1
  268. package/src/sap/ui/model/type/DateInterval.js +1 -1
  269. package/src/sap/ui/model/type/DateTime.js +1 -1
  270. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  271. package/src/sap/ui/model/type/FileSize.js +1 -1
  272. package/src/sap/ui/model/type/Float.js +1 -1
  273. package/src/sap/ui/model/type/Integer.js +1 -1
  274. package/src/sap/ui/model/type/String.js +1 -1
  275. package/src/sap/ui/model/type/Time.js +1 -1
  276. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  277. package/src/sap/ui/model/type/Unit.js +1 -1
  278. package/src/sap/ui/model/xml/XMLModel.js +4 -2
  279. package/src/sap/ui/performance/trace/Interaction.js +31 -16
  280. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  281. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  282. package/src/sap/ui/test/TestUtils.js +11 -4
  283. package/src/sap/ui/test/matchers/I18NText.js +29 -11
  284. package/src/sap/ui/test/opaQunit.js +5 -0
  285. package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly.js +1196 -0
  286. package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly_Loader.js +797 -0
  287. package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js +108 -127
  288. package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.wasm +0 -0
  289. package/src/sap/ui/thirdparty/hyphenopoly/patterns/bg.hpb +0 -0
  290. package/src/sap/ui/thirdparty/hyphenopoly/patterns/ca.hpb +0 -0
  291. package/src/sap/ui/thirdparty/hyphenopoly/patterns/da.hpb +0 -0
  292. package/src/sap/ui/thirdparty/hyphenopoly/patterns/de.hpb +0 -0
  293. package/src/sap/ui/thirdparty/hyphenopoly/patterns/el-monoton.hpb +0 -0
  294. package/src/sap/ui/thirdparty/hyphenopoly/patterns/en-us.hpb +0 -0
  295. package/src/sap/ui/thirdparty/hyphenopoly/patterns/es.hpb +0 -0
  296. package/src/sap/ui/thirdparty/hyphenopoly/patterns/et.hpb +0 -0
  297. package/src/sap/ui/thirdparty/hyphenopoly/patterns/fi.hpb +0 -0
  298. package/src/sap/ui/thirdparty/hyphenopoly/patterns/fr.hpb +0 -0
  299. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hi.hpb +0 -0
  300. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hr.hpb +0 -0
  301. package/src/sap/ui/thirdparty/hyphenopoly/patterns/hu.hpb +0 -0
  302. package/src/sap/ui/thirdparty/hyphenopoly/patterns/it.hpb +0 -0
  303. package/src/sap/ui/thirdparty/hyphenopoly/patterns/lt.hpb +0 -0
  304. package/src/sap/ui/thirdparty/hyphenopoly/patterns/nb-no.hpb +0 -0
  305. package/src/sap/ui/thirdparty/hyphenopoly/patterns/nl.hpb +0 -0
  306. package/src/sap/ui/thirdparty/hyphenopoly/patterns/pt.hpb +0 -0
  307. package/src/sap/ui/thirdparty/hyphenopoly/patterns/ru.hpb +0 -0
  308. package/src/sap/ui/thirdparty/hyphenopoly/patterns/sl.hpb +0 -0
  309. package/src/sap/ui/thirdparty/hyphenopoly/patterns/sv.hpb +0 -0
  310. package/src/sap/ui/thirdparty/hyphenopoly/patterns/th.hpb +0 -0
  311. package/src/sap/ui/thirdparty/hyphenopoly/patterns/tr.hpb +0 -0
  312. package/src/sap/ui/thirdparty/hyphenopoly/patterns/uk.hpb +0 -0
  313. package/src/sap/ui/util/Storage.js +1 -1
  314. package/src/sap/ui/util/isCrossOriginURL.js +16 -6
  315. package/src/sap/ui/core/support/plugins/MessageTest.js +0 -96
  316. package/src/sap/ui/thirdparty/hyphenopoly/hyphenopoly.bundle.js +0 -860
@@ -3,7 +3,7 @@
3
3
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- sap.ui.define(['./IconPool', './library', "sap/base/security/encodeCSS"], function(IconPool, library, encodeCSS) {
6
+ sap.ui.define(['./_IconRegistry', './library', "sap/base/security/encodeCSS"], function(_IconRegistry, library, encodeCSS) {
7
7
  "use strict";
8
8
 
9
9
  // shortcut for enum(s)
@@ -26,7 +26,7 @@ sap.ui.define(['./IconPool', './library', "sap/base/security/encodeCSS"], functi
26
26
  */
27
27
  IconRenderer.render = function(oRm, oControl) {
28
28
  // write the HTML into the render manager
29
- var vIconInfo = IconPool.getIconInfo(oControl.getSrc(), undefined, "mixed"),
29
+ var vIconInfo = _IconRegistry.getIconInfo(oControl.getSrc(), undefined, "mixed"),
30
30
  sWidth = oControl.getWidth(),
31
31
  sHeight = oControl.getHeight(),
32
32
  sColor = oControl.getColor(),
@@ -16,7 +16,7 @@ sap.ui.define(['./library'],
16
16
  * Helper functionality for indication color support.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @public
21
21
  * @namespace sap.ui.core.IndicationColorSupport
22
22
  * @since 1.66
@@ -23,7 +23,7 @@ sap.ui.define(['../base/Object', './EventBus', "sap/base/assert"],
23
23
  *
24
24
  * @extends sap.ui.base.Object
25
25
  * @author SAP SE
26
- * @version 1.94.0
26
+ * @version 1.95.0
27
27
  * @public
28
28
  * @since 1.11.0
29
29
  * @alias sap.ui.core.IntervalTrigger
@@ -32,7 +32,7 @@ function (coreLibrary, ManagedObject, Log) {
32
32
  * @extends sap.ui.base.ManagedObject
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.94.0
35
+ * @version 1.95.0
36
36
  * @hideconstructor
37
37
  * @public
38
38
  * @since 1.78
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
12
12
  * Provides the default renderer for the controls that have set their <code>visible</code> property to <code>false</code>.
13
13
  *
14
14
  * @author SAP SE
15
- * @version 1.94.0
15
+ * @version 1.95.0
16
16
  * @alias module:sap/ui/core/InvisibleRenderer
17
17
  * @since 1.66.0
18
18
  * @protected
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.core.Control
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.94.0
32
+ * @version 1.95.0
33
33
  *
34
34
  * @public
35
35
  * @since 1.27.0
@@ -24,7 +24,7 @@ sap.ui.define(['./Element', './library'],
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.94.0
27
+ * @version 1.95.0
28
28
  *
29
29
  * @public
30
30
  * @alias sap.ui.core.Item
@@ -129,7 +129,7 @@ sap.ui.define(['../base/ManagedObject', "sap/base/assert"],
129
129
  * @see sap.ui.core.LabelEnablement#enrich
130
130
  *
131
131
  * @author SAP SE
132
- * @version 1.94.0
132
+ * @version 1.95.0
133
133
  * @protected
134
134
  * @alias sap.ui.core.LabelEnablement
135
135
  * @namespace
@@ -23,7 +23,7 @@ sap.ui.define(['./Element', "sap/ui/thirdparty/jquery", './library'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.94.0
26
+ * @version 1.95.0
27
27
  *
28
28
  * @public
29
29
  * @alias sap.ui.core.LayoutData
@@ -23,7 +23,7 @@ sap.ui.define(['./Item', './library'],
23
23
  * @extends sap.ui.core.Item
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.94.0
26
+ * @version 1.95.0
27
27
  *
28
28
  * @public
29
29
  * @alias sap.ui.core.ListItem
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.94.0
35
+ * @version 1.95.0
36
36
  *
37
37
  * @public
38
38
  * @since 1.11.0
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  //Provides the locale object sap.ui.core.Locale
8
- sap.ui.define(['sap/ui/base/Object', "sap/base/assert"],
9
- function(BaseObject, assert) {
8
+ sap.ui.define(['sap/ui/base/Object', 'sap/base/assert', './CalendarType'],
9
+ function(BaseObject, assert, CalendarType) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -38,7 +38,7 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/assert"],
38
38
  *
39
39
  * @extends sap.ui.base.Object
40
40
  * @author SAP SE
41
- * @version 1.94.0
41
+ * @version 1.95.0
42
42
  * @public
43
43
  * @alias sap.ui.core.Locale
44
44
  */
@@ -291,8 +291,19 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/assert"],
291
291
  || M_LOCALE_TO_ABAP_LANGUAGE[getPseudoLanguageTag(this.sPrivateUse)]
292
292
  || sLanguage.toUpperCase()
293
293
  );
294
- }
294
+ },
295
295
 
296
+ /**
297
+ *
298
+ * @returns {sap.ui.core.CalendarType} The preferred Calendar type.
299
+ * @private
300
+ * @ui5-restricted sap.ui.core
301
+ */
302
+ getPreferredCalendarType: function() {
303
+ return Locale._mPreferredCalendar[this.getLanguage() + "-" + this.getRegion()] ||
304
+ Locale._mPreferredCalendar[this.getLanguage()] ||
305
+ Locale._mPreferredCalendar["default"];
306
+ }
296
307
  });
297
308
 
298
309
  /*
@@ -366,6 +377,17 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/assert"],
366
377
  */
367
378
  Locale._cldrLocales = getDesigntimePropertyAsArray("$cldr-locales:ar,ar_EG,ar_SA,bg,ca,cy,cs,da,de,de_AT,de_CH,el,el_CY,en,en_AU,en_GB,en_HK,en_IE,en_IN,en_NZ,en_PG,en_SG,en_ZA,es,es_AR,es_BO,es_CL,es_CO,es_MX,es_PE,es_UY,es_VE,et,fa,fi,fr,fr_BE,fr_CA,fr_CH,fr_LU,he,hi,hr,hu,id,it,it_CH,ja,kk,ko,lt,lv,ms,nb,nl,nl_BE,pl,pt,pt_PT,ro,ru,ru_UA,sk,sl,sr,sr_Latn,sv,th,tr,uk,vi,zh_CN,zh_HK,zh_SG,zh_TW$");
368
379
 
380
+ /**
381
+ * A map of preferred Calendar types according to the language.
382
+ * @private
383
+ */
384
+ Locale._mPreferredCalendar = {
385
+ "ar-SA": CalendarType.Islamic,
386
+ "fa": CalendarType.Persian,
387
+ "th": CalendarType.Buddhist,
388
+ "default": CalendarType.Gregorian
389
+ };
390
+
369
391
  /**
370
392
  * List of locales for which translated texts have been bundled with the UI5 runtime.
371
393
  * @private
@@ -18,7 +18,7 @@ sap.ui.define(['sap/base/util/extend', 'sap/ui/base/Object', './CalendarType', '
18
18
  *
19
19
  * @extends sap.ui.base.Object
20
20
  * @author SAP SE
21
- * @version 1.94.0
21
+ * @version 1.95.0
22
22
  * @public
23
23
  * @alias sap.ui.core.LocaleData
24
24
  */
@@ -137,7 +137,7 @@ sap.ui.define([
137
137
  * @class The Manifest class.
138
138
  * @extends sap.ui.base.Object
139
139
  * @author SAP SE
140
- * @version 1.94.0
140
+ * @version 1.95.0
141
141
  * @alias sap.ui.core.Manifest
142
142
  * @since 1.33.0
143
143
  */
@@ -438,7 +438,7 @@ sap.ui.define([
438
438
  if (bAsync) {
439
439
  oPromise = oPromise.then(requireAsync(sJsUrl));
440
440
  } else {
441
- sap.ui.requireSync(sJsUrl);
441
+ sap.ui.requireSync(sJsUrl); // legacy-relevant: Sync path
442
442
  }
443
443
  }
444
444
  }
@@ -687,19 +687,8 @@ sap.ui.define([
687
687
  */
688
688
  init: function(oInstance) {
689
689
  if (this._iInstanceCount === 0) {
690
-
691
690
  this.loadDependenciesAndIncludes();
692
-
693
- // activate the static customizing
694
- this.activateCustomizing();
695
-
696
691
  }
697
-
698
- // activate the instance customizing
699
- if (oInstance) {
700
- this.activateCustomizing(oInstance);
701
- }
702
-
703
692
  this._iInstanceCount++;
704
693
  },
705
694
 
@@ -751,16 +740,7 @@ sap.ui.define([
751
740
  // ensure that the instance count is never negative
752
741
  var iInstanceCount = Math.max(this._iInstanceCount - 1, 0);
753
742
 
754
- // deactivate the instance customizing
755
- if (oInstance) {
756
- this.deactivateCustomizing(oInstance);
757
- }
758
-
759
743
  if (iInstanceCount === 0) {
760
-
761
- // deactivcate the customizing
762
- this.deactivateCustomizing();
763
-
764
744
  // remove the custom scripts and CSS files
765
745
  this.removeIncludes();
766
746
 
@@ -769,44 +749,6 @@ sap.ui.define([
769
749
 
770
750
  this._iInstanceCount = iInstanceCount;
771
751
 
772
- },
773
-
774
- /**
775
- * Activates the customizing for the component or a dedicated component
776
- * instance when providing the component instance as parameter.
777
- * @param {sap.ui.core.Component} [oInstance] Reference to the Component instance
778
- * @private
779
- */
780
- activateCustomizing: function(oInstance) {
781
- // activate the customizing configuration
782
- var oUI5Manifest = this.getEntry("sap.ui5", true),
783
- mExtensions = oUI5Manifest && oUI5Manifest["extends"] && oUI5Manifest["extends"].extensions;
784
- if (!isEmptyObject(mExtensions)) {
785
- var CustomizingConfiguration = sap.ui.requireSync('sap/ui/core/CustomizingConfiguration');
786
- if (!oInstance) {
787
- CustomizingConfiguration.activateForComponent(this.getComponentName());
788
- } else {
789
- CustomizingConfiguration.activateForComponentInstance(oInstance);
790
- }
791
- }
792
- },
793
-
794
- /**
795
- * Deactivates the customizing for the component or a dedicated component
796
- * instance when providing the component instance as parameter.
797
- * @param {sap.ui.core.Component} [oInstance] Reference to the Component instance
798
- * @private
799
- */
800
- deactivateCustomizing: function(oInstance) {
801
- // deactivate the customizing configuration
802
- var CustomizingConfiguration = sap.ui.require('sap/ui/core/CustomizingConfiguration');
803
- if (CustomizingConfiguration) {
804
- if (!oInstance) {
805
- CustomizingConfiguration.deactivateForComponent(this.getComponentName());
806
- } else {
807
- CustomizingConfiguration.deactivateForComponentInstance(oInstance);
808
- }
809
- }
810
752
  }
811
753
 
812
754
  });
@@ -26,7 +26,7 @@ sap.ui.define(['./Element', './library', "sap/base/Log"],
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.94.0
29
+ * @version 1.95.0
30
30
  *
31
31
  * @public
32
32
  * @alias sap.ui.core.Message
@@ -182,7 +182,7 @@ sap.ui.define([
182
182
  *
183
183
  * @extends Object
184
184
  * @author SAP SE
185
- * @version 1.94.0
185
+ * @version 1.95.0
186
186
  * @alias sap.ui.core.RenderManager
187
187
  * @public
188
188
  */
@@ -773,6 +773,9 @@ sap.ui.define([
773
773
  * <li><code>alt: ""</code></li>
774
774
  * </ul>
775
775
  *
776
+ * <b>Note:</b> This function requires the {@link sap.ui.core.IconPool} module. Ensure that the module is
777
+ * loaded before this function is called to avoid syncXHRs.
778
+ *
776
779
  * @param {sap.ui.core.URI} sURI URI of an image or of an icon registered in {@link sap.ui.core.IconPool}
777
780
  * @param {array|string} [aClasses] Additional classes that are added to the rendered tag
778
781
  * @param {object} [mAttributes] Additional attributes that will be added to the rendered tag.
@@ -1866,8 +1869,19 @@ sap.ui.define([
1866
1869
  * @deprecated Since 1.92. Instead use {@link sap.ui.core.RenderManager#icon} of the {@link sap.ui.core.RenderManager Semantic Rendering API}.
1867
1870
  */
1868
1871
  RenderManager.prototype.writeIcon = function(sURI, aClasses, mAttributes){
1869
- var IconPool = sap.ui.requireSync("sap/ui/core/IconPool"), // legacy-relevant
1870
- bIconURI = IconPool.isIconURI(sURI),
1872
+ var IconPool = sap.ui.require("sap/ui/core/IconPool");
1873
+ if (!IconPool) {
1874
+ Log.warning("Synchronous loading of IconPool due to sap.ui.core.RenderManager#icon call. " +
1875
+ "Ensure that 'sap/ui/core/IconPool is loaded before this function is called" , "SyncXHR", null, function() {
1876
+ return {
1877
+ type: "SyncXHR",
1878
+ name: "rendermanager-icon"
1879
+ };
1880
+ });
1881
+ IconPool = sap.ui.requireSync("sap/ui/core/IconPool"); // legacy-relevant: Sync fallback
1882
+ }
1883
+
1884
+ var bIconURI = IconPool.isIconURI(sURI),
1871
1885
  bAriaLabelledBy = false,
1872
1886
  sProp, oIconInfo, mDefaultAttributes, sLabel, sInvTextId;
1873
1887
 
@@ -6,18 +6,19 @@
6
6
 
7
7
  // Provides (optional) base class for all renderers
8
8
  sap.ui.define([
9
+ "sap/base/Log",
9
10
  "sap/base/util/isPlainObject",
10
11
  "sap/base/util/ObjectPath",
11
12
  "sap/base/assert",
12
13
  "sap/base/util/extend"
13
- ], function(isPlainObject, ObjectPath, assert, extend) {
14
+ ], function(Log, isPlainObject, ObjectPath, assert, extend) {
14
15
  "use strict";
15
16
 
16
17
  /**
17
18
  * @classdesc Base Class for a Renderer.
18
19
  *
19
20
  * @author SAP SE
20
- * @version 1.94.0
21
+ * @version 1.95.0
21
22
  * @namespace
22
23
  * @public
23
24
  * @alias sap.ui.core.Renderer
@@ -218,8 +219,17 @@ sap.ui.define([
218
219
  */
219
220
  Renderer.getTextAlign = function(oTextAlign, oTextDirection) {
220
221
  // lazy require sap.ui.core library
222
+ sapUiCore = sap.ui.require("sap/ui/core/library");
223
+
221
224
  if (!sapUiCore) {
222
- sapUiCore = sap.ui.requireSync("sap/ui/core/library");
225
+ Log.warning("Synchronous loading of a library.js. Ensure that 'sap/ui/core/library.js' is loaded" +
226
+ " before sap.ui.core.Renderer#getTextAlign is called.", "SyncXHR", null, function() {
227
+ return {
228
+ type: "SyncXHR",
229
+ name: "renderer-getTextAlign"
230
+ };
231
+ });
232
+ sapUiCore = sap.ui.requireSync("sap/ui/core/library"); // legacy-relevant: core/library.js available via dependency in most cases
223
233
  }
224
234
 
225
235
  // create shortcuts for enums from sap.ui.core library
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @alias sap.ui.core.ResizeHandler
35
35
  * @extends sap.ui.base.Object
36
36
  * @author SAP SE
37
- * @version 1.94.0
37
+ * @version 1.95.0
38
38
  * @public
39
39
  */
40
40
 
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * The ScrollBar control can be used for virtual scrolling of a certain area.
45
45
  * This means: to simulate a very large scrollable area when technically the area is small and the control takes care of displaying the respective part only. E.g. a Table control can take care of only rendering the currently visible rows and use this ScrollBar control to make the user think he actually scrolls through a long list.
46
46
  * @extends sap.ui.core.Control
47
- * @version 1.94.0
47
+ * @version 1.95.0
48
48
  *
49
49
  * @public
50
50
  * @deprecated as of version 1.56
@@ -23,7 +23,7 @@ sap.ui.define(['./Item', './library'],
23
23
  * @extends sap.ui.core.Item
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.94.0
26
+ * @version 1.95.0
27
27
  *
28
28
  * @public
29
29
  * @alias sap.ui.core.SeparatorItem
@@ -394,7 +394,7 @@ sap.ui.define([
394
394
  return;
395
395
  }
396
396
 
397
- oInvText = getInvisibleText();
397
+ oInvText = getInvisibleText(oControl);
398
398
  sInvTextId = oInvText.getId();
399
399
 
400
400
  oInvText.setText(_getShortcutHintText(oHintInfo.id));
@@ -502,15 +502,22 @@ sap.ui.define([
502
502
  }
503
503
 
504
504
  /**
505
- * Gets or creates an InvisibleText for the shortcut's accessiblity.
505
+ * Gets or creates an InvisibleText for the control's shortcut accessiblity.
506
+ *
507
+ * @param {sap.ui.core.Control} oControl A control that have shortcut assigned
506
508
  */
507
- function getInvisibleText() {
508
- if (!ShortcutHintsMixin._invisibleText) {
509
- ShortcutHintsMixin._invisibleText = new InvisibleText();
510
- ShortcutHintsMixin._invisibleText.toStatic();
509
+ function getInvisibleText(oControl) {
510
+ if (!oControl._shortcutInvisibleText) {
511
+ var oFunc = oControl.exit;
512
+ oControl._shortcutInvisibleText = new InvisibleText();
513
+ oControl._shortcutInvisibleText.toStatic();
514
+ oControl.exit = function() {
515
+ this._shortcutInvisibleText.destroy();
516
+ oFunc.call(this);
517
+ };
511
518
  }
512
519
 
513
- return ShortcutHintsMixin._invisibleText;
520
+ return oControl._shortcutInvisibleText;
514
521
  }
515
522
 
516
523
  /**
@@ -25,7 +25,7 @@ sap.ui.define(['./Element', './library'],
25
25
  * @extends sap.ui.core.Element
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.94.0
28
+ * @version 1.95.0
29
29
  *
30
30
  * @public
31
31
  * @since 1.16.0
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @class
32
32
  * Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
33
33
  * @extends sap.ui.core.Control
34
- * @version 1.94.0
34
+ * @version 1.95.0
35
35
  *
36
36
  * @public
37
37
  * @alias sap.ui.core.TooltipBase
@@ -175,7 +175,7 @@ sap.ui.define([
175
175
  *
176
176
  * @extends sap.ui.base.ManagedObject
177
177
  * @author SAP SE
178
- * @version 1.94.0
178
+ * @version 1.95.0
179
179
  * @param {sap.ui.core.Core} oCore internal API of the <core>Core</code> that manages this UIArea
180
180
  * @param {object} [oRootNode] reference to the DOM element that should be 'hosting' the UI Area.
181
181
  * @public
@@ -54,7 +54,7 @@ sap.ui.define([
54
54
  * @extends sap.ui.core.Component
55
55
  * @abstract
56
56
  * @author SAP SE
57
- * @version 1.94.0
57
+ * @version 1.95.0
58
58
  * @alias sap.ui.core.UIComponent
59
59
  * @since 1.9.2
60
60
  * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
@@ -298,7 +298,7 @@ sap.ui.define([
298
298
  }
299
299
 
300
300
  function setRootControl(vRootControl) {
301
- var fnFireInstanceCreated = function() {
301
+ var fnFireInstanceInitialized = function() {
302
302
  if (typeof UIComponent._fnOnInstanceInitialized === "function") {
303
303
  UIComponent._fnOnInstanceInitialized(that);
304
304
  }
@@ -309,19 +309,19 @@ sap.ui.define([
309
309
  if (vRootControl instanceof Promise) {
310
310
  that.pRootControlLoaded = that.pRootControlLoaded.then(function(oRootControl) {
311
311
  fnAggregateRootControl(oRootControl);
312
- fnFireInstanceCreated();
312
+ fnFireInstanceInitialized();
313
313
  return oRootControl;
314
314
  });
315
315
  } else if (vRootControl instanceof View && vRootControl.oAsyncState && vRootControl.oAsyncState.promise) {
316
316
  fnAggregateRootControl(vRootControl);
317
317
  that.pRootControlLoaded = that.pRootControlLoaded.then(function(oRootControl) {
318
318
  // notify Component initialization callback handler
319
- fnFireInstanceCreated();
319
+ fnFireInstanceInitialized();
320
320
  return oRootControl;
321
321
  });
322
322
  } else {
323
323
  fnAggregateRootControl(vRootControl);
324
- fnFireInstanceCreated();
324
+ fnFireInstanceInitialized();
325
325
  }
326
326
  }
327
327
 
@@ -367,7 +367,8 @@ sap.ui.define([
367
367
  fnRouterConstructor = getConstructorFunctionFor(sRouterClassName);
368
368
  } else {
369
369
  // require default Router class
370
- fnRouterConstructor = sap.ui.require("sap/ui/core/routing/Router") || sap.ui.requireSync("sap/ui/core/routing/Router");
370
+ fnRouterConstructor = sap.ui.require("sap/ui/core/routing/Router")
371
+ || sap.ui.requireSync("sap/ui/core/routing/Router"); // legacy-relevant: Sync path
371
372
  }
372
373
  this._oRouter = new fnRouterConstructor(vRoutes, oRoutingConfig, this, oRoutingManifestEntry.targets, this._oRouterHashChanger);
373
374
  this._oTargets = this._oRouter.getTargets();
@@ -375,7 +376,8 @@ sap.ui.define([
375
376
  } else if (oRoutingManifestEntry.targets) {
376
377
  // legacy-relevant: Sync path via sync component factory.
377
378
  // For async, no sync request is triggered as the class is already loaded by the component factory.
378
- var Views = sap.ui.require("sap/ui/core/routing/Views") || sap.ui.requireSync("sap/ui/core/routing/Views");
379
+ var Views = sap.ui.require("sap/ui/core/routing/Views")
380
+ || sap.ui.requireSync("sap/ui/core/routing/Views"); // legacy-relevant: Sync path
379
381
 
380
382
  this._oViews = new Views({
381
383
  component: this
@@ -387,7 +389,8 @@ sap.ui.define([
387
389
  fnTargetsConstructor = getConstructorFunctionFor(oRoutingConfig.targetsClass);
388
390
  } else {
389
391
  // For async, no sync request is triggered as the class is already loaded by the component factory.
390
- fnTargetsConstructor = sap.ui.require("sap/ui/core/routing/Targets") || sap.ui.requireSync("sap/ui/core/routing/Targets");
392
+ fnTargetsConstructor = sap.ui.require("sap/ui/core/routing/Targets")
393
+ || sap.ui.requireSync("sap/ui/core/routing/Targets"); // legacy-relevant: Sync path
391
394
  }
392
395
  this._oTargets = new fnTargetsConstructor({
393
396
  targets: oRoutingManifestEntry.targets,
@@ -733,6 +736,12 @@ sap.ui.define([
733
736
  type: ViewType.XML
734
737
  });
735
738
  } else if (oRootView && typeof oRootView === "object") {
739
+
740
+ // default ViewType to XML, except for typed views
741
+ if (!oRootView.type && !View._getModuleName(oRootView)) {
742
+ oRootView.type = ViewType.XML;
743
+ }
744
+
736
745
  // make sure to prefix the ID of the rootView
737
746
  if (oRootView.id) {
738
747
  oRootView.id = this.createId(oRootView.id);
@@ -18,7 +18,7 @@ sap.ui.define(['./ComponentMetadata', 'sap/ui/core/mvc/ViewType'],
18
18
  * @experimental Since 1.15.1. The Component concept is still under construction, so some implementation details can be changed in future.
19
19
  * @class
20
20
  * @author SAP SE
21
- * @version 1.94.0
21
+ * @version 1.95.0
22
22
  * @since 1.15.1
23
23
  * @alias sap.ui.core.UIComponentMetadata
24
24
  * @extends sap.ui.core.ComponentMetadata
@@ -16,7 +16,7 @@ sap.ui.define(['./Element', './library', "sap/base/assert"],
16
16
  * Helper functionality for value state support.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.94.0
19
+ * @version 1.95.0
20
20
  * @public
21
21
  * @namespace sap.ui.core.ValueStateSupport
22
22
  */
@@ -20,7 +20,7 @@ sap.ui.define(['./LayoutData', './library'],
20
20
  * @class
21
21
  * Allows to add multiple LayoutData to one control in case that an easy switch of layouts (e.g. in a Form) is needed.
22
22
  * @extends sap.ui.core.LayoutData
23
- * @version 1.94.0
23
+ * @version 1.95.0
24
24
  *
25
25
  * @public
26
26
  * @since 1.9.2
@@ -143,7 +143,7 @@ sap.ui.define([
143
143
  * @extends sap.ui.core.Control
144
144
  *
145
145
  * @author SAP SE
146
- * @version 1.94.0
146
+ * @version 1.95.0
147
147
  * @since 1.56.0
148
148
  * @alias sap.ui.core.XMLComposite
149
149
  * @see {@link topic:b83a4dcb7d0e46969027345b8d32fd44 XML Composite Controls}
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @param {object} oClassInfo static info to construct the metadata from
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.94.0
33
+ * @version 1.95.0
34
34
  * @since 1.50.0
35
35
  * @alias sap.ui.core.XMLCompositeMetadata
36
36
  * @extends sap.ui.core.ElementMetadata
@@ -62,7 +62,7 @@ function(
62
62
  return oBindingInfo;
63
63
  }
64
64
 
65
- var vValue = sValue = oBindingInfo || sValue; // oBindingInfo could be an unescaped string
65
+ var vValue = sValue = typeof oBindingInfo === "string" ? oBindingInfo : sValue; // oBindingInfo could be an unescaped string
66
66
  var oType = DataType.getType(sType);
67
67
  if (oType) {
68
68
  if (oType instanceof DataType) {