@openui5/sap.ui.core 1.124.7 → 1.124.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.
- 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/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.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 +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +1 -1
- 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 +6 -2
- 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 +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/StaticArea.js +0 -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 +3 -2
- 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/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.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/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/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.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 +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +32 -19
- 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/TreeBinding.js +21 -17
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +13 -7
- 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/ODataModel.js +1 -1
- 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/ODataContextBinding.js +1 -1
- 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 +39 -11
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +13 -6
- 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/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/thirdparty/less.js +23 -72
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -23,7 +23,7 @@ function(ElementMetadata, WebComponentRenderer, camelize) {
|
|
|
23
23
|
*
|
|
24
24
|
* @class
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.124.
|
|
26
|
+
* @version 1.124.9
|
|
27
27
|
* @since 1.118.0
|
|
28
28
|
* @experimental Since 1.118.0 The API might change. It is not intended for productive usage yet!
|
|
29
29
|
* @alias sap.ui.core.webc.WebComponentMetadata
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./WebSocket', "sap/base/Log"],
|
|
|
21
21
|
* @class WebSocket class implementing the pcp-protocol.
|
|
22
22
|
* @extends sap.ui.core.ws.WebSocket
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.124.
|
|
24
|
+
* @version 1.124.9
|
|
25
25
|
* @alias sap.ui.core.ws.SapPcpWebSocket
|
|
26
26
|
*/
|
|
27
27
|
var SapPcpWebSocket = WebSocket.extend("sap.ui.core.ws.SapPcpWebSocket", /** @lends sap.ui.core.ws.SapPcpWebSocket.prototype */ {
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class Basic WebSocket class.
|
|
26
26
|
* @extends sap.ui.base.EventProvider
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.124.
|
|
28
|
+
* @version 1.124.9
|
|
29
29
|
* @alias sap.ui.core.ws.WebSocket
|
|
30
30
|
*/
|
|
31
31
|
var WebSocket = EventProvider.extend("sap.ui.core.ws.WebSocket", /** @lends sap.ui.core.ws.WebSocket.prototype */ {
|
|
@@ -34,7 +34,7 @@ sap.ui.define('sap/ui/debug/ControlTree', [
|
|
|
34
34
|
* @class Control Tree used for the Debug Environment
|
|
35
35
|
* @extends sap.ui.base.EventProvider
|
|
36
36
|
* @author Martin Schaus, Frank Weigel
|
|
37
|
-
* @version 1.124.
|
|
37
|
+
* @version 1.124.9
|
|
38
38
|
* @alias sap.ui.debug.ControlTree
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
@@ -37,7 +37,7 @@ sap.ui.define('sap/ui/debug/DebugEnv', [
|
|
|
37
37
|
* @class Central Class for the Debug Environment
|
|
38
38
|
*
|
|
39
39
|
* @author Martin Schaus, Frank Weigel
|
|
40
|
-
* @version 1.124.
|
|
40
|
+
* @version 1.124.9
|
|
41
41
|
* @private
|
|
42
42
|
* @alias sap.ui.debug.DebugEnv
|
|
43
43
|
* @deprecated As of Version 1.120
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
/*eslint-disable max-len */
|
|
7
|
-
// Provides the
|
|
7
|
+
// Provides the client model implementation of a tree binding
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./ChangeReason",
|
|
10
10
|
"./TreeBinding",
|
|
@@ -75,12 +75,14 @@ sap.ui.define([
|
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* Return root contexts for the tree
|
|
78
|
+
* Return root contexts for the tree.
|
|
79
|
+
*
|
|
80
|
+
* @param {int} [iStartIndex=0] the index from which to start the retrieval of contexts
|
|
81
|
+
* @param {int} [iLength] determines how many contexts to retrieve, beginning from the start index. Defaults to the
|
|
82
|
+
* model's size limit; see {@link sap.ui.model.Model#setSizeLimit}.
|
|
83
|
+
* @returns {sap.ui.model.Context[]} the context's array
|
|
79
84
|
*
|
|
80
|
-
* @return {object[]} the contexts array
|
|
81
85
|
* @protected
|
|
82
|
-
* @param {int} iStartIndex the startIndex where to start the retrieval of contexts
|
|
83
|
-
* @param {int} iLength determines how many contexts to retrieve beginning from the start index.
|
|
84
86
|
*/
|
|
85
87
|
ClientTreeBinding.prototype.getRootContexts = function(iStartIndex, iLength) {
|
|
86
88
|
if (!iStartIndex) {
|
|
@@ -125,11 +127,14 @@ sap.ui.define([
|
|
|
125
127
|
};
|
|
126
128
|
|
|
127
129
|
/**
|
|
128
|
-
* Return node contexts for the tree
|
|
130
|
+
* Return node contexts for the tree.
|
|
131
|
+
*
|
|
129
132
|
* @param {sap.ui.model.Context} oContext to use for retrieving the node contexts
|
|
130
|
-
* @param {int} iStartIndex the
|
|
131
|
-
* @param {int} iLength determines how many contexts to retrieve beginning from the start index.
|
|
132
|
-
* @
|
|
133
|
+
* @param {int} [iStartIndex=0] the index from which to start the retrieval of contexts
|
|
134
|
+
* @param {int} [iLength] determines how many contexts to retrieve, beginning from the start index. Defaults to the
|
|
135
|
+
* model's size limit; see {@link sap.ui.model.Model#setSizeLimit}.
|
|
136
|
+
* @returns {sap.ui.model.Context[]} the context's array
|
|
137
|
+
*
|
|
133
138
|
* @protected
|
|
134
139
|
*/
|
|
135
140
|
ClientTreeBinding.prototype.getNodeContexts = function(oContext, iStartIndex, iLength) {
|
|
@@ -182,8 +187,8 @@ sap.ui.define([
|
|
|
182
187
|
/**
|
|
183
188
|
* Returns if the node has child nodes.
|
|
184
189
|
*
|
|
185
|
-
* @param {
|
|
186
|
-
* @
|
|
190
|
+
* @param {sap.ui.model.Context} oContext the context element of the node
|
|
191
|
+
* @returns {boolean} <code>true</code> if the node has children
|
|
187
192
|
*
|
|
188
193
|
* @public
|
|
189
194
|
*/
|
|
@@ -200,7 +205,8 @@ sap.ui.define([
|
|
|
200
205
|
* Calling it with no arguments or 'null' returns the number of root level nodes.
|
|
201
206
|
*
|
|
202
207
|
* @param {sap.ui.model.Context} oContext the context for which the child count should be retrieved
|
|
203
|
-
* @
|
|
208
|
+
* @returns {int} the number of children for the given context
|
|
209
|
+
*
|
|
204
210
|
* @public
|
|
205
211
|
* @override
|
|
206
212
|
*/
|
|
@@ -266,7 +272,6 @@ sap.ui.define([
|
|
|
266
272
|
* All filters belonging to a group (=have the same path) are ORed and after that the
|
|
267
273
|
* results of all groups are ANDed.
|
|
268
274
|
*
|
|
269
|
-
* @see sap.ui.model.TreeBinding.prototype.filter
|
|
270
275
|
* @param {sap.ui.model.Filter[]|sap.ui.model.Filter} [aFilters=[]]
|
|
271
276
|
* The filters to use; in case of type {@link sap.ui.model.FilterType.Application} this replaces the filters given
|
|
272
277
|
* in {@link sap.ui.model.ClientModel#bindTree}; a falsy value is treated as an empty array and thus removes all
|
|
@@ -275,12 +280,13 @@ sap.ui.define([
|
|
|
275
280
|
* The type of the filter to replace; if no type is given, all filters previously configured with type
|
|
276
281
|
* {@link sap.ui.model.FilterType.Application} are cleared, and the given filters are used as filters of type
|
|
277
282
|
* {@link sap.ui.model.FilterType.Control}
|
|
278
|
-
* @
|
|
283
|
+
* @returns {this} <code>this</code> to facilitate method chaining
|
|
279
284
|
* @throws {Error} If one of the filters uses an operator that is not supported by the underlying model
|
|
280
285
|
* implementation or if the {@link sap.ui.model.Filter.NONE} filter instance is contained in
|
|
281
286
|
* <code>aFilters</code> together with other filters
|
|
282
287
|
*
|
|
283
288
|
* @public
|
|
289
|
+
* @see sap.ui.model.TreeBinding.prototype.filter
|
|
284
290
|
*/
|
|
285
291
|
ClientTreeBinding.prototype.filter = function(aFilters, sFilterType){
|
|
286
292
|
// The filtering is applied recursively through the tree and stores all filtered contexts and its parent contexts in an array.
|
|
@@ -318,6 +324,7 @@ sap.ui.define([
|
|
|
318
324
|
|
|
319
325
|
/**
|
|
320
326
|
* Apply the current defined filters on the existing dataset.
|
|
327
|
+
*
|
|
321
328
|
* @private
|
|
322
329
|
*/
|
|
323
330
|
ClientTreeBinding.prototype.applyFilter = function () {
|
|
@@ -331,7 +338,10 @@ sap.ui.define([
|
|
|
331
338
|
/**
|
|
332
339
|
* Filters the tree recursively.
|
|
333
340
|
* Performs the real filtering and stores all filtered contexts and its parent context into an array.
|
|
334
|
-
*
|
|
341
|
+
*
|
|
342
|
+
* @param {sap.ui.model.Context} [oParentContext] the context where to start. The children of this node context are
|
|
343
|
+
* then filtered recursively.
|
|
344
|
+
*
|
|
335
345
|
* @private
|
|
336
346
|
*/
|
|
337
347
|
ClientTreeBinding.prototype._applyFilterRecursive = function(oParentContext){
|
|
@@ -390,8 +400,8 @@ sap.ui.define([
|
|
|
390
400
|
* @param {sap.ui.model.Sorter[]|sap.ui.model.Sorter} [aSorters=[]]
|
|
391
401
|
* The sorters to use; they replace the sorters given in {@link sap.ui.model.ClientModel#bindTree}; a falsy value
|
|
392
402
|
* is treated as an empty array and thus removes all sorters
|
|
403
|
+
* @returns {this} Returns <code>this</code> to facilitate method chaining
|
|
393
404
|
*
|
|
394
|
-
* @return {this} Returns <code>this</code> to facilitate method chaining
|
|
395
405
|
* @public
|
|
396
406
|
*/
|
|
397
407
|
ClientTreeBinding.prototype.sort = function (aSorters) {
|
|
@@ -404,8 +414,9 @@ sap.ui.define([
|
|
|
404
414
|
};
|
|
405
415
|
|
|
406
416
|
/**
|
|
407
|
-
*
|
|
408
|
-
*
|
|
417
|
+
* Internal function to apply this.aSorters to the given array of contexts.
|
|
418
|
+
*
|
|
419
|
+
* @param {sap.ui.model.Context[]} aContexts the context array which should be sorted (inplace)
|
|
409
420
|
*/
|
|
410
421
|
ClientTreeBinding.prototype._applySorter = function (aContexts) {
|
|
411
422
|
var that = this;
|
|
@@ -423,7 +434,7 @@ sap.ui.define([
|
|
|
423
434
|
* Called by get*Contexts() to keep track of the child count (after filtering).
|
|
424
435
|
*
|
|
425
436
|
* @param {string} sKey The cache entry to set the length for
|
|
426
|
-
* @param {
|
|
437
|
+
* @param {int} iLength The new length
|
|
427
438
|
*/
|
|
428
439
|
ClientTreeBinding.prototype._setLengthCache = function (sKey, iLength) {
|
|
429
440
|
// keep track of the child count for each context (after filtering)
|
|
@@ -451,6 +462,7 @@ sap.ui.define([
|
|
|
451
462
|
*
|
|
452
463
|
* @returns {number|undefined} The count of entries in the tree, or <code>undefined</code> if
|
|
453
464
|
* the binding is not resolved
|
|
465
|
+
*
|
|
454
466
|
* @public
|
|
455
467
|
* @since 1.108.0
|
|
456
468
|
*/
|
|
@@ -479,6 +491,7 @@ sap.ui.define([
|
|
|
479
491
|
* Whether the given data is the root of the tree
|
|
480
492
|
* @returns {number}
|
|
481
493
|
* The total count of objects in the given data
|
|
494
|
+
*
|
|
482
495
|
* @private
|
|
483
496
|
*/
|
|
484
497
|
ClientTreeBinding._getTotalNodeCount = function (vData, aArrayNames, bRoot) {
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['./SimpleType'],
|
|
|
39
39
|
* <code>true</code>.
|
|
40
40
|
* @extends sap.ui.model.SimpleType
|
|
41
41
|
* @public
|
|
42
|
-
* @version 1.124.
|
|
42
|
+
* @version 1.124.9
|
|
43
43
|
*/
|
|
44
44
|
var CompositeType = SimpleType.extend("sap.ui.model.CompositeType", /** @lends sap.ui.model.CompositeType.prototype */ {
|
|
45
45
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/EventProvider', "sap/base/assert"],
|
|
|
20
20
|
* @extends sap.ui.base.EventProvider
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.124.
|
|
23
|
+
* @version 1.124.9
|
|
24
24
|
*
|
|
25
25
|
* @param {int} iSelectionMode <code>sap.ui.model.SelectionModel.SINGLE_SELECTION</code> or <code>sap.ui.model.SelectionModel.MULTI_SELECTION</code>
|
|
26
26
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
/*eslint-disable max-len */
|
|
7
|
-
// Provides an abstraction for
|
|
7
|
+
// Provides an abstraction for tree bindings
|
|
8
8
|
sap.ui.define(['./Binding', './Filter', './Sorter'],
|
|
9
9
|
function(Binding, Filter, Sorter) {
|
|
10
10
|
"use strict";
|
|
@@ -25,17 +25,18 @@ sap.ui.define(['./Binding', './Filter', './Sorter'],
|
|
|
25
25
|
* oModel Model instance that this binding is created for and that it belongs to
|
|
26
26
|
* @param {string}
|
|
27
27
|
* sPath Path pointing to the tree / array that should be bound
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {sap.ui.model.Context}
|
|
29
29
|
* [oContext=null] Context object for this binding (optional)
|
|
30
30
|
* @param {sap.ui.model.Filter[]|sap.ui.model.Filter} [aFilters=[]]
|
|
31
31
|
* The filters to be used initially with type {@link sap.ui.model.FilterType.Application}; call {@link #filter} to
|
|
32
32
|
* replace them
|
|
33
|
-
* @param {
|
|
33
|
+
* @param {object}
|
|
34
34
|
* [mParameters=null] Additional model specific parameters (optional)
|
|
35
35
|
* @param {sap.ui.model.Sorter[]|sap.ui.model.Sorter} [aSorters=[]]
|
|
36
36
|
* The sorters used initially; call {@link #sort} to replace them
|
|
37
37
|
* @throws {Error} If the {@link sap.ui.model.Filter.NONE} filter instance is contained in
|
|
38
38
|
* <code>aFilters</code> together with other filters
|
|
39
|
+
*
|
|
39
40
|
* @public
|
|
40
41
|
* @alias sap.ui.model.TreeBinding
|
|
41
42
|
* @extends sap.ui.model.Binding
|
|
@@ -72,46 +73,48 @@ sap.ui.define(['./Binding', './Filter', './Sorter'],
|
|
|
72
73
|
|
|
73
74
|
// the 'abstract methods' to be implemented by child classes
|
|
74
75
|
/**
|
|
75
|
-
* Returns the current value of the bound target
|
|
76
|
+
* Returns the current value of the bound target.
|
|
76
77
|
*
|
|
77
78
|
* @function
|
|
78
79
|
* @name sap.ui.model.TreeBinding.prototype.getRootContexts
|
|
79
|
-
* @param {int} iStartIndex the
|
|
80
|
-
* @param {int} iLength determines how many contexts to retrieve beginning from the start index.
|
|
81
|
-
*
|
|
80
|
+
* @param {int} [iStartIndex=0] the index from which to start the retrieval of contexts
|
|
81
|
+
* @param {int} [iLength] determines how many contexts to retrieve, beginning from the start index. Defaults to the
|
|
82
|
+
* model's size limit; see {@link sap.ui.model.Model#setSizeLimit}.
|
|
83
|
+
* @returns {sap.ui.model.Context[]} the array of child contexts for the root node
|
|
82
84
|
*
|
|
83
85
|
* @public
|
|
84
86
|
*/
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
|
-
* Returns the current value of the bound target
|
|
89
|
+
* Returns the current value of the bound target.
|
|
88
90
|
*
|
|
89
91
|
* @function
|
|
90
92
|
* @name sap.ui.model.TreeBinding.prototype.getNodeContexts
|
|
91
93
|
* @param {sap.ui.model.Context} oContext the context element of the node
|
|
92
|
-
* @param {int} iStartIndex the
|
|
93
|
-
* @param {int} iLength determines how many contexts to retrieve beginning from the start index.
|
|
94
|
-
* @
|
|
94
|
+
* @param {int} [iStartIndex=0] the index from which to start the retrieval of contexts
|
|
95
|
+
* @param {int} [iLength] determines how many contexts to retrieve, beginning from the start index. Defaults to the
|
|
96
|
+
* model's size limit; see {@link sap.ui.model.Model#setSizeLimit}.
|
|
97
|
+
* @returns {sap.ui.model.Context[]} the array of child contexts for the given node
|
|
95
98
|
*
|
|
96
99
|
* @public
|
|
97
100
|
*/
|
|
98
101
|
|
|
99
102
|
/**
|
|
100
|
-
* Returns if the node has child nodes
|
|
103
|
+
* Returns <code>true</code> if the node has child nodes.
|
|
101
104
|
*
|
|
102
105
|
* @function
|
|
103
106
|
* @name sap.ui.model.TreeBinding.prototype.hasChildren
|
|
104
|
-
* @param {
|
|
105
|
-
* @
|
|
107
|
+
* @param {sap.ui.model.Context} oContext the context element of the node
|
|
108
|
+
* @returns {boolean} <code>true</code> if the node has children
|
|
106
109
|
*
|
|
107
110
|
* @public
|
|
108
111
|
*/
|
|
109
112
|
|
|
110
113
|
/**
|
|
111
|
-
* Returns the number of child nodes of a specific context
|
|
114
|
+
* Returns the number of child nodes of a specific context.
|
|
112
115
|
*
|
|
113
|
-
* @param {
|
|
114
|
-
* @
|
|
116
|
+
* @param {sap.ui.model.Context} oContext the context element of the node
|
|
117
|
+
* @returns {int} the number of children
|
|
115
118
|
*
|
|
116
119
|
* @public
|
|
117
120
|
*/
|
|
@@ -133,6 +136,7 @@ sap.ui.define(['./Binding', './Filter', './Sorter'],
|
|
|
133
136
|
* @returns {number|undefined} The count of entries in the tree, or <code>undefined</code> if it
|
|
134
137
|
* is unknown, for example because the binding is not resolved or because this feature is not
|
|
135
138
|
* supported.
|
|
139
|
+
*
|
|
136
140
|
* @public
|
|
137
141
|
* @since 1.108.0
|
|
138
142
|
*/
|
package/src/sap/ui/model/Type.js
CHANGED
|
@@ -127,9 +127,9 @@ sap.ui.define([
|
|
|
127
127
|
if (oDimensionDetails === undefined) {
|
|
128
128
|
logUnsupportedPropertyInSelect(oBinding.sPath, sPropertyName, oDimension);
|
|
129
129
|
bError = true;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
// eslint-disable-next-line no-use-before-define
|
|
131
|
+
} else if (AnalyticalBinding._updateDimensionDetailsTextProperty(oDimension, sPropertyName,
|
|
132
|
+
oDimensionDetails)) {
|
|
133
133
|
continue;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -495,7 +495,7 @@ sap.ui.define([
|
|
|
495
495
|
*
|
|
496
496
|
* @function
|
|
497
497
|
* @name sap.ui.model.analytics.AnalyticalBinding.prototype.getRootContexts
|
|
498
|
-
* @param {object|int} mParameters
|
|
498
|
+
* @param {object|int} [mParameters=0]
|
|
499
499
|
* Parameter map specifying how the topmost aggregation level shall be fetched. If this
|
|
500
500
|
* parameter map is set, the optional function parameters are ignored. Optionally, instead
|
|
501
501
|
* of a parameter map an integer value can be set to define the parameter
|
|
@@ -602,9 +602,9 @@ sap.ui.define([
|
|
|
602
602
|
* @name sap.ui.model.analytics.AnalyticalBinding.prototype.getNodeContexts
|
|
603
603
|
* @param {sap.ui.model.Context} oContext
|
|
604
604
|
* Parent context identifying the requested group of child contexts
|
|
605
|
-
* @param {object|int} mParameters
|
|
605
|
+
* @param {object|int} [mParameters=0]
|
|
606
606
|
* Parameters, specifying the aggregation level for which contexts shall be fetched
|
|
607
|
-
* or
|
|
607
|
+
* or the index of the first child entry to return from the parent contexts
|
|
608
608
|
* @param {int} mParameters.level
|
|
609
609
|
* Level number for oContext, because it might occur at multiple levels; context with group ID <code>"/"</code> has level 0
|
|
610
610
|
* @param {int} [mParameters.numberOfExpandedLevels=0]
|
|
@@ -646,7 +646,7 @@ sap.ui.define([
|
|
|
646
646
|
iLevel = mParameters.level;
|
|
647
647
|
iNumberOfExpandedLevels = mParameters.numberOfExpandedLevels;
|
|
648
648
|
bSupressRequest = mParameters.supressRequest;
|
|
649
|
-
} else {
|
|
649
|
+
} else {
|
|
650
650
|
iStartIndex = arguments[1];
|
|
651
651
|
iLength = arguments[2];
|
|
652
652
|
iThreshold = arguments[3];
|
|
@@ -5017,6 +5017,8 @@ sap.ui.define([
|
|
|
5017
5017
|
* @param {object} oDimension The dimension
|
|
5018
5018
|
* @param {string} sPropertyName The property name
|
|
5019
5019
|
* @param {object} oDimensionDetails The dimension details
|
|
5020
|
+
* @returns {boolean} Whether the given property name is the given dimension's text property and therefore has been
|
|
5021
|
+
* added to the given dimension details.
|
|
5020
5022
|
*
|
|
5021
5023
|
* @private
|
|
5022
5024
|
*/
|
|
@@ -5024,7 +5026,11 @@ sap.ui.define([
|
|
|
5024
5026
|
const oTextProperty = oDimension.getTextProperty();
|
|
5025
5027
|
if (oTextProperty && oTextProperty.name === sPropertyName) {
|
|
5026
5028
|
oDimensionDetails.textPropertyName = sPropertyName;
|
|
5029
|
+
|
|
5030
|
+
return true;
|
|
5027
5031
|
}
|
|
5032
|
+
|
|
5033
|
+
return false;
|
|
5028
5034
|
};
|
|
5029
5035
|
|
|
5030
5036
|
/**
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* @extends sap.ui.model.type.Currency
|
|
66
66
|
* @public
|
|
67
67
|
* @since 1.63.0
|
|
68
|
-
* @version 1.124.
|
|
68
|
+
* @version 1.124.9
|
|
69
69
|
*/
|
|
70
70
|
var Currency = BaseCurrency.extend("sap.ui.model.odata.type.Currency", {
|
|
71
71
|
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.27.0
|
|
95
|
-
* @version 1.124.
|
|
95
|
+
* @version 1.124.9
|
|
96
96
|
*/
|
|
97
97
|
var DateTimeBase = ODataType.extend("sap.ui.model.odata.type.DateTimeBase", {
|
|
98
98
|
constructor : function (oFormatOptions, oConstraints) {
|