@openui5/sap.ui.core 1.114.8 → 1.114.10
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.
- package/THIRDPARTY.txt +1 -1
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +59 -42
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +15 -20
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/base.less +287 -260
- package/src/sap/ui/core/themes/base/global.less +16 -16
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +15 -6
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +78 -44
- package/src/sap/ui/model/odata/v2/ODataModel.js +2 -3
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataBinding.js +17 -4
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +9 -5
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +4 -7
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/performance/BeaconRequest.js +8 -10
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -92,7 +92,7 @@ sap.ui.define([
|
|
|
92
92
|
* @extends sap.ui.model.odata.type.ODataType
|
|
93
93
|
* @public
|
|
94
94
|
* @since 1.27.0
|
|
95
|
-
* @version 1.114.
|
|
95
|
+
* @version 1.114.10
|
|
96
96
|
*/
|
|
97
97
|
var DateTimeBase = ODataType.extend("sap.ui.model.odata.type.DateTimeBase", {
|
|
98
98
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @public
|
|
46
46
|
* @see {sap.ui.model.odata.v2.ODataModel#bindProperty}
|
|
47
47
|
* @since 1.99.0
|
|
48
|
-
* @version 1.114.
|
|
48
|
+
* @version 1.114.10
|
|
49
49
|
*/
|
|
50
50
|
var DateTimeWithTimezone = CompositeType.extend("sap.ui.model.odata.type.DateTimeWithTimezone",
|
|
51
51
|
{
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @extends sap.ui.model.odata.type.ODataType
|
|
31
31
|
* @public
|
|
32
32
|
* @since 1.37.0
|
|
33
|
-
* @version 1.114.
|
|
33
|
+
* @version 1.114.10
|
|
34
34
|
*/
|
|
35
35
|
var Raw = ODataType.extend("sap.ui.model.odata.type.Raw", {
|
|
36
36
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
* @extends sap.ui.model.odata.type.ODataType
|
|
61
61
|
* @public
|
|
62
62
|
* @since 1.51.0
|
|
63
|
-
* @version 1.114.
|
|
63
|
+
* @version 1.114.10
|
|
64
64
|
*/
|
|
65
65
|
var Stream = ODataType.extend("sap.ui.model.odata.type.Stream", {
|
|
66
66
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -92,7 +92,7 @@ sap.ui.define([
|
|
|
92
92
|
* @extends sap.ui.model.odata.type.ODataType
|
|
93
93
|
* @public
|
|
94
94
|
* @since 1.37.0
|
|
95
|
-
* @version 1.114.
|
|
95
|
+
* @version 1.114.10
|
|
96
96
|
*/
|
|
97
97
|
var TimeOfDay = ODataType.extend("sap.ui.model.odata.type.TimeOfDay", {
|
|
98
98
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
* @extends sap.ui.model.type.Unit
|
|
67
67
|
* @public
|
|
68
68
|
* @since 1.63.0
|
|
69
|
-
* @version 1.114.
|
|
69
|
+
* @version 1.114.10
|
|
70
70
|
*/
|
|
71
71
|
var Unit = BaseUnit.extend("sap.ui.model.odata.type.Unit", {
|
|
72
72
|
constructor : function (oFormatOptions, oConstraints, aDynamicFormatOptionNames) {
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
* @hideconstructor
|
|
65
65
|
* @public
|
|
66
66
|
* @since 1.93.0
|
|
67
|
-
* @version 1.114.
|
|
67
|
+
* @version 1.114.10
|
|
68
68
|
*/
|
|
69
69
|
var Context = BaseContext.extend("sap.ui.model.odata.v2.Context", {
|
|
70
70
|
constructor : function (oModel, sPath, sDeepPath, oCreatePromise, bInactive,
|
|
@@ -101,10 +101,8 @@ sap.ui.define([
|
|
|
101
101
|
|
|
102
102
|
this.sFilterParams = null;
|
|
103
103
|
this.sSortParams = null;
|
|
104
|
-
this.sRangeParams = null;
|
|
105
104
|
this.sCustomParams = this.oModel.createCustomParams(this.mParameters);
|
|
106
105
|
this.mCustomParams = mParameters && mParameters.custom;
|
|
107
|
-
this.iStartIndex = 0;
|
|
108
106
|
this.iLength = 0;
|
|
109
107
|
this.bPendingChange = false;
|
|
110
108
|
this.aAllKeys = null;
|
|
@@ -276,6 +274,21 @@ sap.ui.define([
|
|
|
276
274
|
return aContexts;
|
|
277
275
|
};
|
|
278
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Returns the context at the given index.
|
|
279
|
+
*
|
|
280
|
+
* @param {number} iIndex The index of the context
|
|
281
|
+
*
|
|
282
|
+
* @returns {sap.ui.model.odata.v2.Context|undefined}
|
|
283
|
+
* The context at the given index or <code>undefined</code> if no context exists at the given index
|
|
284
|
+
*
|
|
285
|
+
* @private
|
|
286
|
+
* @ui5-restricted sap.ui.table
|
|
287
|
+
*/
|
|
288
|
+
ODataListBinding.prototype.getContextByIndex = function (iIndex) {
|
|
289
|
+
return this._getContexts(iIndex, 1)[0];
|
|
290
|
+
};
|
|
291
|
+
|
|
279
292
|
/**
|
|
280
293
|
* Return contexts for the list.
|
|
281
294
|
*
|
|
@@ -776,49 +789,52 @@ sap.ui.define([
|
|
|
776
789
|
/**
|
|
777
790
|
* Load data for the given range from server.
|
|
778
791
|
*
|
|
779
|
-
* @param {int} iStartIndex The start index
|
|
780
|
-
* @param {int} iLength The amount of data to be requested
|
|
792
|
+
* @param {int} [iStartIndex] The start index
|
|
793
|
+
* @param {int} [iLength] The amount of data to be requested
|
|
781
794
|
* @private
|
|
782
795
|
*/
|
|
783
796
|
ODataListBinding.prototype.loadData = function(iStartIndex, iLength) {
|
|
784
|
-
var sGroupId,
|
|
797
|
+
var sGroupId, oReadParameters,
|
|
785
798
|
sGuid = uid(),
|
|
786
799
|
bInlineCountRequested = false,
|
|
787
|
-
|
|
800
|
+
iLimit = this.oModel.iSizeLimit,
|
|
788
801
|
sPath = this.sPath,
|
|
789
802
|
bRemovePersistedCreatedAfterRefresh = this.bRemovePersistedCreatedAfterRefresh,
|
|
803
|
+
aResultPages = [],
|
|
804
|
+
bUseClientMode = this.useClientMode(),
|
|
790
805
|
that = this;
|
|
791
806
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
807
|
+
function getUrlParameters() {
|
|
808
|
+
var aParameters = [];
|
|
809
|
+
// create range parameters and store start index for sort/filter requests
|
|
810
|
+
if (iLength) {
|
|
811
|
+
aParameters.push("$skip=" + iStartIndex + "&$top=" + iLength);
|
|
812
|
+
} else {
|
|
813
|
+
// For OperationMode.Client and OperationMode.Auto (if the threshold was sufficient)
|
|
814
|
+
// loadData is called without iStartIndex and iLength, try reading all data without
|
|
815
|
+
// $skip and $top
|
|
816
|
+
iStartIndex = 0;
|
|
817
|
+
}
|
|
818
|
+
if (that.sSortParams) {
|
|
819
|
+
aParameters.push(that.sSortParams);
|
|
820
|
+
}
|
|
821
|
+
that._addFilterQueryOption(aParameters, !bUseClientMode);
|
|
822
|
+
if (that.sCustomParams) {
|
|
823
|
+
aParameters.push(that.sCustomParams);
|
|
824
|
+
}
|
|
825
|
+
if (that.sCountMode == CountMode.InlineRepeat
|
|
826
|
+
|| !that.bLengthFinal
|
|
827
|
+
&& (that.sCountMode === CountMode.Inline || that.sCountMode === CountMode.Both)) {
|
|
828
|
+
aParameters.push("$inlinecount=allpages");
|
|
829
|
+
bInlineCountRequested = true;
|
|
830
|
+
} else {
|
|
831
|
+
bInlineCountRequested = false;
|
|
832
|
+
}
|
|
799
833
|
|
|
800
|
-
|
|
801
|
-
// $skip/$top and are excluded for OperationMode.Client and Auto if the threshold was sufficient
|
|
802
|
-
if (this.sRangeParams && !this.useClientMode()) {
|
|
803
|
-
aParams.push(this.sRangeParams);
|
|
804
|
-
}
|
|
805
|
-
if (this.sSortParams) {
|
|
806
|
-
aParams.push(this.sSortParams);
|
|
807
|
-
}
|
|
808
|
-
this._addFilterQueryOption(aParams, !this.useClientMode());
|
|
809
|
-
if (this.sCustomParams) {
|
|
810
|
-
aParams.push(this.sCustomParams);
|
|
811
|
-
}
|
|
812
|
-
if (this.sCountMode == CountMode.InlineRepeat ||
|
|
813
|
-
!this.bLengthFinal &&
|
|
814
|
-
(this.sCountMode === CountMode.Inline ||
|
|
815
|
-
this.sCountMode === CountMode.Both)) {
|
|
816
|
-
aParams.push("$inlinecount=allpages");
|
|
817
|
-
bInlineCountRequested = true;
|
|
834
|
+
return aParameters;
|
|
818
835
|
}
|
|
819
836
|
|
|
820
837
|
function fnSuccess(oData) {
|
|
821
|
-
|
|
822
838
|
// update iLength (only when the inline count was requested and is available)
|
|
823
839
|
if (bInlineCountRequested && oData.__count !== undefined) {
|
|
824
840
|
that.iLength = parseInt(oData.__count);
|
|
@@ -846,12 +862,24 @@ sap.ui.define([
|
|
|
846
862
|
}
|
|
847
863
|
}
|
|
848
864
|
|
|
849
|
-
if (
|
|
865
|
+
if (bUseClientMode) {
|
|
850
866
|
// For clients mode, store all keys separately and set length to final
|
|
851
|
-
|
|
867
|
+
if (!iStartIndex) {
|
|
868
|
+
that.aKeys = [];
|
|
869
|
+
}
|
|
852
870
|
each(oData.results, function(i, entry) {
|
|
853
|
-
that.aKeys[i] = that.oModel._getKey(entry);
|
|
871
|
+
that.aKeys[iStartIndex + i] = that.oModel._getKey(entry);
|
|
854
872
|
});
|
|
873
|
+
aResultPages.push(oData.results);
|
|
874
|
+
if (oData.__next && that.aKeys.length < iLimit /*first request may return enough*/) {
|
|
875
|
+
// continue reading
|
|
876
|
+
iStartIndex = that.aKeys.length;
|
|
877
|
+
iLength = iLimit - iStartIndex; // read up to model size limit
|
|
878
|
+
oReadParameters.urlParameters = getUrlParameters();
|
|
879
|
+
that.mRequestHandles[sGuid] = that.oModel.read(that.sPath, oReadParameters);
|
|
880
|
+
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
855
883
|
that.updateExpandedList(that.aKeys);
|
|
856
884
|
that.aAllKeys = that.aKeys.slice();
|
|
857
885
|
that.iLength = that.aKeys.length;
|
|
@@ -912,9 +940,17 @@ sap.ui.define([
|
|
|
912
940
|
that._removePersistedCreatedContexts();
|
|
913
941
|
}
|
|
914
942
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
943
|
+
that.oModel.callAfterUpdate(function () {
|
|
944
|
+
if (aResultPages.length > 1) {
|
|
945
|
+
that.fireDataReceived({
|
|
946
|
+
data: {
|
|
947
|
+
__count: String(that.iLength),
|
|
948
|
+
results: Array.prototype.concat.apply([], aResultPages)
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
} else {
|
|
952
|
+
that.fireDataReceived({data: oData});
|
|
953
|
+
}
|
|
918
954
|
});
|
|
919
955
|
}
|
|
920
956
|
|
|
@@ -941,13 +977,11 @@ sap.ui.define([
|
|
|
941
977
|
if (!that.bSkipDataEvents) {
|
|
942
978
|
that.fireDataReceived();
|
|
943
979
|
}
|
|
944
|
-
|
|
945
980
|
}
|
|
946
981
|
|
|
947
982
|
if (this.isRelative()){
|
|
948
983
|
sPath = this.getResolvedPath();
|
|
949
984
|
}
|
|
950
|
-
|
|
951
985
|
if (sPath) {
|
|
952
986
|
// Execute the request and use the metadata if available
|
|
953
987
|
this.bPendingRequest = true;
|
|
@@ -957,20 +991,20 @@ sap.ui.define([
|
|
|
957
991
|
this.bSkipDataEvents = false;
|
|
958
992
|
//if load is triggered by a refresh we have to check the refreshGroup
|
|
959
993
|
sGroupId = this.sRefreshGroupId ? this.sRefreshGroupId : this.sGroupId;
|
|
960
|
-
|
|
994
|
+
oReadParameters = {
|
|
961
995
|
headers: this.bTransitionMessagesOnly
|
|
962
996
|
? {"sap-messages" : "transientOnly"}
|
|
963
997
|
: undefined,
|
|
964
998
|
context: this.oContext,
|
|
965
999
|
groupId: sGroupId,
|
|
966
|
-
urlParameters:
|
|
1000
|
+
urlParameters: getUrlParameters(),
|
|
967
1001
|
success: fnSuccess,
|
|
968
1002
|
error: fnError,
|
|
969
1003
|
canonicalRequest: this.bCanonicalRequest,
|
|
970
1004
|
updateAggregatedMessages: this.bRefresh
|
|
971
|
-
}
|
|
1005
|
+
};
|
|
1006
|
+
this.mRequestHandles[sGuid] = this.oModel.read(this.sPath, oReadParameters);
|
|
972
1007
|
}
|
|
973
|
-
|
|
974
1008
|
};
|
|
975
1009
|
|
|
976
1010
|
ODataListBinding.prototype.isLengthFinal = function() {
|
|
@@ -212,7 +212,7 @@ sap.ui.define([
|
|
|
212
212
|
* This model is not prepared to be inherited from.
|
|
213
213
|
*
|
|
214
214
|
* @author SAP SE
|
|
215
|
-
* @version 1.114.
|
|
215
|
+
* @version 1.114.10
|
|
216
216
|
*
|
|
217
217
|
* @public
|
|
218
218
|
* @alias sap.ui.model.odata.v2.ODataModel
|
|
@@ -6388,8 +6388,7 @@ sap.ui.define([
|
|
|
6388
6388
|
} else {
|
|
6389
6389
|
delete this.mChangedEntities[sKey];
|
|
6390
6390
|
}
|
|
6391
|
-
sap.ui.getCore().getMessageManager().removeMessages(this.getMessagesByEntity(sKey,
|
|
6392
|
-
/*bExcludePersistent*/!bDeleteEntity));
|
|
6391
|
+
sap.ui.getCore().getMessageManager().removeMessages(this.getMessagesByEntity(sKey, /*bExcludePersistent*/true));
|
|
6393
6392
|
|
|
6394
6393
|
return pMetaDataLoaded;
|
|
6395
6394
|
};
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
* @extends sap.ui.model.TreeBinding
|
|
94
94
|
* @hideconstructor
|
|
95
95
|
* @public
|
|
96
|
-
* @version 1.114.
|
|
96
|
+
* @version 1.114.10
|
|
97
97
|
*/
|
|
98
98
|
var ODataTreeBinding = TreeBinding.extend("sap.ui.model.odata.v2.ODataTreeBinding", /** @lends sap.ui.model.odata.v2.ODataTreeBinding.prototype */ {
|
|
99
99
|
|
|
@@ -446,16 +446,29 @@ sap.ui.define([
|
|
|
446
446
|
* Deregisters the given change listener from the given path.
|
|
447
447
|
*
|
|
448
448
|
* @param {string} sPath
|
|
449
|
-
* The path
|
|
449
|
+
* The absolute path
|
|
450
450
|
* @param {object} oListener
|
|
451
451
|
* The change listener
|
|
452
452
|
*
|
|
453
453
|
* @private
|
|
454
454
|
*/
|
|
455
455
|
ODataBinding.prototype.doDeregisterChangeListener = function (sPath, oListener) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
var that = this;
|
|
457
|
+
|
|
458
|
+
this.oCachePromise.then(function (oCache) {
|
|
459
|
+
var sRelativePath;
|
|
460
|
+
|
|
461
|
+
if (oCache) {
|
|
462
|
+
sRelativePath = _Helper.getRelativePath(sPath, that.getResolvedPath());
|
|
463
|
+
if (sRelativePath !== undefined) {
|
|
464
|
+
oCache.deregisterChangeListener(sRelativePath, oListener);
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (that.bRelative && that.oContext && that.oContext.getBinding) {
|
|
469
|
+
that.oContext.getBinding().doDeregisterChangeListener(sPath, oListener);
|
|
470
|
+
}
|
|
471
|
+
});
|
|
459
472
|
};
|
|
460
473
|
|
|
461
474
|
/**
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @mixes sap.ui.model.odata.v4.ODataParentBinding
|
|
75
75
|
* @public
|
|
76
76
|
* @since 1.37.0
|
|
77
|
-
* @version 1.114.
|
|
77
|
+
* @version 1.114.10
|
|
78
78
|
*
|
|
79
79
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
|
|
80
80
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
|
|
@@ -782,10 +782,14 @@ sap.ui.define([
|
|
|
782
782
|
* @see sap.ui.model.odata.v4.ODataBinding#doDeregisterChangeListener
|
|
783
783
|
*/
|
|
784
784
|
ODataContextBinding.prototype.doDeregisterChangeListener = function (sPath, oListener) {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
785
|
+
var sRelativePath;
|
|
786
|
+
|
|
787
|
+
if (this.oOperation) {
|
|
788
|
+
sRelativePath = _Helper.getRelativePath(sPath, this.oParameterContext.getPath());
|
|
789
|
+
if (sRelativePath !== undefined) {
|
|
790
|
+
_Helper.removeByPath(this.oOperation.mChangeListeners, sRelativePath, oListener);
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
789
793
|
}
|
|
790
794
|
asODataParentBinding.prototype.doDeregisterChangeListener.apply(this, arguments);
|
|
791
795
|
};
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @mixes sap.ui.model.odata.v4.ODataParentBinding
|
|
58
58
|
* @public
|
|
59
59
|
* @since 1.37.0
|
|
60
|
-
* @version 1.114.
|
|
60
|
+
* @version 1.114.10
|
|
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
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
* @extends sap.ui.model.Model
|
|
228
228
|
* @public
|
|
229
229
|
* @since 1.37.0
|
|
230
|
-
* @version 1.114.
|
|
230
|
+
* @version 1.114.10
|
|
231
231
|
*/
|
|
232
232
|
ODataModel = Model.extend("sap.ui.model.odata.v4.ODataModel",
|
|
233
233
|
/** @lends sap.ui.model.odata.v4.ODataModel.prototype */{
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @mixes sap.ui.model.odata.v4.ODataBinding
|
|
43
43
|
* @public
|
|
44
44
|
* @since 1.37.0
|
|
45
|
-
* @version 1.114.
|
|
45
|
+
* @version 1.114.10
|
|
46
46
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
|
|
47
47
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
|
|
48
48
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getUpdateGroupId as #getUpdateGroupId
|
|
@@ -364,12 +364,9 @@ sap.ui.define([
|
|
|
364
364
|
* @private
|
|
365
365
|
*/
|
|
366
366
|
ODataPropertyBinding.prototype.deregisterChangeListener = function () {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
oBinding.doDeregisterChangeListener(sPath, that);
|
|
371
|
-
}, /*sPath*/"", /*bSync*/false, /*bWithOrWithoutCache*/true)
|
|
372
|
-
.catch(this.oModel.getReporter());
|
|
367
|
+
if (this.sReducedPath) {
|
|
368
|
+
this.doDeregisterChangeListener(this.sReducedPath, this);
|
|
369
|
+
}
|
|
373
370
|
};
|
|
374
371
|
|
|
375
372
|
/**
|
|
@@ -229,7 +229,7 @@ sap.ui.define([
|
|
|
229
229
|
*
|
|
230
230
|
* @extends sap.ui.model.Model
|
|
231
231
|
* @public
|
|
232
|
-
* @version 1.114.
|
|
232
|
+
* @version 1.114.10
|
|
233
233
|
*/
|
|
234
234
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
235
235
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.model.SimpleType
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.114.
|
|
30
|
+
* @version 1.114.10
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @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.114.
|
|
22
|
+
* @version 1.114.10
|
|
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.114.
|
|
22
|
+
* @version 1.114.10
|
|
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}.
|