@openui5/sap.ui.core 1.136.4 → 1.139.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/.eslintrc.json +3 -3
- package/README.md +1 -1
- package/REUSE.toml +8 -29
- package/THIRDPARTY.txt +72 -90
- package/package.json +2 -2
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageFallback.js +18 -2
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/Localization.js +5 -3
- package/src/sap/base/i18n/ResourceBundle.js +59 -35
- 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 +3 -3
- package/src/sap/ui/base/BindingInfo.js +18 -9
- package/src/sap/ui/base/BindingParser.js +13 -6
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -8
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +37 -27
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/OwnStatics.js +49 -0
- package/src/sap/ui/core/.library +9 -31
- package/src/sap/ui/core/BusyIndicator.js +8 -8
- package/src/sap/ui/core/Component.js +63 -73
- package/src/sap/ui/core/ComponentContainer.js +34 -4
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +2 -2
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +13 -11
- package/src/sap/ui/core/Element.js +1 -3
- 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/ExtensionPoint.js +4 -4
- package/src/sap/ui/core/Fragment.js +10 -6
- 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/Lib.js +39 -24
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +39 -178
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Theming.js +2 -2
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +16 -57
- 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 +5 -1
- package/src/sap/ui/core/_IconRegistry.js +2 -0
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +2 -2
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +12 -2
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +5 -3
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/interaction/KeyboardInteractionDisplay.js +64 -37
- 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 +6 -6
- package/src/sap/ui/core/messagebundle.properties +58 -28
- package/src/sap/ui/core/messagebundle_mk.properties +3 -3
- package/src/sap/ui/core/mvc/Controller.js +5 -1
- package/src/sap/ui/core/mvc/HTMLView.js +6 -2
- package/src/sap/ui/core/mvc/JSONView.js +6 -2
- package/src/sap/ui/core/mvc/JSView.js +6 -3
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +69 -195
- package/src/sap/ui/core/mvc/XMLView.js +7 -2
- package/src/sap/ui/core/mvc/_ViewFactory.js +196 -0
- 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/Route.js +197 -13
- package/src/sap/ui/core/routing/Router.js +19 -8
- package/src/sap/ui/core/routing/RouterHashChanger.js +12 -3
- package/src/sap/ui/core/routing/Target.js +714 -61
- package/src/sap/ui/core/routing/TargetCache.js +205 -25
- package/src/sap/ui/core/routing/Targets.js +162 -67
- package/src/sap/ui/core/routing/Views.js +1 -0
- package/src/sap/ui/core/routing/sync/Route.js +1 -1
- package/src/sap/ui/core/routing/sync/Target.js +11 -1
- package/src/sap/ui/core/routing/sync/TargetCache.js +3 -3
- package/src/sap/ui/core/routing/sync/Targets.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -48
- package/src/sap/ui/core/service/ServiceFactory.js +44 -4
- 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 +356 -353
- 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 +4 -2
- package/src/sap/ui/core/themes/base/base.less +20 -20
- 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/themes/base/global.less +4 -0
- package/src/sap/ui/core/themes/base/skeleton.less +3 -3
- package/src/sap/ui/core/theming/ThemeHelper.js +1 -18
- 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 +4 -4
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/XMLPreprocessor.js +8 -1
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +4 -4
- 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 +2 -3
- package/src/sap/ui/core/webc/WebComponentMetadata.js +2 -3
- package/src/sap/ui/core/webc/WebComponentRenderer.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +2 -2
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/Filter.js +55 -35
- package/src/sap/ui/model/FilterOperator.js +79 -9
- 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/AnalyticalBinding.js +2 -1
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +2 -1
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +2 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +2 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +3 -3
- package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +2 -1
- package/src/sap/ui/model/odata/_AnnotationHelperExpression.js +3 -3
- 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 +2 -2
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +20 -17
- package/src/sap/ui/model/odata/v4/ODataBinding.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +4 -4
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +34 -22
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +60 -22
- package/src/sap/ui/model/odata/v4/ODataModel.js +9 -8
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataUtils.js +2 -2
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +4 -4
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +98 -89
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +39 -7
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +32 -26
- package/src/sap/ui/model/odata/v4/lib/_GroupLock.js +10 -4
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +44 -24
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +50 -19
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -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 +1 -1
- package/src/sap/ui/test/Opa.js +14 -2
- package/src/sap/ui/test/Opa5.js +61 -10
- package/src/sap/ui/test/TestUtils.js +6 -2
- package/src/sap/ui/test/generic/GenericTestCollection.js +11 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/thirdparty/datajs.js +13 -10
- package/src/sap/ui/thirdparty/jquery.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +49 -59
- package/src/ui5loader.js +1 -1
- package/src/sap/ui/core/routing/async/Route.js +0 -186
- package/src/sap/ui/core/routing/async/Target.js +0 -712
- package/src/sap/ui/core/routing/async/TargetCache.js +0 -196
- package/src/sap/ui/core/routing/async/Targets.js +0 -130
- package/src/sap/ui/thirdparty/iscroll-lite.js +0 -603
- package/src/sap/ui/thirdparty/iscroll.js +0 -1104
- package/src/sap/ui/thirdparty/mobiscroll/css/mobiscroll-core.css +0 -416
- package/src/sap/ui/thirdparty/mobiscroll/js/mobiscroll-core.js +0 -127
- package/src/sap/ui/thirdparty/mobiscroll/js/mobiscroll-datetime.js +0 -818
- package/src/sap/ui/thirdparty/mobiscroll/js/mobiscroll-scroller.js +0 -1264
- package/src/sap/ui/thirdparty/swipe-view.js +0 -560
|
@@ -144,8 +144,8 @@ sap.ui.define([
|
|
|
144
144
|
/**
|
|
145
145
|
* Adds the given paths to $select of the given query options.
|
|
146
146
|
*
|
|
147
|
-
* @param {object} mQueryOptions The query options
|
|
148
|
-
* @param {string[]} aSelectPaths The paths to add to $select
|
|
147
|
+
* @param {object} mQueryOptions - The query options to be MODIFIED
|
|
148
|
+
* @param {string[]} aSelectPaths - The paths to add to $select
|
|
149
149
|
*
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
@@ -237,9 +237,10 @@ sap.ui.define([
|
|
|
237
237
|
* Recursively merges $select and $expand from mQueryOptions into mAggregatedQueryOptions.
|
|
238
238
|
* All other query options in mAggregatedQueryOptions remain untouched.
|
|
239
239
|
*
|
|
240
|
-
* @param {object} mAggregatedQueryOptions
|
|
241
|
-
*
|
|
242
|
-
*
|
|
240
|
+
* @param {object} mAggregatedQueryOptions
|
|
241
|
+
* The aggregated query options to be MODIFIED
|
|
242
|
+
* @param {object} mQueryOptions
|
|
243
|
+
* The read-only query options to merge into the aggregated query options
|
|
243
244
|
*
|
|
244
245
|
* @public
|
|
245
246
|
*/
|
|
@@ -493,7 +494,7 @@ sap.ui.define([
|
|
|
493
494
|
*
|
|
494
495
|
* $expand must not contain collection-valued navigation properties.
|
|
495
496
|
*
|
|
496
|
-
* @param {object} mQueryOptions - The query options
|
|
497
|
+
* @param {object} mQueryOptions - The read-only query options
|
|
497
498
|
* @returns {string[]} The paths
|
|
498
499
|
*
|
|
499
500
|
* @public
|
|
@@ -591,8 +592,6 @@ sap.ui.define([
|
|
|
591
592
|
* response JSON object (if available)
|
|
592
593
|
* <li> <code>isConcurrentModification</code>: (optional) <code>true</code> In case of a
|
|
593
594
|
* concurrent modification detected via ETags (i.e. HTTP status code 412)
|
|
594
|
-
* <li> <code>strictHandlingFailed</code>: (optional) <code>true</code> In case of HTTP
|
|
595
|
-
* status code 412 and response header "Preference-Applied:handling=strict"
|
|
596
595
|
* <li> <code>message</code>: Error message
|
|
597
596
|
* <li> <code>requestUrl</code>: (optional) The absolute request URL
|
|
598
597
|
* <li> <code>resourcePath</code>: (optional) The path by which this resource has
|
|
@@ -602,9 +601,11 @@ sap.ui.define([
|
|
|
602
601
|
* that header value was an HTTP date or a delay in seconds.
|
|
603
602
|
* <li> <code>status</code>: HTTP status code
|
|
604
603
|
* <li> <code>statusText</code>: (optional) HTTP status text
|
|
604
|
+
* <li> <code>strictHandlingFailed</code>: (optional) <code>true</code> In case of HTTP
|
|
605
|
+
* status code 412 and response header "Preference-Applied:handling=strict"
|
|
605
606
|
* </ul>
|
|
606
607
|
* @see <a href=
|
|
607
|
-
* "
|
|
608
|
+
* "https://docs.oasis-open.org/odata/odata-json-format/v4.0/odata-json-format-v4.0.html#_Representing_Errors_in"
|
|
608
609
|
* >"19 Error Response"</a>
|
|
609
610
|
*
|
|
610
611
|
* @public
|
|
@@ -710,6 +711,10 @@ sap.ui.define([
|
|
|
710
711
|
* <code>null</code> value
|
|
711
712
|
*
|
|
712
713
|
* @public
|
|
714
|
+
* @see .deleteProperty
|
|
715
|
+
* @see .drillDown
|
|
716
|
+
* @see .inheritPathValue
|
|
717
|
+
* @see .makeUpdateData
|
|
713
718
|
*/
|
|
714
719
|
createMissing : function (oObject, aSegments) {
|
|
715
720
|
aSegments.reduce(function (oCurrent, sSegment, i) {
|
|
@@ -807,7 +812,8 @@ sap.ui.define([
|
|
|
807
812
|
* URL of the service document used to resolve relative request URLs
|
|
808
813
|
* @returns {Error[]}
|
|
809
814
|
* One error for each request given, suitable for
|
|
810
|
-
* {@link sap.ui.model.odata.v4.ODataModel#reportError}
|
|
815
|
+
* {@link sap.ui.model.odata.v4.ODataModel#reportError} and marked as
|
|
816
|
+
* <code>decomposed</code>
|
|
811
817
|
*
|
|
812
818
|
* @public
|
|
813
819
|
*/
|
|
@@ -842,6 +848,7 @@ sap.ui.define([
|
|
|
842
848
|
return sContentID === oRequest.$ContentID;
|
|
843
849
|
}
|
|
844
850
|
|
|
851
|
+
oClone.decomposed = true;
|
|
845
852
|
oClone.error = _Helper.clone(oError.error);
|
|
846
853
|
oClone.requestUrl = sServiceUrl + oRequest.url;
|
|
847
854
|
oClone.resourcePath = oRequest.$resourcePath;
|
|
@@ -893,6 +900,10 @@ sap.ui.define([
|
|
|
893
900
|
* @param {string} sPath - Some relative path
|
|
894
901
|
*
|
|
895
902
|
* @public
|
|
903
|
+
* @see .createMissing
|
|
904
|
+
* @see .drillDown
|
|
905
|
+
* @see .inheritPathValue
|
|
906
|
+
* @see .makeUpdateData
|
|
896
907
|
*/
|
|
897
908
|
deleteProperty : function (oObject, sPath) {
|
|
898
909
|
var aSegments;
|
|
@@ -948,6 +959,10 @@ sap.ui.define([
|
|
|
948
959
|
* into void
|
|
949
960
|
*
|
|
950
961
|
* @public
|
|
962
|
+
* @see .createMissing
|
|
963
|
+
* @see .deleteProperty
|
|
964
|
+
* @see .inheritPathValue
|
|
965
|
+
* @see .makeUpdateData
|
|
951
966
|
*/
|
|
952
967
|
drillDown : function (oObject, vSegments) {
|
|
953
968
|
if (typeof vSegments === "string") {
|
|
@@ -1002,10 +1017,8 @@ sap.ui.define([
|
|
|
1002
1017
|
* Extracts the mergeable query options "$expand" and "$select" from the given ones, returns
|
|
1003
1018
|
* them as a new map while replacing their value with "~" in the old map.
|
|
1004
1019
|
*
|
|
1005
|
-
* @param {object} mQueryOptions
|
|
1006
|
-
*
|
|
1007
|
-
* @returns {object}
|
|
1008
|
-
* The extracted query options
|
|
1020
|
+
* @param {object} mQueryOptions - The original query options to be MODIFIED
|
|
1021
|
+
* @returns {object} The extracted query options
|
|
1009
1022
|
*
|
|
1010
1023
|
* @public
|
|
1011
1024
|
*/
|
|
@@ -1666,7 +1679,8 @@ sap.ui.define([
|
|
|
1666
1679
|
* care of the details).
|
|
1667
1680
|
*
|
|
1668
1681
|
* @param {object|object[]} vEntityOrCollection - The entity (collection)
|
|
1669
|
-
* @param {object} mQueryOptions
|
|
1682
|
+
* @param {object} mQueryOptions
|
|
1683
|
+
* The read-only query options (only $select and $expand required)
|
|
1670
1684
|
* @returns {string[]}
|
|
1671
1685
|
* A list of paths relative to vEntityOrCollection for which the property value is missing
|
|
1672
1686
|
* @throws {Error} If there is a path containing "*"
|
|
@@ -1753,7 +1767,7 @@ sap.ui.define([
|
|
|
1753
1767
|
* Returns the query options corresponding to the given path.
|
|
1754
1768
|
*
|
|
1755
1769
|
* @param {object} [mQueryOptions]
|
|
1756
|
-
* A map of query options as returned by
|
|
1770
|
+
* A map of read-only query options as returned by
|
|
1757
1771
|
* {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions}
|
|
1758
1772
|
* @param {string} sPath
|
|
1759
1773
|
* The path of the cache value in the cache
|
|
@@ -1944,6 +1958,10 @@ sap.ui.define([
|
|
|
1944
1958
|
* untolerated <code>null</code> value
|
|
1945
1959
|
*
|
|
1946
1960
|
* @public
|
|
1961
|
+
* @see .createMissing
|
|
1962
|
+
* @see .deleteProperty
|
|
1963
|
+
* @see .drillDown
|
|
1964
|
+
* @see .makeUpdateData
|
|
1947
1965
|
*/
|
|
1948
1966
|
inheritPathValue : function (aSegments, oSource, oTarget, bTolerateNull) {
|
|
1949
1967
|
aSegments.forEach(function (sSegment, i) {
|
|
@@ -1995,7 +2013,7 @@ sap.ui.define([
|
|
|
1995
2013
|
* key predicate.
|
|
1996
2014
|
*
|
|
1997
2015
|
* @param {object} [mCacheQueryOptions]
|
|
1998
|
-
* A map of query options as returned by
|
|
2016
|
+
* A read-only map of query options as returned by
|
|
1999
2017
|
* {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions}
|
|
2000
2018
|
* @param {string[]} aPaths
|
|
2001
2019
|
* The "14.5.11 Expression edm:NavigationPropertyPath" or
|
|
@@ -2225,7 +2243,7 @@ sap.ui.define([
|
|
|
2225
2243
|
* ok, because within all known scenarios such combinations do not happen.
|
|
2226
2244
|
*
|
|
2227
2245
|
* @param {string} sPropertyPath The path to the structural property as meta path
|
|
2228
|
-
* @param {object} [mQueryOptions] The query options to be analyzed
|
|
2246
|
+
* @param {object} [mQueryOptions] The read-only query options to be analyzed
|
|
2229
2247
|
* @returns {boolean} Whether the property for the given path was already selected
|
|
2230
2248
|
*
|
|
2231
2249
|
* @public
|
|
@@ -2305,6 +2323,10 @@ sap.ui.define([
|
|
|
2305
2323
|
* The resulting object
|
|
2306
2324
|
*
|
|
2307
2325
|
* @public
|
|
2326
|
+
* @see .createMissing
|
|
2327
|
+
* @see .deleteProperty
|
|
2328
|
+
* @see .drillDown
|
|
2329
|
+
* @see .inheritPathValue
|
|
2308
2330
|
*/
|
|
2309
2331
|
makeUpdateData : function (aPropertyPath, vValue, bUpdating) {
|
|
2310
2332
|
return aPropertyPath.reduceRight(function (vValue0, sSegment) {
|
|
@@ -2328,7 +2350,7 @@ sap.ui.define([
|
|
|
2328
2350
|
* Ensures that the original map is left unchanged, but creates a copy only if necessary.
|
|
2329
2351
|
*
|
|
2330
2352
|
* @param {object} [mQueryOptions]
|
|
2331
|
-
* The map of query options
|
|
2353
|
+
* The read-only map of query options
|
|
2332
2354
|
* @param {string} [sOrderby]
|
|
2333
2355
|
* The new value for the query option "$orderby"
|
|
2334
2356
|
* @param {string[]} [aFilters]
|
|
@@ -2638,10 +2660,8 @@ sap.ui.define([
|
|
|
2638
2660
|
/**
|
|
2639
2661
|
* Adds the key properties of the given entity type to $select of the given query options.
|
|
2640
2662
|
*
|
|
2641
|
-
* @param {object} mQueryOptions
|
|
2642
|
-
*
|
|
2643
|
-
* @param {object} oType
|
|
2644
|
-
* The entity type's metadata "JSON"
|
|
2663
|
+
* @param {object} mQueryOptions - The query options to be MODIFIED
|
|
2664
|
+
* @param {object} oType - The entity type's metadata "JSON"
|
|
2645
2665
|
*
|
|
2646
2666
|
* @public
|
|
2647
2667
|
*/
|
|
@@ -2939,7 +2959,7 @@ sap.ui.define([
|
|
|
2939
2959
|
* regarding order and count.
|
|
2940
2960
|
*
|
|
2941
2961
|
* @param {object} mChangeListeners - A map of change listeners by path
|
|
2942
|
-
* @param {object} mQueryOptions - The query options
|
|
2962
|
+
* @param {object} mQueryOptions - The read-only query options
|
|
2943
2963
|
* @param {string} sPath
|
|
2944
2964
|
* The path of the target entity relative to mChangeListeners and mQueryOptions
|
|
2945
2965
|
* @param {object} oTargetEntity - The target entity
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Extension for Data Aggregation Version 4.0"; must already be normalized by
|
|
26
26
|
* {@link _AggregationHelper.buildApply}
|
|
27
27
|
* @param {object} mQueryOptions
|
|
28
|
-
* A map of key-value pairs representing the query string
|
|
28
|
+
* A map of key-value pairs representing the query string (requires "copy on write"!)
|
|
29
29
|
* @returns {sap.ui.model.odata.v4.lib._Cache}
|
|
30
30
|
* The cache
|
|
31
31
|
*/
|
|
@@ -297,7 +297,7 @@ sap.ui.define([
|
|
|
297
297
|
* @param {string} sMetaPath
|
|
298
298
|
* The meta path corresponding to the resource path
|
|
299
299
|
* @param {object} [mQueryOptions]
|
|
300
|
-
* A map of key-value pairs representing the query string
|
|
300
|
+
* A read-only map of key-value pairs representing the query string
|
|
301
301
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
302
302
|
* Whether all system query options are dropped (useful for non-GET requests)
|
|
303
303
|
* @param {boolean} [bSortExpandSelect]
|
|
@@ -450,34 +450,53 @@ sap.ui.define([
|
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
452
|
* Throws an error if the new request uses strict handling and there is a change set containing
|
|
453
|
-
* a strict handling request except the one at index <code>iChangeSetNo</code>.
|
|
453
|
+
* a strict handling request except the one at index <code>iChangeSetNo</code>. On the other
|
|
454
|
+
* hand, in case of the "odata.continue-on-error" preference, every request using strict
|
|
455
|
+
* handling must belong to its own change set.
|
|
454
456
|
*
|
|
455
457
|
* @param {object} oRequest
|
|
456
|
-
* The new request
|
|
458
|
+
* The new request or <code>null</code> to re-check all change sets as a preparation for the
|
|
459
|
+
* "odata.continue-on-error" preference
|
|
457
460
|
* @param {object[]} aRequests
|
|
458
461
|
* The batch queue
|
|
459
|
-
* @param {number} iChangeSetNo
|
|
460
|
-
* The index of the irrelevant change set
|
|
462
|
+
* @param {number} [iChangeSetNo]
|
|
463
|
+
* The index of the irrelevant change set; ignored for a <code>null</code> request
|
|
461
464
|
* @throws {Error}
|
|
462
465
|
* If there is a conflicting change set
|
|
463
466
|
*
|
|
464
467
|
* @private
|
|
465
468
|
*/
|
|
466
469
|
_Requestor.prototype.checkConflictingStrictRequest = function (oRequest, aRequests,
|
|
467
|
-
|
|
470
|
+
iChangeSetNo) {
|
|
471
|
+
function hasManyWithStrictHandling(aChangeSet) {
|
|
472
|
+
return aChangeSet.filter(isUsingStrictHandling).length > 1;
|
|
473
|
+
}
|
|
474
|
+
|
|
468
475
|
function isOtherChangeSetWithStrictHandling(aChangeSet, i) {
|
|
469
476
|
return iChangeSetNo !== i && aChangeSet.some(isUsingStrictHandling);
|
|
470
477
|
}
|
|
471
478
|
|
|
472
479
|
function isUsingStrictHandling(oRequest0) {
|
|
473
|
-
return oRequest0.headers.Prefer
|
|
480
|
+
return oRequest0.headers.Prefer?.includes("handling=strict");
|
|
474
481
|
}
|
|
475
482
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
483
|
+
const sMessage = "Each request with strict handling must belong to its own change set due"
|
|
484
|
+
+ ' to the "odata.continue-on-error" preference';
|
|
485
|
+
const aChangeSets = aRequests.slice(0, aRequests.iChangeSet + 1);
|
|
486
|
+
if (oRequest === null) {
|
|
487
|
+
if (aChangeSets.some(hasManyWithStrictHandling)) {
|
|
488
|
+
throw new Error(sMessage);
|
|
489
|
+
}
|
|
490
|
+
} else if (aRequests.bContinueOnError) {
|
|
491
|
+
if (aChangeSets[iChangeSetNo].length
|
|
492
|
+
&& (isUsingStrictHandling(oRequest)
|
|
493
|
+
|| isUsingStrictHandling(aChangeSets[iChangeSetNo][0]))) {
|
|
494
|
+
throw new Error(sMessage);
|
|
495
|
+
}
|
|
496
|
+
} else if (isUsingStrictHandling(oRequest)
|
|
497
|
+
&& aChangeSets.some(isOtherChangeSetWithStrictHandling)) {
|
|
498
|
+
throw new Error(
|
|
499
|
+
"All requests with strict handling must belong to the same change set");
|
|
481
500
|
}
|
|
482
501
|
};
|
|
483
502
|
|
|
@@ -689,7 +708,7 @@ sap.ui.define([
|
|
|
689
708
|
*
|
|
690
709
|
* @param {string} sMetaPath
|
|
691
710
|
* The meta path corresponding to the resource path
|
|
692
|
-
* @param {object} [mQueryOptions] The query options
|
|
711
|
+
* @param {object} [mQueryOptions] The read-only query options
|
|
693
712
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
694
713
|
* Whether all system query options are dropped (useful for non-GET requests)
|
|
695
714
|
* @param {boolean} [bSortExpandSelect]
|
|
@@ -793,7 +812,7 @@ sap.ui.define([
|
|
|
793
812
|
*
|
|
794
813
|
* @param {string} _sMetaPath
|
|
795
814
|
* The meta path corresponding to the resource path
|
|
796
|
-
* @param {object} mQueryOptions The query options
|
|
815
|
+
* @param {object} mQueryOptions The read-only query options
|
|
797
816
|
* @param {function (string,any)} fnResultHandler
|
|
798
817
|
* The function to process the converted options getting the name and the value
|
|
799
818
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
@@ -1793,7 +1812,8 @@ sap.ui.define([
|
|
|
1793
1812
|
* other group ID values, the request is added to the given group and you can use
|
|
1794
1813
|
* {@link #submitBatch} to send all requests in that group. This group lock will be unlocked
|
|
1795
1814
|
* immediately, even if the request itself is queued. The request is rejected if the lock is
|
|
1796
|
-
* already canceled.
|
|
1815
|
+
* already canceled. For a group lock w/o a serial number, a non-GET is put into a change set
|
|
1816
|
+
* of its own (unless <code>bAtFront</code> is used).
|
|
1797
1817
|
* @param {object} [mHeaders]
|
|
1798
1818
|
* Map of request-specific headers, overriding both the mandatory OData V4 headers and the
|
|
1799
1819
|
* default headers given to the factory. This map of headers must not contain
|
|
@@ -1843,8 +1863,10 @@ sap.ui.define([
|
|
|
1843
1863
|
* <code>oGroupLock</code> is already canceled.
|
|
1844
1864
|
* @throws {Error} If
|
|
1845
1865
|
* <ul>
|
|
1846
|
-
* <li>group ID is '$cached'
|
|
1847
|
-
* <li>group ID is '$single' and there is already an existing batch queue for this group
|
|
1866
|
+
* <li>group ID is '$cached'; the error has a property <code>$cached = true</code>,
|
|
1867
|
+
* <li>group ID is '$single' and there is already an existing batch queue for this group,
|
|
1868
|
+
* <li>the {@link #checkConflictingStrictRequest rules for strict handling} w.r.t. change
|
|
1869
|
+
* sets are violated
|
|
1848
1870
|
* </ul>
|
|
1849
1871
|
* @public
|
|
1850
1872
|
*/
|
|
@@ -1911,13 +1933,18 @@ sap.ui.define([
|
|
|
1911
1933
|
} else if (bAtFront) { // add at front of first change set
|
|
1912
1934
|
aRequests[0].unshift(oRequest);
|
|
1913
1935
|
} else { // push into change set which was current when the request was initiated
|
|
1936
|
+
if (!iRequestSerialNumber && aRequests[aRequests.iChangeSet].length) {
|
|
1937
|
+
that.addChangeSet(sGroupId);
|
|
1938
|
+
}
|
|
1914
1939
|
iChangeSetNo = aRequests.iChangeSet;
|
|
1915
1940
|
while (aRequests[iChangeSetNo].iSerialNumber > iRequestSerialNumber) {
|
|
1916
1941
|
iChangeSetNo -= 1;
|
|
1917
1942
|
}
|
|
1918
1943
|
that.checkConflictingStrictRequest(oRequest, aRequests, iChangeSetNo);
|
|
1919
|
-
|
|
1920
1944
|
aRequests[iChangeSetNo].push(oRequest);
|
|
1945
|
+
if (!iRequestSerialNumber) {
|
|
1946
|
+
that.addChangeSet(sGroupId);
|
|
1947
|
+
}
|
|
1921
1948
|
}
|
|
1922
1949
|
if (sGroupId === "$single") {
|
|
1923
1950
|
that.submitBatch("$single").catch(that.oModelInterface.getReporter());
|
|
@@ -2146,11 +2173,15 @@ sap.ui.define([
|
|
|
2146
2173
|
*
|
|
2147
2174
|
* @param {string} sGroupId
|
|
2148
2175
|
* The group ID
|
|
2176
|
+
* @throws {Error} If the {@link #checkConflictingStrictRequest rules for strict handling}
|
|
2177
|
+
* w.r.t. change sets are violated
|
|
2149
2178
|
*
|
|
2150
2179
|
* @public
|
|
2151
2180
|
*/
|
|
2152
2181
|
_Requestor.prototype.setContinueOnError = function (sGroupId) {
|
|
2153
|
-
this.getOrCreateBatchQueue(sGroupId)
|
|
2182
|
+
const aRequests = this.getOrCreateBatchQueue(sGroupId);
|
|
2183
|
+
this.checkConflictingStrictRequest(null, aRequests);
|
|
2184
|
+
aRequests.bContinueOnError = true;
|
|
2154
2185
|
};
|
|
2155
2186
|
|
|
2156
2187
|
/**
|
|
@@ -764,7 +764,7 @@ sap.ui.define([
|
|
|
764
764
|
|
|
765
765
|
/**
|
|
766
766
|
* Formats a given internal value into a literal suitable for usage in OData V2 URLs. See
|
|
767
|
-
*
|
|
767
|
+
* https://www.odata.org/documentation/odata-version-2-0/overview#AbstractTypeSystem.
|
|
768
768
|
*
|
|
769
769
|
* @param {any} vValue
|
|
770
770
|
* The value
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
*
|
|
228
228
|
* @extends sap.ui.model.Model
|
|
229
229
|
* @public
|
|
230
|
-
* @version 1.
|
|
230
|
+
* @version 1.139.0
|
|
231
231
|
*/
|
|
232
232
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
233
233
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.model.SimpleType
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.139.0
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.139.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.139.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.139.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.139.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
*
|
|
50
50
|
*
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.139.0
|
|
53
53
|
*
|
|
54
54
|
* @public
|
|
55
55
|
* @param {object} [oFormatOptions]
|
|
@@ -325,9 +325,6 @@ sap.ui.define([
|
|
|
325
325
|
*/
|
|
326
326
|
Unit.prototype.processPartTypes = function (aPartTypes) {
|
|
327
327
|
const oQuantityType = aPartTypes[0];
|
|
328
|
-
if (oQuantityType?.isA(["sap.ui.model.odata.type.Int", "sap.ui.model.odata.type.Int64"])) {
|
|
329
|
-
this.iScale = 0;
|
|
330
|
-
}
|
|
331
328
|
if (oQuantityType?.isA("sap.ui.model.odata.type.Decimal")) {
|
|
332
329
|
this.iScale = oQuantityType.oConstraints?.scale || 0;
|
|
333
330
|
}
|
package/src/sap/ui/test/Opa.js
CHANGED
|
@@ -611,8 +611,7 @@ sap.ui.define([
|
|
|
611
611
|
try {
|
|
612
612
|
options.success.apply(this, arguments);
|
|
613
613
|
} catch (oError) {
|
|
614
|
-
|
|
615
|
-
addErrorMessageToOptions(sErrorMessage, options, oError.stack);
|
|
614
|
+
this._handleErrorMessage(oError, options);
|
|
616
615
|
deferred.reject(options);
|
|
617
616
|
return {error: true, arguments: arguments};
|
|
618
617
|
} finally {
|
|
@@ -630,6 +629,19 @@ sap.ui.define([
|
|
|
630
629
|
return _this;
|
|
631
630
|
},
|
|
632
631
|
|
|
632
|
+
_handleErrorMessage: function (oError, options) {
|
|
633
|
+
var sErrorMessage = "Failure in Opa success function\n" + getMessageForException(oError);
|
|
634
|
+
addErrorMessageToOptions(sErrorMessage, options, oError.stack);
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
_ensureNewlyAddedWaitForStatementsPrepended: function (oWaitForCounter, options) {
|
|
638
|
+
ensureNewlyAddedWaitForStatementsPrepended(oWaitForCounter, options);
|
|
639
|
+
},
|
|
640
|
+
|
|
641
|
+
_getQueue : function () {
|
|
642
|
+
return queue.slice(0);
|
|
643
|
+
},
|
|
644
|
+
|
|
633
645
|
/**
|
|
634
646
|
* Calls the static extendConfig function in the Opa namespace {@link sap.ui.test.Opa.extendConfig}
|
|
635
647
|
* @public
|