@openui5/sap.ui.core 1.105.1 → 1.107.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/.reuse/dep5 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +1 -1
- package/src/jquery.sap.dom.js +10 -10
- package/src/jquery.sap.global.js +24 -216
- package/src/jquery.sap.history.js +1 -1
- package/src/jquery.sap.properties.js +2 -2
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +4 -4
- package/src/jquery.sap.ui.js +5 -7
- package/src/sap/base/i18n/ResourceBundle.js +7 -11
- package/src/sap/base/util/LoaderExtensions.js +6 -6
- package/src/sap/base/util/ObjectPath.js +1 -1
- package/src/sap/base/util/Properties.js +1 -1
- package/src/sap/base/util/fetch.js +8 -10
- package/src/sap/base/util/mixedFetch.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/base/util/syncFetch.js +9 -16
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +7 -14
- package/src/sap/ui/VersionInfo.js +57 -54
- package/src/sap/ui/base/BindingInfo.js +198 -0
- package/src/sap/ui/base/DataType.js +5 -5
- package/src/sap/ui/base/Event.js +2 -2
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +209 -979
- package/src/sap/ui/base/ManagedObjectMetadata.js +6 -6
- package/src/sap/ui/base/ManagedObjectRegistry.js +4 -3
- 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 +13 -9
- package/src/sap/ui/core/AppCacheBuster.js +3 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/BusyIndicatorUtils.js +5 -6
- package/src/sap/ui/core/CalendarType.js +0 -1
- package/src/sap/ui/core/Component.js +16 -14
- package/src/sap/ui/core/ComponentContainer.js +6 -5
- package/src/sap/ui/core/ComponentMetadata.js +5 -12
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +525 -336
- package/src/sap/ui/core/Control.js +7 -7
- package/src/sap/ui/core/Core.js +102 -422
- 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 +65 -9
- 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/FocusHandler.js +79 -9
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -2
- package/src/sap/ui/core/IconPool.js +8 -8
- package/src/sap/ui/core/IndicationColorSupport.js +2 -2
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -2
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +5 -5
- package/src/sap/ui/core/Item.js +1 -2
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -2
- package/src/sap/ui/core/ListItem.js +1 -2
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -2
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +15 -13
- package/src/sap/ui/core/Manifest.js +8 -6
- package/src/sap/ui/core/Message.js +4 -6
- package/src/sap/ui/core/Popup.js +63 -6
- package/src/sap/ui/core/RenderManager.js +13 -5
- package/src/sap/ui/core/Renderer.js +5 -4
- package/src/sap/ui/core/Rendering.js +251 -0
- package/src/sap/ui/core/ResizeHandler.js +7 -7
- package/src/sap/ui/core/ScrollBar.js +6 -9
- package/src/sap/ui/core/ScrollBarRenderer.js +3 -3
- package/src/sap/ui/core/SeparatorItem.js +1 -2
- package/src/sap/ui/core/Title.js +1 -2
- package/src/sap/ui/core/TooltipBase.js +12 -14
- package/src/sap/ui/core/UIArea.js +396 -129
- package/src/sap/ui/core/UIComponent.js +3 -4
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +2 -2
- package/src/sap/ui/core/VariantLayoutData.js +1 -2
- package/src/sap/ui/core/XMLComposite.js +2 -2
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +12 -10
- package/src/sap/ui/core/_ConfigurationProvider.js +187 -0
- package/src/sap/ui/core/cache/CacheManager.js +9 -8
- package/src/sap/ui/core/cache/LRUPersistentCache.js +4 -4
- package/src/sap/ui/core/cldr/es_BO.json +3 -3
- package/src/sap/ui/core/cldr/es_CL.json +3 -3
- package/src/sap/ui/core/cldr/es_MX.json +3 -3
- package/src/sap/ui/core/cldr/es_PE.json +3 -3
- package/src/sap/ui/core/cldr/es_UY.json +3 -3
- package/src/sap/ui/core/cldr/es_VE.json +2 -2
- package/src/sap/ui/core/date/Islamic.js +4 -4
- package/src/sap/ui/core/date/UniversalDate.js +8 -8
- package/src/sap/ui/core/date/UniversalDateUtils.js +3 -3
- package/src/sap/ui/core/delegate/ItemNavigation.js +5 -5
- package/src/sap/ui/core/delegate/ScrollEnablement.js +7 -6
- package/src/sap/ui/core/dnd/DragAndDrop.js +14 -9
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -2
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -2
- package/src/sap/ui/core/dnd/DragInfo.js +1 -2
- package/src/sap/ui/core/dnd/DropInfo.js +1 -2
- package/src/sap/ui/core/format/DateFormat.js +14 -7
- package/src/sap/ui/core/format/DateFormatTimezoneDisplay.js +0 -1
- package/src/sap/ui/core/format/FileSizeFormat.js +4 -3
- package/src/sap/ui/core/format/ListFormat.js +4 -3
- package/src/sap/ui/core/format/NumberFormat.js +7 -6
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +7 -6
- package/src/sap/ui/core/library.js +3 -55
- 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 +13 -23
- 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/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/mvc/Controller.js +8 -3
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +5 -3
- package/src/sap/ui/core/mvc/HTMLView.js +1 -2
- package/src/sap/ui/core/mvc/JSONView.js +1 -2
- package/src/sap/ui/core/mvc/JSView.js +2 -3
- package/src/sap/ui/core/mvc/TemplateView.js +1 -2
- package/src/sap/ui/core/mvc/View.js +21 -20
- package/src/sap/ui/core/mvc/ViewType.js +0 -1
- package/src/sap/ui/core/mvc/XMLView.js +18 -18
- 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/Router.js +1 -1
- package/src/sap/ui/core/routing/async/Target.js +4 -3
- package/src/sap/ui/core/rules/App.support.js +11 -13
- package/src/sap/ui/core/rules/Config.support.js +19 -17
- package/src/sap/ui/core/rules/CoreHelper.support.js +4 -4
- package/src/sap/ui/core/rules/Model.support.js +8 -8
- package/src/sap/ui/core/rules/Rendering.support.js +1 -1
- package/src/sap/ui/core/rules/Theming.support.js +8 -8
- package/src/sap/ui/core/rules/View.support.js +9 -9
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -2
- package/src/sap/ui/core/search/SearchProvider.js +1 -3
- 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/Hotkeys.js +2 -3
- 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/ToolsAPI.js +11 -13
- package/src/sap/ui/core/support/plugins/ControlTree.js +4 -4
- package/src/sap/ui/core/support/plugins/Debugging.js +3 -3
- 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 +2 -2
- package/src/sap/ui/core/support/support.html +1 -1
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +10 -8
- package/src/sap/ui/core/theming/Parameters.js +8 -15
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -2
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -4
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +6 -5
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -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 +48 -72
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +4 -3
- package/src/sap/ui/core/util/XMLPreprocessor.js +2 -2
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.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 +4 -4
- 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 +3 -3
- package/src/sap/ui/debug/DebugEnv.js +4 -4
- package/src/sap/ui/debug/PropertyList.css +1 -31
- package/src/sap/ui/debug/PropertyList.js +6 -250
- package/src/sap/ui/dom/getScrollbarSize.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -0
- package/src/sap/ui/events/jquery/EventSimulation.js +4 -4
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +3 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/Context.js +3 -0
- package/src/sap/ui/model/ContextBinding.js +1 -1
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/ListBinding.js +2 -2
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +871 -0
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +16 -5
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +2 -2
- package/src/sap/ui/model/Sorter.js +24 -19
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/TreeBindingAdapter.js +3 -7
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +5 -7
- package/src/sap/ui/model/json/JSONModel.js +9 -7
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/AnnotationHelper.js +4 -4
- package/src/sap/ui/model/odata/ODataAnnotations.js +5 -3
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +10 -10
- package/src/sap/ui/model/odata/ODataMetadata.js +5 -4
- package/src/sap/ui/model/odata/ODataModel.js +6 -5
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +0 -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 +5 -5
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +4 -3
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +25 -16
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +46 -28
- package/src/sap/ui/model/odata/v2/ODataModel.js +97 -39
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +5 -5
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +3 -3
- package/src/sap/ui/model/odata/v4/Context.js +109 -71
- package/src/sap/ui/model/odata/v4/ODataBinding.js +50 -7
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +88 -68
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +116 -81
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +23 -20
- package/src/sap/ui/model/odata/v4/ODataModel.js +350 -88
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +35 -9
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +15 -9
- package/src/sap/ui/model/odata/v4/ODataUtils.js +8 -5
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +45 -33
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +40 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +135 -81
- package/src/sap/ui/model/odata/v4/lib/_ConcatHelper.js +2 -3
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +179 -36
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +2 -3
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +26 -7
- package/src/sap/ui/model/resource/ResourceModel.js +8 -7
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +2 -2
- 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 +2 -2
- 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 +5 -4
- package/src/sap/ui/model/xml/XMLModel.js +8 -6
- package/src/sap/ui/performance/trace/Interaction.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/Opa.js +7 -5
- package/src/sap/ui/test/Opa5.js +9 -15
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/RecorderHotkeyListener.js +1 -1
- package/src/sap/ui/test/TestUtils.js +83 -1
- package/src/sap/ui/test/autowaiter/_autoWaiter.js +9 -0
- package/src/sap/ui/test/autowaiter/_cssAnimationWaiter.js +114 -0
- package/src/sap/ui/test/autowaiter/_cssTransitionWaiter.js +99 -0
- package/src/sap/ui/test/autowaiter/_jsAnimationWaiter.js +70 -0
- package/src/sap/ui/test/autowaiter/_resourceWaiter.js +3 -12
- package/src/sap/ui/test/autowaiter/_utils.js +13 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/matchers/Ancestor.js +1 -0
- package/src/sap/ui/test/matchers/Descendant.js +1 -0
- package/src/sap/ui/test/matchers/Sibling.js +1 -0
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -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.
|
|
33
|
+
* @version 1.107.0
|
|
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.
|
|
63
|
+
* @version 1.107.0
|
|
64
64
|
*/
|
|
65
65
|
var Stream = ODataType.extend("sap.ui.model.odata.type.Stream", {
|
|
66
66
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
* @extends sap.ui.model.odata.type.ODataType
|
|
111
111
|
* @public
|
|
112
112
|
* @since 1.37.0
|
|
113
|
-
* @version 1.
|
|
113
|
+
* @version 1.107.0
|
|
114
114
|
*/
|
|
115
115
|
var TimeOfDay = ODataType.extend("sap.ui.model.odata.type.TimeOfDay", {
|
|
116
116
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @extends sap.ui.model.type.Unit
|
|
64
64
|
* @public
|
|
65
65
|
* @since 1.63.0
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.107.0
|
|
67
67
|
*/
|
|
68
68
|
var Unit = BaseUnit.extend("sap.ui.model.odata.type.Unit", {
|
|
69
69
|
constructor : function (oFormatOptions, oConstraints, aDynamicFormatOptionNames) {
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
* @hideconstructor
|
|
61
61
|
* @public
|
|
62
62
|
* @since 1.93.0
|
|
63
|
-
* @version 1.
|
|
63
|
+
* @version 1.107.0
|
|
64
64
|
*/
|
|
65
65
|
var Context = BaseContext.extend("sap.ui.model.odata.v2.Context", {
|
|
66
66
|
constructor : function (oModel, sPath, sDeepPath, oCreatePromise, bInactive) {
|
|
@@ -129,7 +129,7 @@ sap.ui.define([
|
|
|
129
129
|
* the entity for this context has been stored in the back end, {@link #created} returns
|
|
130
130
|
* <code>undefined</code>.
|
|
131
131
|
*
|
|
132
|
-
* @returns {Promise}
|
|
132
|
+
* @returns {Promise<any|undefined>|undefined}
|
|
133
133
|
* A promise for a context which has been created via
|
|
134
134
|
* {@link sap.ui.model.odata.v2.ODataModel#createEntry} or
|
|
135
135
|
* {@link sap.ui.model.odata.v2.ODataListBinding#create}, otherwise <code>undefined</code>.
|
|
@@ -176,8 +176,8 @@ sap.ui.define([
|
|
|
176
176
|
* Defines whether to update all bindings after submitting this change operation,
|
|
177
177
|
* see {@link #setRefreshAfterChange}. If given, this overrules the model-wide
|
|
178
178
|
* <code>refreshAfterChange</code> flag for this operation only.
|
|
179
|
-
* @returns {Promise} A promise resolving with <code>undefined</code> in case of
|
|
180
|
-
* deletion or rejecting with an error in case the deletion failed
|
|
179
|
+
* @returns {Promise<undefined>} A promise resolving with <code>undefined</code> in case of
|
|
180
|
+
* successful deletion or rejecting with an error in case the deletion failed
|
|
181
181
|
* @throws {Error}
|
|
182
182
|
* If the given parameter map contains any other parameter than those documented above in case
|
|
183
183
|
* of a persistent context
|
|
@@ -308,7 +308,7 @@ sap.ui.define([
|
|
|
308
308
|
* "@$ui5.context.isTransient" instance annotation at the entity, see
|
|
309
309
|
* {@link sap.ui.model.odata.v2.ODataModel#getProperty} for details.
|
|
310
310
|
*
|
|
311
|
-
* @returns {boolean}
|
|
311
|
+
* @returns {boolean|undefined}
|
|
312
312
|
* <ul>
|
|
313
313
|
* <li><code>true</code>: if the context has been created via
|
|
314
314
|
* {@link sap.ui.model.odata.v2.ODataModel#createEntry} or
|
|
@@ -9,10 +9,11 @@ sap.ui.define([
|
|
|
9
9
|
"sap/base/assert",
|
|
10
10
|
"sap/base/util/extend",
|
|
11
11
|
"sap/ui/base/EventProvider",
|
|
12
|
+
"sap/ui/core/Configuration",
|
|
12
13
|
"sap/ui/core/cache/CacheManager",
|
|
13
14
|
"sap/ui/model/odata/AnnotationParser",
|
|
14
15
|
"sap/ui/thirdparty/jquery"
|
|
15
|
-
], function(assert, extend, EventProvider, CacheManager, AnnotationParser, jQuery) {
|
|
16
|
+
], function(assert, extend, EventProvider, Configuration, CacheManager, AnnotationParser, jQuery) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
18
19
|
///////////////////////////////////////////////// Class Definition /////////////////////////////////////////////////
|
|
@@ -35,7 +36,7 @@ sap.ui.define([
|
|
|
35
36
|
* @class Annotation loader for OData V2 services
|
|
36
37
|
*
|
|
37
38
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
39
|
+
* @version 1.107.0
|
|
39
40
|
*
|
|
40
41
|
* @public
|
|
41
42
|
* @since 1.37.0
|
|
@@ -836,7 +837,7 @@ sap.ui.define([
|
|
|
836
837
|
ODataAnnotations.prototype._getHeaders = function() {
|
|
837
838
|
//The 'sap-cancel-on-close' header marks the OData annotation request as cancelable. This helps to save resources at the back-end.
|
|
838
839
|
return extend({"sap-cancel-on-close": true}, this.getHeaders(), {
|
|
839
|
-
"Accept-Language":
|
|
840
|
+
"Accept-Language": Configuration.getLanguageTag() // Always overwrite
|
|
840
841
|
});
|
|
841
842
|
};
|
|
842
843
|
|
|
@@ -15,26 +15,35 @@ sap.ui.define([
|
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Constructor for odata.ODataContextBinding
|
|
19
|
-
*
|
|
20
18
|
* @class
|
|
21
|
-
*
|
|
19
|
+
* Context binding for an OData V2 model.
|
|
22
20
|
*
|
|
23
|
-
* @param {sap.ui.model.
|
|
24
|
-
* @param {string} sPath
|
|
25
|
-
* @param {sap.ui.model.Context} oContext
|
|
21
|
+
* @param {sap.ui.model.odata.v2.ODataModel} oModel The OData V2 model
|
|
22
|
+
* @param {string} sPath The binding path in the model
|
|
23
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
24
|
+
* The context which is required as base for a relative path.
|
|
26
25
|
* @param {object} [mParameters] A map which contains additional parameters for the binding.
|
|
27
|
-
* @param {string} [mParameters.expand] For the OData <code>$expand</code> query option parameter which should be included in the request
|
|
28
|
-
* @param {string} [mParameters.select] For the OData <code>$select</code> query option parameter which should be included in the request
|
|
29
|
-
* @param {Object<string,string>} [mParameters.custom] An optional map of custom query parameters. Custom parameters must not start with <code>$</code>.
|
|
30
26
|
* @param {boolean} [mParameters.createPreliminaryContext]
|
|
31
|
-
* Whether a preliminary context
|
|
27
|
+
* Whether a preliminary context is created
|
|
28
|
+
* @param {Object<string,string>} [mParameters.custom]
|
|
29
|
+
* An optional map of custom query parameters. Custom parameters must not start with
|
|
30
|
+
* <code>$</code>.
|
|
31
|
+
* @param {string} [mParameters.expand]
|
|
32
|
+
* Value for the OData <code>$expand</code> query option parameter which is included in the
|
|
33
|
+
* request after URL encoding of the given value.
|
|
34
|
+
* @param {string} [mParameters.groupId]
|
|
35
|
+
* The group id to be used for requests originating from the binding
|
|
36
|
+
* @param {string} [mParameters.select]
|
|
37
|
+
* Value for the OData <code>$select</code> query option parameter which is included in the
|
|
38
|
+
* request after URL encoding of the given value.
|
|
32
39
|
* @param {boolean} [mParameters.usePreliminaryContext]
|
|
33
|
-
* Whether a preliminary context
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
40
|
+
* Whether a preliminary context is used. When set to <code>true</code>, the model can bundle
|
|
41
|
+
* the OData calls for dependent bindings into fewer $batch requests. For more information,
|
|
42
|
+
* see {@link topic:6c47b2b39db9404582994070ec3d57a2#loio62149734b5c24507868e722fe87a75db
|
|
43
|
+
* Optimizing Dependent Bindings}.
|
|
44
|
+
* @param {string} [mParameters.batchGroupId]
|
|
45
|
+
* <b>Deprecated</b>, use <code>groupId</code> instead. Sets the batch group id to be used for
|
|
46
|
+
* requests originating from the binding.
|
|
38
47
|
* @public
|
|
39
48
|
* @alias sap.ui.model.odata.v2.ODataContextBinding
|
|
40
49
|
* @extends sap.ui.model.ContextBinding
|
|
@@ -59,7 +68,7 @@ sap.ui.define([
|
|
|
59
68
|
/**
|
|
60
69
|
* Returns the bound context.
|
|
61
70
|
*
|
|
62
|
-
* @returns {sap.ui.model.odata.v2.Context}
|
|
71
|
+
* @returns {sap.ui.model.odata.v2.Context|null}
|
|
63
72
|
* The context object used by this context binding or <code>null</code>
|
|
64
73
|
* @function
|
|
65
74
|
* @name sap.ui.model.odata.v2.ODataContextBinding#getBoundContext
|
|
@@ -35,43 +35,61 @@ sap.ui.define([
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @class
|
|
38
|
-
* List binding
|
|
39
|
-
*
|
|
40
|
-
* @param {sap.ui.model.odata.v2.ODataModel} oModel
|
|
41
|
-
* @param {string} sPath
|
|
42
|
-
* @param {sap.ui.model.Context} oContext
|
|
43
|
-
*
|
|
44
|
-
* @param {sap.ui.model.
|
|
45
|
-
*
|
|
46
|
-
* @param {
|
|
47
|
-
*
|
|
48
|
-
*
|
|
38
|
+
* List binding for an OData V2 model.
|
|
39
|
+
*
|
|
40
|
+
* @param {sap.ui.model.odata.v2.ODataModel} oModel The OData V2 model
|
|
41
|
+
* @param {string} sPath The binding path in the model
|
|
42
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
43
|
+
* The context which is required as base for a relative path.
|
|
44
|
+
* @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} [aSorters]
|
|
45
|
+
* Initial sort order, can be either a sorter or an array of sorters.
|
|
46
|
+
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} [aFilters]
|
|
47
|
+
* Predefined filters, can be either a filter or an array of filters.
|
|
48
|
+
* @param {object} [mParameters] A map which contains additional parameters for the binding.
|
|
49
|
+
* @param {sap.ui.model.odata.CountMode} [mParameters.countMode]
|
|
50
|
+
* Defines the count mode of the binding; if not specified, the default count mode of the
|
|
51
|
+
* <code>oModel</code> is applied.
|
|
49
52
|
* @param {string} [mParameters.createdEntitiesKey=""]
|
|
50
|
-
* A key used in combination with the resolved path of
|
|
51
|
-
* created by
|
|
53
|
+
* A key used in combination with the resolved path of the binding to identify the entities
|
|
54
|
+
* created by the binding's {@link #create} method.
|
|
52
55
|
*
|
|
53
56
|
* <b>Note:</b> Different controls or control aggregation bindings to the same collection must
|
|
54
57
|
* have different <code>createdEntitiesKey</code> values.
|
|
55
|
-
* @param {Object<string,string>} [mParameters.custom]
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* @param {
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
58
|
+
* @param {Object<string,string>} [mParameters.custom]
|
|
59
|
+
* An optional map of custom query parameters. Custom parameters must not start with
|
|
60
|
+
* <code>$</code>.
|
|
61
|
+
* @param {string} [mParameters.expand]
|
|
62
|
+
* Value for the OData <code>$expand</code> query option parameter which is included in the
|
|
63
|
+
* data request after URL encoding of the given value.
|
|
64
|
+
* @param {boolean} [mParameters.faultTolerant]
|
|
65
|
+
* Turns on the fault tolerance mode, data is not reset if a back-end request returns an
|
|
66
|
+
* error.
|
|
67
|
+
* @param {string} [mParameters.groupId]
|
|
68
|
+
* The group id to be used for requests originating from the binding
|
|
69
|
+
* @param {sap.ui.model.odata.OperationMode} [mParameters.operationMode]
|
|
70
|
+
* The operation mode of the binding
|
|
71
|
+
* @param {string} [mParameters.select]
|
|
72
|
+
* Value for the OData <code>$select</code> query option parameter which is included in the
|
|
73
|
+
* data request after URL encoding of the given value.
|
|
64
74
|
* @param {boolean} [mParameters.transitionMessagesOnly]
|
|
65
|
-
* Whether
|
|
75
|
+
* Whether the list binding only requests transition messages from the back end. If messages
|
|
66
76
|
* for entities of this collection need to be updated, use
|
|
67
|
-
* {@link sap.ui.model.odata.v2.ODataModel#read} on the parent entity corresponding to
|
|
68
|
-
* list binding's context with the parameter <code>updateAggregatedMessages</code> set to
|
|
77
|
+
* {@link sap.ui.model.odata.v2.ODataModel#read} on the parent entity corresponding to the
|
|
78
|
+
* list binding's context, with the parameter <code>updateAggregatedMessages</code> set to
|
|
69
79
|
* <code>true</code>.
|
|
70
80
|
* @param {boolean} [mParameters.usePreliminaryContext]
|
|
71
|
-
* Whether a preliminary context
|
|
81
|
+
* Whether a preliminary context is used. When set to <code>true</code>, the model can
|
|
72
82
|
* bundle the OData calls for dependent bindings into fewer $batch requests. For more
|
|
73
83
|
* information, see
|
|
74
|
-
* {@link topic:6c47b2b39db9404582994070ec3d57a2#loio62149734b5c24507868e722fe87a75db
|
|
84
|
+
* {@link topic:6c47b2b39db9404582994070ec3d57a2#loio62149734b5c24507868e722fe87a75db
|
|
85
|
+
* Optimizing Dependent Bindings}.
|
|
86
|
+
* @param {string} [mParameters.batchGroupId]
|
|
87
|
+
* <b>Deprecated</b>, use <code>groupId</code> instead. Sets the batch group id to be used for
|
|
88
|
+
* requests originating from the binding.
|
|
89
|
+
* @param {int} [mParameters.threshold]
|
|
90
|
+
* Deprecated since 1.102.0, as {@link sap.ui.model.odata.OperationMode.Auto} is deprecated;
|
|
91
|
+
* the threshold that defines how many entries should be fetched at least by the binding if
|
|
92
|
+
* <code>operationMode</code> is set to <code>Auto</code>.
|
|
75
93
|
* @public
|
|
76
94
|
* @alias sap.ui.model.odata.v2.ODataListBinding
|
|
77
95
|
* @extends sap.ui.model.ListBinding
|
|
@@ -1973,7 +1991,7 @@ sap.ui.define([
|
|
|
1973
1991
|
* A callback function to filter only relevant messages. The callback returns whether the
|
|
1974
1992
|
* given {@link sap.ui.core.message.Message} is considered. If no callback function is given,
|
|
1975
1993
|
* all messages are considered.
|
|
1976
|
-
* @returns {Promise<sap.ui.model.Filter>}
|
|
1994
|
+
* @returns {Promise<sap.ui.model.Filter|null>}
|
|
1977
1995
|
* A Promise that resolves with a {@link sap.ui.model.Filter} representing the entries with
|
|
1978
1996
|
* messages; it resolves with <code>null</code> if the binding is not resolved or if there is
|
|
1979
1997
|
* no message for any entry
|
|
@@ -33,6 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
"sap/base/util/uid",
|
|
34
34
|
"sap/base/util/UriParameters",
|
|
35
35
|
"sap/ui/base/SyncPromise",
|
|
36
|
+
"sap/ui/core/Configuration",
|
|
36
37
|
"sap/ui/core/library",
|
|
37
38
|
"sap/ui/core/message/Message",
|
|
38
39
|
"sap/ui/core/message/MessageParser",
|
|
@@ -55,10 +56,10 @@ sap.ui.define([
|
|
|
55
56
|
"sap/ui/util/isCrossOriginURL"
|
|
56
57
|
], function(_CreatedContextsCache, Context, ODataAnnotations, ODataContextBinding, ODataListBinding,
|
|
57
58
|
ODataTreeBinding, assert, Log, encodeURL, deepEqual, deepExtend, each, extend,
|
|
58
|
-
isEmptyObject, isPlainObject, merge, uid, UriParameters, SyncPromise,
|
|
59
|
-
MessageParser, _Helper, BindingMode, BaseContext, FilterProcessor,
|
|
60
|
-
MessageScope, ODataMetadata, ODataMetaModel, ODataMessageParser,
|
|
61
|
-
ODataUtils, OperationMode, UpdateMethod, OData, URI, isCrossOriginURL
|
|
59
|
+
isEmptyObject, isPlainObject, merge, uid, UriParameters, SyncPromise, Configuration,
|
|
60
|
+
coreLibrary, Message, MessageParser, _Helper, BindingMode, BaseContext, FilterProcessor,
|
|
61
|
+
Model, CountMode, MessageScope, ODataMetadata, ODataMetaModel, ODataMessageParser,
|
|
62
|
+
ODataPropertyBinding, ODataUtils, OperationMode, UpdateMethod, OData, URI, isCrossOriginURL
|
|
62
63
|
) {
|
|
63
64
|
|
|
64
65
|
"use strict";
|
|
@@ -203,7 +204,7 @@ sap.ui.define([
|
|
|
203
204
|
* This model is not prepared to be inherited from.
|
|
204
205
|
*
|
|
205
206
|
* @author SAP SE
|
|
206
|
-
* @version 1.
|
|
207
|
+
* @version 1.107.0
|
|
207
208
|
*
|
|
208
209
|
* @public
|
|
209
210
|
* @alias sap.ui.model.odata.v2.ODataModel
|
|
@@ -386,7 +387,7 @@ sap.ui.define([
|
|
|
386
387
|
this.sUser = sUser;
|
|
387
388
|
this.sPassword = sPassword;
|
|
388
389
|
|
|
389
|
-
if (
|
|
390
|
+
if (Configuration.getStatisticsEnabled()) {
|
|
390
391
|
// add statistics parameter to every request (supported only on Gateway servers)
|
|
391
392
|
this.aUrlParams.push("sap-statistics=true");
|
|
392
393
|
}
|
|
@@ -486,7 +487,7 @@ sap.ui.define([
|
|
|
486
487
|
this.securityTokenAvailable();
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
|
-
this.oHeaders["Accept-Language"] =
|
|
490
|
+
this.oHeaders["Accept-Language"] = Configuration.getLanguageTag();
|
|
490
491
|
|
|
491
492
|
// set version to 2.0 because 1.0 does not support e.g. skip/top, inlinecount...
|
|
492
493
|
// states the version of the Open Data Protocol used by the client to generate the request.
|
|
@@ -1997,31 +1998,59 @@ sap.ui.define([
|
|
|
1997
1998
|
/**
|
|
1998
1999
|
* Creates a new list binding for this model.
|
|
1999
2000
|
*
|
|
2000
|
-
* @param {string} sPath
|
|
2001
|
-
* @param {sap.ui.model.Context} [oContext]
|
|
2002
|
-
*
|
|
2003
|
-
* @param {sap.ui.model.
|
|
2004
|
-
*
|
|
2005
|
-
* @param {
|
|
2006
|
-
*
|
|
2007
|
-
* @param {
|
|
2008
|
-
* @param {sap.ui.model.odata.CountMode} [mParameters.countMode]
|
|
2009
|
-
*
|
|
2001
|
+
* @param {string} sPath The binding path in the model
|
|
2002
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
2003
|
+
* The context which is required as base for a relative path.
|
|
2004
|
+
* @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} [aSorters]
|
|
2005
|
+
* Initial sort order, can be either a sorter or an array of sorters.
|
|
2006
|
+
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} [aFilters]
|
|
2007
|
+
* Predefined filters, can be either a filter or an array of filters.
|
|
2008
|
+
* @param {object} [mParameters] A map which contains additional parameters for the binding.
|
|
2009
|
+
* @param {sap.ui.model.odata.CountMode} [mParameters.countMode]
|
|
2010
|
+
* Defines the count mode of the binding; if not specified, the default count mode of the
|
|
2011
|
+
* <code>oModel</code> is applied.
|
|
2010
2012
|
* @param {string} [mParameters.createdEntitiesKey=""]
|
|
2011
2013
|
* A key used in combination with the resolved path of the binding to identify the entities
|
|
2012
|
-
* created
|
|
2014
|
+
* created by the binding's {@link #create} method.
|
|
2013
2015
|
*
|
|
2014
2016
|
* <b>Note:</b> Different controls or control aggregation bindings to the same collection must
|
|
2015
2017
|
* have different <code>createdEntitiesKey</code> values.
|
|
2016
|
-
* @param {
|
|
2017
|
-
*
|
|
2018
|
-
*
|
|
2019
|
-
* @param {string} [mParameters.
|
|
2018
|
+
* @param {Object<string,string>} [mParameters.custom]
|
|
2019
|
+
* An optional map of custom query parameters. Custom parameters must not start with
|
|
2020
|
+
* <code>$</code>.
|
|
2021
|
+
* @param {string} [mParameters.expand]
|
|
2022
|
+
* Value for the OData <code>$expand</code> query option parameter which is included in the
|
|
2023
|
+
* data request after URL encoding of the given value.
|
|
2024
|
+
* @param {boolean} [mParameters.faultTolerant]
|
|
2025
|
+
* Turns on the fault tolerance mode, data is not reset if a back-end request returns an
|
|
2026
|
+
* error.
|
|
2027
|
+
* @param {string} [mParameters.groupId]
|
|
2028
|
+
* The group id to be used for requests originating from the binding
|
|
2029
|
+
* @param {sap.ui.model.odata.OperationMode} [mParameters.operationMode]
|
|
2030
|
+
* The operation mode of the binding
|
|
2031
|
+
* @param {string} [mParameters.select]
|
|
2032
|
+
* Value for the OData <code>$select</code> query option parameter which is included in the
|
|
2033
|
+
* data request after URL encoding of the given value.
|
|
2034
|
+
* @param {boolean} [mParameters.transitionMessagesOnly]
|
|
2035
|
+
* Whether the list binding only requests transition messages from the back end. If messages
|
|
2036
|
+
* for entities of this collection need to be updated, use
|
|
2037
|
+
* {@link sap.ui.model.odata.v2.ODataModel#read} on the parent entity corresponding to the
|
|
2038
|
+
* list binding's context, with the parameter <code>updateAggregatedMessages</code> set to
|
|
2039
|
+
* <code>true</code>.
|
|
2040
|
+
* @param {boolean} [mParameters.usePreliminaryContext]
|
|
2041
|
+
* Whether a preliminary context is used. When set to <code>true</code>, the model can
|
|
2042
|
+
* bundle the OData calls for dependent bindings into fewer $batch requests. For more
|
|
2043
|
+
* information, see
|
|
2044
|
+
* {@link topic:6c47b2b39db9404582994070ec3d57a2#loio62149734b5c24507868e722fe87a75db
|
|
2045
|
+
* Optimizing Dependent Bindings}.
|
|
2046
|
+
* @param {string} [mParameters.batchGroupId]
|
|
2047
|
+
* <b>Deprecated</b>, use <code>groupId</code> instead. Sets the batch group id to be used for
|
|
2048
|
+
* requests originating from the binding.
|
|
2020
2049
|
* @param {int} [mParameters.threshold]
|
|
2021
2050
|
* Deprecated since 1.102.0, as {@link sap.ui.model.odata.OperationMode.Auto} is deprecated;
|
|
2022
2051
|
* the threshold that defines how many entries should be fetched at least by the binding if
|
|
2023
|
-
* <code>operationMode</code> is set to <code>Auto</code
|
|
2024
|
-
* @returns {sap.ui.model.
|
|
2052
|
+
* <code>operationMode</code> is set to <code>Auto</code>.
|
|
2053
|
+
* @returns {sap.ui.model.odata.v2.ODataListBinding} The new list binding
|
|
2025
2054
|
* @see sap.ui.model.Model.prototype.bindList
|
|
2026
2055
|
* @public
|
|
2027
2056
|
*/
|
|
@@ -2169,7 +2198,7 @@ sap.ui.define([
|
|
|
2169
2198
|
* @returns {sap.ui.model.odata.v2.ODataTreeBinding}
|
|
2170
2199
|
* The new tree binding
|
|
2171
2200
|
* @public
|
|
2172
|
-
* @see {@link
|
|
2201
|
+
* @see {@link http://www.sap.com/protocols/SAPData
|
|
2173
2202
|
* "SAP Annotations for OData Version 2.0" Specification}
|
|
2174
2203
|
*/
|
|
2175
2204
|
ODataModel.prototype.bindTree = function(sPath, oContext, vFilters, mParameters, vSorters) {
|
|
@@ -2650,13 +2679,35 @@ sap.ui.define([
|
|
|
2650
2679
|
};
|
|
2651
2680
|
|
|
2652
2681
|
/**
|
|
2653
|
-
* Creates
|
|
2682
|
+
* Creates a context binding for this model.
|
|
2654
2683
|
*
|
|
2684
|
+
* @param {string} sPath The binding path in the model
|
|
2685
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
2686
|
+
* The context which is required as base for a relative path.
|
|
2687
|
+
* @param {object} [mParameters] A map which contains additional parameters for the binding.
|
|
2688
|
+
* @param {boolean} [mParameters.createPreliminaryContext]
|
|
2689
|
+
* Whether a preliminary context is created
|
|
2690
|
+
* @param {Object<string,string>} [mParameters.custom]
|
|
2691
|
+
* An optional map of custom query parameters. Custom parameters must not start with
|
|
2692
|
+
* <code>$</code>.
|
|
2693
|
+
* @param {string} [mParameters.expand]
|
|
2694
|
+
* Value for the OData <code>$expand</code> query option parameter which is included in the
|
|
2695
|
+
* request after URL encoding of the given value.
|
|
2696
|
+
* @param {string} [mParameters.groupId]
|
|
2697
|
+
* The group id to be used for requests originating from the binding
|
|
2698
|
+
* @param {string} [mParameters.select]
|
|
2699
|
+
* Value for the OData <code>$select</code> query option parameter which is included in the
|
|
2700
|
+
* request after URL encoding of the given value.
|
|
2701
|
+
* @param {boolean} [mParameters.usePreliminaryContext]
|
|
2702
|
+
* Whether a preliminary context is used. When set to <code>true</code>, the model can bundle
|
|
2703
|
+
* the OData calls for dependent bindings into fewer $batch requests. For more information,
|
|
2704
|
+
* see {@link topic:6c47b2b39db9404582994070ec3d57a2#loio62149734b5c24507868e722fe87a75db
|
|
2705
|
+
* Optimizing Dependent Bindings}.
|
|
2706
|
+
* @param {string} [mParameters.batchGroupId]
|
|
2707
|
+
* <b>Deprecated</b>, use <code>groupId</code> instead. Sets the batch group id to be used for
|
|
2708
|
+
* requests originating from the binding.
|
|
2709
|
+
* @returns {sap.ui.model.odata.v2.ODataContextBinding} The new context binding
|
|
2655
2710
|
* @see sap.ui.model.Model.prototype.bindContext
|
|
2656
|
-
* @param {string} sPath Resolved path
|
|
2657
|
-
* @param {sap.ui.model.Context} oContext Context object
|
|
2658
|
-
* @param {Object<string,any>} [mParameters] Map of parameters
|
|
2659
|
-
* @returns {sap.ui.model.ContextBinding} The new context binding
|
|
2660
2711
|
* @public
|
|
2661
2712
|
*/
|
|
2662
2713
|
ODataModel.prototype.bindContext = function(sPath, oContext, mParameters) {
|
|
@@ -2771,7 +2822,7 @@ sap.ui.define([
|
|
|
2771
2822
|
* <code>undefined</code> when the <code>vValue</code> can't be interpreted.
|
|
2772
2823
|
*
|
|
2773
2824
|
* @param {string|object|sap.ui.model.Context} vValue The canonical entry URI, the context or entry object
|
|
2774
|
-
* @returns {string} Key of the entry or <code>undefined</code>
|
|
2825
|
+
* @returns {string|undefined} Key of the entry or <code>undefined</code>
|
|
2775
2826
|
* @public
|
|
2776
2827
|
*/
|
|
2777
2828
|
ODataModel.prototype.getKey = function(vValue) {
|
|
@@ -2916,7 +2967,7 @@ sap.ui.define([
|
|
|
2916
2967
|
* Comma-separated list of properties or paths to properties to select
|
|
2917
2968
|
* @param {string} [mParameters.expand]
|
|
2918
2969
|
* Comma-separated list of navigation properties or paths to navigation properties to expand
|
|
2919
|
-
* @returns {any}
|
|
2970
|
+
* @returns {any|undefined}
|
|
2920
2971
|
* The value for the given path and context or <code>undefined</code> if data or entity type
|
|
2921
2972
|
* cannot be found or if not all selected properties are available
|
|
2922
2973
|
*
|
|
@@ -4767,7 +4818,7 @@ sap.ui.define([
|
|
|
4767
4818
|
* @param {sap.ui.model.Context} [oContext] The binding context
|
|
4768
4819
|
* @param {object} [oEntity] The entity data
|
|
4769
4820
|
*
|
|
4770
|
-
* @returns {string} The found ETag (or <code>null</code> if none could be found)
|
|
4821
|
+
* @returns {string|null} The found ETag (or <code>null</code> if none could be found)
|
|
4771
4822
|
* @public
|
|
4772
4823
|
*/
|
|
4773
4824
|
ODataModel.prototype.getETag = function(sPath, oContext, oEntity) {
|
|
@@ -7220,16 +7271,21 @@ sap.ui.define([
|
|
|
7220
7271
|
};
|
|
7221
7272
|
|
|
7222
7273
|
/**
|
|
7223
|
-
*
|
|
7274
|
+
* Whether all affected bindings are refreshed after a change operation.
|
|
7275
|
+
*
|
|
7276
|
+
* This flag can be overruled on request level by providing the <code>refreshAfterChange</code>
|
|
7277
|
+
* parameter to the corresponding function (for example {@link #update}).
|
|
7278
|
+
*
|
|
7279
|
+
* @returns {boolean} Whether to automatically refresh after changes
|
|
7224
7280
|
* @public
|
|
7225
7281
|
* @since 1.46.0
|
|
7226
7282
|
*/
|
|
7227
|
-
ODataModel.prototype.getRefreshAfterChange = function() {
|
|
7283
|
+
ODataModel.prototype.getRefreshAfterChange = function () {
|
|
7228
7284
|
return this.bRefreshAfterChange;
|
|
7229
7285
|
};
|
|
7230
7286
|
|
|
7231
7287
|
/**
|
|
7232
|
-
* Defines whether all bindings are
|
|
7288
|
+
* Defines whether all affected bindings are refreshed after a change operation.
|
|
7233
7289
|
*
|
|
7234
7290
|
* This flag can be overruled on request level by providing the <code>refreshAfterChange</code>
|
|
7235
7291
|
* parameter to the corresponding function (for example {@link #update}).
|
|
@@ -7238,7 +7294,7 @@ sap.ui.define([
|
|
|
7238
7294
|
* @public
|
|
7239
7295
|
* @since 1.16.3
|
|
7240
7296
|
*/
|
|
7241
|
-
ODataModel.prototype.setRefreshAfterChange = function(bRefreshAfterChange) {
|
|
7297
|
+
ODataModel.prototype.setRefreshAfterChange = function (bRefreshAfterChange) {
|
|
7242
7298
|
this.bRefreshAfterChange = bRefreshAfterChange;
|
|
7243
7299
|
};
|
|
7244
7300
|
|
|
@@ -7407,9 +7463,11 @@ sap.ui.define([
|
|
|
7407
7463
|
};
|
|
7408
7464
|
|
|
7409
7465
|
/**
|
|
7410
|
-
* Setting request groups as deferred.
|
|
7466
|
+
* Setting request groups as deferred. <b>Note:</b> This will overwrite existing deferred
|
|
7467
|
+
* groups, including the default group "changes".
|
|
7411
7468
|
*
|
|
7412
|
-
* Requests that belong to a deferred group will be sent by explicitly calling
|
|
7469
|
+
* Requests that belong to a deferred group will be sent by explicitly calling
|
|
7470
|
+
* {@link #submitChanges}.
|
|
7413
7471
|
*
|
|
7414
7472
|
* @param {array} aGroupIds Array of group IDs that should be set as deferred
|
|
7415
7473
|
* @public
|