@openui5/sap.ui.core 1.96.6 → 1.96.9

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 (249) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +1 -1
  3. package/src/jquery.sap.global.js +1 -1
  4. package/src/jquery.sap.properties.js +1 -1
  5. package/src/jquery.sap.resources.js +1 -1
  6. package/src/jquery.sap.script.js +1 -1
  7. package/src/jquery.sap.storage.js +3 -3
  8. package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
  9. package/src/sap/base/util/restricted/_castArray.js +1 -1
  10. package/src/sap/base/util/restricted/_compact.js +1 -1
  11. package/src/sap/base/util/restricted/_curry.js +1 -1
  12. package/src/sap/base/util/restricted/_debounce.js +1 -1
  13. package/src/sap/base/util/restricted/_difference.js +1 -1
  14. package/src/sap/base/util/restricted/_differenceBy.js +1 -1
  15. package/src/sap/base/util/restricted/_differenceWith.js +1 -1
  16. package/src/sap/base/util/restricted/_flatMap.js +1 -1
  17. package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
  18. package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
  19. package/src/sap/base/util/restricted/_flatten.js +1 -1
  20. package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
  21. package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
  22. package/src/sap/base/util/restricted/_intersection.js +1 -1
  23. package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
  24. package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
  25. package/src/sap/base/util/restricted/_isEqual.js +1 -1
  26. package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
  27. package/src/sap/base/util/restricted/_isNil.js +1 -1
  28. package/src/sap/base/util/restricted/_max.js +1 -1
  29. package/src/sap/base/util/restricted/_merge.js +1 -1
  30. package/src/sap/base/util/restricted/_mergeWith.js +1 -1
  31. package/src/sap/base/util/restricted/_min.js +1 -1
  32. package/src/sap/base/util/restricted/_omit.js +1 -1
  33. package/src/sap/base/util/restricted/_pick.js +1 -1
  34. package/src/sap/base/util/restricted/_pickBy.js +1 -1
  35. package/src/sap/base/util/restricted/_throttle.js +1 -1
  36. package/src/sap/base/util/restricted/_toArray.js +1 -1
  37. package/src/sap/base/util/restricted/_union.js +1 -1
  38. package/src/sap/base/util/restricted/_unionBy.js +1 -1
  39. package/src/sap/base/util/restricted/_unionWith.js +1 -1
  40. package/src/sap/base/util/restricted/_uniq.js +1 -1
  41. package/src/sap/base/util/restricted/_uniqBy.js +1 -1
  42. package/src/sap/base/util/restricted/_uniqWith.js +1 -1
  43. package/src/sap/base/util/restricted/_without.js +1 -1
  44. package/src/sap/base/util/restricted/_xor.js +1 -1
  45. package/src/sap/base/util/restricted/_xorBy.js +1 -1
  46. package/src/sap/base/util/restricted/_xorWith.js +1 -1
  47. package/src/sap/base/util/restricted/_zipObject.js +1 -1
  48. package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
  49. package/src/sap/ui/Device.js +3 -3
  50. package/src/sap/ui/Global.js +4 -4
  51. package/src/sap/ui/base/Event.js +1 -1
  52. package/src/sap/ui/base/EventProvider.js +1 -1
  53. package/src/sap/ui/base/Interface.js +1 -1
  54. package/src/sap/ui/base/ManagedObject.js +1 -1
  55. package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
  56. package/src/sap/ui/base/Metadata.js +1 -1
  57. package/src/sap/ui/base/Object.js +1 -1
  58. package/src/sap/ui/base/ObjectPool.js +1 -1
  59. package/src/sap/ui/core/.library +2 -2
  60. package/src/sap/ui/core/BusyIndicator.js +1 -1
  61. package/src/sap/ui/core/Component.js +1 -1
  62. package/src/sap/ui/core/ComponentContainer.js +1 -1
  63. package/src/sap/ui/core/ComponentMetadata.js +1 -1
  64. package/src/sap/ui/core/ComponentSupport.js +1 -1
  65. package/src/sap/ui/core/Control.js +1 -1
  66. package/src/sap/ui/core/Core.js +1 -1
  67. package/src/sap/ui/core/CustomData.js +1 -1
  68. package/src/sap/ui/core/DeclarativeSupport.js +1 -1
  69. package/src/sap/ui/core/Element.js +1 -1
  70. package/src/sap/ui/core/ElementMetadata.js +1 -1
  71. package/src/sap/ui/core/EnabledPropagator.js +1 -1
  72. package/src/sap/ui/core/EventBus.js +1 -1
  73. package/src/sap/ui/core/Fragment.js +1 -1
  74. package/src/sap/ui/core/HTML.js +1 -1
  75. package/src/sap/ui/core/History.js +1 -1
  76. package/src/sap/ui/core/Icon.js +1 -1
  77. package/src/sap/ui/core/IndicationColorSupport.js +1 -1
  78. package/src/sap/ui/core/IntervalTrigger.js +1 -1
  79. package/src/sap/ui/core/InvisibleMessage.js +1 -1
  80. package/src/sap/ui/core/InvisibleRenderer.js +1 -1
  81. package/src/sap/ui/core/InvisibleText.js +1 -1
  82. package/src/sap/ui/core/Item.js +1 -1
  83. package/src/sap/ui/core/LabelEnablement.js +1 -1
  84. package/src/sap/ui/core/LayoutData.js +1 -1
  85. package/src/sap/ui/core/ListItem.js +1 -1
  86. package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
  87. package/src/sap/ui/core/Locale.js +1 -1
  88. package/src/sap/ui/core/LocaleData.js +1 -1
  89. package/src/sap/ui/core/Manifest.js +1 -1
  90. package/src/sap/ui/core/Message.js +1 -1
  91. package/src/sap/ui/core/RenderManager.js +1 -1
  92. package/src/sap/ui/core/Renderer.js +1 -1
  93. package/src/sap/ui/core/ResizeHandler.js +1 -1
  94. package/src/sap/ui/core/ScrollBar.js +1 -1
  95. package/src/sap/ui/core/SeparatorItem.js +1 -1
  96. package/src/sap/ui/core/Title.js +1 -1
  97. package/src/sap/ui/core/TooltipBase.js +1 -1
  98. package/src/sap/ui/core/UIArea.js +1 -1
  99. package/src/sap/ui/core/UIComponent.js +1 -1
  100. package/src/sap/ui/core/UIComponentMetadata.js +1 -1
  101. package/src/sap/ui/core/ValueStateSupport.js +1 -1
  102. package/src/sap/ui/core/VariantLayoutData.js +1 -1
  103. package/src/sap/ui/core/XMLComposite.js +1 -1
  104. package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
  105. package/src/sap/ui/core/cldr/en_AU.json +1 -1
  106. package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
  107. package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
  108. package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
  109. package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
  110. package/src/sap/ui/core/dnd/DragInfo.js +1 -1
  111. package/src/sap/ui/core/dnd/DropInfo.js +1 -1
  112. package/src/sap/ui/core/format/NumberFormat.js +91 -25
  113. package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
  114. package/src/sap/ui/core/library.js +3 -3
  115. package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
  116. package/src/sap/ui/core/message/Message.js +1 -1
  117. package/src/sap/ui/core/message/MessageManager.js +1 -1
  118. package/src/sap/ui/core/message/MessageParser.js +1 -1
  119. package/src/sap/ui/core/message/MessageProcessor.js +1 -1
  120. package/src/sap/ui/core/mvc/HTMLView.js +1 -1
  121. package/src/sap/ui/core/mvc/JSONView.js +1 -1
  122. package/src/sap/ui/core/mvc/JSView.js +1 -1
  123. package/src/sap/ui/core/mvc/TemplateView.js +1 -1
  124. package/src/sap/ui/core/mvc/View.js +1 -1
  125. package/src/sap/ui/core/mvc/XMLView.js +1 -1
  126. package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
  127. package/src/sap/ui/core/plugin/LessSupport.js +1 -1
  128. package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
  129. package/src/sap/ui/core/postmessage/Bus.js +1 -1
  130. package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
  131. package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
  132. package/src/sap/ui/core/search/SearchProvider.js +1 -1
  133. package/src/sap/ui/core/service/Service.js +1 -1
  134. package/src/sap/ui/core/service/ServiceFactory.js +1 -1
  135. package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
  136. package/src/sap/ui/core/support/Plugin.js +1 -1
  137. package/src/sap/ui/core/support/Support.js +1 -1
  138. package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
  139. package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
  140. package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
  141. package/src/sap/ui/core/support/plugins/Performance.js +1 -1
  142. package/src/sap/ui/core/support/plugins/Selector.js +1 -1
  143. package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
  144. package/src/sap/ui/core/support/plugins/Trace.js +1 -1
  145. package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
  146. package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
  147. package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
  148. package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
  149. package/src/sap/ui/core/tmpl/Template.js +1 -1
  150. package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
  151. package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
  152. package/src/sap/ui/core/util/Export.js +1 -1
  153. package/src/sap/ui/core/util/ExportCell.js +1 -1
  154. package/src/sap/ui/core/util/ExportColumn.js +1 -1
  155. package/src/sap/ui/core/util/ExportRow.js +1 -1
  156. package/src/sap/ui/core/util/ExportType.js +1 -1
  157. package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
  158. package/src/sap/ui/core/util/File.js +1 -1
  159. package/src/sap/ui/core/util/LibraryInfo.js +1 -1
  160. package/src/sap/ui/core/util/MockServer.js +1 -1
  161. package/src/sap/ui/core/util/PasteHelper.js +1 -1
  162. package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
  163. package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
  164. package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
  165. package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
  166. package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
  167. package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
  168. package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
  169. package/src/sap/ui/core/ws/ReadyState.js +1 -1
  170. package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
  171. package/src/sap/ui/core/ws/WebSocket.js +1 -1
  172. package/src/sap/ui/debug/ControlTree.js +1 -1
  173. package/src/sap/ui/debug/DebugEnv.js +1 -1
  174. package/src/sap/ui/debug/PropertyList.js +1 -1
  175. package/src/sap/ui/model/ClientModel.js +1 -1
  176. package/src/sap/ui/model/CompositeDataState.js +1 -1
  177. package/src/sap/ui/model/CompositeType.js +1 -1
  178. package/src/sap/ui/model/DataState.js +1 -1
  179. package/src/sap/ui/model/MetaModel.js +1 -1
  180. package/src/sap/ui/model/Model.js +1 -1
  181. package/src/sap/ui/model/SelectionModel.js +1 -1
  182. package/src/sap/ui/model/SimpleType.js +1 -1
  183. package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
  184. package/src/sap/ui/model/Type.js +1 -1
  185. package/src/sap/ui/model/json/JSONModel.js +1 -1
  186. package/src/sap/ui/model/message/MessageModel.js +1 -1
  187. package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
  188. package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
  189. package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
  190. package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
  191. package/src/sap/ui/model/odata/ODataModel.js +1 -1
  192. package/src/sap/ui/model/odata/type/Boolean.js +1 -1
  193. package/src/sap/ui/model/odata/type/Byte.js +1 -1
  194. package/src/sap/ui/model/odata/type/Currency.js +1 -1
  195. package/src/sap/ui/model/odata/type/Date.js +1 -1
  196. package/src/sap/ui/model/odata/type/DateTime.js +1 -1
  197. package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
  198. package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
  199. package/src/sap/ui/model/odata/type/Decimal.js +1 -1
  200. package/src/sap/ui/model/odata/type/Double.js +1 -1
  201. package/src/sap/ui/model/odata/type/Guid.js +1 -1
  202. package/src/sap/ui/model/odata/type/Int.js +1 -1
  203. package/src/sap/ui/model/odata/type/Int16.js +1 -1
  204. package/src/sap/ui/model/odata/type/Int32.js +1 -1
  205. package/src/sap/ui/model/odata/type/Int64.js +1 -1
  206. package/src/sap/ui/model/odata/type/ODataType.js +1 -1
  207. package/src/sap/ui/model/odata/type/Raw.js +1 -1
  208. package/src/sap/ui/model/odata/type/SByte.js +1 -1
  209. package/src/sap/ui/model/odata/type/Single.js +1 -1
  210. package/src/sap/ui/model/odata/type/Stream.js +1 -1
  211. package/src/sap/ui/model/odata/type/String.js +1 -1
  212. package/src/sap/ui/model/odata/type/Time.js +1 -1
  213. package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
  214. package/src/sap/ui/model/odata/type/Unit.js +1 -1
  215. package/src/sap/ui/model/odata/v2/Context.js +1 -1
  216. package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
  217. package/src/sap/ui/model/odata/v2/ODataContextBinding.js +4 -1
  218. package/src/sap/ui/model/odata/v2/ODataModel.js +35 -23
  219. package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
  220. package/src/sap/ui/model/odata/v4/Context.js +1 -1
  221. package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
  222. package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
  223. package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
  224. package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
  225. package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
  226. package/src/sap/ui/model/resource/ResourceModel.js +1 -1
  227. package/src/sap/ui/model/type/Boolean.js +1 -1
  228. package/src/sap/ui/model/type/Currency.js +1 -1
  229. package/src/sap/ui/model/type/Date.js +1 -1
  230. package/src/sap/ui/model/type/DateInterval.js +1 -1
  231. package/src/sap/ui/model/type/DateTime.js +1 -1
  232. package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
  233. package/src/sap/ui/model/type/FileSize.js +1 -1
  234. package/src/sap/ui/model/type/Float.js +1 -1
  235. package/src/sap/ui/model/type/Integer.js +1 -1
  236. package/src/sap/ui/model/type/String.js +1 -1
  237. package/src/sap/ui/model/type/Time.js +1 -1
  238. package/src/sap/ui/model/type/TimeInterval.js +1 -1
  239. package/src/sap/ui/model/type/Unit.js +1 -1
  240. package/src/sap/ui/model/xml/XMLModel.js +1 -1
  241. package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
  242. package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
  243. package/src/sap/ui/thirdparty/IPv6.js +1 -1
  244. package/src/sap/ui/thirdparty/SecondLevelDomains.js +1 -1
  245. package/src/sap/ui/thirdparty/URI.js +7 -3
  246. package/src/sap/ui/thirdparty/URITemplate.js +1 -1
  247. package/src/sap/ui/thirdparty/jszip.js +18 -7
  248. package/src/sap/ui/util/Mobile.js +17 -0
  249. package/src/sap/ui/util/Storage.js +1 -1
@@ -110,7 +110,7 @@ sap.ui.define([
110
110
  * @extends sap.ui.model.odata.type.ODataType
111
111
  * @public
112
112
  * @since 1.37.0
113
- * @version 1.96.6
113
+ * @version 1.96.9
114
114
  */
115
115
  var TimeOfDay = ODataType.extend("sap.ui.model.odata.type.TimeOfDay", {
116
116
  constructor : function (oFormatOptions, oConstraints) {
@@ -63,7 +63,7 @@ sap.ui.define([
63
63
  * @extends sap.ui.model.type.Unit
64
64
  * @public
65
65
  * @since 1.63.0
66
- * @version 1.96.6
66
+ * @version 1.96.9
67
67
  */
68
68
  var Unit = BaseUnit.extend("sap.ui.model.odata.type.Unit", {
69
69
  constructor : function (oFormatOptions, oConstraints, aDynamicFormatOptionNames) {
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @hideconstructor
53
53
  * @public
54
54
  * @since 1.93.0
55
- * @version 1.96.6
55
+ * @version 1.96.9
56
56
  */
57
57
  var Context = BaseContext.extend("sap.ui.model.odata.v2.Context", {
58
58
  constructor : function (oModel, sPath, sDeepPath, oCreatePromise) {
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @class Annotation loader for OData V2 services
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.96.6
38
+ * @version 1.96.9
39
39
  *
40
40
  * @public
41
41
  * @since 1.37.0
@@ -359,14 +359,17 @@ sap.ui.define([
359
359
  };
360
360
 
361
361
  ODataContextBinding.prototype._fireChange = function(mParameters, bForceUpdate, bUpdated) {
362
+ var bOldUpdated;
363
+
362
364
  if (this.oElementContext) {
365
+ bOldUpdated = this.oElementContext.isUpdated();
363
366
  this.oElementContext.setForceRefresh(bForceUpdate);
364
367
  this.oElementContext.setUpdated(bUpdated);
365
368
  }
366
369
  ContextBinding.prototype._fireChange.call(this, mParameters);
367
370
  if (this.oElementContext) {
368
371
  this.oElementContext.setForceRefresh(false);
369
- this.oElementContext.setUpdated(false);
372
+ this.oElementContext.setUpdated(bOldUpdated);
370
373
  }
371
374
  };
372
375
 
@@ -201,7 +201,7 @@ sap.ui.define([
201
201
  * This model is not prepared to be inherited from.
202
202
  *
203
203
  * @author SAP SE
204
- * @version 1.96.6
204
+ * @version 1.96.9
205
205
  *
206
206
  * @public
207
207
  * @alias sap.ui.model.odata.v2.ODataModel
@@ -1551,6 +1551,9 @@ sap.ui.define([
1551
1551
  if (this.hasContext("/" + sKey) && this.getContext("/" + sKey).isPreliminary()) {
1552
1552
  var oExistingContext = this.getContext("/" + sKey);
1553
1553
  oExistingContext.setUpdated(true);
1554
+ this.callAfterUpdate(function() {
1555
+ oExistingContext.setUpdated(false);
1556
+ });
1554
1557
  oExistingContext.setPreliminary(false);
1555
1558
  }
1556
1559
 
@@ -5809,11 +5812,10 @@ sap.ui.define([
5809
5812
  * @public
5810
5813
  */
5811
5814
  ODataModel.prototype.submitChanges = function(mParameters) {
5812
- var oRequest, sGroupId, oGroupInfo, fnSuccess, fnError,
5813
- oRequestHandle, vRequestHandleInternal,
5814
- bAborted = false, sMethod, mChangedEntities,
5815
+ var mChangedEntities, fnError, sGroupId, sMethod, oRequestHandle, vRequestHandleInternal,
5816
+ fnSuccess,
5817
+ bAborted = false,
5815
5818
  bRefreshAfterChange = this.bRefreshAfterChange,
5816
- mParams,
5817
5819
  that = this;
5818
5820
 
5819
5821
  if (mParameters) {
@@ -5833,28 +5835,37 @@ sap.ui.define([
5833
5835
  mChangedEntities = merge({}, that.mChangedEntities);
5834
5836
 
5835
5837
  this.oMetadata.loaded().then(function() {
5838
+ var oChange, aChanges, sChangeSetId, i, sRequestGroupId, oRequestGroup;
5839
+
5836
5840
  each(mChangedEntities, function(sKey, oData) {
5837
- oGroupInfo = that._resolveGroup(sKey);
5841
+ var oCreatedInfo, oRequest, oRequestHandle0,
5842
+ oGroupInfo = that._resolveGroup(sKey);
5843
+
5838
5844
  if (oGroupInfo.groupId === sGroupId || !sGroupId) {
5839
5845
  oRequest = that._processChange(sKey, oData, sMethod || that.sDefaultUpdateMethod);
5840
5846
  oRequest.key = sKey;
5841
5847
  //get params for created entries: could contain success/error handler
5842
- mParams = oData.__metadata && oData.__metadata.created ? oData.__metadata.created : {};
5843
- var oRequestHandle = {
5848
+ oCreatedInfo = oData.__metadata && oData.__metadata.created
5849
+ ? oData.__metadata.created
5850
+ : {};
5851
+ oRequestHandle0 = {
5844
5852
  abort: function() {
5845
5853
  oRequest._aborted = true;
5846
5854
  }
5847
5855
  };
5848
5856
  if (oGroupInfo.groupId in that.mDeferredGroups) {
5849
- that._pushToRequestQueue(that.mDeferredRequests, oGroupInfo.groupId, oGroupInfo.changeSetId,
5850
- oRequest, mParams.success, mParams.error, oRequestHandle, bRefreshAfterChange);
5857
+ that._pushToRequestQueue(that.mDeferredRequests, oGroupInfo.groupId,
5858
+ oGroupInfo.changeSetId, oRequest, oCreatedInfo.success,
5859
+ oCreatedInfo.error, oRequestHandle0,
5860
+ oCreatedInfo.refreshAfterChange === undefined
5861
+ ? bRefreshAfterChange
5862
+ : oCreatedInfo.refreshAfterChange);
5851
5863
  }
5852
5864
  }
5853
5865
  });
5854
5866
 
5855
5867
  // Set undefined refreshAfterChange flags
5856
5868
  // If undefined => overwrite with current global refreshAfterChange state
5857
- var sRequestGroupId, sChangeSetId, oRequestGroup, aChanges, oChange, i;
5858
5869
  for (sRequestGroupId in that.mDeferredRequests) {
5859
5870
  oRequestGroup = that.mDeferredRequests[sRequestGroupId];
5860
5871
  for (sChangeSetId in oRequestGroup.changes) {
@@ -6739,19 +6750,20 @@ sap.ui.define([
6739
6750
  };
6740
6751
  }
6741
6752
  oEntity.__metadata = {
6742
- type: "" + oEntityMetadata.entityType,
6743
- uri: that.sServiceUrl + '/' + sKey,
6744
- created: {
6745
- key: sNormalizedPath.substring(1), //store path for later POST
6746
- success: fnSuccess,
6747
- error: fnError,
6748
- headers: mHeaders,
6749
- urlParameters: mUrlParams,
6750
- groupId: sGroupId,
6751
- changeSetId: sChangeSetId,
6752
- eTag: sETag
6753
+ type : "" + oEntityMetadata.entityType,
6754
+ uri : that.sServiceUrl + '/' + sKey,
6755
+ created : {
6756
+ changeSetId : sChangeSetId,
6757
+ error : fnError,
6758
+ eTag : sETag,
6759
+ groupId : sGroupId,
6760
+ headers : mHeaders,
6761
+ key : sNormalizedPath.substring(1), //store path for later POST
6762
+ refreshAfterChange : bRefreshAfterChange,
6763
+ success : fnSuccess,
6764
+ urlParameters : mUrlParams
6753
6765
  },
6754
- deepPath: sDeepPath
6766
+ deepPath : sDeepPath
6755
6767
  };
6756
6768
  pCreate = new SyncPromise(function (resolve, reject) {
6757
6769
  fnCreatedPromiseResolve = resolve;
@@ -92,7 +92,7 @@ sap.ui.define([
92
92
  * @extends sap.ui.model.TreeBinding
93
93
  * @hideconstructor
94
94
  * @public
95
- * @version 1.96.6
95
+ * @version 1.96.9
96
96
  */
97
97
  var ODataTreeBinding = TreeBinding.extend("sap.ui.model.odata.v2.ODataTreeBinding", /** @lends sap.ui.model.odata.v2.ODataTreeBinding.prototype */ {
98
98
 
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  * @hideconstructor
99
99
  * @public
100
100
  * @since 1.39.0
101
- * @version 1.96.6
101
+ * @version 1.96.9
102
102
  */
103
103
  var Context = BaseContext.extend("sap.ui.model.odata.v4.Context", {
104
104
  constructor : function (oModel, oBinding, sPath, iIndex, oCreatePromise, iGeneration) {
@@ -106,7 +106,7 @@ sap.ui.define([
106
106
  * @mixes sap.ui.model.odata.v4.ODataParentBinding
107
107
  * @public
108
108
  * @since 1.37.0
109
- * @version 1.96.6
109
+ * @version 1.96.9
110
110
  *
111
111
  * @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
112
112
  * @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
@@ -76,7 +76,7 @@ sap.ui.define([
76
76
  * @mixes sap.ui.model.odata.v4.ODataParentBinding
77
77
  * @public
78
78
  * @since 1.37.0
79
- * @version 1.96.6
79
+ * @version 1.96.9
80
80
  * @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
81
81
  * @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
82
82
  * @borrows sap.ui.model.odata.v4.ODataBinding#getUpdateGroupId as #getUpdateGroupId
@@ -658,7 +658,7 @@ sap.ui.define([
658
658
  * @hideconstructor
659
659
  * @public
660
660
  * @since 1.37.0
661
- * @version 1.96.6
661
+ * @version 1.96.9
662
662
  */
663
663
  var ODataMetaModel = MetaModel.extend("sap.ui.model.odata.v4.ODataMetaModel", {
664
664
  /*
@@ -210,7 +210,7 @@ sap.ui.define([
210
210
  * @extends sap.ui.model.Model
211
211
  * @public
212
212
  * @since 1.37.0
213
- * @version 1.96.6
213
+ * @version 1.96.9
214
214
  */
215
215
  var ODataModel = Model.extend("sap.ui.model.odata.v4.ODataModel",
216
216
  /** @lends sap.ui.model.odata.v4.ODataModel.prototype */
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @mixes sap.ui.model.odata.v4.ODataBinding
58
58
  * @public
59
59
  * @since 1.37.0
60
- * @version 1.96.6
60
+ * @version 1.96.9
61
61
  * @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
62
62
  * @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
63
63
  * @borrows sap.ui.model.odata.v4.ODataBinding#getUpdateGroupId as #getUpdateGroupId
@@ -228,7 +228,7 @@ sap.ui.define([
228
228
  *
229
229
  * @extends sap.ui.model.Model
230
230
  * @public
231
- * @version 1.96.6
231
+ * @version 1.96.9
232
232
  */
233
233
  var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
234
234
 
@@ -19,7 +19,7 @@ sap.ui.define(['sap/ui/model/SimpleType', 'sap/ui/model/FormatException', 'sap/u
19
19
  * @extends sap.ui.model.SimpleType
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.96.6
22
+ * @version 1.96.9
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions]
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.model.CompositeType
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.6
35
+ * @version 1.96.9
36
36
  *
37
37
  * @public
38
38
  * @param {object} [oFormatOptions]
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.96.6
29
+ * @version 1.96.9
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.model.CompositeType
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.96.6
36
+ * @version 1.96.9
37
37
  *
38
38
  * @public
39
39
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.Date
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.96.6
22
+ * @version 1.96.9
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.DateInterval
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.96.6
22
+ * @version 1.96.9
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.model.SimpleType
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.96.6
27
+ * @version 1.96.9
28
28
  *
29
29
  * @public
30
30
  * @param {object} [oFormatOptions] formatting options. Supports the same options as {@link sap.ui.core.format.FileSizeFormat.getInstance FileSizeFormat.getInstance}
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.96.6
29
+ * @version 1.96.9
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.model.SimpleType
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.96.6
29
+ * @version 1.96.9
30
30
  *
31
31
  * @public
32
32
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.model.SimpleType
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.96.6
27
+ * @version 1.96.9
28
28
  *
29
29
  * @alias sap.ui.model.type.String
30
30
  * @param {object} [oFormatOptions]
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.Date
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.96.6
22
+ * @version 1.96.9
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
19
19
  * @extends sap.ui.model.type.DateInterval
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.96.6
22
+ * @version 1.96.9
23
23
  *
24
24
  * @public
25
25
  * @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  *
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.96.6
50
+ * @version 1.96.9
51
51
  *
52
52
  * @public
53
53
  * @param {object} [oFormatOptions]
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.model.ClientModel
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.96.6
50
+ * @version 1.96.9
51
51
  *
52
52
  * @param {object} oData either the URL where to load the XML from or an XML
53
53
  * @public
@@ -53,7 +53,7 @@ sap.ui.define(['sap/ui/core/Core', "sap/ui/VersionInfo"],
53
53
  * @namespace
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.96.6
56
+ * @version 1.96.9
57
57
  *
58
58
  * @public
59
59
  * @since 1.48.0
@@ -27,7 +27,7 @@ sap.ui.define([ 'sap/ui/core/Element', 'sap/ui/core/Control', 'sap/ui/core/Core'
27
27
  * @namespace
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.96.6
30
+ * @version 1.96.9
31
31
  *
32
32
  * @public
33
33
  * @since 1.48.0
@@ -2,7 +2,7 @@
2
2
  * URI.js - Mutating URLs
3
3
  * IPv6 Support
4
4
  *
5
- * Version: 1.19.8
5
+ * Version: 1.19.10
6
6
  *
7
7
  * Author: Rodney Rehm
8
8
  * Web: http://medialize.github.io/URI.js/
@@ -2,7 +2,7 @@
2
2
  * URI.js - Mutating URLs
3
3
  * Second Level Domain (SLD) Support
4
4
  *
5
- * Version: 1.19.8
5
+ * Version: 1.19.10
6
6
  *
7
7
  * Author: Rodney Rehm
8
8
  * Web: http://medialize.github.io/URI.js/
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * URI.js - Mutating URLs
3
3
  *
4
- * Version: 1.19.8
4
+ * Version: 1.19.10
5
5
  *
6
6
  * Author: Rodney Rehm
7
7
  * Web: http://medialize.github.io/URI.js/
@@ -90,7 +90,7 @@
90
90
  return /^[0-9]+$/.test(value);
91
91
  }
92
92
 
93
- URI.version = '1.19.8';
93
+ URI.version = '1.19.10';
94
94
 
95
95
  var p = URI.prototype;
96
96
  var hasOwn = Object.prototype.hasOwnProperty;
@@ -248,6 +248,7 @@
248
248
  // balanced parens inclusion (), [], {}, <>
249
249
  parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
250
250
  };
251
+ URI.leading_whitespace_expression = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
251
252
  // http://www.iana.org/assignments/uri-schemes.html
252
253
  // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
253
254
  URI.defaultPorts = {
@@ -503,6 +504,9 @@
503
504
  preventInvalidHostname: URI.preventInvalidHostname
504
505
  };
505
506
  }
507
+
508
+ string = string.replace(URI.leading_whitespace_expression, '')
509
+
506
510
  // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
507
511
 
508
512
  // extract fragment
@@ -522,7 +526,7 @@
522
526
  }
523
527
 
524
528
  // slashes and backslashes have lost all meaning for the web protocols (https, http, wss, ws)
525
- string = string.replace(/^(https?|ftp|wss?)?:[/\\]*/i, '$1://');
529
+ string = string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, '$1://');
526
530
 
527
531
  // extract protocol
528
532
  if (string.substring(0, 2) === '//') {
@@ -2,7 +2,7 @@
2
2
  * URI.js - Mutating URLs
3
3
  * URI Template Support - http://tools.ietf.org/html/rfc6570
4
4
  *
5
- * Version: 1.19.8
5
+ * Version: 1.19.10
6
6
  *
7
7
  * Author: Rodney Rehm
8
8
  * Web: http://medialize.github.io/URI.js/
@@ -292,7 +292,14 @@ function JSZip(data, options) {
292
292
  // "folder/" : {...},
293
293
  // "folder/data.txt" : {...}
294
294
  // }
295
- this.files = {};
295
+ // ##### BEGIN: MODIFIED BY SAP
296
+ // gh-762
297
+ // this.files = {};
298
+ // NOTE: we use a null prototype because we do not
299
+ // want filenames like "toString" coming from a zip file
300
+ // to overwrite methods and attributes in a normal Object.
301
+ this.files = Object.create(null);
302
+ // ##### END: MODIFIED BY SAP
296
303
 
297
304
  // Where we are in the hierarchy
298
305
  this.root = "";
@@ -905,9 +912,11 @@ var out = {
905
912
  var result = [],
906
913
  filename, relativePath, file, fileClone;
907
914
  for (filename in this.files) {
908
- if (!this.files.hasOwnProperty(filename)) {
909
- continue;
910
- }
915
+ // ##### BEGIN: MODIFIED BY SAP
916
+ // if (!this.files.hasOwnProperty(filename)) {
917
+ // continue;
918
+ // }
919
+ // ##### END: MODIFIED BY SAP
911
920
  file = this.files[filename];
912
921
  // return a new object, don't let the user mess with our internal objects :)
913
922
  fileClone = new ZipObject(file.name, file._data, extend(file.options));
@@ -1036,9 +1045,11 @@ var out = {
1036
1045
 
1037
1046
  // first, generate all the zip parts.
1038
1047
  for (var name in this.files) {
1039
- if (!this.files.hasOwnProperty(name)) {
1040
- continue;
1041
- }
1048
+ // ##### BEGIN: MODIFIED BY SAP
1049
+ // if (!this.files.hasOwnProperty(name)) {
1050
+ // continue;
1051
+ // }
1052
+ // ##### END: MODIFIED BY SAP
1042
1053
  var file = this.files[name];
1043
1054
 
1044
1055
  var compressionName = file.options.compression || options.compression.toUpperCase();
@@ -103,6 +103,23 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
103
103
  var iInnerWidthBefore = Device.resize.width;
104
104
 
105
105
  sMeta = "width=device-width, initial-scale=1.0";
106
+
107
+ // Setting maximum-scale=1.0 and user-scalable=no has effect to the manual zoom (user can pinch zoom the
108
+ // UI) and auto zoom (browser zooms in the UI automatically under some circumtances, for example when an
109
+ // input gets the focus and the font-size of the input is less than 16px on iOS) functionalities on the
110
+ // mobile platform, but there's some difference between the mobile platforms:
111
+ // * iOS: This does not disable manual zoom in Safari and it only disables the auto zoom function. In
112
+ // Chrome browser on iOS, it does disable the manual zoom but since Chrome on iOS isn't in the support
113
+ // matrix, we can ignore this.
114
+ // * other mobile platform: it does disable the manual zoom option but there's no auto zoom function.
115
+ // So we need to remove the maximum-scale=1.0:
116
+ //
117
+ // Therefore we need to add the additional settings (maximum-scale and user-scalable) only for iOS
118
+ // platform
119
+ if (Device.os.ios) {
120
+ sMeta += ", maximum-scale=1.0, user-scalable=no";
121
+ }
122
+
106
123
  $head.append(jQuery('<meta name="viewport" content="' + sMeta + '">'));
107
124
 
108
125
  // Update Device API resize info, which is necessary in some scenarios after setting the viewport info
@@ -250,7 +250,7 @@ sap.ui.define(["sap/base/assert"], function (assert) {
250
250
  *
251
251
  * @enum {string}
252
252
  * @public
253
- * @version 1.96.6
253
+ * @version 1.96.9
254
254
  */
255
255
  Storage.Type = {
256
256
  /**