@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
|
@@ -345,7 +345,7 @@ sap.ui.define([
|
|
|
345
345
|
* @returns {object} The target for the annotations
|
|
346
346
|
*/
|
|
347
347
|
Annotatable.prototype.getTarget = function () {
|
|
348
|
-
if (!this.mAnnotationsForTarget) {
|
|
348
|
+
if (!this.mAnnotationsForTarget) { // eslint-disable-line logical-assignment-operators
|
|
349
349
|
this.mAnnotationsForTarget = this.oConverter.convertedV2Annotations[this.sPath] = {};
|
|
350
350
|
}
|
|
351
351
|
return this.mAnnotationsForTarget;
|
|
@@ -1465,8 +1465,7 @@ sap.ui.define([
|
|
|
1465
1465
|
oToRole = oAssociation.roles[oAssociationSetTo.roleName];
|
|
1466
1466
|
|
|
1467
1467
|
if (oToRole.propertyName) {
|
|
1468
|
-
oEntitySet.$NavigationPropertyBinding
|
|
1469
|
-
= oEntitySet.$NavigationPropertyBinding || {};
|
|
1468
|
+
oEntitySet.$NavigationPropertyBinding ??= {};
|
|
1470
1469
|
oEntitySet.$NavigationPropertyBinding[oToRole.propertyName]
|
|
1471
1470
|
= oAssociationSetTo.entitySetName;
|
|
1472
1471
|
}
|
|
@@ -1526,7 +1525,7 @@ sap.ui.define([
|
|
|
1526
1525
|
* @param {object} $$ The prototype for V4MetadataConverter
|
|
1527
1526
|
*/
|
|
1528
1527
|
(function ($$) {
|
|
1529
|
-
// Note: this function is
|
|
1528
|
+
// Note: this function is run at load time only!
|
|
1530
1529
|
var oStructuredTypeConfig;
|
|
1531
1530
|
|
|
1532
1531
|
$$.sRootNamespace = sEdmxNamespace;
|
|
@@ -160,13 +160,11 @@ sap.ui.define([
|
|
|
160
160
|
if (iPrecision > 0) {
|
|
161
161
|
sPattern += "." + "".padEnd(iPrecision, "S");
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
mPattern2Formatter[sPattern] = DateFormat.getDateTimeInstance({
|
|
163
|
+
mPattern2Formatter[sPattern] ??= DateFormat.getDateTimeInstance({
|
|
165
164
|
calendarType : CalendarType.Gregorian,
|
|
166
165
|
pattern : sPattern,
|
|
167
166
|
UTC : true
|
|
168
167
|
});
|
|
169
|
-
}
|
|
170
168
|
// no need to use UI5Date.getInstance as only UTC is relevant
|
|
171
169
|
return mPattern2Formatter[sPattern].format(new Date(iTicks)) + sOffset;
|
|
172
170
|
};
|
|
@@ -910,15 +908,9 @@ sap.ui.define([
|
|
|
910
908
|
* @private
|
|
911
909
|
*/
|
|
912
910
|
_V2Requestor.getTypeForName = function (sName) {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
oType = this.mTypesByName[sName];
|
|
917
|
-
if (!oType) {
|
|
918
|
-
oType = this.mTypesByName[sName]
|
|
919
|
-
= this.oModelInterface.fetchMetadata("/" + sName).getResult();
|
|
920
|
-
}
|
|
921
|
-
return oType;
|
|
911
|
+
this.mTypesByName ??= {};
|
|
912
|
+
this.mTypesByName[sName] ??= this.oModelInterface.fetchMetadata("/" + sName).getResult();
|
|
913
|
+
return this.mTypesByName[sName];
|
|
922
914
|
};
|
|
923
915
|
|
|
924
916
|
/**
|
|
@@ -545,7 +545,7 @@ sap.ui.define([
|
|
|
545
545
|
* @param {object} $$ The prototype for V4MetadataConverter
|
|
546
546
|
*/
|
|
547
547
|
(function ($$) {
|
|
548
|
-
// Note: this function is
|
|
548
|
+
// Note: this function is run at load time only!
|
|
549
549
|
var oActionOrFunctionConfig,
|
|
550
550
|
oEntitySetConfig,
|
|
551
551
|
oStructuredTypeConfig;
|
|
@@ -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.123.1
|
|
231
231
|
*/
|
|
232
232
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
233
233
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/Log",
|
|
10
10
|
"sap/base/util/each",
|
|
11
|
+
"sap/base/util/extend",
|
|
11
12
|
"sap/base/util/isEmptyObject",
|
|
12
13
|
"sap/ui/core/Lib",
|
|
13
14
|
"sap/ui/core/format/NumberFormat",
|
|
@@ -15,7 +16,8 @@ sap.ui.define([
|
|
|
15
16
|
"sap/ui/model/FormatException",
|
|
16
17
|
"sap/ui/model/ParseException",
|
|
17
18
|
"sap/ui/model/ValidateException"
|
|
18
|
-
], function(Log, each, isEmptyObject, Library, NumberFormat, CompositeType, FormatException, ParseException,
|
|
19
|
+
], function(Log, each, extend, isEmptyObject, Library, NumberFormat, CompositeType, FormatException, ParseException,
|
|
20
|
+
ValidateException) {
|
|
19
21
|
"use strict";
|
|
20
22
|
|
|
21
23
|
/**
|
|
@@ -32,7 +34,7 @@ sap.ui.define([
|
|
|
32
34
|
* @extends sap.ui.model.CompositeType
|
|
33
35
|
*
|
|
34
36
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
37
|
+
* @version 1.123.1
|
|
36
38
|
*
|
|
37
39
|
* @public
|
|
38
40
|
* @param {object} [oFormatOptions]
|
|
@@ -209,11 +211,15 @@ sap.ui.define([
|
|
|
209
211
|
|
|
210
212
|
/**
|
|
211
213
|
* Create formatters used by this type
|
|
214
|
+
*
|
|
212
215
|
* @private
|
|
213
216
|
*/
|
|
214
|
-
Currency.prototype._createFormats = function() {
|
|
217
|
+
Currency.prototype._createFormats = function () {
|
|
215
218
|
var oSourceOptions = this.oFormatOptions.source;
|
|
216
|
-
this.oOutputFormat = NumberFormat.getCurrencyInstance(this.
|
|
219
|
+
this.oOutputFormat = NumberFormat.getCurrencyInstance(this.iScale >= 0
|
|
220
|
+
// ensures that amount scale wins over the decimals for the unit
|
|
221
|
+
? extend({}, {maxFractionDigits : this.iScale}, this.oFormatOptions)
|
|
222
|
+
: this.oFormatOptions);
|
|
217
223
|
if (oSourceOptions) {
|
|
218
224
|
if (isEmptyObject(oSourceOptions)) {
|
|
219
225
|
oSourceOptions = {
|
|
@@ -276,6 +282,44 @@ sap.ui.define([
|
|
|
276
282
|
return [];
|
|
277
283
|
};
|
|
278
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Gets the indices of the binding parts of this composite type in order to determine those parts
|
|
287
|
+
* whose types are required for formatting.
|
|
288
|
+
* If for example the type of the amount part is a {@link sap.ui.model.odata.type.Decimal} with a
|
|
289
|
+
* <code>scale</code> constraint less than the currency part's decimal places, then the amount's
|
|
290
|
+
* scale is used.
|
|
291
|
+
*
|
|
292
|
+
* @returns {int[]}
|
|
293
|
+
* The indices of the parts with a relevant type for this composite type, or an empty array if
|
|
294
|
+
* the format option <code>showNumber</code> is <code>false</code>
|
|
295
|
+
*
|
|
296
|
+
* @override sap.ui.model.CompositeType#getPartsListeningToTypeChanges
|
|
297
|
+
* @see #processPartTypes
|
|
298
|
+
*/
|
|
299
|
+
Currency.prototype.getPartsListeningToTypeChanges = function () {
|
|
300
|
+
// Only the first part is of interest because it may have a type with another scale than the
|
|
301
|
+
// decimal places for the currency part
|
|
302
|
+
return this.bShowNumber ? [0] : [];
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Processes the types of this composite type's parts. Remembers the <code>scale</code>
|
|
307
|
+
* constraint of the amount part's type to consider it while formatting.
|
|
308
|
+
*
|
|
309
|
+
* @param {sap.ui.model.SimpleType[]} aPartTypes The types of the composite binding parts
|
|
310
|
+
*
|
|
311
|
+
* @override sap.ui.model.CompositeType#processPartTypes
|
|
312
|
+
* @protected
|
|
313
|
+
* @since 1.123.0
|
|
314
|
+
*/
|
|
315
|
+
Currency.prototype.processPartTypes = function (aPartTypes) {
|
|
316
|
+
const iOldScale = this.iScale;
|
|
317
|
+
this.iScale = aPartTypes[0]?.oConstraints?.scale;
|
|
318
|
+
if (iOldScale !== this.iScale) {
|
|
319
|
+
this._createFormats();
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
279
323
|
return Currency;
|
|
280
324
|
|
|
281
325
|
});
|
|
@@ -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.123.1
|
|
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.123.1
|
|
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.123.1
|
|
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.123.1
|
|
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.123.1
|
|
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.123.1
|
|
53
53
|
*
|
|
54
54
|
* @public
|
|
55
55
|
* @param {object} [oFormatOptions]
|
|
@@ -139,7 +139,7 @@ sap.ui.define([
|
|
|
139
139
|
|
|
140
140
|
if (this.iScale >= 0) {
|
|
141
141
|
// ensures that amount scale wins over the decimals for the unit
|
|
142
|
-
oFormatOptionsMerged = extend({},
|
|
142
|
+
oFormatOptionsMerged = extend({}, {maxFractionDigits: this.iScale}, oFormatOptionsMerged);
|
|
143
143
|
}
|
|
144
144
|
// Only subclasses of the Unit type use a NumberFormat instance cache.
|
|
145
145
|
// By default a new NumberFormat instance is created everytime.
|
|
@@ -247,14 +247,15 @@ sap.ui.define([
|
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* Gets the indices of the binding parts
|
|
250
|
+
* Gets the indices of the binding parts of this composite type in order to determine those parts
|
|
251
|
+
* whose types are required for formatting.
|
|
251
252
|
* If for example the type of the amount part is a {@link sap.ui.model.odata.type.Decimal} with a
|
|
252
253
|
* <code>scale</scale> constraint less than the unit part's decimal places, then the amount's scale is
|
|
253
254
|
* used.
|
|
254
255
|
*
|
|
255
256
|
* @returns {int[]}
|
|
256
257
|
* The indices of the parts with a relevant type for this composite type, or an empty array if
|
|
257
|
-
* the format option <code>showNumber</code> is
|
|
258
|
+
* the format option <code>showNumber</code> is <code>false</code>
|
|
258
259
|
*
|
|
259
260
|
* @override sap.ui.model.CompositeType#getPartsListeningToTypeChanges
|
|
260
261
|
* @see #processPartTypes
|
|
@@ -10,6 +10,9 @@ sap.ui.define([ 'sap/ui/core/ElementRegistry', 'sap/ui/core/Control', "sap/ui/qu
|
|
|
10
10
|
function(ElementRegistry, Control, nextUIUpdate) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated As of version 1.120, as sync code loading has been deprecated. The calling context must provide QUnit.
|
|
15
|
+
*/
|
|
13
16
|
if ( typeof QUnit === "undefined" ) {
|
|
14
17
|
sap.ui.requireSync("sap/ui/qunit/qunit-css"); // legacy-relevant - sync fallback when caller did not load QUnit
|
|
15
18
|
sap.ui.requireSync("sap/ui/thirdparty/qunit"); // legacy-relevant - sync fallback when caller did not load QUnit
|
|
@@ -27,7 +30,7 @@ sap.ui.define([ 'sap/ui/core/ElementRegistry', 'sap/ui/core/Control', "sap/ui/qu
|
|
|
27
30
|
* @namespace
|
|
28
31
|
*
|
|
29
32
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
33
|
+
* @version 1.123.1
|
|
31
34
|
*
|
|
32
35
|
* @public
|
|
33
36
|
* @since 1.48.0
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
var Log,
|
|
23
23
|
sClassName = "sap.ui.base.SyncPromise",
|
|
24
24
|
iNo = 0,
|
|
25
|
+
rSearchParamWithoutValue = /(=)(?=&|$)/g,
|
|
25
26
|
mUncaughtById = {},
|
|
26
27
|
mUncaughtPromise2Reason = new Map();
|
|
27
28
|
|
|
@@ -343,12 +344,57 @@
|
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
|
|
347
|
+
const oParams = new URLSearchParams(document.location.search);
|
|
348
|
+
|
|
349
|
+
// add a button to clear the filter
|
|
350
|
+
if (oParams.has("filter")) {
|
|
351
|
+
const oClearFilter = document.createElement("button");
|
|
352
|
+
|
|
353
|
+
oClearFilter.innerText = "\u2715"; // X
|
|
354
|
+
oClearFilter.addEventListener("click", (ev) => {
|
|
355
|
+
ev.preventDefault();
|
|
356
|
+
|
|
357
|
+
oParams.delete("filter");
|
|
358
|
+
document.location.search = oParams.toString()
|
|
359
|
+
.replace(rSearchParamWithoutValue, '');
|
|
360
|
+
|
|
361
|
+
});
|
|
362
|
+
document.querySelector(".qunit-filter button")
|
|
363
|
+
.insertAdjacentElement("beforeBegin", oClearFilter);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// Add a hover effect to buttons (colors inspired by QUnit's own CSS)
|
|
367
|
+
const oStyle = document.createElement('style');
|
|
368
|
+
oStyle.innerText = `
|
|
369
|
+
button:hover {
|
|
370
|
+
background-color: #DDD !important;
|
|
371
|
+
}
|
|
372
|
+
button:focus {
|
|
373
|
+
box-shadow: 0 0 0 2px rgba(94, 116, 11, 0.5) !important;
|
|
374
|
+
}
|
|
375
|
+
`;
|
|
376
|
+
document.head.appendChild(oStyle);
|
|
377
|
+
|
|
346
378
|
// remember which lines have been covered initially, at load time
|
|
347
379
|
saveInitialCoverage();
|
|
348
380
|
});
|
|
349
381
|
|
|
350
382
|
QUnit.done(() => {
|
|
351
383
|
filterCoverage();
|
|
384
|
+
|
|
385
|
+
// "Run all tests" in "Rerunning selected tests" case: Same href as document, but remove
|
|
386
|
+
// testId
|
|
387
|
+
const oParams = new URLSearchParams(document.location.search);
|
|
388
|
+
if (oParams.has("moduleId")) {
|
|
389
|
+
const oClearFilter = document.querySelector("#qunit-clearFilter");
|
|
390
|
+
if (oClearFilter) {
|
|
391
|
+
oParams.delete("testId");
|
|
392
|
+
const oRunModulesURL = new URL(document.location.href);
|
|
393
|
+
oRunModulesURL.search = oParams.toString()
|
|
394
|
+
.replace(rSearchParamWithoutValue, '');
|
|
395
|
+
oClearFilter.href = oRunModulesURL;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
352
398
|
});
|
|
353
399
|
}
|
|
354
400
|
}());
|
|
@@ -255,8 +255,8 @@ sap.ui.define(
|
|
|
255
255
|
*
|
|
256
256
|
* @param {sap.ui.test.Opa5} [oOpaInstance] the Opa5 instance to operate on
|
|
257
257
|
* @param {sap.ui.test.Opa5.SingleControlSelector|sap.ui.test.Opa5.MultiControlSelector} [oOptions] the initial {@link sap.ui.test.Opa5#waitFor} options
|
|
258
|
-
* @returns {sap
|
|
259
|
-
* @alias sap
|
|
258
|
+
* @returns {module:sap/ui/test/OpaBuilder} this OpaBuilder instance
|
|
259
|
+
* @alias module:sap/ui/test/OpaBuilder
|
|
260
260
|
* @public
|
|
261
261
|
*/
|
|
262
262
|
var OpaBuilder = function (oOpaInstance, oOptions) {
|
|
@@ -292,7 +292,7 @@ sap.ui.define(
|
|
|
292
292
|
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]} [vMatchers] additional matchers to filter target control(s)
|
|
293
293
|
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]} [vActions] the actions to be performed on target control(s)
|
|
294
294
|
* @param {sap.ui.test.Opa5.SingleControlSelector|sap.ui.test.Opa5.MultiControlSelector} [oOptions] oOptions the {@link sap.ui.test.Opa5#waitFor} options to apply
|
|
295
|
-
* @returns {sap
|
|
295
|
+
* @returns {module:sap/ui/test/OpaBuilder} a new OpaBuilder instance
|
|
296
296
|
* @public
|
|
297
297
|
* @static
|
|
298
298
|
*/
|
|
@@ -503,7 +503,7 @@ sap.ui.define(
|
|
|
503
503
|
/**
|
|
504
504
|
* Adds a matcher that checks whether at least one child fulfilling given matcher(s).
|
|
505
505
|
*
|
|
506
|
-
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|sap
|
|
506
|
+
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|module:sap/ui/test/OpaBuilder}
|
|
507
507
|
* [vBuilderOrMatcher] the matchers to filter child items
|
|
508
508
|
* @param {boolean} [bDirect] specifies if the ancestor should be a direct ancestor (parent)
|
|
509
509
|
* @returns {this} this OpaBuilder instance
|
|
@@ -514,7 +514,7 @@ sap.ui.define(
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
|
-
* Adds a matcher that checks states for given conditions. It is internally using {@link sap
|
|
517
|
+
* Adds a matcher that checks states for given conditions. It is internally using {@link module:sap/ui/test/OpaBuilder#Matchers.conditional}.
|
|
518
518
|
*
|
|
519
519
|
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|boolean} vConditions conditions to pre-check
|
|
520
520
|
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|Object} vSuccessMatcher actual matcher that is executed if conditions are met
|
|
@@ -527,7 +527,7 @@ sap.ui.define(
|
|
|
527
527
|
};
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
|
-
* Adds a group of matchers that requires only one of them to actually match. It is internally using {@link sap
|
|
530
|
+
* Adds a group of matchers that requires only one of them to actually match. It is internally using {@link module:sap/ui/test/OpaBuilder#Matchers.some}.
|
|
531
531
|
*
|
|
532
532
|
* @param [aMatchers=[{sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]}]] aMatchers list of matchers where one must be met
|
|
533
533
|
* @returns {this} this OpaBuilder instance
|
|
@@ -630,7 +630,7 @@ sap.ui.define(
|
|
|
630
630
|
};
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
|
-
* Add an action that is only performed if target control fulfills the conditions. It is internally using {@link sap
|
|
633
|
+
* Add an action that is only performed if target control fulfills the conditions. It is internally using {@link module:sap/ui/test/OpaBuilder#Actions.conditional}.
|
|
634
634
|
*
|
|
635
635
|
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|boolean}
|
|
636
636
|
* vConditions target control is checked against these given conditions
|
|
@@ -702,7 +702,7 @@ sap.ui.define(
|
|
|
702
702
|
* Executes a builder with matching controls being descendants of matching target control(s).
|
|
703
703
|
* Children are any controls in the control tree beneath this target control(s).
|
|
704
704
|
*
|
|
705
|
-
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|sap
|
|
705
|
+
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|module:sap/ui/test/OpaBuilder} [vChildBuilderOrMatcher] the child builder or child matcher
|
|
706
706
|
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]}
|
|
707
707
|
* [vActions] the actions to be performed on matching child items
|
|
708
708
|
* @param {boolean} [bDirect] specifies if the ancestor should be a direct ancestor (parent)
|
|
@@ -742,7 +742,7 @@ sap.ui.define(
|
|
|
742
742
|
/**
|
|
743
743
|
* Adds a success message or function. When providing an OpaBuilder, the action will execute it.
|
|
744
744
|
*
|
|
745
|
-
* @param {string|function|sap
|
|
745
|
+
* @param {string|function|module:sap/ui/test/OpaBuilder} vSuccess the message that will be shown (or function executed) on success
|
|
746
746
|
* @param {boolean} [bReplace] true to replace all previous defined success functions, false to add it (default)
|
|
747
747
|
* @returns {this} this OpaBuilder instance
|
|
748
748
|
* @public
|
|
@@ -797,10 +797,10 @@ sap.ui.define(
|
|
|
797
797
|
};
|
|
798
798
|
|
|
799
799
|
/**
|
|
800
|
-
* Set the Opa5 instance to be used for {@link sap
|
|
800
|
+
* Set the Opa5 instance to be used for {@link module:sap/ui/test/OpaBuilder#execute}.
|
|
801
801
|
* Please note that this function does not return the OpaBuilder instance and can therefore not be chained.
|
|
802
|
-
* Use the <code>oOpaInstance</code> argument of {@link sap
|
|
803
|
-
* or {@link sap
|
|
802
|
+
* Use the <code>oOpaInstance</code> argument of {@link module:sap/ui/test/OpaBuilder#create}, {@link module:sap/ui/test/OpaBuilder#constructor}
|
|
803
|
+
* or {@link module:sap/ui/test/OpaBuilder#execute} to provide the Opa5 instance within the builder chain.
|
|
804
804
|
* @param {sap.ui.test.Opa5} [oOpaInstance] the Opa5 instance to operate on
|
|
805
805
|
* @public
|
|
806
806
|
*/
|
|
@@ -812,7 +812,7 @@ sap.ui.define(
|
|
|
812
812
|
};
|
|
813
813
|
|
|
814
814
|
/**
|
|
815
|
-
* Get the Opa5 instance that will be used for {@link sap
|
|
815
|
+
* Get the Opa5 instance that will be used for {@link module:sap/ui/test/OpaBuilder#execute}.
|
|
816
816
|
* If no {sap.ui.test.Opa5} instance was set before, this function creates a new one lazily.
|
|
817
817
|
* @returns {sap.ui.test.Opa5} the Opa5 instance
|
|
818
818
|
* @public
|
|
@@ -827,7 +827,7 @@ sap.ui.define(
|
|
|
827
827
|
/**
|
|
828
828
|
* A collection of predefined matchers.
|
|
829
829
|
* See also {@link sap.ui.test.matchers}
|
|
830
|
-
* @namespace sap
|
|
830
|
+
* @namespace module:sap/ui/test/OpaBuilder#Matchers
|
|
831
831
|
* @public
|
|
832
832
|
*/
|
|
833
833
|
OpaBuilder.Matchers = {
|
|
@@ -1061,7 +1061,7 @@ sap.ui.define(
|
|
|
1061
1061
|
* Creates a matcher function that returns all children fulfilling given matcher(s).
|
|
1062
1062
|
* The result will always be an array, even if only one child was found.
|
|
1063
1063
|
*
|
|
1064
|
-
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|sap
|
|
1064
|
+
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|module:sap/ui/test/OpaBuilder}
|
|
1065
1065
|
* [vBuilderOrMatcher] the matchers to filter child items
|
|
1066
1066
|
* @param {boolean} [bDirect] specifies if the ancestor should be a direct ancestor (parent)
|
|
1067
1067
|
* @returns {function(sap.ui.core.Element):sap.ui.core.Element[]} matcher function returning all matching children
|
|
@@ -1088,7 +1088,7 @@ sap.ui.define(
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Creates a matcher function that checks whether one children fulfilling given matcher(s).
|
|
1090
1090
|
*
|
|
1091
|
-
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|sap
|
|
1091
|
+
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|module:sap/ui/test/OpaBuilder}
|
|
1092
1092
|
* [vBuilderOrMatcher] the matchers to filter child items
|
|
1093
1093
|
* @param {boolean} [bDirect] specifies if the ancestor should be a direct ancestor (parent)
|
|
1094
1094
|
* @returns {function(sap.ui.core.Element):boolean} matcher function
|
|
@@ -1352,7 +1352,7 @@ sap.ui.define(
|
|
|
1352
1352
|
|
|
1353
1353
|
/**
|
|
1354
1354
|
* A collection of predefined actions. See also {@link sap.ui.test.actions}.
|
|
1355
|
-
* @namespace sap
|
|
1355
|
+
* @namespace module:sap/ui/test/OpaBuilder#Actions
|
|
1356
1356
|
* @public
|
|
1357
1357
|
*/
|
|
1358
1358
|
OpaBuilder.Actions = {
|
|
@@ -1394,9 +1394,9 @@ sap.ui.define(
|
|
|
1394
1394
|
*
|
|
1395
1395
|
* @param {sap.ui.test.Opa5.Matcher|sap.ui.test.Opa5.Matcher[]|boolean}
|
|
1396
1396
|
* vConditions target control is checked against these given conditions
|
|
1397
|
-
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]|sap
|
|
1397
|
+
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]|module:sap/ui/test/OpaBuilder}
|
|
1398
1398
|
* vSuccessBuilderOrOptions the actions to be performed when conditions are fulfilled
|
|
1399
|
-
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]|sap
|
|
1399
|
+
* @param {sap.ui.test.Opa5.Action|sap.ui.test.Opa5.Action[]|module:sap/ui/test/OpaBuilder}
|
|
1400
1400
|
* [vElseBuilderOptions] the action(s) to be performed when conditions are not fulfilled
|
|
1401
1401
|
* @returns {function(sap.ui.core.Element)} an action function
|
|
1402
1402
|
* @public
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/util/extend",
|
|
8
9
|
"./WaiterBase"
|
|
9
|
-
], function(WaiterBase) {
|
|
10
|
+
], function(extend, WaiterBase) {
|
|
10
11
|
"use strict";
|
|
11
12
|
|
|
12
13
|
var oState = {
|
|
@@ -15,10 +16,12 @@ sap.ui.define([
|
|
|
15
16
|
CANCELLED: "CANCELLED"
|
|
16
17
|
};
|
|
17
18
|
|
|
19
|
+
var iInitiatorId = null;
|
|
20
|
+
|
|
18
21
|
var JSAnimationWaiter = WaiterBase.extend("sap.ui.test.autowaiter._jsAnimationWaiter", {
|
|
19
22
|
constructor: function() {
|
|
20
23
|
WaiterBase.apply(this, arguments);
|
|
21
|
-
this._oTrackedAnimations = new
|
|
24
|
+
this._oTrackedAnimations = new Map();
|
|
22
25
|
|
|
23
26
|
if (window.requestAnimationFrame) {
|
|
24
27
|
var fnOriginalRequestAnimationFrame = window.requestAnimationFrame;
|
|
@@ -26,8 +29,13 @@ sap.ui.define([
|
|
|
26
29
|
var sId,
|
|
27
30
|
aCallbackArgs = Array.prototype.slice.call(arguments, 1),
|
|
28
31
|
wrappedCallback = function(iTimestamp) {
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
iInitiatorId = sId;
|
|
33
|
+
try {
|
|
34
|
+
callback(iTimestamp);
|
|
35
|
+
} finally {
|
|
36
|
+
iInitiatorId = null;
|
|
37
|
+
this._deregister(sId, oState.EXECUTED);
|
|
38
|
+
}
|
|
31
39
|
}.bind(this);
|
|
32
40
|
|
|
33
41
|
sId = fnOriginalRequestAnimationFrame.apply(null, [wrappedCallback].concat(aCallbackArgs));
|
|
@@ -48,7 +56,8 @@ sap.ui.define([
|
|
|
48
56
|
|
|
49
57
|
_register: function(sId, sReason) {
|
|
50
58
|
this._oLogger.trace("register", "ID: " + sId + " Reason: " + sReason);
|
|
51
|
-
this._oTrackedAnimations.
|
|
59
|
+
var iStartTime = this._oTrackedAnimations.get(iInitiatorId)?.startTime || Date.now();
|
|
60
|
+
this._oTrackedAnimations.set(sId, {startTime: iStartTime});
|
|
52
61
|
},
|
|
53
62
|
|
|
54
63
|
_deregister: function(sId, sReason) {
|
|
@@ -56,8 +65,32 @@ sap.ui.define([
|
|
|
56
65
|
this._oTrackedAnimations.delete(sId);
|
|
57
66
|
},
|
|
58
67
|
|
|
68
|
+
_getDefaultConfig: function () {
|
|
69
|
+
return extend({
|
|
70
|
+
// animations that exceed the maxDuration will be ignored (considered as background processes)
|
|
71
|
+
maxDuration: 1000 // milliseconds
|
|
72
|
+
}, WaiterBase.prototype._getDefaultConfig.call(this));
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
_getValidationInfo: function () {
|
|
76
|
+
return extend({
|
|
77
|
+
maxDuration: "numeric"
|
|
78
|
+
}, WaiterBase.prototype._getValidationInfo.call(this));
|
|
79
|
+
},
|
|
80
|
+
|
|
59
81
|
hasPending: function () {
|
|
60
|
-
var bHasPending =
|
|
82
|
+
var bHasPending = false,
|
|
83
|
+
iMaxDuration = this._getDefaultConfig().maxDuration,
|
|
84
|
+
iElapsedTime;
|
|
85
|
+
for (var oEntry of this._oTrackedAnimations.values()) {
|
|
86
|
+
iElapsedTime = Date.now() - oEntry.startTime;
|
|
87
|
+
// ignore animations that excede the <code>iMaxDuration</code>
|
|
88
|
+
// as these are considered background processes that never end
|
|
89
|
+
if (iElapsedTime < iMaxDuration) {
|
|
90
|
+
bHasPending = true;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
61
94
|
this._oLogger.trace("hasPending", bHasPending);
|
|
62
95
|
if (bHasPending) {
|
|
63
96
|
this._oHasPendingLogger.debug("jsAnimation in progress");
|