@openui5/sap.ui.core 1.115.1 → 1.117.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 +18 -0
- package/.eslintrc.json +1 -11
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.sjax.js +2 -2
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +106 -0
- package/src/sap/base/Eventing.js +319 -0
- package/src/sap/base/config/MemoryConfigurationProvider.js +10 -1
- package/src/sap/base/config.js +3 -2
- package/src/sap/base/i18n/Formatting.js +989 -0
- package/src/sap/base/i18n/LanguageTag.js +189 -0
- package/src/sap/base/i18n/Localization.js +710 -0
- package/src/sap/base/i18n/ResourceBundle.js +5 -20
- package/src/sap/base/i18n/date/CalendarType.js +54 -0
- package/src/sap/base/i18n/date/CalendarWeekNumbering.js +105 -0
- package/src/sap/base/i18n/date/TimezoneUtils.js +287 -0
- package/src/sap/base/util/JSTokenizer.js +1 -1
- package/src/sap/base/util/fetch.js +4 -4
- package/src/sap/base/util/mixedFetch.js +2 -2
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/base/util/syncFetch.js +2 -2
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +6 -4
- package/src/sap/ui/base/EventProvider.js +4 -12
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +9 -15
- package/src/sap/ui/base/ManagedObjectMetadata.js +33 -12
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/SyncPromise.js +10 -5
- package/src/sap/ui/core/.library +3 -3
- package/src/sap/ui/core/AccessKeysEnablement.js +10 -5
- package/src/sap/ui/core/AnimationMode.js +49 -0
- package/src/sap/ui/core/BusyIndicator.js +33 -42
- package/src/sap/ui/core/CalendarType.js +11 -37
- package/src/sap/ui/core/Component.js +4 -5
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +2 -2
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/ConfigTest.js +17 -0
- package/src/sap/ui/core/Configuration.js +409 -1282
- package/src/sap/ui/core/Control.js +7 -12
- package/src/sap/ui/core/ControlBehavior.js +157 -0
- package/src/sap/ui/core/Core.js +126 -132
- 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 +14 -3
- package/src/sap/ui/core/ElementMetadata.js +2 -4
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- 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/IconPool.js +1 -2
- 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 +5 -7
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +12 -12
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +126 -38
- 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 +154 -430
- package/src/sap/ui/core/LocaleData.js +50 -14
- package/src/sap/ui/core/Manifest.js +5 -5
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +37 -50
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/Rendering.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Shortcut.js +11 -9
- package/src/sap/ui/core/StaticArea.js +31 -17
- package/src/sap/ui/core/Theming.js +458 -0
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +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 +28 -5
- package/src/sap/ui/core/_IconRegistry.js +89 -12
- package/src/sap/ui/core/boot/_bootConfig.js +137 -0
- package/src/sap/ui/core/boot/_runBoot.js +16 -0
- package/src/sap/ui/core/boot/initDOM.js +96 -0
- package/src/sap/ui/core/boot/loadCalendar.js +50 -0
- package/src/sap/ui/core/boot/loadManifest.js +55 -0
- package/src/sap/ui/core/boot/loadModules.js +80 -0
- package/src/sap/ui/core/boot/manifest.json +11 -0
- package/src/sap/ui/core/boot/onInit.js +44 -0
- package/src/sap/ui/core/boot.js +107 -0
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +12 -83
- package/src/sap/ui/core/date/UI5Date.js +10 -4
- package/src/sap/ui/core/delegate/ItemNavigation.js +8 -10
- package/src/sap/ui/core/delegate/ScrollEnablement.js +5 -5
- 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/DateFormat.js +33 -27
- package/src/sap/ui/core/format/TimezoneUtil.js +15 -273
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +32 -6
- 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/MessageMixin.js +6 -5
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_ar.properties +57 -55
- package/src/sap/ui/core/messagebundle_bg.properties +57 -55
- package/src/sap/ui/core/messagebundle_ca.properties +30 -28
- package/src/sap/ui/core/messagebundle_cs.properties +44 -42
- package/src/sap/ui/core/messagebundle_cy.properties +59 -57
- package/src/sap/ui/core/messagebundle_da.properties +57 -55
- package/src/sap/ui/core/messagebundle_de.properties +59 -57
- package/src/sap/ui/core/messagebundle_el.properties +48 -46
- package/src/sap/ui/core/messagebundle_en.properties +59 -57
- package/src/sap/ui/core/messagebundle_en_GB.properties +59 -57
- package/src/sap/ui/core/messagebundle_en_US_sappsd.properties +2 -0
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/core/messagebundle_en_US_saptrc.properties +3 -0
- package/src/sap/ui/core/messagebundle_es.properties +48 -46
- package/src/sap/ui/core/messagebundle_es_MX.properties +58 -56
- package/src/sap/ui/core/messagebundle_et.properties +55 -53
- package/src/sap/ui/core/messagebundle_fi.properties +51 -49
- package/src/sap/ui/core/messagebundle_fr.properties +36 -34
- package/src/sap/ui/core/messagebundle_fr_CA.properties +21 -19
- package/src/sap/ui/core/messagebundle_hi.properties +42 -40
- package/src/sap/ui/core/messagebundle_hr.properties +57 -55
- package/src/sap/ui/core/messagebundle_hu.properties +58 -56
- package/src/sap/ui/core/messagebundle_id.properties +59 -57
- package/src/sap/ui/core/messagebundle_it.properties +75 -73
- package/src/sap/ui/core/messagebundle_iw.properties +59 -57
- package/src/sap/ui/core/messagebundle_ja.properties +50 -48
- package/src/sap/ui/core/messagebundle_kk.properties +44 -42
- package/src/sap/ui/core/messagebundle_ko.properties +20 -18
- package/src/sap/ui/core/messagebundle_lt.properties +59 -57
- package/src/sap/ui/core/messagebundle_lv.properties +59 -57
- package/src/sap/ui/core/messagebundle_ms.properties +60 -58
- package/src/sap/ui/core/messagebundle_nl.properties +58 -56
- package/src/sap/ui/core/messagebundle_no.properties +56 -54
- package/src/sap/ui/core/messagebundle_pl.properties +56 -54
- package/src/sap/ui/core/messagebundle_pt.properties +58 -56
- package/src/sap/ui/core/messagebundle_pt_PT.properties +58 -56
- package/src/sap/ui/core/messagebundle_ro.properties +59 -57
- package/src/sap/ui/core/messagebundle_ru.properties +57 -55
- package/src/sap/ui/core/messagebundle_sh.properties +59 -57
- package/src/sap/ui/core/messagebundle_sk.properties +57 -55
- package/src/sap/ui/core/messagebundle_sl.properties +58 -56
- package/src/sap/ui/core/messagebundle_sv.properties +54 -52
- package/src/sap/ui/core/messagebundle_th.properties +18 -16
- package/src/sap/ui/core/messagebundle_tr.properties +58 -56
- package/src/sap/ui/core/messagebundle_uk.properties +59 -57
- package/src/sap/ui/core/messagebundle_vi.properties +59 -57
- package/src/sap/ui/core/messagebundle_zh_CN.properties +58 -56
- package/src/sap/ui/core/messagebundle_zh_TW.properties +58 -56
- 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 +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +14 -2
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +14 -16
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/HashChanger.js +1 -0
- package/src/sap/ui/core/routing/Route.js +1 -0
- package/src/sap/ui/core/routing/Router.js +3 -1
- package/src/sap/ui/core/rules/Config.support.js +2 -2
- package/src/sap/ui/core/rules/Misc.support.js +1 -1
- package/src/sap/ui/core/rules/Model.support.js +3 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -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 +7 -4
- package/src/sap/ui/core/support/controls/TimelineOverview.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +2 -2
- 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/Icon.less +2 -2
- package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +4 -4
- package/src/sap/ui/core/themes/base/base.less +41 -20
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +6 -10
- package/src/sap/ui/core/theming/ThemeManager.js +312 -450
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +5 -10
- 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 +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +4 -5
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +3 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +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/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/events/PseudoEvents.js +17 -9
- package/src/sap/ui/model/Binding.js +19 -15
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeBinding.js +57 -19
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/ListBinding.js +42 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +5 -4
- package/src/sap/ui/model/PropertyBinding.js +10 -0
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +4 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +166 -79
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +4 -3
- package/src/sap/ui/model/analytics/BatchResponseCollector.js +2 -2
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +14 -27
- package/src/sap/ui/model/analytics/odata4analytics.js +6 -12
- package/src/sap/ui/model/base/ManagedObjectModel.js +3 -2
- package/src/sap/ui/model/json/JSONModel.js +6 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +191 -5
- package/src/sap/ui/model/odata/ODataMetadata.js +38 -4
- 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 +8 -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 +3 -3
- 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 +3 -2
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +14 -3
- package/src/sap/ui/model/odata/v2/ODataModel.js +46 -32
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +4 -4
- package/src/sap/ui/model/odata/v4/Context.js +39 -32
- package/src/sap/ui/model/odata/v4/ODataBinding.js +85 -52
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +23 -19
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +139 -50
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +30 -36
- package/src/sap/ui/model/odata/v4/ODataModel.js +49 -44
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +72 -37
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +34 -29
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +95 -9
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +25 -27
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +95 -209
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +168 -1
- package/src/sap/ui/model/odata/v4/lib/_MetadataRequestor.js +14 -5
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +34 -19
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +4 -4
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/Opa5.js +1 -1
- package/src/sap/ui/test/TestUtils.js +1 -1
- package/src/sap/ui/test/autowaiter/_autoWaiter.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/generic/_EnforceSemanticRendering.js +1 -3
- package/src/sap/ui/test/gherkin/simpleGherkinParser.js +10 -5
- package/src/sap/ui/test/matchers/LabelFor.js +1 -0
- package/src/sap/ui/test/matchers/_Visitor.js +6 -1
- package/src/sap/ui/test/starter/_setupAndStart.js +2 -5
- package/src/sap/ui/thirdparty/caja-html-sanitizer.js +111 -96
- package/src/sap/ui/thirdparty/qunit-2.js +9 -3
- package/src/sap/ui/util/ActivityDetection.js +7 -1
- package/src/sap/ui/util/Mobile.js +21 -14
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap-ui-boot.js +23 -6
- package/src/ui5-boot.js +50 -0
- package/src/ui5loader-autoconfig.js +150 -75
- package/src/ui5loader.js +458 -514
- package/test/sap/ui/core/Device.js +1 -1
- package/test/sap/ui/core/FormatHelper.js +3 -2
- package/test/sap/ui/core/demokit/docuindex.json +6 -0
- package/test/sap/ui/core/demokit/sample/OpaAction/applicationUnderTest/view/Main.view.xml +1 -0
- package/test/sap/ui/core/demokit/sample/OpaBusyIndicator/OpaBusyIndicator.js +1 -1
- package/test/sap/ui/core/demokit/sample/OpaMatchers/OpaMatchers.js +2 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/MIT.ODataTypes.html +9 -14
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +7 -0
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Template.controller.js +2 -2
- package/test/sap/ui/core/demokit/sample/common/pages/Any.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v2/AutoExpand/AutoExpand.view.xml +24 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/Ancestry/Main.view.xml +24 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/DataAggregation.view.xml +20 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/tests/filter.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Component.js +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.controller.js +43 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.view.xml +47 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.controller.js +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.view.xml +7 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/NotFound.view.xml +8 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.controller.js +123 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.view.xml +92 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.html +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +70 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/README.html +55 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/SandboxModel.js +56 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/POST-SalesOrderList.json +66 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000')-SO_2_SOITEM.json +57 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000').json +20 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000001').json +9 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000007')-SO_2_BP.json +12 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList.json +62 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.json +85 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.xml +185 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.json +93 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.xml +262 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/metadata.xml +1779 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/manifest.json +134 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/pages/Main.js +119 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FieldGroups/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.view.xml +4 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/GridTable/GridTable.view.xml +12 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Main.controller.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.OptimisticBatch.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/pages/Main.js +0 -41
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +26 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/data/metadata.xml +4 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/manifest.json +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/manifest.json +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +5 -17
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/pages/Main.js +18 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/Create.js +10 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/manifest.json +18 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Main.view.xml +3 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/pages/Main.js +4 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/test/integration/arrangements/Startup.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/controller/App.controller.js +3 -8
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/controller/App.controller.js +3 -8
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/test/integration/arrangements/Startup.js +1 -1
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +25 -7
- package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +86 -2
- package/test/sap/ui/core/qunit/DataState.qunit.js +2 -7
- package/test/sap/ui/core/qunit/HTML.qunit.js +31 -31
- package/test/sap/ui/core/qunit/IconPool.qunit.js +53 -4
- package/test/sap/ui/core/qunit/Lib.qunit.js +55 -2
- package/test/sap/ui/core/qunit/LocalBusyIndicator.qunit.js +22 -15
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +5 -3
- package/test/sap/ui/core/qunit/ManagedObjectModel.qunit.js +43 -5
- package/test/sap/ui/core/qunit/Object.qunit.js +4 -1
- package/test/sap/ui/core/qunit/ThemeManager.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +9 -3
- package/test/sap/ui/core/qunit/Theming.beforeBootstrap.qunit.js +13 -0
- package/test/sap/ui/core/qunit/Theming.qunit.js +247 -0
- package/test/sap/ui/core/qunit/analytics/AnalyticalBinding.qunit.js +510 -185
- package/test/sap/ui/core/qunit/analytics/AnalyticalTreeBindingAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +81 -16
- package/test/sap/ui/core/qunit/analytics/odata4analytics.qunit.js +20 -29
- package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +18 -1
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +24 -0
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +277 -0
- package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +282 -0
- package/test/sap/ui/core/qunit/base/i18n/ResourceBundle.qunit.js +5 -6
- package/test/sap/ui/core/qunit/base/security/sanitizeHTML.qunit.js +17 -0
- package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload.qunit.js +1 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomBootTask.beforeBootstrap.qunit.js +13 -12
- package/test/sap/ui/core/qunit/bootstrap/Configuration.main.qunit.js +11 -0
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.html +4 -3
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +451 -281
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +19 -30
- package/test/sap/ui/core/qunit/component/Models.qunit.js +12 -30
- package/test/sap/ui/core/qunit/component/Models_unavoidablySync.qunit.js +8 -26
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component.js +2 -3
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/Component.js +0 -4
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/sync/Component.js +2 -6
- package/test/sap/ui/core/qunit/component/testdata/customizing/customersub/Component.js +0 -4
- package/test/sap/ui/core/qunit/component/testdata/inherit/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/inherit/parent/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentA/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentB/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentA/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentB/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/other/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/terminologies/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component1/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component2/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component3/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component5/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/reuse/Component.js +2 -3
- package/test/sap/ui/core/qunit/component/testdata/v1/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v1empty/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v1inline/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v1missing/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v2/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2empty/Component.js +2 -9
- package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2missing/Component.js +2 -9
- package/test/sap/ui/core/qunit/component/testdata/v2version/Component.js +2 -2
- package/test/sap/ui/core/qunit/dnd/DragDropInfo.qunit.js +1 -2
- package/test/sap/ui/core/qunit/generic/EnforceSemanticRendering.qunit.js +2 -2
- package/test/sap/ui/core/qunit/generic/SettersContextReturn.qunit.js +2 -2
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +2 -0
- package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +2 -0
- package/test/sap/ui/core/qunit/generic/legacy/SettersContextReturn.qunit.js +2 -2
- package/test/sap/ui/core/qunit/gherkin/dataTableUtils.qunit.js +2 -2
- package/test/sap/ui/core/qunit/i18n/Locale.qunit.js +0 -52
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +49 -14
- package/test/sap/ui/core/qunit/i18n/UI5Date.qunit.js +16 -4
- package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +74 -114
- package/test/sap/ui/core/qunit/i18n/UniversalDateUtils.qunit.js +34 -39
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +18 -0
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +1 -0
- package/test/sap/ui/core/qunit/internal/BeforePush.ODataV4.js +28 -0
- package/test/sap/ui/core/qunit/internal/BeforePush.html +1 -0
- package/test/sap/ui/core/qunit/internal/BeforePush.js +15 -0
- package/test/sap/ui/core/qunit/internal/performance/ExpressionParser.performance.qunit.js +1 -0
- package/test/sap/ui/core/qunit/json/JSONListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/json/JSONPropertyBinding.qunit.js +7 -12
- package/test/sap/ui/core/qunit/json/JSONTwoWay.qunit.js +3 -8
- package/test/sap/ui/core/qunit/loader/asyncMode.qunit.js +2 -2
- package/test/sap/ui/core/qunit/loader/asyncMode_unavoidablySync.qunit.js +1 -1
- package/test/sap/ui/core/qunit/loader/fixture/amd-with-export-true/module1.js +2 -2
- package/test/sap/ui/core/qunit/loader/testsuite.loader.qunit.js +0 -3
- package/test/sap/ui/core/qunit/messages/MessageMixin.qunit.js +2 -7
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +1 -1
- package/test/sap/ui/core/qunit/model/Binding.qunit.js +36 -11
- package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/CompositeDataState.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/Context.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/ContextBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/FAR_CUSTOMER_LINE_ITEMS.metadata.xml +2 -0
- package/test/sap/ui/core/qunit/model/ListBinding.qunit.js +63 -6
- package/test/sap/ui/core/qunit/model/Model.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +40 -0
- package/test/sap/ui/core/qunit/model/TreeBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/TreeBindingAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +51 -0
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +9 -8
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +4 -4
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +4 -4
- package/test/sap/ui/core/qunit/mvc/testdata/Async.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/AsyncTypedView.js +5 -1
- package/test/sap/ui/core/qunit/odata/AnnotationParserNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +2 -8
- package/test/sap/ui/core/qunit/odata/ODataMetadataNoFakeService.qunit.js +68 -9
- package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +24 -0
- package/test/sap/ui/core/qunit/odata/v2/Context.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataContextBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +31 -17
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +260 -56
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +70 -15
- package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingFlatNoFakeService.qunit.js +4 -9
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModel.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v2/_CreatedContextsCache.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v4/AnnotationHelper.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +55 -22
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +184 -151
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +60 -30
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +305 -69
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +20 -69
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1282 -255
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +90 -61
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.realOData.qunit.js +0 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +283 -170
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +103 -78
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.json +2 -1
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.xml +4 -0
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +2 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +151 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +24 -11
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +279 -458
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +204 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_MetadataRequestor.qunit.js +7 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +145 -26
- package/test/sap/ui/core/qunit/odata/v4/testsuite.odatav4.qunit.js +4 -0
- package/test/sap/ui/core/qunit/opa/_LogCollector.qunit.js +1 -1
- package/test/sap/ui/core/qunit/opa/matchers/LabelFor.qunit.js +4 -2
- package/test/sap/ui/core/qunit/opa/matchers/_Busy.qunit.js +129 -2
- package/test/sap/ui/core/qunit/opa/matchers/_Editable.qunit.js +5 -1
- package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +5 -0
- package/test/sap/ui/core/qunit/resource/ResourceModel.qunit.js +17 -37
- package/test/sap/ui/core/qunit/routing/HashChanger.qunit.js +1 -6
- package/test/sap/ui/core/qunit/routing/RouterHashChanger.qunit.js +1 -10
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +1 -22
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -4
- package/test/sap/ui/core/qunit/routing/fixture/Async1.view.xml +1 -1
- package/test/sap/ui/core/qunit/rule/model/modelSupport.qunit.js +34 -1
- package/test/sap/ui/core/qunit/testdata/fastnavigation/view/FastNavigation.view.xml +2 -2
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/i18n.properties +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/library.js +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/manifest.json +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/library.js +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/messagebundle.properties +1 -0
- package/test/sap/ui/core/qunit/testdata/xml-require/helper/Formatter.js +7 -4
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_in_html.view.xml +36 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.databinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +29 -0
- package/test/sap/ui/core/qunit/types/DateFormatTimezones.qunit.js +1381 -1570
- package/test/sap/ui/core/qunit/types/SimpleType.qunit.js +16 -2
- package/test/sap/ui/core/qunit/types/Types.qunit.js +2 -37
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +1 -1
- package/test/sap/ui/core/qunit/util/Popup.qunit.js +7 -11
- package/test/sap/ui/core/qunit/util/SyncPromise.qunit.js +4 -1
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +3 -1
- package/test/sap/ui/core/qunit/util/jQuery.sap.Version.qunit.js +3 -0
- package/test/sap/ui/core/qunit/util/jQuery.sap.measure.qunit.js +16 -11
- package/test/sap/ui/core/qunit/util/reflection/BaseTreeModifier.qunit.js +1 -1
- package/test/sap/ui/core/qunit/xml/XMLListBinding.qunit.js +1 -3
- package/test/sap/ui/core/qunit/xml/XMLModel.qunit.js +4 -14
- package/test/sap/ui/core/qunit/xml/XMLPropertyBinding.qunit.js +7 -11
- package/test/sap/ui/core/qunit/xml/XMLTreeBinding.qunit.js +1 -1
- package/test/sap/ui/core/qunit/xml/XMLTwoWay.qunit.js +3 -7
- package/test/sap/ui/core/relnotes/changes-1.115.json +1 -37
- package/test/sap/ui/core/relnotes/changes-1.116.json +71 -0
- package/test/sap/ui/core/relnotes/changes-1.117.json +127 -0
- 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/sap/ui/core/visual/images/HyphenationPlayground/windows/1600x1200/chrome/horizon/ltr/cozy/19_thirdParty_language_sl.ref.lnk +1 -1
- package/test/testsuite/js/samples.js +2 -0
- package/ui5.yaml +166 -1
- package/src/sap/ui/core/util/MockServerAnnotationsHandler.js +0 -45
- /package/test/sap/ui/core/qunit/bootstrap/{GlobalConfigurationSettings.js → Configuration.beforeBootstrap.qunit.js} +0 -0
|
@@ -16,6 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"sap/ui/core/message/Message",
|
|
17
17
|
"sap/ui/core/mvc/Controller",
|
|
18
18
|
"sap/ui/core/mvc/View",
|
|
19
|
+
"sap/ui/core/Rendering",
|
|
19
20
|
"sap/ui/model/BindingMode",
|
|
20
21
|
"sap/ui/model/Filter",
|
|
21
22
|
"sap/ui/model/FilterOperator",
|
|
@@ -35,7 +36,7 @@ sap.ui.define([
|
|
|
35
36
|
// load Table resources upfront to avoid loading times > 1 second for the first test using Table
|
|
36
37
|
// "sap/ui/table/Table"
|
|
37
38
|
], function (Log, merge, uid, Input, Device, ManagedObjectObserver, SyncPromise, Configuration,
|
|
38
|
-
Core, coreLibrary, UI5Date, Message, Controller, View, BindingMode, Filter, FilterOperator,
|
|
39
|
+
Core, coreLibrary, UI5Date, Message, Controller, View, Rendering, BindingMode, Filter, FilterOperator,
|
|
39
40
|
FilterType, Model, Sorter, JSONModel, MessageModel, CountMode, MessageScope, Context,
|
|
40
41
|
ODataModel, XMLModel, TestUtils, datajs, XMLHelper) {
|
|
41
42
|
/*global QUnit, sinon*/
|
|
@@ -490,10 +491,7 @@ sap.ui.define([
|
|
|
490
491
|
response : [{source : "qunit/odata/v2/data/ZUI5_GWSAMPLE_BASIC.metadata.xml"}]
|
|
491
492
|
}]);
|
|
492
493
|
this.oLogMock = this.mock(Log);
|
|
493
|
-
this.oLogMock.expects("warning")
|
|
494
|
-
.withExactArgs(sinon.match.string, "LegacyParametersGet", "sap.ui.support",
|
|
495
|
-
sinon.match.func)
|
|
496
|
-
.atLeast(0);
|
|
494
|
+
this.oLogMock.expects("warning").never();
|
|
497
495
|
this.oLogMock.expects("error").never();
|
|
498
496
|
this.oLogMock.expects("fatal").never();
|
|
499
497
|
|
|
@@ -8350,10 +8348,14 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8350
8348
|
<t:AnalyticalTable id="table" rows="{path : \'/Items\',\
|
|
8351
8349
|
parameters : {useBatchRequests : true}, sorter : {path : \'AccountingDocumentItem\', descending : true}}"\
|
|
8352
8350
|
threshold="10" visibleRowCount="2">\
|
|
8353
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="AccountingDocumentItem"
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8351
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="AccountingDocumentItem">\
|
|
8352
|
+
<Label text="AccountingDocumentItem"/>\
|
|
8353
|
+
<t:template><Text wrapping="false" text="{AccountingDocumentItem}"/></t:template>\
|
|
8354
|
+
</t:AnalyticalColumn>\
|
|
8355
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
8356
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
8357
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
8358
|
+
</t:AnalyticalColumn>\
|
|
8357
8359
|
</t:AnalyticalTable>',
|
|
8358
8360
|
that = this;
|
|
8359
8361
|
|
|
@@ -8374,6 +8376,11 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8374
8376
|
|
|
8375
8377
|
return aItems;
|
|
8376
8378
|
}
|
|
8379
|
+
this.oLogMock.expects("warning")
|
|
8380
|
+
.withExactArgs("Applying sorters to groups is only possible with auto expand mode 'Sequential';"
|
|
8381
|
+
+ " current mode is: Bundled",
|
|
8382
|
+
"/Items", "sap.ui.model.analytics.AnalyticalBinding", undefined)
|
|
8383
|
+
.atLeast(1);
|
|
8377
8384
|
|
|
8378
8385
|
this.expectRequest({
|
|
8379
8386
|
encodeRequestUri : false,
|
|
@@ -8478,14 +8485,26 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8478
8485
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
8479
8486
|
sView = '\
|
|
8480
8487
|
<t:AnalyticalTable id="table" threshold="6" visibleRowCount="4">\
|
|
8481
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode"
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
<t:AnalyticalColumn grouped="
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8488
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode">\
|
|
8489
|
+
<Label text="CompanyCode"/>\
|
|
8490
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
8491
|
+
</t:AnalyticalColumn>\
|
|
8492
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="Customer">\
|
|
8493
|
+
<Label text="Customer"/>\
|
|
8494
|
+
<t:template><Text wrapping="false" text="{Customer}"/></t:template>\
|
|
8495
|
+
</t:AnalyticalColumn>\
|
|
8496
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="AccountingDocument">\
|
|
8497
|
+
<Label text="AccountingDocument"/>\
|
|
8498
|
+
<t:template><Text wrapping="false" text="{AccountingDocument}"/></t:template>\
|
|
8499
|
+
</t:AnalyticalColumn>\
|
|
8500
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="AccountingDocumentItem">\
|
|
8501
|
+
<Label text="AccountingDocumentItem"/>\
|
|
8502
|
+
<t:template><Text wrapping="false" text="{AccountingDocumentItem}"/></t:template>\
|
|
8503
|
+
</t:AnalyticalColumn>\
|
|
8504
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
8505
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
8506
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
8507
|
+
</t:AnalyticalColumn>\
|
|
8489
8508
|
</t:AnalyticalTable>',
|
|
8490
8509
|
that = this;
|
|
8491
8510
|
|
|
@@ -8692,12 +8711,22 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8692
8711
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
8693
8712
|
sView = '\
|
|
8694
8713
|
<t:AnalyticalTable id="table" threshold="1" visibleRowCount="4">\
|
|
8695
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode"
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
<t:AnalyticalColumn
|
|
8700
|
-
|
|
8714
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode">\
|
|
8715
|
+
<Label text="CompanyCode"/>\
|
|
8716
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
8717
|
+
</t:AnalyticalColumn>\
|
|
8718
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="Customer">\
|
|
8719
|
+
<Label text="Customer"/>\
|
|
8720
|
+
<t:template><Text wrapping="false" text="{Customer}"/></t:template>\
|
|
8721
|
+
</t:AnalyticalColumn>\
|
|
8722
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="AccountingDocument">\
|
|
8723
|
+
<Label text="AccountingDocument"/>\
|
|
8724
|
+
<t:template><Text wrapping="false" text="{AccountingDocument}"/></t:template>\
|
|
8725
|
+
</t:AnalyticalColumn>\
|
|
8726
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
8727
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
8728
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
8729
|
+
</t:AnalyticalColumn>\
|
|
8701
8730
|
</t:AnalyticalTable>',
|
|
8702
8731
|
that = this;
|
|
8703
8732
|
|
|
@@ -8839,12 +8868,22 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8839
8868
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
8840
8869
|
sView = '\
|
|
8841
8870
|
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
8842
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode"
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
<t:AnalyticalColumn
|
|
8847
|
-
|
|
8871
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode">\
|
|
8872
|
+
<Label text="CompanyCode"/>\
|
|
8873
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
8874
|
+
</t:AnalyticalColumn>\
|
|
8875
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="Customer">\
|
|
8876
|
+
<Label text="Customer"/>\
|
|
8877
|
+
<t:template><Text wrapping="false" text="{Customer}"/></t:template>\
|
|
8878
|
+
</t:AnalyticalColumn>\
|
|
8879
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="AccountingDocument">\
|
|
8880
|
+
<Label text="AccountingDocument"/>\
|
|
8881
|
+
<t:template><Text wrapping="false" text="{AccountingDocument}"/></t:template>\
|
|
8882
|
+
</t:AnalyticalColumn>\
|
|
8883
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
8884
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
8885
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
8886
|
+
</t:AnalyticalColumn>\
|
|
8848
8887
|
</t:AnalyticalTable>',
|
|
8849
8888
|
that = this;
|
|
8850
8889
|
|
|
@@ -8956,19 +8995,29 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
8956
8995
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
8957
8996
|
sView = '\
|
|
8958
8997
|
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
8959
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode"
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
<t:AnalyticalColumn
|
|
8964
|
-
|
|
8998
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode">\
|
|
8999
|
+
<Label text="CompanyCode"/>\
|
|
9000
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
9001
|
+
</t:AnalyticalColumn>\
|
|
9002
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="Customer">\
|
|
9003
|
+
<Label text="Customer"/>\
|
|
9004
|
+
<t:template><Text wrapping="false" text="{Customer}"/></t:template>\
|
|
9005
|
+
</t:AnalyticalColumn>\
|
|
9006
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="AccountingDocument">\
|
|
9007
|
+
<Label text="AccountingDocument"/>\
|
|
9008
|
+
<t:template><Text wrapping="false" text="{AccountingDocument}"/></t:template>\
|
|
9009
|
+
</t:AnalyticalColumn>\
|
|
9010
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
9011
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
9012
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
9013
|
+
</t:AnalyticalColumn>\
|
|
8965
9014
|
</t:AnalyticalTable>',
|
|
8966
9015
|
that = this;
|
|
8967
9016
|
|
|
8968
9017
|
// invalidating the UI via refresh and calling setGrouped immediately after cause
|
|
8969
9018
|
// "Couldn't rerender..." warnings that can be ignored here
|
|
8970
|
-
this.
|
|
8971
|
-
.withExactArgs(sinon.match.string
|
|
9019
|
+
this.mock(Rendering.getLogger()).expects("warning")
|
|
9020
|
+
.withExactArgs(sinon.match.string)
|
|
8972
9021
|
.atLeast(0);
|
|
8973
9022
|
|
|
8974
9023
|
return this.createView(assert, sView, oModel).then(function () {
|
|
@@ -9151,10 +9200,18 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
9151
9200
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
9152
9201
|
sView = '\
|
|
9153
9202
|
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
9154
|
-
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode"
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9203
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode">\
|
|
9204
|
+
<Label text="CompanyCode"/>\
|
|
9205
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
9206
|
+
</t:AnalyticalColumn>\
|
|
9207
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="Customer">\
|
|
9208
|
+
<Label text="Customer"/>\
|
|
9209
|
+
<t:template><Text wrapping="false" text="{Customer}"/></t:template>\
|
|
9210
|
+
</t:AnalyticalColumn>\
|
|
9211
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
9212
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
9213
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
9214
|
+
</t:AnalyticalColumn>\
|
|
9158
9215
|
</t:AnalyticalTable>',
|
|
9159
9216
|
that = this;
|
|
9160
9217
|
|
|
@@ -9214,6 +9271,137 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
9214
9271
|
});
|
|
9215
9272
|
});
|
|
9216
9273
|
|
|
9274
|
+
//*****************************************************************************************************************
|
|
9275
|
+
// Scenario: Sequential mode: Sorting by text properties that are only additionally selected is possible.
|
|
9276
|
+
// JIRA:CPOUI5MODELS-1311
|
|
9277
|
+
QUnit.test("AnalyticalBinding: sort additional selected text properties (Sequential)", function (assert) {
|
|
9278
|
+
const oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS");
|
|
9279
|
+
const sView = '\
|
|
9280
|
+
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
9281
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode" template="CompanyCode"/>\
|
|
9282
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="Customer" template="Customer"/>\
|
|
9283
|
+
<t:AnalyticalColumn leadingProperty="AmountInCompanyCodeCurrency" summed="true"\
|
|
9284
|
+
template="AmountInCompanyCodeCurrency"/>\
|
|
9285
|
+
</t:AnalyticalTable>';
|
|
9286
|
+
|
|
9287
|
+
return this.createView(assert, sView, oModel).then(() => {
|
|
9288
|
+
this.expectHeadRequest()
|
|
9289
|
+
.expectRequest({ // count request
|
|
9290
|
+
encodeRequestUri : false,
|
|
9291
|
+
requestUri : "Items?$select=CompanyCode,Customer&$top=0&$inlinecount=allpages"
|
|
9292
|
+
}, {__count : "20", results : []})
|
|
9293
|
+
.expectRequest({ // first level request
|
|
9294
|
+
encodeRequestUri : false,
|
|
9295
|
+
requestUri : "Items?"
|
|
9296
|
+
+ "$select=CompanyCode,CompanyName,AmountInCompanyCodeCurrency,Currency&"
|
|
9297
|
+
+ "$orderby=CompanyName%20desc,CompanyCode%20asc&$top=14&$inlinecount=allpages"
|
|
9298
|
+
}, {
|
|
9299
|
+
results : [
|
|
9300
|
+
Object.assign(getFarCustomerLineItem("A0"), {CompanyName: "A0Name"}),
|
|
9301
|
+
Object.assign(getFarCustomerLineItem("A1"), {CompanyName: "A1Name"}),
|
|
9302
|
+
Object.assign(getFarCustomerLineItem("A2"), {CompanyName: "A2Name"}),
|
|
9303
|
+
Object.assign(getFarCustomerLineItem("A3"), {CompanyName: "A2Name"})
|
|
9304
|
+
]
|
|
9305
|
+
})
|
|
9306
|
+
.expectRequest({ // grand total request
|
|
9307
|
+
encodeRequestUri : false,
|
|
9308
|
+
requestUri : "Items?$select=AmountInCompanyCodeCurrency,Currency&$top=100&$inlinecount=allpages"
|
|
9309
|
+
}, {
|
|
9310
|
+
__count : 1,
|
|
9311
|
+
results : [{
|
|
9312
|
+
__metadata : {uri : "/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS/Items(grandTotal)"},
|
|
9313
|
+
AmountInCompanyCodeCurrency : "140",
|
|
9314
|
+
Currency : "USD"
|
|
9315
|
+
}]
|
|
9316
|
+
});
|
|
9317
|
+
|
|
9318
|
+
// bind it lately, otherwise the binding is constructed without the analytical info and the select parameter
|
|
9319
|
+
// is ignored
|
|
9320
|
+
this.oView.byId("table").bindRows({
|
|
9321
|
+
path : "/Items",
|
|
9322
|
+
parameters : {
|
|
9323
|
+
autoExpandMode : "Sequential",
|
|
9324
|
+
numberOfExpandedLevels : 0,
|
|
9325
|
+
provideGrandTotals : false,
|
|
9326
|
+
select : "CompanyCode,AmountInCompanyCodeCurrency,Currency,Customer,CompanyName",
|
|
9327
|
+
useBatchRequests : true
|
|
9328
|
+
},
|
|
9329
|
+
sorter : [new Sorter("CompanyName", true)]
|
|
9330
|
+
});
|
|
9331
|
+
|
|
9332
|
+
return this.waitForChanges(assert);
|
|
9333
|
+
});
|
|
9334
|
+
});
|
|
9335
|
+
|
|
9336
|
+
//*****************************************************************************************************************
|
|
9337
|
+
// Scenario: Bundled mode: Sorting by text properties that are only additionally selected is possible.
|
|
9338
|
+
// JIRA:CPOUI5MODELS-1311
|
|
9339
|
+
QUnit.test("AnalyticalBinding: sort additional selected text properties (Bundled)", function (assert) {
|
|
9340
|
+
const oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS");
|
|
9341
|
+
const sView = '\
|
|
9342
|
+
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
9343
|
+
<t:AnalyticalColumn grouped="true" leadingProperty="CompanyCode" template="CompanyCode"/>\
|
|
9344
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="Customer" template="Customer"/>\
|
|
9345
|
+
<t:AnalyticalColumn leadingProperty="AmountInCompanyCodeCurrency" summed="true"\
|
|
9346
|
+
template="AmountInCompanyCodeCurrency"/>\
|
|
9347
|
+
</t:AnalyticalTable>';
|
|
9348
|
+
|
|
9349
|
+
return this.createView(assert, sView, oModel).then(() => {
|
|
9350
|
+
this.expectHeadRequest()
|
|
9351
|
+
.expectRequest({ // count request
|
|
9352
|
+
encodeRequestUri : false,
|
|
9353
|
+
requestUri : "Items?$select=CompanyCode,Customer&$top=0&$inlinecount=allpages"
|
|
9354
|
+
}, {__count : "20", results : []})
|
|
9355
|
+
.expectRequest({ // first level request
|
|
9356
|
+
encodeRequestUri : false,
|
|
9357
|
+
requestUri : "Items?"
|
|
9358
|
+
+ "$select=CompanyCode,CompanyName,AmountInCompanyCodeCurrency,Currency&"
|
|
9359
|
+
+ "$orderby=CompanyName%20desc,CompanyCode%20asc&$top=7"
|
|
9360
|
+
}, {
|
|
9361
|
+
results : [
|
|
9362
|
+
Object.assign(getFarCustomerLineItem("A0"), {CompanyName: "A0Name"}),
|
|
9363
|
+
Object.assign(getFarCustomerLineItem("A1"), {CompanyName: "A1Name"}),
|
|
9364
|
+
Object.assign(getFarCustomerLineItem("A2"), {CompanyName: "A2Name"}),
|
|
9365
|
+
Object.assign(getFarCustomerLineItem("A3"), {CompanyName: "A2Name"})
|
|
9366
|
+
]
|
|
9367
|
+
})
|
|
9368
|
+
.expectRequest({ // leaf level request
|
|
9369
|
+
encodeRequestUri : false,
|
|
9370
|
+
requestUri : "Items?"
|
|
9371
|
+
+ "$select=CompanyCode,CompanyName,Customer,AmountInCompanyCodeCurrency,Currency&"
|
|
9372
|
+
+ "$orderby=CompanyName%20desc,CompanyCode%20asc&$top=12"
|
|
9373
|
+
}, {
|
|
9374
|
+
results : [
|
|
9375
|
+
Object.assign(getFarCustomerLineItem("A0"), {CompanyName: "A0Name"}),
|
|
9376
|
+
Object.assign(getFarCustomerLineItem("A1"), {CompanyName: "A1Name"}),
|
|
9377
|
+
Object.assign(getFarCustomerLineItem("A2"), {CompanyName: "A2Name"}),
|
|
9378
|
+
Object.assign(getFarCustomerLineItem("A3"), {CompanyName: "A2Name"})
|
|
9379
|
+
]
|
|
9380
|
+
});
|
|
9381
|
+
|
|
9382
|
+
this.oLogMock.expects("warning")
|
|
9383
|
+
.withExactArgs("Applying sorters to groups is only possible with auto expand mode 'Sequential';"
|
|
9384
|
+
+ " current mode is: Bundled",
|
|
9385
|
+
"/Items", "sap.ui.model.analytics.AnalyticalBinding", undefined)
|
|
9386
|
+
.atLeast(1);
|
|
9387
|
+
|
|
9388
|
+
// bind it lately, otherwise the binding is constructed without the analytical info and the select parameter
|
|
9389
|
+
// is ignored
|
|
9390
|
+
this.oView.byId("table").bindRows({
|
|
9391
|
+
path : "/Items",
|
|
9392
|
+
parameters : {
|
|
9393
|
+
numberOfExpandedLevels : 1,
|
|
9394
|
+
provideGrandTotals : false,
|
|
9395
|
+
select : "CompanyCode,AmountInCompanyCodeCurrency,Currency,Customer,CompanyName",
|
|
9396
|
+
useBatchRequests : true
|
|
9397
|
+
},
|
|
9398
|
+
sorter : [new Sorter("CompanyName", true)]
|
|
9399
|
+
});
|
|
9400
|
+
|
|
9401
|
+
return this.waitForChanges(assert);
|
|
9402
|
+
});
|
|
9403
|
+
});
|
|
9404
|
+
|
|
9217
9405
|
//*********************************************************************************************
|
|
9218
9406
|
// Scenario: If a request for an AnalyticalBinding is cancelled because the analytical info has
|
|
9219
9407
|
// been updated before the request was processed, a "dataReceived" event has to be fired. Table
|
|
@@ -9228,9 +9416,14 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
9228
9416
|
oModel = createModel("/sap/opu/odata/sap/FAR_CUSTOMER_LINE_ITEMS"),
|
|
9229
9417
|
sView = '\
|
|
9230
9418
|
<t:AnalyticalTable id="table" threshold="10" visibleRowCount="4">\
|
|
9231
|
-
<t:AnalyticalColumn grouped="false" leadingProperty="CompanyCode"
|
|
9232
|
-
|
|
9233
|
-
template="
|
|
9419
|
+
<t:AnalyticalColumn grouped="false" leadingProperty="CompanyCode">\
|
|
9420
|
+
<Label text="CompanyCode"/>\
|
|
9421
|
+
<t:template><Text wrapping="false" text="{CompanyCode}"/></t:template>\
|
|
9422
|
+
</t:AnalyticalColumn>\
|
|
9423
|
+
<t:AnalyticalColumn summed="true" leadingProperty="AmountInCompanyCodeCurrency">\
|
|
9424
|
+
<Label text="AmountInCompanyCodeCurrency"/>\
|
|
9425
|
+
<t:template><Text wrapping="false" text="{AmountInCompanyCodeCurrency}"/></t:template>\
|
|
9426
|
+
</t:AnalyticalColumn>\
|
|
9234
9427
|
</t:AnalyticalTable>',
|
|
9235
9428
|
that = this;
|
|
9236
9429
|
|
|
@@ -14838,6 +15031,9 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
14838
15031
|
// request in order to avoid duplicates
|
|
14839
15032
|
// 4. Nested collections are updated
|
|
14840
15033
|
// JIRA: CPOUI5MODELS-656
|
|
15034
|
+
// Scenario: The promise returned by requestSideEffects is to be resolved with the list bindings
|
|
15035
|
+
// which have been refreshed.
|
|
15036
|
+
// JIRA: CPOUI5MODELS-1299
|
|
14841
15037
|
QUnit.test("Request side effects: $batch, nested collections", function (assert) {
|
|
14842
15038
|
var oBinding, oTable,
|
|
14843
15039
|
oModel = createSalesOrdersModel(),
|
|
@@ -15068,19 +15264,19 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
15068
15264
|
.expectValue("name", "SAP - SideEffect", 2);
|
|
15069
15265
|
|
|
15070
15266
|
// code under test
|
|
15071
|
-
oModel.requestSideEffects(that.oView.byId("objectPage").getBindingContext(), {
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15267
|
+
var oSideEffectPromise = oModel.requestSideEffects(that.oView.byId("objectPage").getBindingContext(), {
|
|
15268
|
+
urlParameters : {
|
|
15269
|
+
$expand : "ToSalesOrders,ToSalesOrders/ToBusinessPartner,"
|
|
15270
|
+
+ "ToSalesOrders/ToLineItems",
|
|
15271
|
+
$select : "ToSalesOrders/SalesOrderID,ToSalesOrders/Note,"
|
|
15272
|
+
+ "ToSalesOrders/ToBusinessPartner/CompanyName,"
|
|
15273
|
+
+ "ToSalesOrders/ToLineItems/SalesOrderID,"
|
|
15274
|
+
+ "ToSalesOrders/ToLineItems/ItemPosition,ToSalesOrders/ToLineItems/Note"
|
|
15275
|
+
}
|
|
15276
|
+
});
|
|
15081
15277
|
|
|
15082
|
-
return that.waitForChanges(assert);
|
|
15083
|
-
}).then(function () {
|
|
15278
|
+
return Promise.all([oSideEffectPromise, that.waitForChanges(assert)]);
|
|
15279
|
+
}).then(function (aResults) {
|
|
15084
15280
|
var aSelectItems = oTable.getRows()[0].getCells()[2].getItems();
|
|
15085
15281
|
|
|
15086
15282
|
assert.strictEqual(aSelectItems.length, 1);
|
|
@@ -15092,6 +15288,14 @@ ToProduct/ToSupplier/BusinessPartnerID\'}}">\
|
|
|
15092
15288
|
assert.strictEqual(aSelectItems.length, 1);
|
|
15093
15289
|
assert.strictEqual(aSelectItems[0].getText(), "Sales Order Line Item 1 - SideEffect");
|
|
15094
15290
|
|
|
15291
|
+
var aAffectedListBindings = aResults[0];
|
|
15292
|
+
|
|
15293
|
+
assert.strictEqual(aAffectedListBindings.length, 3);
|
|
15294
|
+
// only list bindings with non-transient parent context may be affected by side effects
|
|
15295
|
+
assert.ok(aAffectedListBindings.includes(oTable.getBinding("rows")));
|
|
15296
|
+
assert.ok(aAffectedListBindings.includes(oTable.getRows()[0].getCells()[2].getBinding("items")));
|
|
15297
|
+
assert.ok(aAffectedListBindings.includes(oTable.getRows()[2].getCells()[2].getBinding("items")));
|
|
15298
|
+
|
|
15095
15299
|
return that.waitForChanges(assert);
|
|
15096
15300
|
});
|
|
15097
15301
|
});
|
|
@@ -24,13 +24,11 @@ sap.ui.define([
|
|
|
24
24
|
"sap/ui/model/odata/v2/ODataContextBinding",
|
|
25
25
|
"sap/ui/model/odata/v2/ODataListBinding",
|
|
26
26
|
"sap/ui/model/odata/v2/ODataModel",
|
|
27
|
-
"sap/ui/model/odata/v2/ODataTreeBinding"
|
|
28
|
-
"sap/ui/test/TestUtils"
|
|
27
|
+
"sap/ui/model/odata/v2/ODataTreeBinding"
|
|
29
28
|
], function (Log, SyncPromise, Configuration, UI5Date, Message, _Helper, BaseContext,
|
|
30
29
|
FilterProcessor, Model, _ODataMetaModelUtils, CountMode, MessageScope, ODataMessageParser,
|
|
31
30
|
ODataMetaModel, ODataPropertyBinding, ODataUtils, _CreatedContextsCache, Context,
|
|
32
|
-
ODataAnnotations, ODataContextBinding, ODataListBinding, ODataModel, ODataTreeBinding
|
|
33
|
-
TestUtils
|
|
31
|
+
ODataAnnotations, ODataContextBinding, ODataListBinding, ODataModel, ODataTreeBinding
|
|
34
32
|
) {
|
|
35
33
|
/*global QUnit,sinon*/
|
|
36
34
|
/*eslint camelcase: 0, max-nested-callbacks: 0, no-warning-comments: 0*/
|
|
@@ -58,10 +56,6 @@ sap.ui.define([
|
|
|
58
56
|
this.oLogMock = this.mock(Log);
|
|
59
57
|
this.oLogMock.expects("error").never();
|
|
60
58
|
this.oLogMock.expects("warning").never();
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
afterEach : function (assert) {
|
|
64
|
-
return TestUtils.awaitRendering();
|
|
65
59
|
}
|
|
66
60
|
});
|
|
67
61
|
|
|
@@ -216,6 +210,8 @@ sap.ui.define([
|
|
|
216
210
|
var oModel = new ODataModel(mParameters);
|
|
217
211
|
|
|
218
212
|
assert.strictEqual(oModel.bIgnoreAnnotationsFromMetadata, oFixture.member);
|
|
213
|
+
|
|
214
|
+
return oPromise;
|
|
219
215
|
});
|
|
220
216
|
});
|
|
221
217
|
|
|
@@ -4963,8 +4959,8 @@ sap.ui.define([
|
|
|
4963
4959
|
{entitySetPath : "~FooSetPath"},
|
|
4964
4960
|
{entitySet : "~FooSet", returnType : "Collection(~FooType)"},
|
|
4965
4961
|
{entitySetPath : "~FooSetPath", returnType : "Collection(~FooType)"}
|
|
4966
|
-
].forEach(function (oFunctionMetadata) {
|
|
4967
|
-
QUnit.test("callFunction: with expand;
|
|
4962
|
+
].forEach(function (oFunctionMetadata, i) {
|
|
4963
|
+
QUnit.test("callFunction: with expand; returns a collection, #" + i, function (assert) {
|
|
4968
4964
|
var callFunctionResult,
|
|
4969
4965
|
oMetadata = {
|
|
4970
4966
|
_getFunctionImportMetadata : function () {}
|
|
@@ -5444,8 +5440,8 @@ sap.ui.define([
|
|
|
5444
5440
|
{bPersist : true, bExpected : true},
|
|
5445
5441
|
{bPersist : undefined, bExpected : false},
|
|
5446
5442
|
{bPersist : false, bExpected : false}
|
|
5447
|
-
].forEach(function (oFixture) {
|
|
5448
|
-
QUnit.test("_parseResponse, message parser does not exist", function (assert) {
|
|
5443
|
+
].forEach(function (oFixture, i) {
|
|
5444
|
+
QUnit.test("_parseResponse, message parser does not exist, #" + i, function (assert) {
|
|
5449
5445
|
var oModel = {
|
|
5450
5446
|
bIsMessageScopeSupported : "~bIsMessageScopeSupported",
|
|
5451
5447
|
bPersistTechnicalMessages : oFixture.bPersist,
|
|
@@ -7961,8 +7957,8 @@ sap.ui.define([
|
|
|
7961
7957
|
.withExactArgs("sap.ui.model.odata.v2.ODataListBinding")
|
|
7962
7958
|
.returns(true);
|
|
7963
7959
|
this.mock(aBindings[1]).expects("_refreshForSideEffects")
|
|
7964
|
-
.withExactArgs(sinon.match.set.deepEquals(new Set(["~type0", "~type1", undefined])),
|
|
7965
|
-
|
|
7960
|
+
.withExactArgs(sinon.match.set.deepEquals(new Set(["~type0", "~type1", undefined])), "~groupId")
|
|
7961
|
+
.returns(false);
|
|
7966
7962
|
|
|
7967
7963
|
// code under test
|
|
7968
7964
|
oResult = ODataModel.prototype.requestSideEffects.call(oModel, "~oContext", mParameters);
|
|
@@ -7977,7 +7973,7 @@ sap.ui.define([
|
|
|
7977
7973
|
|
|
7978
7974
|
return oResult.then(function (oResult) {
|
|
7979
7975
|
assert.ok(bSuccess);
|
|
7980
|
-
assert.
|
|
7976
|
+
assert.deepEqual(oResult, []);
|
|
7981
7977
|
}, function (oError) {
|
|
7982
7978
|
assert.ok(!bSuccess);
|
|
7983
7979
|
assert.strictEqual(oError, "~oError");
|
|
@@ -7985,6 +7981,65 @@ sap.ui.define([
|
|
|
7985
7981
|
});
|
|
7986
7982
|
});
|
|
7987
7983
|
|
|
7984
|
+
//*********************************************************************************************
|
|
7985
|
+
QUnit.test("requestSideEffects: resolves with affected bindings", function (assert) {
|
|
7986
|
+
var oResult, fnSuccess,
|
|
7987
|
+
aBindings = [
|
|
7988
|
+
{isA : function () {}},
|
|
7989
|
+
{_refreshForSideEffects : function () {}, isA : function () {}}
|
|
7990
|
+
],
|
|
7991
|
+
oModel = {
|
|
7992
|
+
oMetadata : {_getEntityTypeByPath : function () {}},
|
|
7993
|
+
_read : function () {},
|
|
7994
|
+
getBindings : function () {},
|
|
7995
|
+
resolve : function () {}
|
|
7996
|
+
},
|
|
7997
|
+
oMetadataMock = this.mock(oModel.oMetadata),
|
|
7998
|
+
oModelMock = this.mock(oModel),
|
|
7999
|
+
mParameters = {
|
|
8000
|
+
groupId : "~groupId",
|
|
8001
|
+
urlParameters : {
|
|
8002
|
+
$expand : "To0,To0/To1,To2",
|
|
8003
|
+
$select : "~select"
|
|
8004
|
+
}
|
|
8005
|
+
};
|
|
8006
|
+
|
|
8007
|
+
oModelMock.expects("_read")
|
|
8008
|
+
.withExactArgs("", {
|
|
8009
|
+
context : "~oContext",
|
|
8010
|
+
error : sinon.match.func,
|
|
8011
|
+
groupId : "~groupId",
|
|
8012
|
+
success : sinon.match.func.and(sinon.match(function (fnSuccess0) {
|
|
8013
|
+
fnSuccess = fnSuccess0;
|
|
8014
|
+
|
|
8015
|
+
return true;
|
|
8016
|
+
})),
|
|
8017
|
+
updateAggregatedMessages : true,
|
|
8018
|
+
urlParameters : sinon.match.same(mParameters.urlParameters)
|
|
8019
|
+
}, /*bSideEffect*/true);
|
|
8020
|
+
oModelMock.expects("resolve").withExactArgs("To0", "~oContext").returns("~resolved0");
|
|
8021
|
+
oMetadataMock.expects("_getEntityTypeByPath").withExactArgs("~resolved0").returns("~type0");
|
|
8022
|
+
oModelMock.expects("resolve").withExactArgs("To0/To1", "~oContext").returns("~resolved1");
|
|
8023
|
+
oMetadataMock.expects("_getEntityTypeByPath").withExactArgs("~resolved1").returns("~type1");
|
|
8024
|
+
oModelMock.expects("resolve").withExactArgs("To2", "~oContext").returns("~resolved2");
|
|
8025
|
+
oMetadataMock.expects("_getEntityTypeByPath").withExactArgs("~resolved2").returns(undefined);
|
|
8026
|
+
oModelMock.expects("getBindings").withExactArgs().returns(aBindings);
|
|
8027
|
+
this.mock(aBindings[0]).expects("isA").withExactArgs("sap.ui.model.odata.v2.ODataListBinding").returns(false);
|
|
8028
|
+
this.mock(aBindings[1]).expects("isA").withExactArgs("sap.ui.model.odata.v2.ODataListBinding").returns(true);
|
|
8029
|
+
this.mock(aBindings[1]).expects("_refreshForSideEffects")
|
|
8030
|
+
.withExactArgs(sinon.match.set.deepEquals(new Set(["~type0", "~type1", undefined])), "~groupId")
|
|
8031
|
+
.returns(true);
|
|
8032
|
+
|
|
8033
|
+
// code under test
|
|
8034
|
+
oResult = ODataModel.prototype.requestSideEffects.call(oModel, "~oContext", mParameters);
|
|
8035
|
+
|
|
8036
|
+
assert.ok(oResult instanceof Promise);
|
|
8037
|
+
|
|
8038
|
+
fnSuccess("~oData", "~oResponse");
|
|
8039
|
+
|
|
8040
|
+
return oResult.then(function (oResult) {assert.deepEqual(oResult, [aBindings[1]]);});
|
|
8041
|
+
});
|
|
8042
|
+
|
|
7988
8043
|
//*********************************************************************************************
|
|
7989
8044
|
[{
|
|
7990
8045
|
mParameters : undefined
|
|
@@ -10,10 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/model/PropertyBinding",
|
|
11
11
|
"sap/ui/model/odata/ODataMetaModel",
|
|
12
12
|
"sap/ui/model/odata/ODataPropertyBinding",
|
|
13
|
-
"sap/ui/model/odata/v2/ODataModel"
|
|
14
|
-
"sap/ui/test/TestUtils"
|
|
13
|
+
"sap/ui/model/odata/v2/ODataModel"
|
|
15
14
|
], function (Log, SyncPromise, Binding, ChangeReason, Context, PropertyBinding, ODataMetaModel,
|
|
16
|
-
ODataPropertyBinding, ODataModel
|
|
15
|
+
ODataPropertyBinding, ODataModel) {
|
|
17
16
|
/*global QUnit,sinon*/
|
|
18
17
|
/*eslint no-warning-comments: 0*/
|
|
19
18
|
"use strict";
|
|
@@ -24,10 +23,6 @@ sap.ui.define([
|
|
|
24
23
|
this.oLogMock = this.mock(Log);
|
|
25
24
|
this.oLogMock.expects("error").never();
|
|
26
25
|
this.oLogMock.expects("warning").never();
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
afterEach : function (assert) {
|
|
30
|
-
return TestUtils.awaitRendering();
|
|
31
26
|
}
|
|
32
27
|
});
|
|
33
28
|
|
|
@@ -7,9 +7,8 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/model/ChangeReason",
|
|
8
8
|
"sap/ui/model/Filter",
|
|
9
9
|
"sap/ui/model/TreeBinding",
|
|
10
|
-
"sap/ui/model/odata/ODataTreeBindingFlat"
|
|
11
|
-
|
|
12
|
-
], function (Log, _Helper, ChangeReason, Filter, TreeBinding, ODataTreeBindingFlat, TestUtils) {
|
|
10
|
+
"sap/ui/model/odata/ODataTreeBindingFlat"
|
|
11
|
+
], function (Log, _Helper, ChangeReason, Filter, TreeBinding, ODataTreeBindingFlat) {
|
|
13
12
|
/*global QUnit,sinon*/
|
|
14
13
|
"use strict";
|
|
15
14
|
|
|
@@ -21,10 +20,6 @@ sap.ui.define([
|
|
|
21
20
|
this.oLogMock = this.mock(Log);
|
|
22
21
|
this.oLogMock.expects("error").never();
|
|
23
22
|
this.oLogMock.expects("warning").never();
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
afterEach : function (assert) {
|
|
27
|
-
return TestUtils.awaitRendering();
|
|
28
23
|
}
|
|
29
24
|
});
|
|
30
25
|
|
|
@@ -167,8 +162,8 @@ sap.ui.define([
|
|
|
167
162
|
}, {
|
|
168
163
|
inputParameters : {bar : "~baz", groupId : "~value0", refreshAfterChange : "~value1"},
|
|
169
164
|
expectedParameters : {bar : "~baz", groupId : "~groupId", refreshAfterChange : false}
|
|
170
|
-
}].forEach(function (oFixture) {
|
|
171
|
-
QUnit.test("createEntry: resolved binding", function (assert) {
|
|
165
|
+
}].forEach(function (oFixture, i) {
|
|
166
|
+
QUnit.test("createEntry: resolved binding, #" + i, function (assert) {
|
|
172
167
|
var oBinding = {
|
|
173
168
|
oModel : {
|
|
174
169
|
_resolveGroup : function () {},
|
|
@@ -11,10 +11,9 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ui/model/odata/CountMode",
|
|
12
12
|
"sap/ui/model/odata/OperationMode",
|
|
13
13
|
"sap/ui/model/odata/v2/ODataTreeBinding",
|
|
14
|
-
"sap/ui/model/Sorter"
|
|
15
|
-
"sap/ui/test/TestUtils"
|
|
14
|
+
"sap/ui/model/Sorter"
|
|
16
15
|
], function (Log, ChangeReason, Context, Filter, FilterProcessor, FilterType, CountMode, OperationMode,
|
|
17
|
-
ODataTreeBinding, Sorter
|
|
16
|
+
ODataTreeBinding, Sorter) {
|
|
18
17
|
/*global QUnit,sinon*/
|
|
19
18
|
"use strict";
|
|
20
19
|
|
|
@@ -24,10 +23,6 @@ sap.ui.define([
|
|
|
24
23
|
this.oLogMock = this.mock(Log);
|
|
25
24
|
this.oLogMock.expects("error").never();
|
|
26
25
|
this.oLogMock.expects("warning").never();
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
afterEach : function (assert) {
|
|
30
|
-
return TestUtils.awaitRendering();
|
|
31
26
|
}
|
|
32
27
|
});
|
|
33
28
|
|