@openui5/sap.ui.core 1.102.1 → 1.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jquery.sap.global.js +2 -2
- 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/i18n/ResourceBundle.js +2 -2
- 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 +9 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/VersionInfo.js +12 -6
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/ExpressionParser.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +10 -8
- package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
- 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/base/SyncPromise.js +2 -0
- package/src/sap/ui/core/.library +1 -89
- package/src/sap/ui/core/AppCacheBuster.js +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +4 -4
- 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 +2 -2
- package/src/sap/ui/core/Core.js +8 -8
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +10 -9
- package/src/sap/ui/core/Element.js +12 -11
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +4 -2
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +2 -2
- package/src/sap/ui/core/Fragment.js +17 -14
- package/src/sap/ui/core/HTML.js +2 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +6 -6
- package/src/sap/ui/core/IconPool.js +1 -3
- 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 +28 -4
- 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/Popup.js +4 -2
- 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/ThemeCheck.js +7 -7
- 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 +3 -2
- package/src/sap/ui/core/UIComponent.js +2 -2
- package/src/sap/ui/core/UIComponentMetadata.js +2 -2
- 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/XMLTemplateProcessor.js +3 -5
- package/src/sap/ui/core/cache/LRUPersistentCache.js +2 -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/DragAndDrop.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/DateFormat.js +2 -2
- package/src/sap/ui/core/format/NumberFormat.js +3 -3
- 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 +2 -2
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +2 -2
- package/src/sap/ui/core/messagebundle_it.properties +56 -56
- package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +12 -12
- 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/routing/History.js +5 -3
- package/src/sap/ui/core/routing/Router.js +4 -2
- package/src/sap/ui/core/routing/Targets.js +2 -2
- 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/RuleEngineOpaExtension.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/ToolsAPI.js +4 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +3 -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/theming/Parameters.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +4 -4
- package/src/sap/ui/core/tmpl/TemplateControl.js +2 -2
- 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/ResponsivePaddingsEnablement.js +2 -2
- package/src/sap/ui/core/util/XMLPreprocessor.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 +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/dom/_ready.js +34 -0
- package/src/sap/ui/dom/containsOrEquals.js +2 -2
- package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
- package/src/sap/ui/dom/jquery/Focusable.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -1
- package/src/sap/ui/events/jquery/EventExtension.js +1 -1
- package/src/sap/ui/events/jquery/EventSimulation.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/TreeBindingAdapter.js +134 -0
- 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/ODataTreeBindingAdapter.js +6 -0
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +279 -4
- 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 +36 -4
- package/src/sap/ui/model/odata/v4/Context.js +7 -10
- package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +29 -2
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -5
- package/src/sap/ui/model/odata/v4/ODataModel.js +66 -3
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +183 -20
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +10 -3
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -7
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
- 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/security/FrameOptions.js +4 -2
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/OpaPlugin.js +3 -3
- package/src/sap/ui/test/_ControlFinder.js +5 -4
- package/src/sap/ui/test/actions/Drag.js +2 -2
- package/src/sap/ui/test/actions/Drop.js +2 -2
- package/src/sap/ui/test/actions/EnterText.js +8 -8
- package/src/sap/ui/test/actions/Press.js +5 -5
- package/src/sap/ui/test/actions/Scroll.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Mobile.js +59 -33
- package/src/sap/ui/util/Storage.js +2 -2
- package/src/sap/ui/util/openWindow.js +1 -1
- package/src/ui5loader.js +3 -3
- package/ui5.yaml +71 -0
|
@@ -34,6 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @alias sap.ui.model.TreeBindingAdapter
|
|
35
35
|
* @class
|
|
36
36
|
* @experimental This module is only for experimental and internal use!
|
|
37
|
+
*
|
|
37
38
|
* @protected
|
|
38
39
|
*/
|
|
39
40
|
var TreeBindingAdapter = function() {
|
|
@@ -83,6 +84,7 @@ sap.ui.define([
|
|
|
83
84
|
* necessary/possible.
|
|
84
85
|
*
|
|
85
86
|
* @returns {object} The current tree state
|
|
87
|
+
*
|
|
86
88
|
* @private
|
|
87
89
|
*/
|
|
88
90
|
TreeBindingAdapter.prototype.getCurrentTreeState = function () {
|
|
@@ -136,6 +138,7 @@ sap.ui.define([
|
|
|
136
138
|
* Only in OperationMode.Client.
|
|
137
139
|
*
|
|
138
140
|
* @param {object} oTreeState Only valid tree states from the same binding are accepted
|
|
141
|
+
*
|
|
139
142
|
* @private
|
|
140
143
|
*/
|
|
141
144
|
TreeBindingAdapter.prototype.setTreeState = function (oTreeState) {
|
|
@@ -146,6 +149,8 @@ sap.ui.define([
|
|
|
146
149
|
* Sets the auto expand mode for this Adapter. Default is "Bundled".
|
|
147
150
|
*
|
|
148
151
|
* @param {sap.ui.model.TreeAutoExpandMode} sAutoExpandMode The new auto expand mode to set
|
|
152
|
+
*
|
|
153
|
+
* @private
|
|
149
154
|
*/
|
|
150
155
|
TreeBindingAdapter.prototype.setAutoExpandMode = function (sAutoExpandMode) {
|
|
151
156
|
this._autoExpandMode = sAutoExpandMode;
|
|
@@ -155,6 +160,7 @@ sap.ui.define([
|
|
|
155
160
|
* Returns the number of entries in the tree.
|
|
156
161
|
*
|
|
157
162
|
* @return {number} Returns the number of entries in the tree
|
|
163
|
+
*
|
|
158
164
|
* @public
|
|
159
165
|
*/
|
|
160
166
|
TreeBindingAdapter.prototype.getLength = function() {
|
|
@@ -175,6 +181,11 @@ sap.ui.define([
|
|
|
175
181
|
* @returns {sap.ui.model.Context|undefined}
|
|
176
182
|
* The context of the node at the given index or <code>undefined</code> if the binding is
|
|
177
183
|
* initial or no node was found at the given index
|
|
184
|
+
*
|
|
185
|
+
* @private
|
|
186
|
+
* @ui5-restricted sap.gantt.GanttChart,
|
|
187
|
+
* sap.suite.ui.generic.template.lib.presentationControl.SmartTableHandler,
|
|
188
|
+
* sap.ui.table.AnalyticalTable, sap.ui.table.TreeTable
|
|
178
189
|
*/
|
|
179
190
|
TreeBindingAdapter.prototype.getContextByIndex = function (iIndex) {
|
|
180
191
|
//step out if the binding is initial (as long as the metadata is not yet loaded)
|
|
@@ -186,6 +197,10 @@ sap.ui.define([
|
|
|
186
197
|
return oNode ? oNode.context : undefined;
|
|
187
198
|
};
|
|
188
199
|
|
|
200
|
+
/*
|
|
201
|
+
* @private
|
|
202
|
+
* @ui5-restricted sap.m.TreeItemBase, sap.ui.table.AnalyticalTable, sap.ui.table.TreeTable
|
|
203
|
+
*/
|
|
189
204
|
TreeBindingAdapter.prototype.getNodeByIndex = function(iIndex) {
|
|
190
205
|
//step out if the binding is initial (as long as the metadata is not yet loaded)
|
|
191
206
|
if (this.isInitial()) {
|
|
@@ -210,6 +225,10 @@ sap.ui.define([
|
|
|
210
225
|
*
|
|
211
226
|
* @returns {object|undefined}
|
|
212
227
|
* The found node or <code>undefined</code> if the binding is initial or no node is found
|
|
228
|
+
*
|
|
229
|
+
* @private
|
|
230
|
+
* @ui5-restricted sap.gantt.simple.GanttPrinting,
|
|
231
|
+
* sap.suite.ui.generic.template.listTemplates.controller.DetailController
|
|
213
232
|
*/
|
|
214
233
|
TreeBindingAdapter.prototype.findNode = function (iRowIndex) {
|
|
215
234
|
|
|
@@ -250,6 +269,9 @@ sap.ui.define([
|
|
|
250
269
|
return oFoundNode;
|
|
251
270
|
};
|
|
252
271
|
|
|
272
|
+
/*
|
|
273
|
+
* @private
|
|
274
|
+
*/
|
|
253
275
|
TreeBindingAdapter.prototype._createTreeState = function (bReset) {
|
|
254
276
|
if (!this._mTreeState || bReset) {
|
|
255
277
|
//general tree status information, the nodes are referenced by their groupID
|
|
@@ -262,6 +284,9 @@ sap.ui.define([
|
|
|
262
284
|
}
|
|
263
285
|
};
|
|
264
286
|
|
|
287
|
+
/*
|
|
288
|
+
* @private
|
|
289
|
+
*/
|
|
265
290
|
TreeBindingAdapter.prototype._updateTreeState = function (mParameters) {
|
|
266
291
|
mParameters = mParameters || {};
|
|
267
292
|
|
|
@@ -299,6 +324,8 @@ sap.ui.define([
|
|
|
299
324
|
*
|
|
300
325
|
* @returns {object|undefined}
|
|
301
326
|
* The created node state or <code>undefined</code> if no group id is given
|
|
327
|
+
*
|
|
328
|
+
* @private
|
|
302
329
|
*/
|
|
303
330
|
TreeBindingAdapter.prototype._createNodeState = function (mParameters) {
|
|
304
331
|
if (!mParameters.groupID) {
|
|
@@ -338,6 +365,9 @@ sap.ui.define([
|
|
|
338
365
|
return oNodeState;
|
|
339
366
|
};
|
|
340
367
|
|
|
368
|
+
/*
|
|
369
|
+
* @private
|
|
370
|
+
*/
|
|
341
371
|
TreeBindingAdapter.prototype._getNodeState = function (sGroupID) {
|
|
342
372
|
var oExpanded = this._mTreeState.expanded[sGroupID];
|
|
343
373
|
var oCollapsed = this._mTreeState.collapsed[sGroupID];
|
|
@@ -360,6 +390,8 @@ sap.ui.define([
|
|
|
360
390
|
*
|
|
361
391
|
* @returns {object|undefined}
|
|
362
392
|
* The merged sections
|
|
393
|
+
*
|
|
394
|
+
* @private
|
|
363
395
|
*/
|
|
364
396
|
TreeBindingAdapter.prototype._updateNodeSections = function (sGroupID, oNewSection) {
|
|
365
397
|
var oNodeState = this._getNodeState(sGroupID);
|
|
@@ -387,6 +419,8 @@ sap.ui.define([
|
|
|
387
419
|
/**
|
|
388
420
|
* Increases the section length of all sections of all nodes in the tree. This is necessary in case the page size increases between requests.
|
|
389
421
|
* Otherwise unnecessary requests would be performed, because the section length does not match the requested page size.
|
|
422
|
+
*
|
|
423
|
+
* @private
|
|
390
424
|
*/
|
|
391
425
|
TreeBindingAdapter.prototype._increaseSections = function() {
|
|
392
426
|
var fnIncreaseSections = function (oNode) {
|
|
@@ -419,6 +453,8 @@ sap.ui.define([
|
|
|
419
453
|
* @param {object} oNode The node to calculate the group-size for
|
|
420
454
|
*
|
|
421
455
|
* @returns {number} The maximum possible group-size
|
|
456
|
+
*
|
|
457
|
+
* @private
|
|
422
458
|
*/
|
|
423
459
|
TreeBindingAdapter.prototype._getMaxGroupSize = function (oNode) {
|
|
424
460
|
var iMaxGroupSize = 0;
|
|
@@ -572,6 +608,7 @@ sap.ui.define([
|
|
|
572
608
|
* The requested tree nodes
|
|
573
609
|
*
|
|
574
610
|
* @protected
|
|
611
|
+
* @ui5-restricted sap.ui.table.TreeTable
|
|
575
612
|
*/
|
|
576
613
|
TreeBindingAdapter.prototype.getNodes = function (iStartIndex, iLength, iThreshold) {
|
|
577
614
|
return this._getContextsOrNodes(true, iStartIndex, iLength, iThreshold);
|
|
@@ -582,6 +619,8 @@ sap.ui.define([
|
|
|
582
619
|
*
|
|
583
620
|
* @param {object[]} aNodes The nodes to update
|
|
584
621
|
* @param {number} iStartIndex The position where the update should start
|
|
622
|
+
*
|
|
623
|
+
* @private
|
|
585
624
|
*/
|
|
586
625
|
TreeBindingAdapter.prototype._updateRowIndexMap = function (aNodes, iStartIndex) {
|
|
587
626
|
//throw away the old mapping index
|
|
@@ -608,6 +647,7 @@ sap.ui.define([
|
|
|
608
647
|
* @return {object[]} An array containing all collected nodes, for which the absolute node
|
|
609
648
|
* index is greater than iStartIndex; the length of the array will be iLength (or less if
|
|
610
649
|
* the tree does not have that many nodes).
|
|
650
|
+
*
|
|
611
651
|
* @private
|
|
612
652
|
*/
|
|
613
653
|
TreeBindingAdapter.prototype._retrieveNodeSection = function (oNode, iStartIndex, iLength) {
|
|
@@ -642,6 +682,8 @@ sap.ui.define([
|
|
|
642
682
|
*
|
|
643
683
|
* @param {int} iStartIndex Index from which the tree shall be built
|
|
644
684
|
* @param {int} iLength Number of Nodes
|
|
685
|
+
*
|
|
686
|
+
* @private
|
|
645
687
|
*/
|
|
646
688
|
TreeBindingAdapter.prototype._buildTree = function(iStartIndex, iLength) {
|
|
647
689
|
//throw away our tree
|
|
@@ -723,6 +765,9 @@ sap.ui.define([
|
|
|
723
765
|
return iRequestedLength;
|
|
724
766
|
};
|
|
725
767
|
|
|
768
|
+
/*
|
|
769
|
+
* @private
|
|
770
|
+
*/
|
|
726
771
|
TreeBindingAdapter.prototype._loadChildContexts = function (oNode) {
|
|
727
772
|
var oNodeState = oNode.nodeState;
|
|
728
773
|
|
|
@@ -866,6 +911,10 @@ sap.ui.define([
|
|
|
866
911
|
* AnalyticalBindings might differ.
|
|
867
912
|
*
|
|
868
913
|
* @returns {boolean} true
|
|
914
|
+
*
|
|
915
|
+
* @private
|
|
916
|
+
* @ui5-restricted unified.shell.override, sap.ca.scfld.md.controller.BaseMasterController,
|
|
917
|
+
* sap.m.GrowingEnablement, sap.m.ListBase, sap.m.UploadCollection, sap.m.UploadSet
|
|
869
918
|
*/
|
|
870
919
|
TreeBindingAdapter.prototype.isGrouped = function () {
|
|
871
920
|
return true;
|
|
@@ -875,6 +924,8 @@ sap.ui.define([
|
|
|
875
924
|
* Hook which needs to be implemented by subclasses
|
|
876
925
|
* Calculates a unique group ID for a given node
|
|
877
926
|
* @param {Object} oNode Node of which the group ID shall be calculated
|
|
927
|
+
*
|
|
928
|
+
* @private
|
|
878
929
|
*/
|
|
879
930
|
TreeBindingAdapter.prototype._calculateGroupID = function (oNode) {
|
|
880
931
|
Log.error("TreeBindingAdapter#_calculateGroupID: Not implemented. Needs to be implemented in respective sub-classes.");
|
|
@@ -884,6 +935,8 @@ sap.ui.define([
|
|
|
884
935
|
* Creates a new tree node with valid default values
|
|
885
936
|
* @param {object} mParameters a set of parameters which might differ from the default values
|
|
886
937
|
* @returns {object} a newly created tree node
|
|
938
|
+
*
|
|
939
|
+
* @private
|
|
887
940
|
*/
|
|
888
941
|
TreeBindingAdapter.prototype._createNode = function (mParameters) {
|
|
889
942
|
mParameters = mParameters || {};
|
|
@@ -922,6 +975,10 @@ sap.ui.define([
|
|
|
922
975
|
* Expand the tree node sitting at the given index.
|
|
923
976
|
* @param {int} iIndex the absolute row index
|
|
924
977
|
* @param {boolean} bSuppressChange if set to true, no change event will be fired
|
|
978
|
+
*
|
|
979
|
+
* @private
|
|
980
|
+
* @ui5-restricted sap.gantt.simple.GanttPrinting, sap.m.Tree,
|
|
981
|
+
* sap.ui.documentation.sdk.controller.App.controller, sap.ui.table.TreeTable
|
|
925
982
|
*/
|
|
926
983
|
TreeBindingAdapter.prototype.expand = function(iIndex, bSuppressChange) {
|
|
927
984
|
var oNode = this.findNode(iIndex);
|
|
@@ -942,6 +999,9 @@ sap.ui.define([
|
|
|
942
999
|
* Expands the tree to the given level.
|
|
943
1000
|
* Change-Event is fired.
|
|
944
1001
|
* @param {int} iLevel the level to which the data should be expanded
|
|
1002
|
+
*
|
|
1003
|
+
* @private
|
|
1004
|
+
* @ui5-restricted sap.m.Tree, sap.ui.table.AnalyticalTable, sap.ui.table.TreeTable
|
|
945
1005
|
*/
|
|
946
1006
|
TreeBindingAdapter.prototype.expandToLevel = function (iLevel) {
|
|
947
1007
|
this._mTreeState.collapsed = {};
|
|
@@ -955,6 +1015,10 @@ sap.ui.define([
|
|
|
955
1015
|
* @param {number} iIndex The index for which the expansion state should be retrieved
|
|
956
1016
|
*
|
|
957
1017
|
* @returns {boolean} Whether the node at the given index is expanded
|
|
1018
|
+
*
|
|
1019
|
+
* @private
|
|
1020
|
+
* @ui5-restricted sap.gantt.simple.GanttPrinting, sap.m.Tree, sap.m.TreeItemBase,
|
|
1021
|
+
* sap.ui.table.TreeTable
|
|
958
1022
|
*/
|
|
959
1023
|
TreeBindingAdapter.prototype.isExpanded = function (iIndex) {
|
|
960
1024
|
var oNode = this.findNode(iIndex);
|
|
@@ -965,6 +1029,9 @@ sap.ui.define([
|
|
|
965
1029
|
* Collapses the given node, identified via an absolute row index.
|
|
966
1030
|
* @param {int} vParam the row index of the tree node
|
|
967
1031
|
* @param {boolean} bSuppressChange if set to true, no change event will be fired
|
|
1032
|
+
*
|
|
1033
|
+
* @private
|
|
1034
|
+
* @ui5-restricted sap.gantt.simple.GanttPrinting, sap.m.Tree, sap.ui.table.TreeTable
|
|
968
1035
|
*/
|
|
969
1036
|
TreeBindingAdapter.prototype.collapse = function(vParam, bSuppressChange) {
|
|
970
1037
|
var oNodeStateForCollapsingNode;
|
|
@@ -1044,6 +1111,9 @@ sap.ui.define([
|
|
|
1044
1111
|
* Collape all nodes up to level "iLevel".
|
|
1045
1112
|
* If iLevel is undefined: the tree will be collapsed up to the first child level of the root node.
|
|
1046
1113
|
* @param {int} iLevel the level to which all lower sub-trees should be collapsed
|
|
1114
|
+
*
|
|
1115
|
+
* @private
|
|
1116
|
+
* @ui5-restricted sap.m.Tree, sap.ui.table.TreeTable
|
|
1047
1117
|
*/
|
|
1048
1118
|
TreeBindingAdapter.prototype.collapseToLevel = function(iLevel) {
|
|
1049
1119
|
//default level is 1, meaning all sub nodes of the root will be collapsed (to the top)
|
|
@@ -1073,6 +1143,8 @@ sap.ui.define([
|
|
|
1073
1143
|
*
|
|
1074
1144
|
* @param {object} oNode the starting node for the function mapping
|
|
1075
1145
|
* @param {function} fnMapFunction the function which should be mapped for each node in the sub-tree
|
|
1146
|
+
*
|
|
1147
|
+
* @private
|
|
1076
1148
|
*/
|
|
1077
1149
|
TreeBindingAdapter.prototype._map = function (oNode, fnMapFunction) {
|
|
1078
1150
|
|
|
@@ -1116,6 +1188,8 @@ sap.ui.define([
|
|
|
1116
1188
|
*
|
|
1117
1189
|
* @returns {boolean}
|
|
1118
1190
|
* Whether the <code>iMaxNumberOfMatches</code> has been reached
|
|
1191
|
+
*
|
|
1192
|
+
* @private
|
|
1119
1193
|
*/
|
|
1120
1194
|
TreeBindingAdapter.prototype._match = function (oNode, aResults, iMaxNumberOfMatches, fnMatchFunction, iPositionInParent, oParentNode) {
|
|
1121
1195
|
|
|
@@ -1153,6 +1227,9 @@ sap.ui.define([
|
|
|
1153
1227
|
/**
|
|
1154
1228
|
* Toggles the tree node sitting at the given index.
|
|
1155
1229
|
* @param {int} iIndex the absolute row index
|
|
1230
|
+
*
|
|
1231
|
+
* @private
|
|
1232
|
+
* @ui5-restricted sap.m.Tree, sap.ui.table.TreeTable
|
|
1156
1233
|
*/
|
|
1157
1234
|
TreeBindingAdapter.prototype.toggleIndex = function(iIndex) {
|
|
1158
1235
|
var oNode = this.findNode(iIndex);
|
|
@@ -1175,6 +1252,8 @@ sap.ui.define([
|
|
|
1175
1252
|
* @param {string} sGroupID The group ID to get the level from
|
|
1176
1253
|
*
|
|
1177
1254
|
* @returns {number} The level of the group ID
|
|
1255
|
+
*
|
|
1256
|
+
* @private
|
|
1178
1257
|
*/
|
|
1179
1258
|
TreeBindingAdapter.prototype._getGroupIdLevel = function (sGroupID) {
|
|
1180
1259
|
if (sGroupID == null) {
|
|
@@ -1190,6 +1269,8 @@ sap.ui.define([
|
|
|
1190
1269
|
* @param {object} oNode The node to determine the size of
|
|
1191
1270
|
*
|
|
1192
1271
|
* @returns {number} The child count of the given node
|
|
1272
|
+
*
|
|
1273
|
+
* @private
|
|
1193
1274
|
*/
|
|
1194
1275
|
TreeBindingAdapter.prototype._getGroupSize = function (oNode) {
|
|
1195
1276
|
return this.getChildCount(oNode.context);
|
|
@@ -1203,6 +1284,8 @@ sap.ui.define([
|
|
|
1203
1284
|
* Sets the selection state of the given node.
|
|
1204
1285
|
* @param {object} oNodeState the node state for which the selection should be changed
|
|
1205
1286
|
* @param {boolean} bIsSelected the selection state for the given node
|
|
1287
|
+
*
|
|
1288
|
+
* @private
|
|
1206
1289
|
*/
|
|
1207
1290
|
TreeBindingAdapter.prototype.setNodeSelection = function (oNodeState, bIsSelected) {
|
|
1208
1291
|
|
|
@@ -1229,6 +1312,9 @@ sap.ui.define([
|
|
|
1229
1312
|
* @param {number} iRowIndex The row index to check for selection state
|
|
1230
1313
|
*
|
|
1231
1314
|
* @returns {boolean} Whether the node at the given index is selected
|
|
1315
|
+
*
|
|
1316
|
+
* @private
|
|
1317
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1232
1318
|
*/
|
|
1233
1319
|
TreeBindingAdapter.prototype.isIndexSelected = function (iRowIndex) {
|
|
1234
1320
|
var oNode = this.getNodeByIndex(iRowIndex);
|
|
@@ -1242,6 +1328,9 @@ sap.ui.define([
|
|
|
1242
1328
|
* @param {number} iRowIndex The row index which should be checked for "selectability"
|
|
1243
1329
|
*
|
|
1244
1330
|
* @returns {boolean} Whether the node at the given index is selectable
|
|
1331
|
+
*
|
|
1332
|
+
* @private
|
|
1333
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1245
1334
|
*/
|
|
1246
1335
|
TreeBindingAdapter.prototype.isIndexSelectable = function (iRowIndex) {
|
|
1247
1336
|
var oNode = this.getNodeByIndex(iRowIndex);
|
|
@@ -1255,6 +1344,8 @@ sap.ui.define([
|
|
|
1255
1344
|
* @param {object} oNode The node to check
|
|
1256
1345
|
*
|
|
1257
1346
|
* @returns {boolean} Whether the node can be selected
|
|
1347
|
+
*
|
|
1348
|
+
* @private
|
|
1258
1349
|
*/
|
|
1259
1350
|
TreeBindingAdapter.prototype._isNodeSelectable = function (oNode) {
|
|
1260
1351
|
return !!oNode && !oNode.isArtificial;
|
|
@@ -1264,6 +1355,9 @@ sap.ui.define([
|
|
|
1264
1355
|
* Marks a single TreeTable node sitting on iRowIndex as selected.
|
|
1265
1356
|
* Also sets the lead selection index to this node.
|
|
1266
1357
|
* @param {int} iRowIndex the absolute row index which should be selected
|
|
1358
|
+
*
|
|
1359
|
+
* @private
|
|
1360
|
+
* @ui5-restricted sap.m.TreeItemBase, sap.ui.table.plugins.BindingSelection
|
|
1267
1361
|
*/
|
|
1268
1362
|
TreeBindingAdapter.prototype.setSelectedIndex = function (iRowIndex) {
|
|
1269
1363
|
var oNode = this.findNode(iRowIndex);
|
|
@@ -1297,6 +1391,9 @@ sap.ui.define([
|
|
|
1297
1391
|
* Retrieves the "Lead-Selection-Index". Normally this is the last selected node/table row.
|
|
1298
1392
|
*
|
|
1299
1393
|
* @return {number} Returns the lead selection index or -1 if none is set
|
|
1394
|
+
*
|
|
1395
|
+
* @private
|
|
1396
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1300
1397
|
*/
|
|
1301
1398
|
TreeBindingAdapter.prototype.getSelectedIndex = function () {
|
|
1302
1399
|
//if we have no nodes selected, the lead selection index is -1
|
|
@@ -1338,6 +1435,9 @@ sap.ui.define([
|
|
|
1338
1435
|
* Returns an array with all selected row indices.
|
|
1339
1436
|
* Only absolute row indices for nodes known to the client will can be retrieved this way
|
|
1340
1437
|
* @return {int[]} an array with all selected indices
|
|
1438
|
+
*
|
|
1439
|
+
* @private
|
|
1440
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1341
1441
|
*/
|
|
1342
1442
|
TreeBindingAdapter.prototype.getSelectedIndices = function () {
|
|
1343
1443
|
var aResultIndices = [];
|
|
@@ -1379,7 +1479,9 @@ sap.ui.define([
|
|
|
1379
1479
|
* Returns the number of selected nodes (including not-yet loaded).
|
|
1380
1480
|
*
|
|
1381
1481
|
* @returns {number} The count of selected nodes
|
|
1482
|
+
*
|
|
1382
1483
|
* @private
|
|
1484
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1383
1485
|
*/
|
|
1384
1486
|
TreeBindingAdapter.prototype.getSelectedNodesCount = function () {
|
|
1385
1487
|
var iSelectedNodes;
|
|
@@ -1449,6 +1551,8 @@ sap.ui.define([
|
|
|
1449
1551
|
* @param {object} [oNode] The node to get the selectable nodes count from
|
|
1450
1552
|
*
|
|
1451
1553
|
* @returns {int} Number of currently selectable nodes
|
|
1554
|
+
*
|
|
1555
|
+
* @private
|
|
1452
1556
|
*/
|
|
1453
1557
|
TreeBindingAdapter.prototype._getSelectableNodesCount = function (oNode) {
|
|
1454
1558
|
if (oNode) {
|
|
@@ -1464,6 +1568,8 @@ sap.ui.define([
|
|
|
1464
1568
|
*
|
|
1465
1569
|
* @return {sap.ui.model.Context[]}
|
|
1466
1570
|
* An array containing the binding contexts for all selected nodes
|
|
1571
|
+
*
|
|
1572
|
+
* @private
|
|
1467
1573
|
*/
|
|
1468
1574
|
TreeBindingAdapter.prototype.getSelectedContexts = function () {
|
|
1469
1575
|
var aResultContexts = [];
|
|
@@ -1510,6 +1616,9 @@ sap.ui.define([
|
|
|
1510
1616
|
*
|
|
1511
1617
|
* @param {number} iFromIndex The first index to select
|
|
1512
1618
|
* @param {number} iToIndex The last index to select
|
|
1619
|
+
*
|
|
1620
|
+
* @private
|
|
1621
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1513
1622
|
*/
|
|
1514
1623
|
TreeBindingAdapter.prototype.setSelectionInterval = function (iFromIndex, iToIndex) {
|
|
1515
1624
|
var i, iIndex,
|
|
@@ -1565,6 +1674,7 @@ sap.ui.define([
|
|
|
1565
1674
|
*
|
|
1566
1675
|
* @returns {object}
|
|
1567
1676
|
* A map containing info about the changed selection
|
|
1677
|
+
*
|
|
1568
1678
|
* @private
|
|
1569
1679
|
*/
|
|
1570
1680
|
TreeBindingAdapter.prototype._setSelectionInterval = function (iFromIndex, iToIndex, bSelectionValue) {
|
|
@@ -1644,6 +1754,9 @@ sap.ui.define([
|
|
|
1644
1754
|
*
|
|
1645
1755
|
* @param {number} iFromIndex The first index to mark
|
|
1646
1756
|
* @param {number} iToIndex The last index to mark
|
|
1757
|
+
*
|
|
1758
|
+
* @private
|
|
1759
|
+
* @ui5-restricted sap.m.TreeItemBase, sap.ui.table.plugins.BindingSelection
|
|
1647
1760
|
*/
|
|
1648
1761
|
TreeBindingAdapter.prototype.addSelectionInterval = function (iFromIndex, iToIndex) {
|
|
1649
1762
|
var mParams = this._setSelectionInterval(iFromIndex, iToIndex, true);
|
|
@@ -1655,6 +1768,9 @@ sap.ui.define([
|
|
|
1655
1768
|
*
|
|
1656
1769
|
* @param {number} iFromIndex The first index to remove the selection from
|
|
1657
1770
|
* @param {number} iToIndex The last index to remove the selection from
|
|
1771
|
+
*
|
|
1772
|
+
* @private
|
|
1773
|
+
* @ui5-restricted sap.m.TreeItemBase, sap.ui.table.plugins.BindingSelection
|
|
1658
1774
|
*/
|
|
1659
1775
|
TreeBindingAdapter.prototype.removeSelectionInterval = function (iFromIndex, iToIndex) {
|
|
1660
1776
|
var mParams = this._setSelectionInterval(iFromIndex, iToIndex, false);
|
|
@@ -1663,6 +1779,9 @@ sap.ui.define([
|
|
|
1663
1779
|
|
|
1664
1780
|
/**
|
|
1665
1781
|
* Selects all avaliable nodes
|
|
1782
|
+
*
|
|
1783
|
+
* @private
|
|
1784
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1666
1785
|
*/
|
|
1667
1786
|
TreeBindingAdapter.prototype.selectAll = function () {
|
|
1668
1787
|
|
|
@@ -1718,6 +1837,7 @@ sap.ui.define([
|
|
|
1718
1837
|
* Removes the selection from all nodes.
|
|
1719
1838
|
*
|
|
1720
1839
|
* @returns {object} An object containing information about the new selection state
|
|
1840
|
+
*
|
|
1721
1841
|
* @private
|
|
1722
1842
|
*/
|
|
1723
1843
|
TreeBindingAdapter.prototype._clearSelection = function () {
|
|
@@ -1793,6 +1913,9 @@ sap.ui.define([
|
|
|
1793
1913
|
*
|
|
1794
1914
|
* @param {boolean} bSuppressSelectionChangeEvent
|
|
1795
1915
|
* Whether to suppress the <code>selectionChange</code> event
|
|
1916
|
+
*
|
|
1917
|
+
* @private
|
|
1918
|
+
* @ui5-restricted sap.ui.table.plugins.BindingSelection
|
|
1796
1919
|
*/
|
|
1797
1920
|
TreeBindingAdapter.prototype.clearSelection = function (bSuppressSelectionChangeEvent) {
|
|
1798
1921
|
var oChanges = this._clearSelection();
|
|
@@ -1809,6 +1932,8 @@ sap.ui.define([
|
|
|
1809
1932
|
*
|
|
1810
1933
|
* @param {object} mParams
|
|
1811
1934
|
* An object containing information about selection change
|
|
1935
|
+
*
|
|
1936
|
+
* @private
|
|
1812
1937
|
*/
|
|
1813
1938
|
TreeBindingAdapter.prototype._publishSelectionChanges = function (mParams) {
|
|
1814
1939
|
|
|
@@ -1843,6 +1968,9 @@ sap.ui.define([
|
|
|
1843
1968
|
* collapsed as well.
|
|
1844
1969
|
*
|
|
1845
1970
|
* @param {boolean} bCollapseRecursive Whether to enable the recursive collapsing
|
|
1971
|
+
*
|
|
1972
|
+
* @private
|
|
1973
|
+
* @ui5-restricted sap.ui.table.AnalyticalTable, sap.ui.table.TreeTable
|
|
1846
1974
|
*/
|
|
1847
1975
|
TreeBindingAdapter.prototype.setCollapseRecursive = function (bCollapseRecursive) {
|
|
1848
1976
|
this.bCollapseRecursive = !!bCollapseRecursive;
|
|
@@ -1852,6 +1980,9 @@ sap.ui.define([
|
|
|
1852
1980
|
* Gets the collapsing behavior when parent nodes are collapsed.
|
|
1853
1981
|
*
|
|
1854
1982
|
* @returns {boolean} Whether recursive collapsing is enabled
|
|
1983
|
+
*
|
|
1984
|
+
* @private
|
|
1985
|
+
* @ui5-restricted sap.ui.table.TreeTable
|
|
1855
1986
|
*/
|
|
1856
1987
|
TreeBindingAdapter.prototype.getCollapseRecursive = function () {
|
|
1857
1988
|
return this.bCollapseRecursive;
|
|
@@ -1880,6 +2011,7 @@ sap.ui.define([
|
|
|
1880
2011
|
* <code>TreeBindingAdapter</code> itself
|
|
1881
2012
|
*
|
|
1882
2013
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
2014
|
+
*
|
|
1883
2015
|
* @public
|
|
1884
2016
|
*/
|
|
1885
2017
|
TreeBindingAdapter.prototype.attachSelectionChanged = function(oData, fnFunction, oListener) {
|
|
@@ -1898,6 +2030,7 @@ sap.ui.define([
|
|
|
1898
2030
|
* @param {object}
|
|
1899
2031
|
* [oListener] Context object on which the given function had to be called
|
|
1900
2032
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
2033
|
+
*
|
|
1901
2034
|
* @public
|
|
1902
2035
|
*/
|
|
1903
2036
|
TreeBindingAdapter.prototype.detachSelectionChanged = function(fnFunction, oListener) {
|
|
@@ -1918,6 +2051,7 @@ sap.ui.define([
|
|
|
1918
2051
|
* @param {int} oParameters.leadIndex Lead selection index
|
|
1919
2052
|
* @param {int[]} [oParameters.rowIndices] Other selected indices (if available)
|
|
1920
2053
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
2054
|
+
*
|
|
1921
2055
|
* @protected
|
|
1922
2056
|
*/
|
|
1923
2057
|
TreeBindingAdapter.prototype.fireSelectionChanged = function(oParameters) {
|
package/src/sap/ui/model/Type.js
CHANGED
|
@@ -29,7 +29,7 @@ sap.ui.define(['sap/ui/model/BindingMode', 'sap/ui/model/ClientModel', 'sap/ui/m
|
|
|
29
29
|
* @extends sap.ui.model.ClientModel
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.103.0
|
|
33
33
|
*
|
|
34
34
|
* @param {sap.ui.core.message.MessageManager} oMessageManager The MessageManager instance
|
|
35
35
|
* @public
|
|
@@ -19,6 +19,7 @@ sap.ui.define(['sap/ui/model/TreeBinding', './v2/ODataTreeBinding', 'sap/ui/mode
|
|
|
19
19
|
* @alias sap.ui.model.odata.ODataTreeBindingAdapter
|
|
20
20
|
* @function
|
|
21
21
|
* @experimental This module is only for experimental and internal use!
|
|
22
|
+
*
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
25
|
var ODataTreeBindingAdapter = function() {
|
|
@@ -74,6 +75,7 @@ sap.ui.define(['sap/ui/model/TreeBinding', './v2/ODataTreeBinding', 'sap/ui/mode
|
|
|
74
75
|
* @returns {boolean} Whether the node has children
|
|
75
76
|
*
|
|
76
77
|
* @private
|
|
78
|
+
* @ui5-restricted sap.ui.table.AnalyticalTable, sap.ui.table.TreeTable
|
|
77
79
|
*/
|
|
78
80
|
ODataTreeBindingAdapter.prototype.nodeHasChildren = function(oNode) {
|
|
79
81
|
assert(oNode, "ODataTreeBindingAdapter.nodeHasChildren: No node given!");
|
|
@@ -180,6 +182,9 @@ sap.ui.define(['sap/ui/model/TreeBinding', './v2/ODataTreeBinding', 'sap/ui/mode
|
|
|
180
182
|
* @param {int} iLevel the level to which the data should be expanded
|
|
181
183
|
* @param {boolean} bSuppressChange if set to true, no change event will be fired
|
|
182
184
|
* @return {Promise} A promise resolving once the expansion process has been completed
|
|
185
|
+
*
|
|
186
|
+
* @public
|
|
187
|
+
* @see sap.ui.model.odata.v2.ODataTreeBinding#expandNodeToLevel
|
|
183
188
|
*/
|
|
184
189
|
ODataTreeBindingAdapter.prototype.expandNodeToLevel = function (iIndex, iLevel, bSuppressChange) {
|
|
185
190
|
var that = this;
|
|
@@ -294,6 +299,7 @@ sap.ui.define(['sap/ui/model/TreeBinding', './v2/ODataTreeBinding', 'sap/ui/mode
|
|
|
294
299
|
*
|
|
295
300
|
* @name sap.ui.model.odata.ODataTreeBindingAdapter#getCurrentTreeState
|
|
296
301
|
* @function
|
|
302
|
+
*
|
|
297
303
|
* @public
|
|
298
304
|
*/
|
|
299
305
|
|