@openui5/sap.ui.core 1.122.1 → 1.123.1
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/.dtsgenrc +7 -1
- package/.eslintrc.json +3 -0
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -17
- 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/future.js +3 -1
- package/src/sap/base/i18n/Formatting.js +119 -94
- 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 +7 -4
- package/src/sap/ui/base/BindingInfo.js +22 -0
- 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 +5 -14
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +15 -14
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +17 -16
- 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 +53 -18
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +58 -21
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +6 -2
- package/src/sap/ui/core/Fragment.js +10 -5
- 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 +37 -21
- 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 +7 -1
- package/src/sap/ui/core/Renderer.js +4 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +2 -2
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +37 -47
- 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/XMLTemplateProcessor.js +12 -0
- package/src/sap/ui/core/_IconRegistry.js +1 -0
- 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 +2 -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/NumberFormat.js +28 -3
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +6 -2
- 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 +12 -7
- 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/rules/CoreHelper.support.js +2 -3
- package/src/sap/ui/core/rules/Misc.support.js +3 -12
- package/src/sap/ui/core/rules/Theming.support.js +5 -9
- 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 -20
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/.theming +3 -1
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +5 -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 +2 -2
- package/src/sap/ui/core/util/ExportCell.js +2 -2
- package/src/sap/ui/core/util/ExportColumn.js +2 -2
- package/src/sap/ui/core/util/ExportRow.js +2 -2
- package/src/sap/ui/core/util/ExportType.js +2 -2
- package/src/sap/ui/core/util/ExportTypeCSV.js +2 -2
- 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/XMLPreprocessor.js +8 -13
- 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/dom/jquery/Aria.js +19 -0
- package/src/sap/ui/events/jquery/EventExtension.js +4 -3
- 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 +4 -4
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +22 -33
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +1 -1
- package/src/sap/ui/model/controlhelper/TreeBindingProxy.js +7 -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/AnnotationHelper.js +11 -8
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataExpressionAddons.js +21 -0
- 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 +17 -48
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +2 -0
- package/src/sap/ui/model/odata/v4/Context.js +66 -22
- package/src/sap/ui/model/odata/v4/ODataBinding.js +10 -11
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +207 -180
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +75 -52
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +9 -11
- package/src/sap/ui/model/odata/v4/ODataModel.js +34 -35
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +9 -9
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +20 -8
- package/src/sap/ui/model/odata/v4/SubmitMode.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +126 -46
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +56 -11
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +21 -34
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +16 -27
- package/src/sap/ui/model/odata/v4/lib/_MetadataConverter.js +2 -6
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Parser.js +6 -5
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +49 -38
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +75 -24
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +3 -4
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +4 -12
- package/src/sap/ui/model/odata/v4/lib/_V4MetadataConverter.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 +48 -4
- 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 +5 -4
- 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 +4 -1
- package/src/sap/ui/test/ModuleTracking.js +46 -0
- package/src/sap/ui/test/OpaBuilder.js +19 -19
- package/src/sap/ui/test/autowaiter/_jsAnimationWaiter.js +39 -6
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_enforceNoReturnValue.js +3 -1
- package/src/ui5loader-autoconfig.js +22 -16
- package/src/ui5loader.js +38 -1
- package/test/sap/ui/core/demokit/docuindex.json +17 -6
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/Controller.controller.js +30 -47
- package/test/sap/ui/core/demokit/sample/Messaging/BasicMessages/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicMessages/View.view.xml +135 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/Controller.controller.js +58 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/View.view.xml +57 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/mockserver.js +11 -13
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/manifest.json +2 -2
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/manifest.json +2 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/package.json +1 -1
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/Component.js +2 -2
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/App.controller.js +12 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/BaseController.js +41 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/controller/Employee.controller.js +54 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/controller/NotFound.controller.js +9 -11
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/fragment/MessagePopover.fragment.xml +13 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/i18n/i18n.properties +9 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/index.html +20 -0
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/index.js +16 -0
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockserver.js +27 -27
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/manifest.json +7 -4
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/view/App.view.xml +1 -1
- package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/view/Employee.view.xml +6 -6
- package/test/sap/ui/core/demokit/sample/Messaging/ODataBackendMessagesComp/webapp/view/NotFound.view.xml +13 -0
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Types.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/common/Helper.js +8 -9
- package/test/sap/ui/core/demokit/sample/common/SandboxModelHelper.js +1 -1
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithOPA5/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/Steps.js +4 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithUIComponent/GherkinTestRunner.html +2 -2
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v2/AutoExpand/AutoExpand.view.xml +1 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/ConsumeV2Service/Main.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/ObjectPage.controller.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Main.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/MIT.ListBinding.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Main.controller.js +5 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Main.view.xml +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/MIT.ListBindingTemplate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.view.xml +6 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/MusicArtists/ObjectPage.controller.js +5 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/MIT.Products.html +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/pages/Main.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +27 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/MIT.SalesOrderTP100.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/MIT.SalesOrderTP100.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.Basics.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderAdditionalTargets.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreateMultiple.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderCreateRelative.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/MIT.SalesOrderMessageHandling.html +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +5 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.view.xml +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/pages/Main.js +7 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/MessageHandling.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/MIT.RTA.html +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/MIT.SalesOrdersTemplate.html +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/MIT.Sticky.html +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Main.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/pages/Main.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/controller/App.controller.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/localService/mockserver.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/Products/Main.view.xml +1 -1
- package/test/sap/ui/core/qunit/CustomStyleClassSupport.qunit.js +12 -3
- package/test/sap/ui/core/qunit/CustomThemeFallback.qunit.js +33 -38
- package/test/sap/ui/core/qunit/CustomThemeFallback_unavoidablySync.qunit.js +119 -0
- package/test/sap/ui/core/qunit/EventBus.qunit.js +15 -0
- package/test/sap/ui/core/qunit/Lib_terminologies.qunit.js +109 -0
- package/test/sap/ui/core/qunit/StashedControlSupport_unavoidablySync.qunit.js +19 -0
- package/test/sap/ui/core/qunit/StashedControlSupport_unavoidablySync.view.xml +27 -0
- package/test/sap/ui/core/qunit/app/ThemeClassParameters.qunit.js +105 -140
- package/test/sap/ui/core/qunit/app/testsuite.app.qunit.js +75 -2
- package/test/sap/ui/core/qunit/base/Config.qunit.js +6 -2
- package/test/sap/ui/core/qunit/base/Config_bootstrap.qunit.html +4 -1
- package/test/sap/ui/core/qunit/base/Config_bootstrap.qunit.js +6 -2
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +6 -3
- package/test/sap/ui/core/qunit/base/Config_global.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_meta.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_noUrl.qunit.html +5 -2
- package/test/sap/ui/core/qunit/base/Config_noUrl.qunit.js +5 -1
- package/test/sap/ui/core/qunit/base/Config_url.qunit.html +5 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery-without-jquery-ui-position.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithNoJQuery.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/DebugMode.beforeBootstrap.qunit.js +7 -0
- package/test/sap/ui/core/qunit/bootstrap/DebugModeAsync.qunit.html +10 -4
- package/test/sap/ui/core/qunit/bootstrap/testsuite.bootstrap.qunit.js +7 -0
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +9 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessAmbiguous.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessDuplicate.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessFailing.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.html +2 -2
- package/test/sap/ui/core/qunit/gherkin/testHarnessTests.js +1 -1
- package/test/sap/ui/core/qunit/i18n/GenericLocaleData.qunit.js +1 -1
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +15 -15
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +7 -1
- package/test/sap/ui/core/qunit/loader/config.qunit.js +14 -6
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +288 -0
- package/test/sap/ui/core/qunit/model/controlhelper/TreeBindingProxy.qunit.js +12 -0
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +7 -2
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +225 -40
- package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBinding.qunit.js +78 -7
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +142 -17
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +93 -87
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +116 -86
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1828 -548
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.realOData.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +26 -23
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +9 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +251 -113
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +50 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +31 -11
- package/test/sap/ui/core/qunit/odata/v4/lib/_Parser.qunit.js +8 -2
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +46 -31
- package/test/sap/ui/core/qunit/odata/v4/lib/_TreeState.qunit.js +144 -45
- package/test/sap/ui/core/qunit/odata/v4/lib/_V2Requestor.qunit.js +5 -5
- package/test/sap/ui/core/qunit/odata/v4/lib/data/v2/QM_INSP_PLAN_SRV/metadata.xml +3 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/data/v2/QM_INSP_PLAN_SRV/metadata_only.xml +3 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_jsAnimationWaiter.js +82 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/i18n/i18n_fr.properties +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/i18n/terminologies/oil/i18n_fr.properties +2 -0
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/simple/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/testdata/uilib-custom-theme-fallback/themes/sap_hcb/library.css +3 -0
- package/test/sap/ui/core/qunit/testsuite.core.framework.qunit.js +19 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +14 -0
- package/test/sap/ui/core/qunit/types/NumberFormat.qunit.js +37 -20
- package/test/sap/ui/core/qunit/types/NumberFormatCurrencies.qunit.js +21 -0
- package/test/sap/ui/core/qunit/types/Types.qunit.js +126 -15
- package/test/sap/ui/core/qunit/ui5classes/ManagedObject.qunit.js +58 -4
- package/test/sap/ui/core/relnotes/changes-1.122.json +0 -22
- package/test/sap/ui/core/relnotes/changes-1.123.json +47 -0
- package/test/sap/ui/core/samples/databinding/DataBindingDeclarativeSyntax.js +55 -56
- package/test/sap/ui/core/samples/databinding/DatabindingDeclarativeSyntax.html +4 -4
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/firstItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/initial.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/lastItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/leftDownBtn-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/myButtonSample-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/rightDownBtn-contextMenu.ref.lnk +1 -1
- package/test/testsuite/js/testfwk.js +47 -64
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicMessages/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicMessages/View.view.xml +0 -136
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/Controller.controller.js +0 -74
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/BasicODataMessages/View.view.xml +0 -58
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +0 -11
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/App.controller.js +0 -14
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/BaseController.js +0 -55
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/controller/Employee.controller.js +0 -56
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/fragment/MessagePopover.fragment.xml +0 -13
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/i18n/i18n.properties +0 -5
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/index.html +0 -42
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/webapp/view/NotFound.view.xml +0 -11
- package/test/sap/ui/core/qunit/app/beforeBootstrap.js +0 -19
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +0 -24
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/metadata.xml +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/mockdata/Employees.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/localService/response/ODataErrorResponse.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/metadata.xml +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockdata/Employees.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/mockdata/Employees_3.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/response/ODataErrorResponseTemplate.json +0 -0
- /package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/ODataBackendMessagesComp/webapp/localService/response/SAP-Message-Header.json +0 -0
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @mixes sap.ui.model.odata.v4.ODataParentBinding
|
|
58
58
|
* @public
|
|
59
59
|
* @since 1.37.0
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.123.1
|
|
61
61
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
|
|
62
62
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
|
|
63
63
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getUpdateGroupId as #getUpdateGroupId
|
|
@@ -309,7 +309,7 @@ sap.ui.define([
|
|
|
309
309
|
};
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Applies the given map of parameters to this binding's parameters and
|
|
312
|
+
* Applies the given map of parameters to this binding's parameters and initiates the
|
|
313
313
|
* creation of a new cache if called with a change reason. Since 1.111.0, the header context is
|
|
314
314
|
* deselected.
|
|
315
315
|
*
|
|
@@ -426,7 +426,7 @@ sap.ui.define([
|
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* The 'createCompleted' event is fired when the back end has responded to a POST request
|
|
429
|
-
*
|
|
429
|
+
* initiated for a {@link #create} on this binding. For each 'createSent' event, a
|
|
430
430
|
* 'createCompleted' event is fired.
|
|
431
431
|
*
|
|
432
432
|
* @param {sap.ui.base.Event} oEvent The event object
|
|
@@ -445,7 +445,7 @@ sap.ui.define([
|
|
|
445
445
|
*/
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
|
-
* The 'createSent' event is fired when a POST request
|
|
448
|
+
* The 'createSent' event is fired when a POST request initiated for a {@link #create} on this
|
|
449
449
|
* binding is sent to the back end. For each 'createSent' event, a 'createCompleted' event is
|
|
450
450
|
* fired.
|
|
451
451
|
*
|
|
@@ -982,6 +982,7 @@ sap.ui.define([
|
|
|
982
982
|
|
|
983
983
|
oContext = Context.create(this.oModel, this, sTransientPath,
|
|
984
984
|
iChildIndex ?? -this.iCreatedContexts, oCreatePromise, bInactive);
|
|
985
|
+
oContext.setSelected(this.oHeaderContext.isSelected());
|
|
985
986
|
if (this.isTransient()) {
|
|
986
987
|
oContext.created().catch(this.oModel.getReporter());
|
|
987
988
|
}
|
|
@@ -1088,6 +1089,7 @@ sap.ui.define([
|
|
|
1088
1089
|
// oContext.checkUpdate(); // Note: no changes expected here
|
|
1089
1090
|
} else {
|
|
1090
1091
|
oContext = Context.create(oModel, this, sContextPath, i$skipIndex);
|
|
1092
|
+
oContext.setSelected(this.oHeaderContext.isSelected());
|
|
1091
1093
|
}
|
|
1092
1094
|
this.aContexts[iStart + i] = oContext;
|
|
1093
1095
|
}
|
|
@@ -1129,9 +1131,6 @@ sap.ui.define([
|
|
|
1129
1131
|
var bReset = false,
|
|
1130
1132
|
that = this;
|
|
1131
1133
|
|
|
1132
|
-
if (this.mParameters.$$aggregation && oContext.iIndex === undefined) {
|
|
1133
|
-
throw new Error("Unsupported kept-alive context: " + oContext);
|
|
1134
|
-
}
|
|
1135
1134
|
if (oContext.isDeleted()) {
|
|
1136
1135
|
return oContext.oDeletePromise; // do not delete twice
|
|
1137
1136
|
}
|
|
@@ -1378,10 +1377,9 @@ sap.ui.define([
|
|
|
1378
1377
|
oCache.setActive(false);
|
|
1379
1378
|
oCache = undefined; // create _AggregationCache instead of _CollectionCache
|
|
1380
1379
|
}
|
|
1381
|
-
oCache
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
this.bSharedRequest, this.isGrouped());
|
|
1380
|
+
oCache ??= _AggregationCache.create(this.oModel.oRequestor, sResourcePath,
|
|
1381
|
+
sDeepResourcePath, mQueryOptions, this.mParameters.$$aggregation,
|
|
1382
|
+
this.oModel.bAutoExpandSelect, this.bSharedRequest, this.isGrouped());
|
|
1385
1383
|
if (mKeptElementsByPredicate) {
|
|
1386
1384
|
aKeepAlivePredicates.forEach(function (sPredicate) {
|
|
1387
1385
|
oCache.addKeptElement(mKeptElementsByPredicate[sPredicate]);
|
|
@@ -1655,7 +1653,7 @@ sap.ui.define([
|
|
|
1655
1653
|
var iCount;
|
|
1656
1654
|
|
|
1657
1655
|
// aResult may be undefined e.g. in case of a missing $expand in parent binding
|
|
1658
|
-
aResult
|
|
1656
|
+
aResult ??= [];
|
|
1659
1657
|
iCount = aResult.$count;
|
|
1660
1658
|
aResult = aResult.slice(iIndex, iIndex + iLength);
|
|
1661
1659
|
aResult.$count = iCount;
|
|
@@ -1936,7 +1934,7 @@ sap.ui.define([
|
|
|
1936
1934
|
* @param {sap.ui.model.odata.v4.ODataPropertyBinding} [oListener]
|
|
1937
1935
|
* A property binding which registers itself as listener at the cache
|
|
1938
1936
|
* @param {boolean} [bCached]
|
|
1939
|
-
* Whether to return cached values only and not
|
|
1937
|
+
* Whether to return cached values only and not initiate a request
|
|
1940
1938
|
* @returns {sap.ui.base.SyncPromise}
|
|
1941
1939
|
* A promise on the outcome of the cache's <code>fetchValue</code> call; it is rejected in
|
|
1942
1940
|
* case cached values are asked for, but not found
|
|
@@ -2007,7 +2005,7 @@ sap.ui.define([
|
|
|
2007
2005
|
* <h4>Application and Control Filters</h4>
|
|
2008
2006
|
* Each list binding maintains two separate lists of filters, one for filters defined by the
|
|
2009
2007
|
* control that owns the binding, and another list for filters that an application can define in
|
|
2010
|
-
* addition. When
|
|
2008
|
+
* addition. When invoking the filter operation, both sets of filters are combined.
|
|
2011
2009
|
*
|
|
2012
2010
|
* By using the <code>sFilterType</code> parameter of the <code>filter</code> method, the
|
|
2013
2011
|
* caller can control which set of filters is modified.
|
|
@@ -2025,7 +2023,7 @@ sap.ui.define([
|
|
|
2025
2023
|
* this replaces the dynamic filters given in
|
|
2026
2024
|
* {@link sap.ui.model.odata.v4.ODataModel#bindList}. A nullish or missing value is treated as
|
|
2027
2025
|
* an empty array and thus removes all dynamic filters of the specified type. The filter
|
|
2028
|
-
*
|
|
2026
|
+
* applied to the list is created from the following parts, which are combined with a logical
|
|
2029
2027
|
* 'and':
|
|
2030
2028
|
* <ul>
|
|
2031
2029
|
* <li> Dynamic filters of type {@link sap.ui.model.FilterType.Application}
|
|
@@ -2198,11 +2196,7 @@ sap.ui.define([
|
|
|
2198
2196
|
this._fireChange({reason : ChangeReason.Change});
|
|
2199
2197
|
}
|
|
2200
2198
|
|
|
2201
|
-
return this.
|
|
2202
|
-
return oContext;
|
|
2203
|
-
}).concat(Object.values(this.mPreviousContextsByPath).filter(function (oContext) {
|
|
2204
|
-
return oContext.isEffectivelyKeptAlive();
|
|
2205
|
-
}));
|
|
2199
|
+
return this._getAllExistingContexts();
|
|
2206
2200
|
};
|
|
2207
2201
|
|
|
2208
2202
|
/**
|
|
@@ -2295,7 +2289,8 @@ sap.ui.define([
|
|
|
2295
2289
|
* @since 1.37.0
|
|
2296
2290
|
*/
|
|
2297
2291
|
// @override @see sap.ui.model.ListBinding#getContexts
|
|
2298
|
-
|
|
2292
|
+
// eslint-disable-next-line default-param-last
|
|
2293
|
+
ODataListBinding.prototype.getContexts = function (iStart = 0, iLength, iMaximumPrefetchSize,
|
|
2299
2294
|
bKeepCurrent) {
|
|
2300
2295
|
var sChangeReason,
|
|
2301
2296
|
aContexts,
|
|
@@ -2314,7 +2309,6 @@ sap.ui.define([
|
|
|
2314
2309
|
|
|
2315
2310
|
this.checkSuspended();
|
|
2316
2311
|
|
|
2317
|
-
iStart = iStart || 0;
|
|
2318
2312
|
if (iStart !== 0 && this.bUseExtendedChangeDetection) {
|
|
2319
2313
|
throw new Error("Unsupported operation: v4.ODataListBinding#getContexts,"
|
|
2320
2314
|
+ " iStart must be 0 if extended change detection is enabled, but is " + iStart);
|
|
@@ -2382,7 +2376,7 @@ sap.ui.define([
|
|
|
2382
2376
|
return [];
|
|
2383
2377
|
}
|
|
2384
2378
|
|
|
2385
|
-
iLength
|
|
2379
|
+
iLength ||= this.oModel.iSizeLimit;
|
|
2386
2380
|
if (!iMaximumPrefetchSize || iMaximumPrefetchSize < 0) {
|
|
2387
2381
|
iMaximumPrefetchSize = 0;
|
|
2388
2382
|
}
|
|
@@ -2522,7 +2516,7 @@ sap.ui.define([
|
|
|
2522
2516
|
};
|
|
2523
2517
|
|
|
2524
2518
|
/**
|
|
2525
|
-
* Returns the contexts that were requested by a control last time. Does not
|
|
2519
|
+
* Returns the contexts that were requested by a control last time. Does not initiate a data
|
|
2526
2520
|
* request. In the time between the {@link #event:dataRequested 'dataRequested'} event and the
|
|
2527
2521
|
* {@link #event:dataReceived 'dataReceived'} event, the resulting array contains
|
|
2528
2522
|
* <code>undefined</code> at those indexes where the data is not yet available or has been
|
|
@@ -3230,7 +3224,8 @@ sap.ui.define([
|
|
|
3230
3224
|
/**
|
|
3231
3225
|
* Moves the given (child) node to the given parent. An expanded (child) node is silently
|
|
3232
3226
|
* collapsed before and expanded after the move. A collapsed parent is automatically expanded;
|
|
3233
|
-
* so is a leaf. The (child) node is added as the parent's 1st child (created persisted)
|
|
3227
|
+
* so is a leaf. The (child) node is added as the parent's 1st child (created persisted) in case
|
|
3228
|
+
* of expandTo:1, or "in place" (and simply persisted) else.
|
|
3234
3229
|
* Omitting a new parent turns the child into a root.
|
|
3235
3230
|
*
|
|
3236
3231
|
* @param {sap.ui.model.odata.v4.Context} oChildContext - The (child) node to be moved
|
|
@@ -3246,12 +3241,16 @@ sap.ui.define([
|
|
|
3246
3241
|
*/
|
|
3247
3242
|
ODataListBinding.prototype.move = function (oChildContext, oParentContext) {
|
|
3248
3243
|
/*
|
|
3249
|
-
* Sets the <code>iIndex</code> of every context instance inside the given range.
|
|
3244
|
+
* Sets the <code>iIndex</code> of every context instance inside the given range. Allows for
|
|
3245
|
+
* start greater than end and swaps both in that case.
|
|
3250
3246
|
*
|
|
3251
3247
|
* @param {number} iFrom - Start index
|
|
3252
3248
|
* @param {number} iToInclusive - Inclusive end index
|
|
3253
3249
|
*/
|
|
3254
3250
|
const setIndices = (iFrom, iToInclusive) => {
|
|
3251
|
+
if (iFrom > iToInclusive) {
|
|
3252
|
+
[iFrom, iToInclusive] = [iToInclusive, iFrom];
|
|
3253
|
+
}
|
|
3255
3254
|
for (let i = iFrom; i <= iToInclusive; i += 1) {
|
|
3256
3255
|
if (this.aContexts[i]) {
|
|
3257
3256
|
this.aContexts[i].iIndex = i;
|
|
@@ -3276,27 +3275,36 @@ sap.ui.define([
|
|
|
3276
3275
|
const sParentPath = oParentContext?.getCanonicalPath().slice(1); // before #lockGroup!
|
|
3277
3276
|
const oGroupLock = this.lockGroup(this.getUpdateGroupId(), true, true);
|
|
3278
3277
|
|
|
3279
|
-
return this.oCache.move(oGroupLock, sChildPath, sParentPath).then((iCount) => {
|
|
3280
|
-
if (iCount > 1) {
|
|
3281
|
-
iCount
|
|
3282
|
-
this.insertGap(oParentContext.getModelIndex(), iCount);
|
|
3278
|
+
return this.oCache.move(oGroupLock, sChildPath, sParentPath).then(([iCount, iNewIndex]) => {
|
|
3279
|
+
if (iCount > 1) { // Note: skip oChildContext which is treated below
|
|
3280
|
+
this.insertGap(oParentContext.getModelIndex(), iCount - 1);
|
|
3283
3281
|
}
|
|
3284
3282
|
|
|
3285
|
-
const
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
this.aContexts.splice(
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3283
|
+
const iOldIndex = oChildContext.getModelIndex();
|
|
3284
|
+
if (oAggregation.expandTo > 1) {
|
|
3285
|
+
if (oChildContext.created()) {
|
|
3286
|
+
oChildContext.setPersisted();
|
|
3287
|
+
}
|
|
3288
|
+
this.aContexts.splice(iOldIndex, 1);
|
|
3289
|
+
this.aContexts.splice(iNewIndex, 0, oChildContext);
|
|
3290
|
+
setIndices(iOldIndex, iNewIndex);
|
|
3291
|
+
} else {
|
|
3292
|
+
if (!oChildContext.created()) {
|
|
3293
|
+
oChildContext.setCreatedPersisted();
|
|
3294
|
+
}
|
|
3295
|
+
// Note: w/o oParentContext, iParentIndex === -1 and iParentIndex + 1 === 0 :-)
|
|
3296
|
+
const iParentIndex = oParentContext
|
|
3297
|
+
? oParentContext.getModelIndex() // Note: !== iOldIndex
|
|
3298
|
+
: -1;
|
|
3299
|
+
if (iOldIndex < iParentIndex) {
|
|
3300
|
+
this.aContexts.splice(iParentIndex + 1, 0, oChildContext);
|
|
3301
|
+
this.aContexts.splice(iOldIndex, 1); // parent moves to lower index!
|
|
3302
|
+
setIndices(iOldIndex, iParentIndex);
|
|
3303
|
+
} else if (iOldIndex > iParentIndex + 1) {
|
|
3304
|
+
this.aContexts.splice(iOldIndex, 1); // parent unaffected!
|
|
3305
|
+
this.aContexts.splice(iParentIndex + 1, 0, oChildContext);
|
|
3306
|
+
setIndices(iParentIndex + 1, iOldIndex);
|
|
3307
|
+
} // else: iOldIndex === iParentIndex + 1 => nothing to do
|
|
3300
3308
|
}
|
|
3301
3309
|
|
|
3302
3310
|
if (bExpanded) {
|
|
@@ -3797,7 +3805,8 @@ sap.ui.define([
|
|
|
3797
3805
|
* @public
|
|
3798
3806
|
* @since 1.70.0
|
|
3799
3807
|
*/
|
|
3800
|
-
|
|
3808
|
+
// eslint-disable-next-line default-param-last
|
|
3809
|
+
ODataListBinding.prototype.requestContexts = function (iStart = 0, iLength, sGroupId) {
|
|
3801
3810
|
var that = this;
|
|
3802
3811
|
|
|
3803
3812
|
if (!this.isResolved()) {
|
|
@@ -3806,8 +3815,7 @@ sap.ui.define([
|
|
|
3806
3815
|
this.checkSuspended();
|
|
3807
3816
|
_Helper.checkGroupId(sGroupId);
|
|
3808
3817
|
|
|
3809
|
-
|
|
3810
|
-
iLength = iLength || this.oModel.iSizeLimit;
|
|
3818
|
+
iLength ||= this.oModel.iSizeLimit;
|
|
3811
3819
|
const oGroupLock = sGroupId && this.lockGroup(sGroupId, true);
|
|
3812
3820
|
return Promise.resolve(
|
|
3813
3821
|
this.fetchContexts(iStart, iLength, 0, oGroupLock)
|
|
@@ -4395,9 +4403,7 @@ sap.ui.define([
|
|
|
4395
4403
|
= this.oHeaderContext;
|
|
4396
4404
|
this.oHeaderContext = null;
|
|
4397
4405
|
}
|
|
4398
|
-
|
|
4399
|
-
this.oHeaderContext = Context.create(this.oModel, this, sResolvedPath);
|
|
4400
|
-
}
|
|
4406
|
+
this.oHeaderContext ??= Context.create(this.oModel, this, sResolvedPath);
|
|
4401
4407
|
if (this.mParameters.$$aggregation) {
|
|
4402
4408
|
_AggregationHelper.setPath(this.mParameters.$$aggregation, sResolvedPath);
|
|
4403
4409
|
} else if (this.bHasPathReductionToParent && this.oModel.bAutoExpandSelect) {
|
|
@@ -4443,7 +4449,7 @@ sap.ui.define([
|
|
|
4443
4449
|
* The dynamic sorters to be used; they replace the dynamic sorters given in
|
|
4444
4450
|
* {@link sap.ui.model.odata.v4.ODataModel#bindList}. A nullish or missing value is treated as
|
|
4445
4451
|
* an empty array and thus removes all dynamic sorters. Static sorters, as defined in the
|
|
4446
|
-
* '$orderby' binding parameter, are always
|
|
4452
|
+
* '$orderby' binding parameter, are always applied after the dynamic sorters.
|
|
4447
4453
|
* @returns {this}
|
|
4448
4454
|
* <code>this</code> to facilitate method chaining
|
|
4449
4455
|
* @throws {Error}
|
|
@@ -4655,6 +4661,23 @@ sap.ui.define([
|
|
|
4655
4661
|
}
|
|
4656
4662
|
};
|
|
4657
4663
|
|
|
4664
|
+
/**
|
|
4665
|
+
* Returns all currently existing contexts of this list binding in no special order.
|
|
4666
|
+
*
|
|
4667
|
+
* @returns {sap.ui.model.odata.v4.Context[]}
|
|
4668
|
+
* All currently existing contexts of this list binding, in no special order
|
|
4669
|
+
*
|
|
4670
|
+
* @private
|
|
4671
|
+
* @see #getAllCurrentContexts
|
|
4672
|
+
*/
|
|
4673
|
+
ODataListBinding.prototype._getAllExistingContexts = function () {
|
|
4674
|
+
return this.aContexts.filter(function (oContext) {
|
|
4675
|
+
return oContext;
|
|
4676
|
+
}).concat(Object.values(this.mPreviousContextsByPath).filter(function (oContext) {
|
|
4677
|
+
return oContext.isEffectivelyKeptAlive();
|
|
4678
|
+
}));
|
|
4679
|
+
};
|
|
4680
|
+
|
|
4658
4681
|
//*********************************************************************************************
|
|
4659
4682
|
// "static" functions
|
|
4660
4683
|
//*********************************************************************************************
|
|
@@ -156,7 +156,7 @@ sap.ui.define([
|
|
|
156
156
|
* @hideconstructor
|
|
157
157
|
* @public
|
|
158
158
|
* @since 1.37.0
|
|
159
|
-
* @version 1.
|
|
159
|
+
* @version 1.123.1
|
|
160
160
|
*/
|
|
161
161
|
ODataMetaModel = MetaModel.extend("sap.ui.model.odata.v4.ODataMetaModel", {
|
|
162
162
|
constructor : constructor
|
|
@@ -1058,7 +1058,7 @@ sap.ui.define([
|
|
|
1058
1058
|
* @returns {boolean}
|
|
1059
1059
|
* Whether further steps are needed
|
|
1060
1060
|
*/
|
|
1061
|
-
function annotationAtOperationOrParameter(sSegment, sTerm, sSuffix) {
|
|
1061
|
+
function annotationAtOperationOrParameter(sSegment, sTerm, sSuffix = "") {
|
|
1062
1062
|
var mAnnotationsXAllOverloads,
|
|
1063
1063
|
iIndexOfAtAt,
|
|
1064
1064
|
sIndividualOverloadTarget,
|
|
@@ -1078,7 +1078,6 @@ sap.ui.define([
|
|
|
1078
1078
|
sTerm = sSegment;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
sSuffix = sSuffix || "";
|
|
1082
1081
|
if (vBindingParameterType) {
|
|
1083
1082
|
oSchemaChild = aOverloads = vResult.filter(isRightOverload);
|
|
1084
1083
|
if (aOverloads.length !== 1) {
|
|
@@ -1284,8 +1283,7 @@ sap.ui.define([
|
|
|
1284
1283
|
* Sets <code>vLocation</code> and delegates to {@link log}.
|
|
1285
1284
|
*/
|
|
1286
1285
|
function logWithLocation() {
|
|
1287
|
-
vLocation
|
|
1288
|
-
|| sTarget && sPropertyName && sTarget + "/" + sPropertyName;
|
|
1286
|
+
vLocation ??= sTarget && sPropertyName && sTarget + "/" + sPropertyName;
|
|
1289
1287
|
return log.apply(this, arguments);
|
|
1290
1288
|
}
|
|
1291
1289
|
|
|
@@ -1406,8 +1404,8 @@ sap.ui.define([
|
|
|
1406
1404
|
// "17.2 SimpleIdentifier" (or placeholder):
|
|
1407
1405
|
// lookup inside schema child (which is determined lazily)
|
|
1408
1406
|
sTarget = sName = sSchemaChildName
|
|
1409
|
-
|
|
1410
|
-
vResult = oSchemaChild
|
|
1407
|
+
??= mScope.$EntityContainer;
|
|
1408
|
+
vResult = oSchemaChild ??= mScope[sSchemaChildName];
|
|
1411
1409
|
if (Array.isArray(vResult)) {
|
|
1412
1410
|
if (vBindingParameterType) {
|
|
1413
1411
|
vResult = vResult.filter(isRightOverload);
|
|
@@ -1612,7 +1610,7 @@ sap.ui.define([
|
|
|
1612
1610
|
that = this;
|
|
1613
1611
|
|
|
1614
1612
|
if (sPath.endsWith("/$count")) {
|
|
1615
|
-
oCountType
|
|
1613
|
+
oCountType ??= new Int64();
|
|
1616
1614
|
return SyncPromise.resolve(oCountType);
|
|
1617
1615
|
}
|
|
1618
1616
|
// Note: undefined is more efficient than "" here
|
|
@@ -2178,7 +2176,7 @@ sap.ui.define([
|
|
|
2178
2176
|
*/
|
|
2179
2177
|
function setConstraint(sKey, vValue) {
|
|
2180
2178
|
if (vValue !== undefined) {
|
|
2181
|
-
mConstraints
|
|
2179
|
+
mConstraints ??= {};
|
|
2182
2180
|
mConstraints[sKey] = vValue;
|
|
2183
2181
|
}
|
|
2184
2182
|
}
|
|
@@ -2943,7 +2941,7 @@ sap.ui.define([
|
|
|
2943
2941
|
* type lookup, for example "/TEAMS/acme.NewAction//Team_ID".
|
|
2944
2942
|
*
|
|
2945
2943
|
* For primitive return types, the special segment "value" can be used to refer to the
|
|
2946
|
-
* return type itself (see {@link sap.ui.model.odata.v4.ODataContextBinding#
|
|
2944
|
+
* return type itself (see {@link sap.ui.model.odata.v4.ODataContextBinding#invoke}). This
|
|
2947
2945
|
* way, "/GetOldestAge/value" addresses the same object as "/GetOldestAge/$ReturnType"
|
|
2948
2946
|
* or "/GetOldestAge/$Function/0/$ReturnType" or
|
|
2949
2947
|
* "/GetOldestAge/@$ui5.overload/0/$ReturnType" (which is needed for automatic type
|
|
@@ -3506,7 +3504,7 @@ sap.ui.define([
|
|
|
3506
3504
|
this.mETags[sUrl] = mScope.$ETag ? mScope.$ETag : oLastModified;
|
|
3507
3505
|
// no need to use UI5Date.getInstance as only the timestamp is relevant
|
|
3508
3506
|
oDate = mScope.$Date ? new Date(mScope.$Date) : new Date();
|
|
3509
|
-
oLastModified
|
|
3507
|
+
oLastModified ??= oDate; // @see #getLastModified
|
|
3510
3508
|
if (this.oLastModified < oLastModified) {
|
|
3511
3509
|
this.oLastModified = oLastModified;
|
|
3512
3510
|
}
|
|
@@ -235,7 +235,7 @@ sap.ui.define([
|
|
|
235
235
|
* @extends sap.ui.model.Model
|
|
236
236
|
* @public
|
|
237
237
|
* @since 1.37.0
|
|
238
|
-
* @version 1.
|
|
238
|
+
* @version 1.123.1
|
|
239
239
|
*/
|
|
240
240
|
ODataModel = Model.extend("sap.ui.model.odata.v4.ODataModel",
|
|
241
241
|
/** @lends sap.ui.model.odata.v4.ODataModel.prototype */{
|
|
@@ -258,7 +258,7 @@ sap.ui.define([
|
|
|
258
258
|
* annotation file cannot be merged into the service metadata, if an unsupported value for
|
|
259
259
|
* <code>odataVersion</code> is given.
|
|
260
260
|
*/
|
|
261
|
-
function constructor(mParameters) {
|
|
261
|
+
function constructor(mParameters = {}) {
|
|
262
262
|
var sGroupId,
|
|
263
263
|
oGroupProperties,
|
|
264
264
|
sLanguageTag = Localization.getLanguageTag().toString(),
|
|
@@ -273,7 +273,6 @@ sap.ui.define([
|
|
|
273
273
|
// do not pass any parameters to Model
|
|
274
274
|
Model.call(this);
|
|
275
275
|
|
|
276
|
-
mParameters = mParameters || {};
|
|
277
276
|
// @deprecated As of Version 1.110.0
|
|
278
277
|
if ("synchronizationMode" in mParameters && mParameters.synchronizationMode !== "None") {
|
|
279
278
|
throw new Error("Synchronization mode must be 'None'");
|
|
@@ -452,9 +451,9 @@ sap.ui.define([
|
|
|
452
451
|
* <code>data : {}</code> is provided: "In error cases it will be undefined", but otherwise it
|
|
453
452
|
* is not. For additional property requests, the absolute path to the entity is also available.
|
|
454
453
|
*
|
|
455
|
-
* The 'dataReceived' event can be
|
|
456
|
-
* an entity that already has been requested. Events
|
|
457
|
-
* the model, while events
|
|
454
|
+
* The 'dataReceived' event can be initiated by a binding or by additional property requests for
|
|
455
|
+
* an entity that already has been requested. Events initiated by a binding may be bubbled up to
|
|
456
|
+
* the model, while events initiated by additional property requests are fired directly by the
|
|
458
457
|
* model.
|
|
459
458
|
*
|
|
460
459
|
* If a back-end request fails, the 'dataReceived' event provides an <code>Error</code> in the
|
|
@@ -493,9 +492,9 @@ sap.ui.define([
|
|
|
493
492
|
* For additional property requests, the absolute path to the entity is available as an event
|
|
494
493
|
* parameter.
|
|
495
494
|
*
|
|
496
|
-
* The 'dataRequested' event can be
|
|
495
|
+
* The 'dataRequested' event can be initiated by a binding or by additional property requests
|
|
497
496
|
* for an entity that already has been requested.
|
|
498
|
-
* Events
|
|
497
|
+
* Events initiated by a binding may be bubbled up to the model, while events initiated by
|
|
499
498
|
* additional property requests are fired directly by the model. Every GET request caused by
|
|
500
499
|
* additional properties is causing one 'dataRequested' event.
|
|
501
500
|
*
|
|
@@ -503,7 +502,7 @@ sap.ui.define([
|
|
|
503
502
|
* <ul>
|
|
504
503
|
* <li> When a binding requests initial data, or a list binding requests data for additional
|
|
505
504
|
* rows, the event is fired at the binding and may be bubbled up to the model. This includes
|
|
506
|
-
* refreshes except those
|
|
505
|
+
* refreshes except those initiated by
|
|
507
506
|
* {@link sap.ui.model.odata.v4.Context#requestSideEffects}.
|
|
508
507
|
* <li> For additional property requests for an entity that already has been requested, the
|
|
509
508
|
* event is only fired at the model.
|
|
@@ -600,8 +599,8 @@ sap.ui.define([
|
|
|
600
599
|
*/
|
|
601
600
|
|
|
602
601
|
/**
|
|
603
|
-
* Adds a task that is guaranteed to run once, just before the next rendering without
|
|
604
|
-
* a rendering request. A watchdog ensures that the task is
|
|
602
|
+
* Adds a task that is guaranteed to run once, just before the next rendering without initiating
|
|
603
|
+
* a rendering request. A watchdog ensures that the task is run soon, even if no rendering
|
|
605
604
|
* occurs.
|
|
606
605
|
*
|
|
607
606
|
* @param {function} fnPrerenderingTask
|
|
@@ -750,16 +749,16 @@ sap.ui.define([
|
|
|
750
749
|
* path computed from its context's path for data service requests; only the value
|
|
751
750
|
* <code>true</code> is allowed.
|
|
752
751
|
* @param {string} [mParameters.$$groupId]
|
|
753
|
-
* The group ID to be used for <b>read</b> requests
|
|
752
|
+
* The group ID to be used for <b>read</b> requests initiated by this binding; if not
|
|
754
753
|
* specified, either the parent binding's group ID (if the binding is relative) or the
|
|
755
754
|
* model's group ID is used, see {@link sap.ui.model.odata.v4.ODataModel#constructor}.
|
|
756
755
|
* Valid values are <code>undefined</code>, '$auto', '$auto.*', '$direct' or application group
|
|
757
756
|
* IDs as specified in {@link sap.ui.model.odata.v4.ODataModel}.
|
|
758
757
|
* @param {boolean} [mParameters.$$inheritExpandSelect]
|
|
759
758
|
* For operation bindings only: Whether $expand and $select from the parent binding are used
|
|
760
|
-
* in the request sent on {@link #
|
|
761
|
-
* set the $expand itself, the operation must be
|
|
762
|
-
* parameter must belong to the same entity set.
|
|
759
|
+
* in the request sent on {@link sap.ui.model.odata.v4.ODataContextBinding#invoke}. If set to
|
|
760
|
+
* <code>true</code>, the binding must not set the $expand itself, the operation must be
|
|
761
|
+
* bound, and the return value and the binding parameter must belong to the same entity set.
|
|
763
762
|
* @param {boolean} [mParameters.$$ownRequest]
|
|
764
763
|
* Whether the binding always uses an own service request to read its data; only the value
|
|
765
764
|
* <code>true</code> is allowed.
|
|
@@ -769,7 +768,7 @@ sap.ui.define([
|
|
|
769
768
|
* service to return an ETag header for "204 No Content" responses. If not specified, the
|
|
770
769
|
* value of the parent binding is used.
|
|
771
770
|
* @param {string} [mParameters.$$updateGroupId]
|
|
772
|
-
* The group ID to be used for <b>update</b> requests
|
|
771
|
+
* The group ID to be used for <b>update</b> requests initiated by this binding;
|
|
773
772
|
* if not specified, either the parent binding's update group ID (if the binding is relative)
|
|
774
773
|
* or the model's update group ID is used, see
|
|
775
774
|
* {@link sap.ui.model.odata.v4.ODataModel#constructor}.
|
|
@@ -832,7 +831,7 @@ sap.ui.define([
|
|
|
832
831
|
* @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} [vSorters=[]]
|
|
833
832
|
* The dynamic sorters to be used initially. Call
|
|
834
833
|
* {@link sap.ui.model.odata.v4.ODataListBinding#sort} to replace them. Static sorters, as
|
|
835
|
-
* defined in the '$orderby' binding parameter, are always
|
|
834
|
+
* defined in the '$orderby' binding parameter, are always applied after the dynamic sorters.
|
|
836
835
|
* Supported since 1.39.0.
|
|
837
836
|
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} [vFilters=[]]
|
|
838
837
|
* The dynamic {@link sap.ui.model.FilterType.Application application} filters to be used
|
|
@@ -903,7 +902,7 @@ sap.ui.define([
|
|
|
903
902
|
* 1.99.0; since 1.113.0 it can be combined with <code>$$aggregation</code> for a recursive
|
|
904
903
|
* hierarchy.
|
|
905
904
|
* @param {string} [mParameters.$$groupId]
|
|
906
|
-
* The group ID to be used for <b>read</b> requests
|
|
905
|
+
* The group ID to be used for <b>read</b> requests initiated by this binding; if not
|
|
907
906
|
* specified, either the parent binding's group ID (if the binding is relative) or the
|
|
908
907
|
* model's group ID is used, see {@link sap.ui.model.odata.v4.ODataModel#constructor}.
|
|
909
908
|
* Valid values are <code>undefined</code>, '$auto', '$auto.*', '$direct' or application group
|
|
@@ -951,8 +950,8 @@ sap.ui.define([
|
|
|
951
950
|
* <li> {@link sap.ui.model.odata.v4.Context#requestSideEffects}
|
|
952
951
|
* <li> {@link sap.ui.model.odata.v4.Context#setKeepAlive}
|
|
953
952
|
* <li> {@link sap.ui.model.odata.v4.Context#setProperty}
|
|
954
|
-
* <li>
|
|
955
|
-
* {@link sap.ui.model.odata.v4.ODataContextBinding#
|
|
953
|
+
* <li> invoking a bound operation using <code>bReplaceWithRVC</code>, see
|
|
954
|
+
* {@link sap.ui.model.odata.v4.ODataContextBinding#invoke}
|
|
956
955
|
* </ul>
|
|
957
956
|
* <li> for a dependent property binding of the list binding:
|
|
958
957
|
* <ul>
|
|
@@ -960,7 +959,7 @@ sap.ui.define([
|
|
|
960
959
|
* </ul>
|
|
961
960
|
* </ul>
|
|
962
961
|
* @param {string} [mParameters.$$updateGroupId]
|
|
963
|
-
* The group ID to be used for <b>update</b> requests
|
|
962
|
+
* The group ID to be used for <b>update</b> requests initiated by this binding;
|
|
964
963
|
* if not specified, either the parent binding's update group ID (if the binding is relative)
|
|
965
964
|
* or the model's update group ID is used,
|
|
966
965
|
* see {@link sap.ui.model.odata.v4.ODataModel#constructor}.
|
|
@@ -1034,7 +1033,7 @@ sap.ui.define([
|
|
|
1034
1033
|
* The value for the "5.1.7 System Query Option $search", if the path ends with a "$count"
|
|
1035
1034
|
* segment
|
|
1036
1035
|
* @param {string} [mParameters.$$groupId]
|
|
1037
|
-
* The group ID to be used for <b>read</b> requests
|
|
1036
|
+
* The group ID to be used for <b>read</b> requests initiated by this binding; if not
|
|
1038
1037
|
* specified, either the parent binding's group ID (if the binding is relative) or the
|
|
1039
1038
|
* model's group ID is used, see {@link sap.ui.model.odata.v4.ODataModel#constructor}.
|
|
1040
1039
|
* Valid values are <code>undefined</code>, '$auto', '$auto.*', '$direct' or application group
|
|
@@ -1471,7 +1470,7 @@ sap.ui.define([
|
|
|
1471
1470
|
}
|
|
1472
1471
|
|
|
1473
1472
|
if (bIsBound) {
|
|
1474
|
-
sResourcePath
|
|
1473
|
+
sResourcePath &&= sResourcePath.split("?")[0]; // remove query string
|
|
1475
1474
|
aTargets = [resolveTarget(oRawMessage.target)];
|
|
1476
1475
|
if (oRawMessage.additionalTargets) {
|
|
1477
1476
|
oRawMessage.additionalTargets.forEach(function (sTarget) {
|
|
@@ -1558,7 +1557,7 @@ sap.ui.define([
|
|
|
1558
1557
|
]);
|
|
1559
1558
|
}
|
|
1560
1559
|
_Helper.checkGroupId(sGroupId, false, true);
|
|
1561
|
-
sGroupId
|
|
1560
|
+
sGroupId ??= this.getUpdateGroupId();
|
|
1562
1561
|
if (this.isApiGroup(sGroupId)) {
|
|
1563
1562
|
throw new Error("Illegal update group ID: " + sGroupId);
|
|
1564
1563
|
}
|
|
@@ -1708,7 +1707,7 @@ sap.ui.define([
|
|
|
1708
1707
|
}
|
|
1709
1708
|
this.mPath2DataRequestedCount[sPath] -= 1;
|
|
1710
1709
|
// first error wins
|
|
1711
|
-
this.mPath2DataReceivedError[sPath]
|
|
1710
|
+
this.mPath2DataReceivedError[sPath] ??= oError;
|
|
1712
1711
|
if (this.mPath2DataRequestedCount[sPath] === 0) {
|
|
1713
1712
|
this.fireEvent("dataReceived", this.mPath2DataReceivedError[sPath]
|
|
1714
1713
|
? {error : this.mPath2DataReceivedError[sPath], path : sPath}
|
|
@@ -1999,7 +1998,7 @@ sap.ui.define([
|
|
|
1999
1998
|
* @param {boolean} [mParameters.$$patchWithoutSideEffects]
|
|
2000
1999
|
* Whether implicit loading of side effects via PATCH requests is switched off
|
|
2001
2000
|
* @param {string} [mParameters.$$updateGroupId]
|
|
2002
|
-
* The group ID to be used for <b>update</b> requests
|
|
2001
|
+
* The group ID to be used for <b>update</b> requests initiated by the context's binding
|
|
2003
2002
|
* @returns {sap.ui.model.odata.v4.Context}
|
|
2004
2003
|
* The kept-alive context
|
|
2005
2004
|
* @throws {Error} If
|
|
@@ -2015,7 +2014,8 @@ sap.ui.define([
|
|
|
2015
2014
|
* @public
|
|
2016
2015
|
* @since 1.99.0
|
|
2017
2016
|
*/
|
|
2018
|
-
ODataModel.prototype.getKeepAliveContext = function (sPath, bRequestMessages,
|
|
2017
|
+
ODataModel.prototype.getKeepAliveContext = function (sPath, bRequestMessages,
|
|
2018
|
+
mParameters = {}) {
|
|
2019
2019
|
var oListBinding,
|
|
2020
2020
|
aListBindings,
|
|
2021
2021
|
sListPath;
|
|
@@ -2026,7 +2026,6 @@ sap.ui.define([
|
|
|
2026
2026
|
if (sPath[0] !== "/") {
|
|
2027
2027
|
throw new Error("Not a list context path to an entity: " + sPath);
|
|
2028
2028
|
}
|
|
2029
|
-
mParameters = mParameters || {};
|
|
2030
2029
|
// Only excess parameters are rejected here; the correctness is checked by ODLB
|
|
2031
2030
|
Object.keys(mParameters).forEach(function (sParameter) {
|
|
2032
2031
|
if (sParameter.startsWith("sap-") && !sParameter.startsWith("sap-valid-")
|
|
@@ -2204,7 +2203,7 @@ sap.ui.define([
|
|
|
2204
2203
|
/**
|
|
2205
2204
|
* Creates a lock for the given group ID. Even an automatic {@link #submitBatch} has to wait
|
|
2206
2205
|
* until all such locks are unlocked. The goal of such a lock is to wait with automatic PATCH
|
|
2207
|
-
* requests
|
|
2206
|
+
* requests initiated by user input until an event handler is called and runs an action.
|
|
2208
2207
|
*
|
|
2209
2208
|
* @param {string} sGroupId
|
|
2210
2209
|
* A group ID
|
|
@@ -2243,7 +2242,7 @@ sap.ui.define([
|
|
|
2243
2242
|
*
|
|
2244
2243
|
* The goal of such a lock is to allow using an API that creates a request in a batch group and
|
|
2245
2244
|
* immediately calling {@link #submitBatch} for this group. In such cases that request has to be
|
|
2246
|
-
* sent with the batch request
|
|
2245
|
+
* sent with the batch request initiated by {@link #submitBatch}, even if that request is
|
|
2247
2246
|
* created later asynchronously. To achieve this, the API function creates a lock that blocks
|
|
2248
2247
|
* the batch request until that request is created.
|
|
2249
2248
|
*
|
|
@@ -2274,7 +2273,7 @@ sap.ui.define([
|
|
|
2274
2273
|
* Refreshes the model by calling refresh on all bindings which have a change event handler
|
|
2275
2274
|
* attached.
|
|
2276
2275
|
*
|
|
2277
|
-
* Note: When calling {@link #refresh} multiple times, the result of the request
|
|
2276
|
+
* Note: When calling {@link #refresh} multiple times, the result of the request initiated by
|
|
2278
2277
|
* the last call determines the model's data; it is <b>independent</b> of the order of calls to
|
|
2279
2278
|
* {@link #submitBatch} with the given group ID.
|
|
2280
2279
|
*
|
|
@@ -2622,8 +2621,8 @@ sap.ui.define([
|
|
|
2622
2621
|
* group ID which have not been successfully submitted via {@link #submitBatch}. Resets also
|
|
2623
2622
|
* invalid user input for the same group ID and (since 1.111.0) inactive contexts which had
|
|
2624
2623
|
* their activation prevented (see {@link sap.ui.model.odata.v4.Context#isInactive}). This
|
|
2625
|
-
* function does not reset the
|
|
2626
|
-
* (see {@link sap.ui.model.odata.v4.ODataContextBinding#
|
|
2624
|
+
* function does not reset the invocation of OData operations
|
|
2625
|
+
* (see {@link sap.ui.model.odata.v4.ODataContextBinding#invoke}).
|
|
2627
2626
|
*
|
|
2628
2627
|
* @param {string} [sGroupId]
|
|
2629
2628
|
* A valid group ID as specified in {@link sap.ui.model.odata.v4.ODataModel}. If it is
|
|
@@ -2641,7 +2640,7 @@ sap.ui.define([
|
|
|
2641
2640
|
* @since 1.39.0
|
|
2642
2641
|
*/
|
|
2643
2642
|
ODataModel.prototype.resetChanges = function (sGroupId) {
|
|
2644
|
-
sGroupId
|
|
2643
|
+
sGroupId ??= this.sUpdateGroupId;
|
|
2645
2644
|
this.checkBatchGroupId(sGroupId);
|
|
2646
2645
|
|
|
2647
2646
|
if (this.isAutoGroup(sGroupId)) {
|
|
@@ -2755,7 +2754,7 @@ sap.ui.define([
|
|
|
2755
2754
|
* If the callback returns or resolves with <code>true</code>, the OData model remembers the
|
|
2756
2755
|
* first sent $batch request. With the next model instantiation for the same key, this
|
|
2757
2756
|
* remembered $batch request will be sent at the earliest point in time in order to have the
|
|
2758
|
-
* response already available when the first $batch request is
|
|
2757
|
+
* response already available when the first $batch request is initiated from the UI or the
|
|
2759
2758
|
* binding. If the returned promise is rejected, this error will be reported and the optimistic
|
|
2760
2759
|
* batch will be disabled.
|
|
2761
2760
|
*
|