@openui5/sap.ui.core 1.121.1 → 1.122.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +22 -5
- package/THIRDPARTY.txt +1 -1
- 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 +6 -5
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/Formatting.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/Deferred.js +4 -6
- 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 +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +11 -5
- package/src/sap/ui/base/Exception.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +22 -3
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +33 -5
- 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 +1 -1
- package/src/sap/ui/core/Control.js +19 -3
- package/src/sap/ui/core/Core.js +1 -1
- 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 +28 -3
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/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/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 +14 -6
- 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 +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/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/date/UI5Date.js +1 -1
- package/src/sap/ui/core/date/UniversalDateUtils.js +52 -52
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +4 -4
- 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 +4 -4
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +32 -13
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/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/messagebundle_ar.properties +1 -1
- package/src/sap/ui/core/messagebundle_mk.properties +1 -1
- package/src/sap/ui/core/mvc/Controller.js +42 -7
- 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 +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/routing/Router.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -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 -1
- 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/base.less +239 -8
- package/src/sap/ui/core/themes/base/global.less +20 -0
- package/src/sap/ui/core/themes/sap_hcb/global.less +20 -0
- 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 +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +2 -2
- package/src/sap/ui/core/util/ShortcutHelper.js +6 -0
- package/src/sap/ui/core/util/XMLPreprocessor.js +54 -30
- package/src/sap/ui/core/util/_LocalizationHelper.js +2 -1
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +0 -29
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +0 -26
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +0 -56
- 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/model/ClientListBinding.js +13 -6
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +16 -7
- package/src/sap/ui/model/CompositeBinding.js +11 -4
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +17 -3
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/ListBinding.js +14 -11
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +11 -9
- package/src/sap/ui/model/PropertyBinding.js +21 -4
- 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/TreeBinding.js +14 -7
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +12 -8
- package/src/sap/ui/model/analytics/BatchResponseCollector.js +1 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +66 -52
- package/src/sap/ui/model/controlhelper/TreeBindingProxy.js +1 -4
- package/src/sap/ui/model/json/JSONListBinding.js +5 -2
- package/src/sap/ui/model/json/JSONModel.js +7 -5
- package/src/sap/ui/model/json/JSONTreeBinding.js +5 -2
- package/src/sap/ui/model/message/MessageListBinding.js +5 -2
- 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 +8 -9
- 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/ODataUtils.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +2 -4
- 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 +2 -2
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +14 -8
- package/src/sap/ui/model/odata/v2/ODataModel.js +25 -28
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +15 -12
- package/src/sap/ui/model/odata/v4/Context.js +111 -30
- package/src/sap/ui/model/odata/v4/ODataBinding.js +9 -5
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +14 -9
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +4 -3
- package/src/sap/ui/model/odata/v4/ODataModel.js +27 -2
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +19 -7
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +240 -41
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +88 -0
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +13 -4
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +15 -0
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +77 -15
- 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 +38 -1
- package/src/sap/ui/model/xml/XMLListBinding.js +5 -2
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/model/xml/XMLTreeBinding.js +5 -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/RecordReplay.js +1 -0
- package/src/sap/ui/test/autowaiter/_autoWaiterAsync.js +8 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/opa5TestHarness.js +0 -6
- package/src/sap/ui/test/gherkin/qUnitTestHarness.js +0 -6
- package/src/sap/ui/test/qunitPause.js +5 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_enforceNoReturnValue.js +26 -0
- package/src/ui5loader.js +25 -2
- package/test/sap/ui/core/HyphenationPlayground.html +6 -292
- package/test/sap/ui/core/HyphenationPlayground.js +313 -0
- package/test/sap/ui/core/demokit/docuindex.json +1 -1
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/OpaAutoWaitParams/OpaAutoWaitParams.html +1 -1
- package/test/sap/ui/core/demokit/sample/OpaAutoWaitParams/applicationUnderTest/index.html +1 -2
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyAppInAFrame/README.js +31 -23
- package/test/sap/ui/core/demokit/sample/OpaStartup/iStartMyAppInAFrame/iStartMyAppInAFrame.js +103 -94
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithOPA5/GherkinTestRunner.html +3 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithOPA5/GherkinTestRunner.js +1 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/GherkinTestRunner.html +3 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithPageObjects/GherkinTestRunner.js +1 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/GherkinTestRunner.html +3 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/GherkinTestRunner.js +1 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithQUnit/Steps.js +5 -5
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithUIComponent/GherkinTestRunner.html +3 -0
- package/test/sap/ui/core/demokit/sample/gherkin/GherkinWithUIComponent/GherkinTestRunner.js +1 -5
- 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/v4/MultipleInlineCreationRowsGrid/Main.controller.js +16 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.view.xml +9 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/SandboxModel.js +11 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/data/UnitsOfMeasure.json +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/manifest.json +2 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/index.html +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/manifest.json +28 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/view/App.view.xml +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/manifest.json +3 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/index.html +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/manifest.json +34 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/model/data.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/view/App.view.xml +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/manifest.json +3 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/index.html +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/manifest.json +34 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/model/data.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/view/App.view.xml +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/manifest.json +3 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/04/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/manifest.json +35 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/model/data.json +6 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/manifest.json +3 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/05/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/Component.js +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/manifest.json +35 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/model/data.json +6 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/06/package.json +4 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/manifest.json +46 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/model/data.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/07/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/manifest.json +46 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/model/data.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/08/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/manifest.json +46 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/model/data.json +11 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/view/App.view.xml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/09/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/controller/App.controller.js +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/manifest.json +46 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/model/data.json +11 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/view/App.view.xml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/10/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/10/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/controller/App.controller.js +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/manifest.json +46 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/model/data.json +13 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/view/App.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/11/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/11/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/controller/App.controller.js +8 -7
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/manifest.json +47 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/model/data.json +13 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/view/App.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/12/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/12/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/controller/App.controller.js +10 -11
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/manifest.json +51 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/model/Products.json +64 -57
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/model/data.json +13 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/view/App.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/13/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/13/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/controller/App.controller.js +16 -16
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/manifest.json +51 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/model/Products.json +64 -57
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/model/data.json +13 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/view/App.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/14/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/14/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/controller/App.controller.js +16 -16
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/manifest.json +51 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/model/Products.json +64 -57
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/model/data.json +14 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/view/App.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/15/manifest.json +4 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/15/package.json +3 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/Component.js +12 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/controller/App.controller.js +19 -22
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/index.html +8 -10
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/manifest.json +51 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/model/Products.json +64 -57
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/model/data.json +14 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/view/App.view.xml +5 -5
- 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/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +67 -0
- package/test/sap/ui/core/qunit/EventProvider.qunit.js +30 -2
- package/test/sap/ui/core/qunit/{Core_libraryPreloadFiles.qunit.html → Lib_preloadFiles.qunit.html} +1 -1
- package/test/sap/ui/core/qunit/{Core_libraryPreloadFiles.qunit.js → Lib_preloadFiles.qunit.js} +5 -10
- package/test/sap/ui/core/qunit/ThemeHelper.qunit.js +1 -1
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +4 -4
- package/test/sap/ui/core/qunit/ThemeParameters_legacyAPIs.qunit.js +12 -12
- package/test/sap/ui/core/qunit/analytics/odata4analytics.qunit.js +262 -12
- package/test/sap/ui/core/qunit/app/DesignMode_suppressedDeactivation.qunit.js +8 -4
- package/test/sap/ui/core/qunit/app/_createDesignModeTests_legacyAPIs.qunit.js +8 -4
- package/test/sap/ui/core/qunit/app/fixture/designmode/test01.controller.js +4 -4
- package/test/sap/ui/core/qunit/app/testsuite.app.qunit.js +3 -3
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +11 -0
- package/test/sap/ui/core/qunit/component/Component_keepAlive.qunit.js +30 -2
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +82 -19
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/App.view.xml +3 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Component.js +20 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Home.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/Other.view.xml +5 -0
- package/test/sap/ui/core/qunit/component/testdata/keepAlive/child3/manifest.json +54 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessAmbiguous.html +4 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessDuplicate.html +4 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessFailing.html +4 -0
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.html +4 -0
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.js +1 -1
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.html +4 -0
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.js +1 -1
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.html +1 -1
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +5 -6
- package/test/sap/ui/core/qunit/internal/testsuite.models.qunit.js +43 -16
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +194 -180
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +15 -33
- package/test/sap/ui/core/qunit/mockserver/MockServer.qunit.js +936 -1014
- package/test/sap/ui/core/qunit/mockserver/testsuite.mockserver.qunit.js +2 -4
- package/test/sap/ui/core/qunit/model/FAR_CUSTOMER_LINE_ITEMS.metadata.xml +2 -0
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +50 -1
- package/test/sap/ui/core/qunit/model/controlhelper/TreeBindingProxy.qunit.js +18 -8
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +107 -49
- package/test/sap/ui/core/qunit/mvc/testdata/asyncHooks.view.xml +7 -0
- package/test/sap/ui/core/qunit/odata/ODataMetaModel.qunit.js +0 -3
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +143 -2
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +34 -0
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +230 -39
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +57 -18
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +40 -6
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -0
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1715 -106
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +39 -0
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +88 -18
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +544 -50
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +175 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +50 -9
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +17 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_TreeState.qunit.js +140 -27
- package/test/sap/ui/core/qunit/opa/RecordReplay.qunit.js +12 -3
- package/test/sap/ui/core/qunit/resource/ResourceModel.qunit.js +1 -2
- package/test/sap/ui/core/qunit/routing/fixture/placeholder/component/NavContainerOptOut/Component.js +1 -0
- package/test/sap/ui/core/qunit/rule/model/bindingPathSyntaxValidation.qunit.js +37 -0
- package/test/sap/ui/core/qunit/rule/model/{modelSupport.qunit.js → selectUsedInBoundAggregation.qunit.js} +86 -154
- package/test/sap/ui/core/qunit/rule/testsuite.rule.qunit.js +5 -2
- package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib12/themes/{sap_hcb → sap_horizon_hcb}/library.css +1 -1
- package/test/sap/ui/core/qunit/testsuite.core.framework.qunit.js +18 -18
- package/test/sap/ui/core/qunit/testsuites/testsuite.base.configuration.qunit.js +1 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +3 -3
- package/test/sap/ui/core/qunit/types/CompositeType.qunit.js +6 -0
- package/test/sap/ui/core/qunit/types/DateFormat.qunit.js +3 -6
- package/test/sap/ui/core/qunit/types/NumberFormat.qunit.js +1370 -1242
- package/test/sap/ui/core/qunit/types/Types.qunit.js +65 -0
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +0 -3
- package/test/sap/ui/core/qunit/ui5classes/ManagedObject.qunit.js +68 -3
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +2625 -1899
- package/test/sap/ui/core/qunit/util/reflection/JsControlTreeModifier.qunit.js +0 -102
- package/test/sap/ui/core/qunit/util/reflection/XmlTreeModifier.qunit.js +0 -165
- package/test/sap/ui/core/relnotes/changes-1.121.json +0 -15
- package/test/sap/ui/core/relnotes/changes-1.122.json +80 -0
- package/test/sap/ui/core/visual/HyphenationPlayground.spec.js +5 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/index.js +0 -15
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/index.js +0 -21
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/index.js +0 -21
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/index.js +0 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/index.js +0 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/index.js +0 -42
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/index.js +0 -44
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/index.js +0 -39
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/index.js +0 -39
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/index.js +0 -41
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/index.js +0 -48
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/index.js +0 -52
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/index.js +0 -52
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/index.js +0 -54
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/index.js +0 -54
- /package/test/sap/ui/core/qunit/testdata/legacy-uilib_legacyAPIs/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/legacy-uilib_legacyAPIs/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/legacy-uilib_legacyAPIs/themes/{sap_hcb → sap_horizon_hcb}/library[legacy].css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib1/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib1/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib10/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib11/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib13/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib14/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib15/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib15/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib16/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib16/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib17/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib2/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib2/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib3/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib3/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib4/themes/{sap_hcb → sap_horizon_hcb}/library-parameters.json +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib5/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib6/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib7/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib8/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
- /package/test/sap/ui/core/qunit/testdata/libraries/themeParameters/lib9/themes/{sap_hcb → sap_horizon_hcb}/library.css +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
sap.ui.define([
|
|
5
|
+
"sap/base/Log",
|
|
6
|
+
"sap/m/Button",
|
|
7
|
+
"sap/ui/model/json/JSONModel",
|
|
8
|
+
"sap/ui/support/RuleAnalyzer"
|
|
9
|
+
], function(Log, Button, JSONModel, RuleAnalyzer) {
|
|
10
|
+
/*global QUnit*/
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
QUnit.module("sap.ui.core.rules.Model.support - bindingPathSyntaxValidation", {
|
|
14
|
+
beforeEach: function () {
|
|
15
|
+
this.oLogMock = this.mock(Log);
|
|
16
|
+
this.oLogMock.expects("warning").never();
|
|
17
|
+
this.oLogMock.expects("error").never();
|
|
18
|
+
this.oLogMock.expects("fatal").never();
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//**********************************************************************************************
|
|
23
|
+
QUnit.test("bindingPathSyntaxValidation", function(assert) {
|
|
24
|
+
const oButton = new Button({text: "{/actoinName}"}); // wrong path: "actoinName" instead of "actionName"
|
|
25
|
+
const oModel = new JSONModel({actionName: "Say Hello"});
|
|
26
|
+
oButton.setModel(oModel);
|
|
27
|
+
oButton.placeAt("qunit-fixture");
|
|
28
|
+
const sRuleId = "bindingPathSyntaxValidation";
|
|
29
|
+
|
|
30
|
+
// code under test
|
|
31
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
32
|
+
const aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
33
|
+
assert.strictEqual(aIssues.length, 1, "Expected issues ");
|
|
34
|
+
assert.strictEqual(aIssues[0].rule.id, sRuleId);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
3
4
|
sap.ui.define([
|
|
4
5
|
"sap/base/Log",
|
|
5
|
-
"sap/m/Button",
|
|
6
6
|
"sap/m/StandardListItem",
|
|
7
7
|
"sap/m/Table",
|
|
8
8
|
"sap/m/Text",
|
|
9
9
|
"sap/m/VBox",
|
|
10
|
-
"sap/ui/model/json/JSONModel",
|
|
11
10
|
"sap/ui/model/odata/CountMode",
|
|
12
11
|
"sap/ui/model/odata/v2/ODataModel",
|
|
13
12
|
"sap/ui/model/odata/v4/ODataModel",
|
|
14
13
|
"sap/ui/support/library",
|
|
15
14
|
"sap/ui/support/RuleAnalyzer",
|
|
16
15
|
"sap/ui/test/TestUtils"
|
|
17
|
-
], function(Log,
|
|
18
|
-
|
|
19
|
-
/*global sinon*/
|
|
16
|
+
], function(Log, StandardListItem, Table, Text, VBox, CountMode, ODataV2Model, ODataV4Model, SupportLib, RuleAnalyzer,
|
|
17
|
+
TestUtils) {
|
|
18
|
+
/*global QUnit, sinon */
|
|
20
19
|
"use strict";
|
|
20
|
+
const sRuleId = "selectUsedInBoundAggregation";
|
|
21
21
|
|
|
22
|
-
QUnit.module("sap.ui.core.rules.Model.support", {
|
|
23
|
-
beforeEach
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
QUnit.module("sap.ui.core.rules.Model.support - selectUsedInBoundAggregation", {
|
|
23
|
+
beforeEach: function () {
|
|
24
|
+
const oEmptyV2Response = {message: JSON.stringify({"d": {"results": []}})};
|
|
25
|
+
const oEmptyV4Response = {message: JSON.stringify({"value": []})};
|
|
27
26
|
TestUtils.useFakeServer(this._oSandbox, "sap/ui/core", {
|
|
28
27
|
"/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/$metadata"
|
|
29
|
-
: {source
|
|
28
|
+
: {source: "qunit/model/GWSAMPLE_BASIC.metadata.xml"},
|
|
30
29
|
"/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/SalesOrderSet?$skip=0&$top=100&$select=SalesOrderID"
|
|
31
30
|
: oEmptyV2Response,
|
|
32
31
|
"/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/SalesOrderSet?$skip=0&$top=100"
|
|
@@ -40,7 +39,7 @@ sap.ui.define([
|
|
|
40
39
|
"/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/SalesOrderSet('42')/lastName"
|
|
41
40
|
: oEmptyV2Response,
|
|
42
41
|
"/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/$metadata"
|
|
43
|
-
: {source
|
|
42
|
+
: {source: "qunit/odata/v4/data/metadata.xml"},
|
|
44
43
|
"/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/EMPLOYEES?$select=ID&$skip=0&$top=100"
|
|
45
44
|
: oEmptyV4Response,
|
|
46
45
|
"/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/EMPLOYEES?$skip=0&$top=100"
|
|
@@ -65,67 +64,39 @@ sap.ui.define([
|
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
66
|
|
|
68
|
-
//**********************************************************************************************
|
|
69
|
-
QUnit.test("bindingPathSyntaxValidation", function(assert) {
|
|
70
|
-
var oButton = new Button({
|
|
71
|
-
text:'{/actoinName}' // wrong path: 'actoinName' instead of 'actionName'
|
|
72
|
-
}),
|
|
73
|
-
oModel = new JSONModel({
|
|
74
|
-
actionName: "Say Hello"
|
|
75
|
-
}),
|
|
76
|
-
sRuleId = "bindingPathSyntaxValidation";
|
|
77
|
-
|
|
78
|
-
oButton.setModel(oModel);
|
|
79
|
-
oButton.placeAt("qunit-fixture");
|
|
80
|
-
|
|
81
|
-
return RuleAnalyzer.analyze({type: "global"},
|
|
82
|
-
[{libName: "sap.ui.core", ruleId: sRuleId}]).then(function() {
|
|
83
|
-
var aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
84
|
-
|
|
85
|
-
assert.strictEqual(aIssues.length, 1, "Expected issues ");
|
|
86
|
-
assert.strictEqual(aIssues[0].rule.id, sRuleId);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
67
|
//**********************************************************************************************
|
|
91
68
|
[true, false].forEach(function (bUse$select) {
|
|
92
69
|
QUnit.test("selectUsedInBoundAggregation: v2, use $select: " + bUse$select, function (assert) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
defaultCountMode : CountMode.None,
|
|
99
|
-
serviceUrl : "/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
|
|
100
|
-
useBatch : false
|
|
70
|
+
const oTable = new Table();
|
|
71
|
+
const oModel = new ODataV2Model({
|
|
72
|
+
defaultCountMode: CountMode.None,
|
|
73
|
+
serviceUrl: "/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
|
|
74
|
+
useBatch: false
|
|
101
75
|
});
|
|
102
|
-
|
|
103
76
|
oTable.setModel(oModel);
|
|
104
77
|
oTable.placeAt("qunit-fixture");
|
|
105
|
-
|
|
106
78
|
oTable.bindItems({
|
|
107
|
-
path
|
|
108
|
-
parameters
|
|
109
|
-
template
|
|
79
|
+
path: '/SalesOrderSet',
|
|
80
|
+
parameters: bUse$select ? {select: 'SalesOrderID'} : undefined,
|
|
81
|
+
template: new StandardListItem("SOItem", {
|
|
110
82
|
title: new Text({text: "{SalesOrderID}"})
|
|
111
83
|
})
|
|
112
84
|
});
|
|
113
85
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
86
|
+
// code under test
|
|
87
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
88
|
+
const aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
118
89
|
assert.strictEqual(aIssues.length, bUse$select ? 0 : 1, "Correct number of issues");
|
|
119
90
|
if (!bUse$select) {
|
|
120
|
-
assert.deepEqual(aIssues[0].context, {id
|
|
91
|
+
assert.deepEqual(aIssues[0].context, {id: oTable.getId()}, "Correct ID");
|
|
121
92
|
assert.strictEqual(aIssues[0].details, "The aggregation 'items' of element "
|
|
122
93
|
+ oTable.getId() + " with binding path '/SalesOrderSet' is bound against a "
|
|
123
94
|
+ "collection, yet no binding parameter 'select' is used. Using 'select' may "
|
|
124
95
|
+ "improve performance.", "Correct details");
|
|
125
|
-
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low,
|
|
126
|
-
"Correct severity");
|
|
96
|
+
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low, "Correct severity");
|
|
127
97
|
}
|
|
128
98
|
oTable.destroy();
|
|
99
|
+
oModel.destroy();
|
|
129
100
|
});
|
|
130
101
|
});
|
|
131
102
|
});
|
|
@@ -133,86 +104,71 @@ sap.ui.define([
|
|
|
133
104
|
//**********************************************************************************************
|
|
134
105
|
[true, false].forEach(function (bUse$select) {
|
|
135
106
|
QUnit.test("selectUsedInBoundAggregation: v4: use $select: " + bUse$select, function (assert) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
oTable = new Table();
|
|
139
|
-
|
|
140
|
-
oModel = new ODataV4Model({
|
|
141
|
-
serviceUrl : "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"
|
|
142
|
-
});
|
|
143
|
-
|
|
107
|
+
const oTable = new Table();
|
|
108
|
+
const oModel = new ODataV4Model({serviceUrl: "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"});
|
|
144
109
|
oTable.setModel(oModel);
|
|
145
110
|
oTable.placeAt("qunit-fixture");
|
|
146
|
-
|
|
147
111
|
oTable.bindItems({
|
|
148
|
-
path
|
|
149
|
-
parameters
|
|
150
|
-
template
|
|
112
|
+
path: '/EMPLOYEES',
|
|
113
|
+
parameters: bUse$select ? {$select: 'ID'} : undefined,
|
|
114
|
+
template: new StandardListItem("EmployeeItem", {
|
|
151
115
|
title: new Text({text: "{ID}"})
|
|
152
116
|
})
|
|
153
117
|
});
|
|
154
118
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
119
|
+
// code under test
|
|
120
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
121
|
+
const aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
159
122
|
assert.strictEqual(aIssues.length, bUse$select ? 0 : 1, "Correct number of issues");
|
|
160
123
|
if (!bUse$select) {
|
|
161
|
-
assert.deepEqual(aIssues[0].context, {id
|
|
124
|
+
assert.deepEqual(aIssues[0].context, {id: oTable.getId()}, "Correct ID");
|
|
162
125
|
assert.strictEqual(aIssues[0].details, "The aggregation 'items' of element "
|
|
163
126
|
+ oTable.getId() + " with binding path '/EMPLOYEES' is bound against a "
|
|
164
127
|
+ "collection, yet no OData query option '$select' is used. Using '$select' may"
|
|
165
128
|
+ " improve performance. Alternatively, enable the automatic generation of "
|
|
166
129
|
+ "'$select' and '$expand' in the model using the 'autoExpandSelect' "
|
|
167
130
|
+ "parameter.", "Correct details");
|
|
168
|
-
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low,
|
|
169
|
-
"Correct severity");
|
|
131
|
+
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low, "Correct severity");
|
|
170
132
|
}
|
|
171
133
|
oTable.destroy();
|
|
134
|
+
oModel.destroy();
|
|
172
135
|
});
|
|
173
136
|
});
|
|
174
137
|
});
|
|
175
138
|
|
|
176
139
|
//**********************************************************************************************
|
|
177
140
|
QUnit.test("selectUsedInBoundAggregation: no binding", function (assert) {
|
|
178
|
-
|
|
179
|
-
oTable = new Table();
|
|
180
|
-
|
|
141
|
+
const oTable = new Table();
|
|
181
142
|
oTable.placeAt("qunit-fixture");
|
|
182
143
|
oTable.bindItems({
|
|
183
|
-
path
|
|
184
|
-
template
|
|
144
|
+
path: '/SalesOrderSet',
|
|
145
|
+
template: new StandardListItem("SOItem", {
|
|
185
146
|
title: new Text({text: "{SalesOrderID}"})
|
|
186
147
|
})
|
|
187
148
|
});
|
|
188
149
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
assert.strictEqual(aIssues.length, 0, "Correct number of issues");
|
|
150
|
+
// code under test
|
|
151
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
152
|
+
assert.strictEqual(RuleAnalyzer.getLastAnalysisHistory().issues.length, 0, "Correct number of issues");
|
|
194
153
|
oTable.destroy();
|
|
195
154
|
});
|
|
196
155
|
});
|
|
197
156
|
|
|
198
157
|
//**********************************************************************************************
|
|
199
158
|
QUnit.test("selectUsedInBoundAggregation: composite binding", function (assert) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
159
|
+
const oModel = new ODataV2Model({
|
|
160
|
+
defaultCountMode: CountMode.None,
|
|
161
|
+
serviceUrl: "/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
|
|
162
|
+
useBatch: false
|
|
163
|
+
});
|
|
164
|
+
const oText = new Text();
|
|
207
165
|
oText.setModel(oModel);
|
|
208
166
|
oText.placeAt("qunit-fixture");
|
|
209
167
|
oText.bindText({parts: [{path: "/SalesOrderSet('42')/firstName"}, {path: "/SalesOrderSet('42')/lastName"}]});
|
|
210
168
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
assert.strictEqual(aIssues.length, 0, "Correct number of issues");
|
|
169
|
+
// code under test
|
|
170
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
171
|
+
assert.strictEqual(RuleAnalyzer.getLastAnalysisHistory().issues.length, 0, "Correct number of issues");
|
|
216
172
|
oText.destroy();
|
|
217
173
|
oModel.destroy();
|
|
218
174
|
});
|
|
@@ -220,106 +176,82 @@ sap.ui.define([
|
|
|
220
176
|
|
|
221
177
|
//**********************************************************************************************
|
|
222
178
|
QUnit.test("selectUsedInBoundAggregation: v4: use autoExpandSelect", function (assert) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
oModel = new ODataV4Model({
|
|
228
|
-
autoExpandSelect : true,
|
|
229
|
-
serviceUrl : "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"
|
|
179
|
+
const oTable = new Table();
|
|
180
|
+
const oModel = new ODataV4Model({
|
|
181
|
+
autoExpandSelect: true,
|
|
182
|
+
serviceUrl: "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"
|
|
230
183
|
});
|
|
231
|
-
|
|
232
184
|
oTable.setModel(oModel);
|
|
233
185
|
oTable.placeAt("qunit-fixture");
|
|
234
|
-
|
|
235
186
|
oTable.bindItems({
|
|
236
|
-
path
|
|
237
|
-
template
|
|
187
|
+
path: '/EMPLOYEES',
|
|
188
|
+
template: new StandardListItem("EmployeeItem", {
|
|
238
189
|
title: new Text({text: "{ID}"})
|
|
239
190
|
})
|
|
240
191
|
});
|
|
241
192
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
assert.strictEqual(aIssues.length, 0, "Correct number of issues");
|
|
193
|
+
// code under test
|
|
194
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
195
|
+
assert.strictEqual(RuleAnalyzer.getLastAnalysisHistory().issues.length, 0, "Correct number of issues");
|
|
247
196
|
oTable.destroy();
|
|
197
|
+
oModel.destroy();
|
|
248
198
|
});
|
|
249
199
|
});
|
|
250
200
|
|
|
251
201
|
//**********************************************************************************************
|
|
252
202
|
[true, false].forEach(function (bUse$select) {
|
|
253
|
-
QUnit.test("selectUsedInBoundAggregation: v2.ODataContextBinding, use select: " + bUse$select,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
oModel = new ODataV2Model({
|
|
260
|
-
defaultCountMode : CountMode.None,
|
|
261
|
-
serviceUrl : "/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
|
|
262
|
-
useBatch : false
|
|
203
|
+
QUnit.test("selectUsedInBoundAggregation: v2.ODataContextBinding, use select: " + bUse$select, function (assert) {
|
|
204
|
+
const oVBox = new VBox();
|
|
205
|
+
const oModel = new ODataV2Model({
|
|
206
|
+
defaultCountMode: CountMode.None,
|
|
207
|
+
serviceUrl: "/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
|
|
208
|
+
useBatch: false
|
|
263
209
|
});
|
|
264
|
-
|
|
265
210
|
oVBox.setModel(oModel);
|
|
266
|
-
oVBox.bindElement("/SalesOrderSet('42')",
|
|
267
|
-
bUse$select ? {select : "SalesOrderID"} : undefined);
|
|
211
|
+
oVBox.bindElement("/SalesOrderSet('42')", bUse$select ? {select: "SalesOrderID"} : undefined);
|
|
268
212
|
oVBox.bindProperty("visible", "/visibility");
|
|
269
213
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
214
|
+
// code under test
|
|
215
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
216
|
+
const aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
274
217
|
assert.strictEqual(aIssues.length, bUse$select ? 0 : 1, "Correct number of issues");
|
|
275
218
|
if (!bUse$select) {
|
|
276
|
-
assert.deepEqual(aIssues[0].context, {id
|
|
219
|
+
assert.deepEqual(aIssues[0].context, {id: oVBox.getId()}, "Correct ID");
|
|
277
220
|
assert.strictEqual(aIssues[0].details, "The element " + oVBox.getId() + " with "
|
|
278
221
|
+ "binding path '/SalesOrderSet('42')' is bound against an entity, yet no "
|
|
279
222
|
+ "binding parameter 'select' is used. Using 'select' may improve "
|
|
280
223
|
+ "performance.");
|
|
281
|
-
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low,
|
|
282
|
-
"Correct severity");
|
|
224
|
+
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low, "Correct severity");
|
|
283
225
|
}
|
|
284
|
-
|
|
285
226
|
oVBox.destroy();
|
|
227
|
+
oModel.destroy();
|
|
286
228
|
});
|
|
287
229
|
});
|
|
288
230
|
});
|
|
289
231
|
|
|
290
232
|
//**********************************************************************************************
|
|
291
233
|
[true, false].forEach(function (bUse$select) {
|
|
292
|
-
QUnit.test("selectUsedInBoundAggregation: v4.ODataContextBinding, use select: " + bUse$select,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
sRuleId = "selectUsedInBoundAggregation",
|
|
296
|
-
oVBox = new VBox();
|
|
297
|
-
|
|
298
|
-
oModel = new ODataV4Model({
|
|
299
|
-
serviceUrl : "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"
|
|
300
|
-
});
|
|
301
|
-
|
|
234
|
+
QUnit.test("selectUsedInBoundAggregation: v4.ODataContextBinding, use select: " + bUse$select, function (assert) {
|
|
235
|
+
const oVBox = new VBox();
|
|
236
|
+
const oModel = new ODataV4Model({serviceUrl: "/sap/opu/odata4/IWBEP/TEA/default/IWBEP/TEA_BUSI/0001/"});
|
|
302
237
|
oVBox.setModel(oModel);
|
|
303
|
-
oVBox.bindElement("/EMPLOYEES('42')",
|
|
304
|
-
bUse$select ? {$select : "ID"} : undefined);
|
|
305
|
-
|
|
306
|
-
return RuleAnalyzer.analyze({type : "global"},
|
|
307
|
-
[{libName : "sap.ui.core", ruleId : sRuleId}]).then(function () {
|
|
308
|
-
var aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
238
|
+
oVBox.bindElement("/EMPLOYEES('42')", bUse$select ? {$select: "ID"} : undefined);
|
|
309
239
|
|
|
240
|
+
// code under test
|
|
241
|
+
return RuleAnalyzer.analyze({type: "global"}, [{libName: "sap.ui.core", ruleId: sRuleId}]).then(() => {
|
|
242
|
+
const aIssues = RuleAnalyzer.getLastAnalysisHistory().issues;
|
|
310
243
|
assert.strictEqual(aIssues.length, bUse$select ? 0 : 1, "Correct number of issues");
|
|
311
244
|
if (!bUse$select) {
|
|
312
|
-
assert.deepEqual(aIssues[0].context, {id
|
|
245
|
+
assert.deepEqual(aIssues[0].context, {id: oVBox.getId()}, "Correct ID");
|
|
313
246
|
assert.strictEqual(aIssues[0].details, "The element " + oVBox.getId() + " with "
|
|
314
247
|
+ "binding path '/EMPLOYEES('42')' is bound against an entity, yet no OData "
|
|
315
248
|
+ "query option '$select' is used. Using '$select' may improve performance. "
|
|
316
249
|
+ "Alternatively, enable the automatic generation of '$select' and '$expand' in"
|
|
317
250
|
+ " the model using the 'autoExpandSelect' parameter.");
|
|
318
|
-
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low,
|
|
319
|
-
"Correct severity");
|
|
251
|
+
assert.strictEqual(aIssues[0].severity, SupportLib.Severity.Low, "Correct severity");
|
|
320
252
|
}
|
|
321
|
-
|
|
322
253
|
oVBox.destroy();
|
|
254
|
+
oModel.destroy();
|
|
323
255
|
});
|
|
324
256
|
});
|
|
325
257
|
});
|
|
@@ -127,8 +127,11 @@ sap.ui.define(function () {
|
|
|
127
127
|
"misc/silentEventBus": {
|
|
128
128
|
title: "QUnit Tests for 'silent event bus usage' rules"
|
|
129
129
|
},
|
|
130
|
-
"model/
|
|
131
|
-
title: "QUnit Tests for model
|
|
130
|
+
"model/bindingPathSyntaxValidation": {
|
|
131
|
+
title: "QUnit Tests for model rule: bindingPathSyntaxValidation"
|
|
132
|
+
},
|
|
133
|
+
"model/selectUsedInBoundAggregation": {
|
|
134
|
+
title: "QUnit Tests for model rule: selectUsedInBoundAggregation"
|
|
132
135
|
}
|
|
133
136
|
}
|
|
134
137
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* Inline Theming Metadata */
|
|
2
2
|
.sapThemeMetaData-UI5-testlibs-themeParameters-lib12 {
|
|
3
|
-
background-image: url('data:text/plain;utf-8,{"Path": "UI5.sample/path", "PathPattern": "/%UI5%/sample/%pattern%.css", "Extends": ["
|
|
3
|
+
background-image: url('data:text/plain;utf-8,{"Path": "UI5.sample/path", "PathPattern": "/%UI5%/sample/%pattern%.css", "Extends": ["sap_horizon_hcb","base"], "Version": { "Build":"1.0.0", "Source": "1.0.0", "Engine": "1.0.0"}}');
|
|
4
4
|
}
|
|
@@ -59,24 +59,6 @@ sap.ui.define(function() {
|
|
|
59
59
|
*/
|
|
60
60
|
page: "test-resources/sap/ui/core/qunit/Core_unavoidablyUsingEval.qunit.html"
|
|
61
61
|
},
|
|
62
|
-
/**
|
|
63
|
-
* The tests for the preload files all share the same test configuration.
|
|
64
|
-
* There is only one HTML test page, which is opened with different URL parameters.
|
|
65
|
-
* The HTML test page then points to this general configuration.
|
|
66
|
-
*/
|
|
67
|
-
Core_libraryPreloadFiles: {
|
|
68
|
-
title: "sap.ui.core: library preload with libraryPreloadFiles=",
|
|
69
|
-
page: "test-resources/sap/ui/core/qunit/Core_libraryPreloadFiles.qunit.html?sap-ui-xx-libraryPreloadFiles=none",
|
|
70
|
-
loader: {
|
|
71
|
-
paths: {
|
|
72
|
-
testlibs: "testdata/libraries/"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
Core_libraryPreloadFiles2: {
|
|
77
|
-
title: "sap.ui.core: library preload with libraryPreloadFiles=",
|
|
78
|
-
page: "test-resources/sap/ui/core/qunit/Core_libraryPreloadFiles.qunit.html?sap-ui-xx-libraryPreloadFiles=js"
|
|
79
|
-
},
|
|
80
62
|
/**
|
|
81
63
|
* legacy-relevant:
|
|
82
64
|
* The following tests covers the different combinations of the legacy configuration to allow libraries to
|
|
@@ -185,6 +167,24 @@ sap.ui.define(function() {
|
|
|
185
167
|
ui5: {
|
|
186
168
|
preload: "async"
|
|
187
169
|
}
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* The tests for the preload files all share the same test configuration.
|
|
173
|
+
* There is only one HTML test page, which is opened with different URL parameters.
|
|
174
|
+
* The HTML test page then points to this general configuration.
|
|
175
|
+
*/
|
|
176
|
+
Lib_preloadFiles: {
|
|
177
|
+
title: "sap.ui.core: library preload with libraryPreloadFiles=",
|
|
178
|
+
page: "test-resources/sap/ui/core/qunit/Lib_preloadFiles.qunit.html?sap-ui-xx-libraryPreloadFiles=none",
|
|
179
|
+
loader: {
|
|
180
|
+
paths: {
|
|
181
|
+
testlibs: "testdata/libraries/"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
Lib_preloadFiles2: {
|
|
186
|
+
title: "sap.ui.core: library preload with libraryPreloadFiles=",
|
|
187
|
+
page: "test-resources/sap/ui/core/qunit/Lib_preloadFiles.qunit.html?sap-ui-xx-libraryPreloadFiles=js"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
};
|
|
@@ -20,7 +20,7 @@ sap.ui.define([], function() {
|
|
|
20
20
|
page: "test-resources/sap/ui/core/qunit/base/Config_bootstrap.qunit.html"
|
|
21
21
|
},
|
|
22
22
|
"base/Config_cascade": {
|
|
23
|
-
page: "test-resources/sap/ui/core/qunit/base/Config_cascade.qunit.html?sap-ui-paramA=url&sap-ui-param-merged-object
|
|
23
|
+
page: "test-resources/sap/ui/core/qunit/base/Config_cascade.qunit.html?sap-ui-paramA=url&sap-ui-param-merged-object=%7B\"objectKeyUrl\":\"urlObject\"%7D"
|
|
24
24
|
},
|
|
25
25
|
"base/Config_noUrl": {
|
|
26
26
|
page: "test-resources/sap/ui/core/qunit/base/Config_noUrl.qunit.html?sap-ui-foo-bar=url"
|
|
@@ -62,7 +62,7 @@ sap.ui.define(["sap/ui/Device"], function(Device) {
|
|
|
62
62
|
"ThemeParameters_legacyAPIs": {
|
|
63
63
|
title: "sap.ui.core.theming.Parameters",
|
|
64
64
|
ui5: {
|
|
65
|
-
theme: "
|
|
65
|
+
theme: "sap_horizon_hcb"
|
|
66
66
|
},
|
|
67
67
|
qunit: {
|
|
68
68
|
reorder: false
|
|
@@ -80,7 +80,7 @@ sap.ui.define(["sap/ui/Device"], function(Device) {
|
|
|
80
80
|
ThemeParameters: {
|
|
81
81
|
title: "sap.ui.core.theming.Parameters - Async Only",
|
|
82
82
|
ui5: {
|
|
83
|
-
theme: "
|
|
83
|
+
theme: "sap_horizon_hcb"
|
|
84
84
|
},
|
|
85
85
|
qunit: {
|
|
86
86
|
reorder: false
|
|
@@ -94,7 +94,7 @@ sap.ui.define(["sap/ui/Device"], function(Device) {
|
|
|
94
94
|
"ThemeHelper": {
|
|
95
95
|
title: "sap.ui.core.theming.ThemeHelper",
|
|
96
96
|
ui5: {
|
|
97
|
-
theme: "
|
|
97
|
+
theme: "sap_horizon_hcb"
|
|
98
98
|
},
|
|
99
99
|
qunit: {
|
|
100
100
|
reorder: false
|
|
@@ -70,4 +70,10 @@ sap.ui.define([
|
|
|
70
70
|
// code under test: method exists and does nothing
|
|
71
71
|
assert.strictEqual(CompositeType.prototype.processPartTypes(), undefined);
|
|
72
72
|
});
|
|
73
|
+
|
|
74
|
+
//*********************************************************************************************
|
|
75
|
+
QUnit.test("getPartsListeningToTypeChanges", function (assert) {
|
|
76
|
+
// code under test
|
|
77
|
+
assert.deepEqual(CompositeType.prototype.getPartsListeningToTypeChanges(), []);
|
|
78
|
+
});
|
|
73
79
|
});
|
|
@@ -10,7 +10,6 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/core/date/UniversalDate",
|
|
11
11
|
"sap/ui/core/date/UI5Date",
|
|
12
12
|
"sap/ui/core/library",
|
|
13
|
-
"sap/ui/core/Configuration",
|
|
14
13
|
"sap/ui/core/Supportability",
|
|
15
14
|
"sap/ui/core/date/CalendarWeekNumbering",
|
|
16
15
|
"sap/ui/test/TestUtils",
|
|
@@ -21,7 +20,7 @@ sap.ui.define([
|
|
|
21
20
|
"sap/ui/core/date/Japanese",
|
|
22
21
|
"sap/ui/core/date/Persian"
|
|
23
22
|
], function(Log, Formatting, Localization, extend, DateFormat, FormatUtils, Locale, LocaleData,
|
|
24
|
-
UniversalDate, UI5Date, library,
|
|
23
|
+
UniversalDate, UI5Date, library, Supportability, CalendarWeekNumbering, TestUtils) {
|
|
25
24
|
"use strict";
|
|
26
25
|
/* eslint-disable max-nested-callbacks */
|
|
27
26
|
/*global QUnit, sinon */
|
|
@@ -864,8 +863,7 @@ sap.ui.define([
|
|
|
864
863
|
|
|
865
864
|
QUnit.test("format relative date without modifying the input date object", function (assert) {
|
|
866
865
|
var oDateFormat = DateFormat.getDateInstance({
|
|
867
|
-
relative: true
|
|
868
|
-
relativeScale: "auto"
|
|
866
|
+
relative: true
|
|
869
867
|
});
|
|
870
868
|
var oDate = UI5Date.getInstance("2020-08-17T21:59:00Z");
|
|
871
869
|
var beforeMs = oDate.getTime();
|
|
@@ -2966,7 +2964,6 @@ sap.ui.define([
|
|
|
2966
2964
|
aTestData.forEach(function (oTestData) {
|
|
2967
2965
|
var oDateTime = DateFormat.getDateTimeInstance({
|
|
2968
2966
|
relative: true,
|
|
2969
|
-
relativeScale: "auto",
|
|
2970
2967
|
relativeStyle: sStyle
|
|
2971
2968
|
});
|
|
2972
2969
|
|
|
@@ -3936,7 +3933,7 @@ sap.ui.define([
|
|
|
3936
3933
|
var sResult = oIntervalFormat.format([oDate1, oDate2]);
|
|
3937
3934
|
assert.strictEqual(sResult, "Apr 11\u2009\u2013\u200912, 2017", "Different dates are formatted correctly");
|
|
3938
3935
|
|
|
3939
|
-
|
|
3936
|
+
sResult = oIntervalFormat.format([oDate1, oDate1]);
|
|
3940
3937
|
assert.strictEqual(sResult, "Apr 11, 2017", "Single Date if formatted correctly afterwards");
|
|
3941
3938
|
});
|
|
3942
3939
|
|