@openui5/sap.ui.core 1.122.0 → 1.123.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/.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 +223 -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
|
@@ -12,7 +12,9 @@ sap.ui.define([
|
|
|
12
12
|
function _enforceNoReturnValue(vResult, mLogInfo) {
|
|
13
13
|
if (vResult !== undefined) {
|
|
14
14
|
const sFunctionName = mLogInfo.name ? `'${mLogInfo.name}' ` : '';
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
16
18
|
if (typeof vResult.then === "function") {
|
|
17
19
|
vResult.catch((err) => {
|
|
18
20
|
Log.error(`The registered Event Listener ${sFunctionName}of '${mLogInfo.component}' failed.`, err);
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
/** autoconfig */
|
|
762
762
|
var sBaseUrl, bNojQuery,
|
|
763
763
|
aScripts, rBootScripts, i,
|
|
764
|
-
sBootstrapUrl
|
|
764
|
+
sBootstrapUrl;
|
|
765
765
|
|
|
766
766
|
function findBaseUrl(oScript, rUrlPattern) {
|
|
767
767
|
var sUrl = oScript && oScript.getAttribute("src"),
|
|
@@ -972,19 +972,25 @@
|
|
|
972
972
|
freeze: true
|
|
973
973
|
});
|
|
974
974
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
975
|
+
/**
|
|
976
|
+
* Evaluate legacy configuration.
|
|
977
|
+
* @deprecated As of version 1.120
|
|
978
|
+
*/
|
|
979
|
+
(() => {
|
|
980
|
+
// xx-future implicitly sets the loader to async
|
|
981
|
+
const bAsync = BaseConfig.get({
|
|
982
|
+
name: "sapUiAsync",
|
|
983
|
+
type: BaseConfig.Type.Boolean,
|
|
984
|
+
external: true,
|
|
985
|
+
freeze: true
|
|
986
|
+
}) || bFuture;
|
|
982
987
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
+
if (bAsync) {
|
|
989
|
+
ui5loader.config({
|
|
990
|
+
async: true
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
})();
|
|
988
994
|
|
|
989
995
|
// Note: loader converts any NaN value to a default value
|
|
990
996
|
ui5loader._.maxTaskDuration = BaseConfig.get({
|
|
@@ -996,7 +1002,7 @@
|
|
|
996
1002
|
});
|
|
997
1003
|
|
|
998
1004
|
// support legacy switch 'noLoaderConflict', but 'amdLoader' has higher precedence
|
|
999
|
-
bExposeAsAMDLoader = BaseConfig.get({
|
|
1005
|
+
const bExposeAsAMDLoader = BaseConfig.get({
|
|
1000
1006
|
name: "sapUiAmd",
|
|
1001
1007
|
type: BaseConfig.Type.Boolean,
|
|
1002
1008
|
defaultValue: !BaseConfig.get({
|
|
@@ -1010,7 +1016,7 @@
|
|
|
1010
1016
|
freeze: true
|
|
1011
1017
|
});
|
|
1012
1018
|
|
|
1013
|
-
//calculate syncCallBehavior
|
|
1019
|
+
// calculate syncCallBehavior
|
|
1014
1020
|
let syncCallBehavior = 0; // ignore
|
|
1015
1021
|
let sNoSync = BaseConfig.get({ // call must be made to ensure freezing
|
|
1016
1022
|
name: "sapUiXxNoSync",
|
|
@@ -1029,7 +1035,7 @@
|
|
|
1029
1035
|
}
|
|
1030
1036
|
|
|
1031
1037
|
/**
|
|
1032
|
-
* @deprecated As of
|
|
1038
|
+
* @deprecated As of version 1.120
|
|
1033
1039
|
*/
|
|
1034
1040
|
(() => {
|
|
1035
1041
|
const GlobalConfigurationProvider = sap.ui.require("sap/base/config/GlobalConfigurationProvider");
|
package/src/ui5loader.js
CHANGED
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
*
|
|
123
123
|
* To be used by code coverage, only supported in sync mode.
|
|
124
124
|
* @private
|
|
125
|
+
* @ui5-transform-hint replace-local undefined
|
|
125
126
|
*/
|
|
126
127
|
let translate;
|
|
127
128
|
|
|
@@ -146,6 +147,7 @@
|
|
|
146
147
|
* When activated, require will load asynchronously, else synchronously.
|
|
147
148
|
* @type {boolean}
|
|
148
149
|
* @private
|
|
150
|
+
* @ui5-transform-hint replace-local true
|
|
149
151
|
*/
|
|
150
152
|
let bGlobalAsyncMode = false;
|
|
151
153
|
|
|
@@ -1526,6 +1528,7 @@
|
|
|
1526
1528
|
* @throws {Error} When loading failed in sync mode
|
|
1527
1529
|
*
|
|
1528
1530
|
* @private
|
|
1531
|
+
* @ui5-transform-hint replace-param bAsync true
|
|
1529
1532
|
*/
|
|
1530
1533
|
function requireModule(oRequestingModule, sModuleName, bAsync, bSkipShimDeps, bSkipBundle) {
|
|
1531
1534
|
|
|
@@ -1720,7 +1723,11 @@
|
|
|
1720
1723
|
}
|
|
1721
1724
|
}
|
|
1722
1725
|
|
|
1723
|
-
|
|
1726
|
+
/**
|
|
1727
|
+
* Note: `sModuleName` must be a normalized resource name of type .js
|
|
1728
|
+
* @private
|
|
1729
|
+
* @ui5-transform-hint replace-param bAsync true
|
|
1730
|
+
*/
|
|
1724
1731
|
function execModule(sModuleName, bAsync) {
|
|
1725
1732
|
|
|
1726
1733
|
const oModule = mModules[sModuleName];
|
|
@@ -1826,6 +1833,10 @@
|
|
|
1826
1833
|
}
|
|
1827
1834
|
}
|
|
1828
1835
|
|
|
1836
|
+
/**
|
|
1837
|
+
* @private
|
|
1838
|
+
* @ui5-transform-hint replace-param bAsync true
|
|
1839
|
+
*/
|
|
1829
1840
|
function requireAll(oRequestingModule, aDependencies, fnCallback, fnErrCallback, bAsync) {
|
|
1830
1841
|
|
|
1831
1842
|
const aModules = [];
|
|
@@ -1893,6 +1904,11 @@
|
|
|
1893
1904
|
}
|
|
1894
1905
|
}
|
|
1895
1906
|
|
|
1907
|
+
/**
|
|
1908
|
+
* @private
|
|
1909
|
+
* @ui5-transform-hint replace-param bAsync true
|
|
1910
|
+
* @ui5-transform-hint replace-param bExport false
|
|
1911
|
+
*/
|
|
1896
1912
|
function executeModuleDefinition(sResourceName, aDependencies, vFactory, bExport, bAsync) {
|
|
1897
1913
|
const bLoggable = log.isLoggable();
|
|
1898
1914
|
sResourceName = normalize(sResourceName);
|
|
@@ -2012,6 +2028,10 @@
|
|
|
2012
2028
|
|
|
2013
2029
|
}
|
|
2014
2030
|
|
|
2031
|
+
/**
|
|
2032
|
+
* @private
|
|
2033
|
+
* @ui5-transform-hint replace-param bExport false
|
|
2034
|
+
*/
|
|
2015
2035
|
function ui5Define(sModuleName, aDependencies, vFactory, bExport) {
|
|
2016
2036
|
let sResourceName;
|
|
2017
2037
|
|
|
@@ -2202,6 +2222,10 @@
|
|
|
2202
2222
|
return unwrapExport(requireModule(null, sModuleName, /* bAsync = */ false));
|
|
2203
2223
|
}
|
|
2204
2224
|
|
|
2225
|
+
/**
|
|
2226
|
+
* @private
|
|
2227
|
+
* @ui5-transform-hint replace-param bExport false
|
|
2228
|
+
*/
|
|
2205
2229
|
function predefine(sModuleName, aDependencies, vFactory, bExport) {
|
|
2206
2230
|
if ( typeof sModuleName !== 'string' ) {
|
|
2207
2231
|
throw new Error("predefine requires a module name");
|
|
@@ -2565,9 +2589,17 @@
|
|
|
2565
2589
|
set measure(v) {
|
|
2566
2590
|
measure = v;
|
|
2567
2591
|
},
|
|
2592
|
+
/**
|
|
2593
|
+
* @deprecated As of version 1.120, sync loading is deprecated without replacement due to the deprecation
|
|
2594
|
+
* of sync XMLHttpRequests in the web standard.
|
|
2595
|
+
*/
|
|
2568
2596
|
get translate() {
|
|
2569
2597
|
return translate;
|
|
2570
2598
|
},
|
|
2599
|
+
/**
|
|
2600
|
+
* @deprecated As of version 1.120, sync loading is deprecated without replacement due to the deprecation
|
|
2601
|
+
* of sync XMLHttpRequests in the web standard.
|
|
2602
|
+
*/
|
|
2571
2603
|
set translate(v) {
|
|
2572
2604
|
translate = v;
|
|
2573
2605
|
},
|
|
@@ -2588,6 +2620,9 @@
|
|
|
2588
2620
|
amdDefine,
|
|
2589
2621
|
amdRequire,
|
|
2590
2622
|
config: ui5Config,
|
|
2623
|
+
/**
|
|
2624
|
+
* @deprecated As of version 1.120, all usages of this private API have been deprecated
|
|
2625
|
+
*/
|
|
2591
2626
|
declareModule(sResourceName, sDeprecationMessage) {
|
|
2592
2627
|
/* void */ declareModule(normalize(sResourceName), sDeprecationMessage);
|
|
2593
2628
|
},
|
|
@@ -3282,6 +3317,8 @@
|
|
|
3282
3317
|
* @ui5-restricted sap.ui.core
|
|
3283
3318
|
* @function
|
|
3284
3319
|
* @ui5-global-only
|
|
3320
|
+
* @deprecated As of version 1.120, sync loading is deprecated without replacement due to the deprecation
|
|
3321
|
+
* of sync XMLHttpRequests in the web standard.
|
|
3285
3322
|
*/
|
|
3286
3323
|
sap.ui.requireSync = requireSync;
|
|
3287
3324
|
|
|
@@ -186,9 +186,20 @@
|
|
|
186
186
|
"category": "Display",
|
|
187
187
|
"since": "1.30",
|
|
188
188
|
"samples": [
|
|
189
|
-
"sap.ui.core.sample.
|
|
190
|
-
"sap.ui.core.sample.
|
|
191
|
-
"sap.ui.core.sample.
|
|
189
|
+
"sap.ui.core.sample.Messaging.BasicMessages",
|
|
190
|
+
"sap.ui.core.sample.Messaging.BasicODataMessages",
|
|
191
|
+
"sap.ui.core.sample.Messaging.ODataBackendMessagesComp"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "sap.ui.core.Messaging",
|
|
196
|
+
"name": "Messaging",
|
|
197
|
+
"category": "Display",
|
|
198
|
+
"since": "1.118",
|
|
199
|
+
"samples": [
|
|
200
|
+
"sap.ui.core.sample.Messaging.BasicMessages",
|
|
201
|
+
"sap.ui.core.sample.Messaging.BasicODataMessages",
|
|
202
|
+
"sap.ui.core.sample.Messaging.ODataBackendMessagesComp"
|
|
192
203
|
]
|
|
193
204
|
},
|
|
194
205
|
{
|
|
@@ -788,17 +799,17 @@
|
|
|
788
799
|
"description": "The descendant matcher checks if a control has a given descendant."
|
|
789
800
|
},
|
|
790
801
|
{
|
|
791
|
-
"id": "sap.ui.core.sample.
|
|
802
|
+
"id": "sap.ui.core.sample.Messaging.BasicMessages",
|
|
792
803
|
"name": "Basic Messages",
|
|
793
804
|
"description": "Shows how to create messages on the frontend and display them afterwards. This can be used for form validation on the frontend."
|
|
794
805
|
},
|
|
795
806
|
{
|
|
796
|
-
"id": "sap.ui.core.sample.
|
|
807
|
+
"id": "sap.ui.core.sample.Messaging.BasicODataMessages",
|
|
797
808
|
"name": "Basic OData Messages",
|
|
798
809
|
"description": "Uses the OData V2 mock server to simulate an OData response containing different types of server side messages (error, warning, info, success)."
|
|
799
810
|
},
|
|
800
811
|
{
|
|
801
|
-
"id": "sap.ui.core.sample.
|
|
812
|
+
"id": "sap.ui.core.sample.Messaging.ODataBackendMessagesComp",
|
|
802
813
|
"name": "OData Messages Component",
|
|
803
814
|
"description": "Shows how to handle OData responses containing server side messages in component based apps. Also illustrates how the sap-message header works."
|
|
804
815
|
},
|
package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/Component.js
RENAMED
|
@@ -3,7 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
], function (UIComponent) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
return UIComponent.extend("sap.ui.core.sample.
|
|
6
|
+
return UIComponent.extend("sap.ui.core.sample.Messaging.BasicMessages.Component", {
|
|
7
7
|
metadata: {
|
|
8
8
|
manifest: "json"
|
|
9
9
|
}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
|
-
"sap/ui/core/
|
|
3
|
-
"sap/ui/model/json/JSONModel",
|
|
4
|
-
"sap/ui/model/BindingMode",
|
|
2
|
+
"sap/ui/core/library",
|
|
5
3
|
"sap/ui/core/Messaging",
|
|
6
4
|
"sap/ui/core/message/Message",
|
|
7
|
-
"sap/ui/core/
|
|
8
|
-
"sap/ui/core/
|
|
9
|
-
|
|
5
|
+
"sap/ui/core/message/MessageType",
|
|
6
|
+
"sap/ui/core/mvc/Controller",
|
|
7
|
+
"sap/ui/model/BindingMode",
|
|
8
|
+
"sap/ui/model/json/JSONModel"
|
|
9
|
+
], function(coreLibrary, Messaging, Message, MessageType, Controller, BindingMode, JSONModel) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
// shortcut for sap.ui.core.ValueState
|
|
13
|
-
|
|
13
|
+
const { ValueState } = coreLibrary;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
var MessageType = library.MessageType;
|
|
15
|
+
return Controller.extend("sap.ui.core.sample.Messaging.BasicMessages.Controller", {
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onInit : function () {
|
|
21
|
-
var oModel, oView;
|
|
22
|
-
|
|
23
|
-
oView = this.getView();
|
|
17
|
+
onInit() {
|
|
18
|
+
const oView = this.getView();
|
|
24
19
|
|
|
25
20
|
// set message model
|
|
26
21
|
oView.setModel(Messaging.getMessageModel(), "message");
|
|
@@ -29,7 +24,7 @@ sap.ui.define([
|
|
|
29
24
|
Messaging.registerObject(oView, true);
|
|
30
25
|
|
|
31
26
|
// create a default model with somde demo data
|
|
32
|
-
oModel = new JSONModel({
|
|
27
|
+
const oModel = new JSONModel({
|
|
33
28
|
MandatoryInputValue: "",
|
|
34
29
|
DateValue: null,
|
|
35
30
|
IntegerValue: undefined,
|
|
@@ -37,18 +32,16 @@ sap.ui.define([
|
|
|
37
32
|
});
|
|
38
33
|
oModel.setDefaultBindingMode(BindingMode.TwoWay);
|
|
39
34
|
oView.setModel(oModel);
|
|
40
|
-
|
|
41
35
|
},
|
|
42
36
|
|
|
43
|
-
onMessagePopoverPress
|
|
44
|
-
|
|
45
|
-
this._getMessagePopover()
|
|
46
|
-
|
|
47
|
-
});
|
|
37
|
+
async onMessagePopoverPress(oEvent) {
|
|
38
|
+
const oSourceControl = oEvent.getSource();
|
|
39
|
+
const oMessagePopover = await this._getMessagePopover();
|
|
40
|
+
oMessagePopover.openBy(oSourceControl);
|
|
48
41
|
},
|
|
49
42
|
|
|
50
|
-
onSuccessPress
|
|
51
|
-
|
|
43
|
+
onSuccessPress() {
|
|
44
|
+
const oMessage = new Message({
|
|
52
45
|
message: "My generated success message",
|
|
53
46
|
type: MessageType.Success,
|
|
54
47
|
target: "/Dummy",
|
|
@@ -57,8 +50,8 @@ sap.ui.define([
|
|
|
57
50
|
Messaging.addMessages(oMessage);
|
|
58
51
|
},
|
|
59
52
|
|
|
60
|
-
onErrorPress
|
|
61
|
-
|
|
53
|
+
onErrorPress() {
|
|
54
|
+
const oMessage = new Message({
|
|
62
55
|
message: "My generated error message",
|
|
63
56
|
type: MessageType.Error,
|
|
64
57
|
target: "/Dummy",
|
|
@@ -67,8 +60,8 @@ sap.ui.define([
|
|
|
67
60
|
Messaging.addMessages(oMessage);
|
|
68
61
|
},
|
|
69
62
|
|
|
70
|
-
onWarningPress
|
|
71
|
-
|
|
63
|
+
onWarningPress() {
|
|
64
|
+
const oMessage = new Message({
|
|
72
65
|
message: "My generated warning message",
|
|
73
66
|
type: MessageType.Warning,
|
|
74
67
|
target: "/Dummy",
|
|
@@ -77,8 +70,8 @@ sap.ui.define([
|
|
|
77
70
|
Messaging.addMessages(oMessage);
|
|
78
71
|
},
|
|
79
72
|
|
|
80
|
-
onInfoPress
|
|
81
|
-
|
|
73
|
+
onInfoPress() {
|
|
74
|
+
const oMessage = new Message({
|
|
82
75
|
message: "My generated info message",
|
|
83
76
|
type: MessageType.Information,
|
|
84
77
|
target: "/Dummy",
|
|
@@ -87,33 +80,23 @@ sap.ui.define([
|
|
|
87
80
|
Messaging.addMessages(oMessage);
|
|
88
81
|
},
|
|
89
82
|
|
|
90
|
-
onValueStatePress
|
|
91
|
-
|
|
83
|
+
onValueStatePress() {
|
|
84
|
+
const oInput = this.getView().byId("valuesStateOnly");
|
|
92
85
|
oInput.setValueState(ValueState.Error);
|
|
93
86
|
oInput.setValueStateText("My ValueState text for Error");
|
|
94
87
|
},
|
|
95
88
|
|
|
96
|
-
onClearPress
|
|
89
|
+
onClearPress() {
|
|
97
90
|
// does not remove the manually set ValueStateText we set in onValueStatePress():
|
|
98
91
|
Messaging.removeAllMessages();
|
|
99
92
|
},
|
|
100
93
|
|
|
101
94
|
//################ Private APIs ###################
|
|
102
95
|
|
|
103
|
-
_getMessagePopover
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
if (!this._pMessagePopover) {
|
|
108
|
-
this._pMessagePopover = Fragment.load({
|
|
109
|
-
id: oView.getId(),
|
|
110
|
-
name: "sap.ui.core.sample.MessageManager.BasicMessages.MessagePopover"
|
|
111
|
-
}).then(function (oMessagePopover) {
|
|
112
|
-
oView.addDependent(oMessagePopover);
|
|
113
|
-
return oMessagePopover;
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return this._pMessagePopover;
|
|
96
|
+
_getMessagePopover() {
|
|
97
|
+
return this.loadFragment({
|
|
98
|
+
name: "sap.ui.core.sample.Messaging.BasicMessages.MessagePopover"
|
|
99
|
+
});
|
|
117
100
|
}
|
|
118
101
|
});
|
|
119
102
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core">
|
|
4
|
+
<MessagePopover
|
|
5
|
+
items="{message>/}"
|
|
6
|
+
initiallyExpanded="true">
|
|
7
|
+
<MessageItem
|
|
8
|
+
type="{message>type}"
|
|
9
|
+
title="{message>message}"
|
|
10
|
+
subtitle="{message>additionalText}"
|
|
11
|
+
description="{message>description}"/>
|
|
12
|
+
</MessagePopover>
|
|
13
|
+
</core:FragmentDefinition>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<mvc:View
|
|
2
|
+
controllerName="sap.ui.core.sample.Messaging.BasicMessages.Controller"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:mvc="sap.ui.core.mvc"
|
|
5
|
+
xmlns:form="sap.ui.layout.form"
|
|
6
|
+
height="100%"
|
|
7
|
+
displayBlock="true">
|
|
8
|
+
|
|
9
|
+
<Page
|
|
10
|
+
id="page"
|
|
11
|
+
showHeader="false"
|
|
12
|
+
class="sapUiContentPadding">
|
|
13
|
+
<content>
|
|
14
|
+
<form:Form
|
|
15
|
+
id="form"
|
|
16
|
+
editable="true"
|
|
17
|
+
title="UI Messages">
|
|
18
|
+
<form:layout>
|
|
19
|
+
<form:ResponsiveGridLayout />
|
|
20
|
+
</form:layout>
|
|
21
|
+
<form:formContainers>
|
|
22
|
+
<form:FormContainer
|
|
23
|
+
id="formContainer"
|
|
24
|
+
title="Fields">
|
|
25
|
+
|
|
26
|
+
<form:FormElement>
|
|
27
|
+
<form:label>
|
|
28
|
+
<Label
|
|
29
|
+
text="String\{3,10\}"
|
|
30
|
+
required="true"/>
|
|
31
|
+
</form:label>
|
|
32
|
+
<form:fields>
|
|
33
|
+
<Input
|
|
34
|
+
id="mandatoryInput"
|
|
35
|
+
value="{
|
|
36
|
+
path: '/MandatoryInputValue',
|
|
37
|
+
type: 'sap.ui.model.type.String',
|
|
38
|
+
constraints: {
|
|
39
|
+
minLength: 3,
|
|
40
|
+
maxLength: 10
|
|
41
|
+
}
|
|
42
|
+
}"/>
|
|
43
|
+
</form:fields>
|
|
44
|
+
</form:FormElement>
|
|
45
|
+
|
|
46
|
+
<form:FormElement>
|
|
47
|
+
<form:label>
|
|
48
|
+
<Label text="DatePicker"/>
|
|
49
|
+
</form:label>
|
|
50
|
+
<form:fields>
|
|
51
|
+
<DatePicker
|
|
52
|
+
id="date"
|
|
53
|
+
value="{
|
|
54
|
+
path:'/DateValue',
|
|
55
|
+
type:'sap.ui.model.type.Date',
|
|
56
|
+
formatOptions: {
|
|
57
|
+
style: 'short',
|
|
58
|
+
strictParsing: true
|
|
59
|
+
},
|
|
60
|
+
constraints: { }
|
|
61
|
+
}" />
|
|
62
|
+
</form:fields>
|
|
63
|
+
</form:FormElement>
|
|
64
|
+
|
|
65
|
+
<form:FormElement>
|
|
66
|
+
<form:label>
|
|
67
|
+
<Label text="Integer 0-100"/>
|
|
68
|
+
</form:label>
|
|
69
|
+
<form:fields>
|
|
70
|
+
<Input
|
|
71
|
+
id="int"
|
|
72
|
+
value="{
|
|
73
|
+
path: '/IntegerValue',
|
|
74
|
+
type:'sap.ui.model.type.Integer',
|
|
75
|
+
constraints: {
|
|
76
|
+
minimum: 0,
|
|
77
|
+
maximum: 100
|
|
78
|
+
}
|
|
79
|
+
}"/>
|
|
80
|
+
</form:fields>
|
|
81
|
+
</form:FormElement>
|
|
82
|
+
|
|
83
|
+
<form:FormElement>
|
|
84
|
+
<form:label>
|
|
85
|
+
<Label text="Message Buttons"/>
|
|
86
|
+
</form:label>
|
|
87
|
+
<form:fields>
|
|
88
|
+
<Input
|
|
89
|
+
id="dummy"
|
|
90
|
+
value="{/Dummy}"/>
|
|
91
|
+
</form:fields>
|
|
92
|
+
</form:FormElement>
|
|
93
|
+
|
|
94
|
+
<form:FormElement>
|
|
95
|
+
<form:label>
|
|
96
|
+
<Label text="ValueState Only"/>
|
|
97
|
+
</form:label>
|
|
98
|
+
<form:fields>
|
|
99
|
+
<Input
|
|
100
|
+
id="valuesStateOnly"
|
|
101
|
+
value="{/ValueStateOnly}"/>
|
|
102
|
+
</form:fields>
|
|
103
|
+
</form:FormElement>
|
|
104
|
+
|
|
105
|
+
</form:FormContainer>
|
|
106
|
+
</form:formContainers>
|
|
107
|
+
</form:Form>
|
|
108
|
+
</content>
|
|
109
|
+
|
|
110
|
+
<footer>
|
|
111
|
+
<Toolbar
|
|
112
|
+
id="otbFooter">
|
|
113
|
+
|
|
114
|
+
<Button
|
|
115
|
+
icon="sap-icon://alert"
|
|
116
|
+
text="{= ${message>/}.length }"
|
|
117
|
+
visible="{= ${message>/}.length > 0 }"
|
|
118
|
+
type="Emphasized"
|
|
119
|
+
press="onMessagePopoverPress" />
|
|
120
|
+
|
|
121
|
+
<ToolbarSpacer/>
|
|
122
|
+
|
|
123
|
+
<Button type="Accept" text="Success" press="onSuccessPress"/>
|
|
124
|
+
<Button type="Reject" text="Error" press="onErrorPress"/>
|
|
125
|
+
<Button text="Warning" press="onWarningPress"/>
|
|
126
|
+
<Button text="Info" press="onInfoPress"/>
|
|
127
|
+
<Button text="ValueState" press="onValueStatePress"/>
|
|
128
|
+
<Button text="Clear" press="onClearPress"/>
|
|
129
|
+
|
|
130
|
+
</Toolbar>
|
|
131
|
+
</footer>
|
|
132
|
+
|
|
133
|
+
</Page>
|
|
134
|
+
|
|
135
|
+
</mvc:View>
|
package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicMessages/manifest.json
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sap.app": {
|
|
3
|
-
"id": "sap.ui.core.sample.
|
|
3
|
+
"id": "sap.ui.core.sample.Messaging.BasicMessages",
|
|
4
4
|
"applicationVersion": {
|
|
5
5
|
"version": "1.0.0"
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sap.ui5": {
|
|
9
9
|
"rootView": {
|
|
10
10
|
"async": true,
|
|
11
|
-
"viewName": "sap.ui.core.sample.
|
|
11
|
+
"viewName": "sap.ui.core.sample.Messaging.BasicMessages.View"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"libs": {
|
package/test/sap/ui/core/demokit/sample/{MessageManager → Messaging}/BasicODataMessages/Component.js
RENAMED
|
@@ -3,7 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
], function (UIComponent) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
return UIComponent.extend("sap.ui.core.sample.
|
|
6
|
+
return UIComponent.extend("sap.ui.core.sample.Messaging.BasicODataMessages.Component", {
|
|
7
7
|
metadata: {
|
|
8
8
|
manifest: "json"
|
|
9
9
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"./localService/mockserver",
|
|
3
|
+
"sap/ui/core/Messaging",
|
|
4
|
+
"sap/ui/core/mvc/Controller",
|
|
5
|
+
"sap/ui/model/odata/v2/ODataModel"
|
|
6
|
+
], function(mockserver, Messaging, Controller, ODataModel) {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
return Controller.extend("sap.ui.core.sample.Messaging.BasicODataMessages.Controller", {
|
|
10
|
+
|
|
11
|
+
onInit() {
|
|
12
|
+
// set message model
|
|
13
|
+
this.getView().setModel(Messaging.getMessageModel(), "message");
|
|
14
|
+
|
|
15
|
+
// activate automatic message generation for complete view
|
|
16
|
+
Messaging.registerObject(this.getView(), true);
|
|
17
|
+
|
|
18
|
+
const sODataServiceUrl = "/here/goes/your/odata/service/url/";
|
|
19
|
+
|
|
20
|
+
// init our mock server
|
|
21
|
+
mockserver.init(sODataServiceUrl);
|
|
22
|
+
|
|
23
|
+
// Northwind service
|
|
24
|
+
this.getView().setModel(
|
|
25
|
+
new ODataModel(sODataServiceUrl, {
|
|
26
|
+
defaultBindingMode : "TwoWay"
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
this.getView().bindElement("/Employees(1)");
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
async onMessagePopoverPress(oEvent) {
|
|
34
|
+
const oSourceControl = oEvent.getSource();
|
|
35
|
+
const oMessagePopover = await this._getMessagePopover();
|
|
36
|
+
oMessagePopover.openBy(oSourceControl);
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
onDelete() {
|
|
40
|
+
const sPath = this.getView().getBindingContext().getPath();
|
|
41
|
+
this.getView().getModel().remove(sPath);
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
onClearPress() {
|
|
45
|
+
Messaging.removeAllMessages();
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
//################ Private APIs ###################
|
|
49
|
+
|
|
50
|
+
_getMessagePopover() {
|
|
51
|
+
return this.loadFragment({
|
|
52
|
+
name: "sap.ui.core.sample.Messaging.BasicODataMessages.MessagePopover"
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
});
|
package/test/sap/ui/core/demokit/sample/Messaging/BasicODataMessages/MessagePopover.fragment.xml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core">
|
|
4
|
+
<MessagePopover
|
|
5
|
+
items="{message>/}"
|
|
6
|
+
initiallyExpanded="true">
|
|
7
|
+
<MessageItem
|
|
8
|
+
type="{message>type}"
|
|
9
|
+
title="{message>message}"
|
|
10
|
+
subtitle="{message>additionalText}"
|
|
11
|
+
description="{message>description}"/>
|
|
12
|
+
</MessagePopover>
|
|
13
|
+
</core:FragmentDefinition>
|