@openui5/sap.ui.core 1.115.1 → 1.116.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 +11 -0
- 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 +320 -0
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/Formatting.js +991 -0
- package/src/sap/base/i18n/LanguageTag.js +189 -0
- package/src/sap/base/i18n/Localization.js +711 -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/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 +4 -12
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +8 -12
- package/src/sap/ui/base/ManagedObjectMetadata.js +30 -7
- 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 +2 -2
- 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/Configuration.js +409 -1270
- package/src/sap/ui/core/Control.js +4 -12
- package/src/sap/ui/core/ControlBehavior.js +157 -0
- package/src/sap/ui/core/Core.js +124 -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 +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 +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 +109 -22
- 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 +151 -430
- package/src/sap/ui/core/LocaleData.js +39 -11
- 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/StaticArea.js +31 -17
- package/src/sap/ui/core/Theming.js +451 -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 +1 -0
- package/src/sap/ui/core/_IconRegistry.js +7 -1
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +12 -83
- package/src/sap/ui/core/date/UI5Date.js +2 -2
- 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 +20 -15
- 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 +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_cs.properties +1 -1
- package/src/sap/ui/core/messagebundle_cy.properties +1 -1
- package/src/sap/ui/core/messagebundle_da.properties +1 -1
- package/src/sap/ui/core/messagebundle_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +1 -1
- package/src/sap/ui/core/messagebundle_en.properties +1 -1
- package/src/sap/ui/core/messagebundle_en_GB.properties +1 -1
- package/src/sap/ui/core/messagebundle_es.properties +1 -1
- package/src/sap/ui/core/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/core/messagebundle_et.properties +1 -1
- package/src/sap/ui/core/messagebundle_id.properties +1 -1
- package/src/sap/ui/core/messagebundle_it.properties +49 -49
- package/src/sap/ui/core/messagebundle_iw.properties +1 -1
- package/src/sap/ui/core/messagebundle_kk.properties +1 -1
- package/src/sap/ui/core/messagebundle_ko.properties +1 -1
- package/src/sap/ui/core/messagebundle_lt.properties +1 -1
- package/src/sap/ui/core/messagebundle_lv.properties +1 -1
- package/src/sap/ui/core/messagebundle_ms.properties +8 -8
- package/src/sap/ui/core/messagebundle_nl.properties +1 -1
- package/src/sap/ui/core/messagebundle_no.properties +1 -1
- package/src/sap/ui/core/messagebundle_pl.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/core/messagebundle_ro.properties +1 -1
- package/src/sap/ui/core/messagebundle_sh.properties +1 -1
- package/src/sap/ui/core/messagebundle_sv.properties +1 -1
- package/src/sap/ui/core/messagebundle_th.properties +1 -1
- package/src/sap/ui/core/messagebundle_uk.properties +21 -21
- package/src/sap/ui/core/messagebundle_vi.properties +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +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 +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/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 +1 -1
- 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/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 -5
- package/src/sap/ui/core/theming/ThemeManager.js +310 -447
- 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 +1 -1
- 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/base/ManagedObjectModel.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +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 +45 -31
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +7 -3
- package/src/sap/ui/model/odata/v4/ODataBinding.js +68 -39
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +12 -8
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +30 -8
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +11 -9
- package/src/sap/ui/model/odata/v4/ODataModel.js +10 -14
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +64 -31
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +21 -16
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +2 -0
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +37 -14
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +11 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +7 -4
- 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/autowaiter/_autoWaiter.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/simpleGherkinParser.js +10 -5
- package/src/sap/ui/test/matchers/LabelFor.js +1 -0
- package/src/sap/ui/thirdparty/caja-html-sanitizer.js +111 -96
- package/src/sap/ui/util/ActivityDetection.js +7 -1
- package/src/sap/ui/util/Mobile.js +11 -8
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +5 -2
- package/src/ui5loader.js +169 -185
- 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/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/common/pages/Any.js +1 -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 +69 -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/MultipleInlineCreationRowsGrid/pages/Main.js +0 -41
- 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/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/ServerDrivenPaging/Main.view.xml +3 -3
- 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/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/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/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 +229 -0
- package/test/sap/ui/core/qunit/analytics/AnalyticalTreeBindingAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +24 -0
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +275 -0
- package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +259 -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.qunit.js +388 -254
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +19 -30
- package/test/sap/ui/core/qunit/component/Models.qunit.js +7 -28
- 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/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/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 +1 -1
- package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +14 -24
- 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/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/fixture/amd-with-export-true/module1.js +2 -2
- 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/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/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/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 +1 -6
- 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 +28 -19
- 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/_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 +45 -17
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +152 -151
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +55 -27
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +119 -4
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +754 -195
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +42 -53
- 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/lib/_AggregationCache.qunit.js +3 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +87 -58
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +3 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +124 -22
- 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/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/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/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 +397 -607
- 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/SyncPromise.qunit.js +4 -1
- package/test/sap/ui/core/qunit/util/jQuery.sap.measure.qunit.js +16 -11
- 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 +82 -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/testsuite/js/samples.js +2 -0
- package/ui5.yaml +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_version" : "1.115.0",
|
|
3
|
+
"sap.app" : {
|
|
4
|
+
"ach" : "CA-UI5-COR",
|
|
5
|
+
"applicationVersion" : {
|
|
6
|
+
"version" : "${version}"
|
|
7
|
+
},
|
|
8
|
+
"description" : "Demo Application for Deep Create",
|
|
9
|
+
"dataSources" : {
|
|
10
|
+
"default" : {
|
|
11
|
+
"uri" : "/sap/opu/odata4/sap/zui5_testv4/default/sap/zui5_epm_sample/0002/",
|
|
12
|
+
"type" : "OData"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"id" : "sap.ui.core.sample.odata.v4.DeepCreate",
|
|
16
|
+
"title" : "Deep Create Application",
|
|
17
|
+
"type" : "application"
|
|
18
|
+
},
|
|
19
|
+
"sap.ui" : {
|
|
20
|
+
"deviceTypes" : {
|
|
21
|
+
"desktop" : true,
|
|
22
|
+
"phone" : true,
|
|
23
|
+
"tablet" : true
|
|
24
|
+
},
|
|
25
|
+
"technology" : "UI5"
|
|
26
|
+
},
|
|
27
|
+
"sap.ui5" : {
|
|
28
|
+
"config" : {
|
|
29
|
+
"sample" : {
|
|
30
|
+
"files" : [
|
|
31
|
+
"Component.js",
|
|
32
|
+
"ListReport.controller.js",
|
|
33
|
+
"ListReport.view.xml",
|
|
34
|
+
"Main.controller.js",
|
|
35
|
+
"Main.view.xml",
|
|
36
|
+
"manifest.json",
|
|
37
|
+
"NotFound.view.xml",
|
|
38
|
+
"ObjectPage.controller.js",
|
|
39
|
+
"ObjectPage.view.xml",
|
|
40
|
+
"README.html",
|
|
41
|
+
"SandboxModel.js",
|
|
42
|
+
"data/metadata.xml",
|
|
43
|
+
"data/POST-SalesOrderList.json",
|
|
44
|
+
"data/SalesOrderList('0500000000').json",
|
|
45
|
+
"data/SalesOrderList('0500000000')-SO_2_SOITEM.json",
|
|
46
|
+
"data/SalesOrderList('0500000001').json",
|
|
47
|
+
"data/SalesOrderList('0500000007')-SO_2_BP.json",
|
|
48
|
+
"data/SalesOrderList.json",
|
|
49
|
+
"data/VH_CurrencyCode.json",
|
|
50
|
+
"data/VH_CurrencyCode.xml",
|
|
51
|
+
"data/VH_ProductID.json",
|
|
52
|
+
"data/VH_ProductID.xml",
|
|
53
|
+
"../../../common/Controller.js",
|
|
54
|
+
"../../../common/SandboxModelHelper.js",
|
|
55
|
+
"../../../common/ValueHelp.js"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"contentDensities" : {
|
|
60
|
+
"compact" : true,
|
|
61
|
+
"cozy" : true
|
|
62
|
+
},
|
|
63
|
+
"dependencies" : {
|
|
64
|
+
"minUI5Version" : "1.115.0",
|
|
65
|
+
"libs" : {
|
|
66
|
+
"sap.m" : {},
|
|
67
|
+
"sap.ui.layout" : {}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"handleValidation" : true,
|
|
71
|
+
"models" : {
|
|
72
|
+
"" : {
|
|
73
|
+
"dataSource" : "default",
|
|
74
|
+
"preload" : true,
|
|
75
|
+
"settings" : {
|
|
76
|
+
"autoExpandSelect" : true,
|
|
77
|
+
"earlyRequests" : true,
|
|
78
|
+
"updateGroupId" : "UpdateGroup"
|
|
79
|
+
},
|
|
80
|
+
"type" : "sap.ui.core.sample.odata.v4.DeepCreate.SandboxModel",
|
|
81
|
+
"uriSettingName" : "serviceUrl"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"rootView" : {
|
|
85
|
+
"async" : true,
|
|
86
|
+
"type" : "XML",
|
|
87
|
+
"viewName" : "sap.ui.core.sample.odata.v4.DeepCreate.Main"
|
|
88
|
+
},
|
|
89
|
+
"routing" : {
|
|
90
|
+
"config" : {
|
|
91
|
+
"async" : true,
|
|
92
|
+
"bypassed": {
|
|
93
|
+
"target": "notFound"
|
|
94
|
+
},
|
|
95
|
+
"controlAggregation" : "pages",
|
|
96
|
+
"controlId" : "app",
|
|
97
|
+
"path" : "sap.ui.core.sample.odata.v4.DeepCreate",
|
|
98
|
+
"routerClass" : "sap.m.routing.Router",
|
|
99
|
+
"type" : "View",
|
|
100
|
+
"viewType" : "XML"
|
|
101
|
+
},
|
|
102
|
+
"routes" : [{
|
|
103
|
+
"name" : "listReport",
|
|
104
|
+
"pattern" : "",
|
|
105
|
+
"target" : ["listReport"]
|
|
106
|
+
}, {
|
|
107
|
+
"name" : "objectPage",
|
|
108
|
+
"pattern" : "id={id}",
|
|
109
|
+
"target" : ["objectPage"]
|
|
110
|
+
}, {
|
|
111
|
+
"name" : "create",
|
|
112
|
+
"pattern" : "create",
|
|
113
|
+
"target" : ["objectPage"]
|
|
114
|
+
}],
|
|
115
|
+
"targets" : {
|
|
116
|
+
"listReport" : {
|
|
117
|
+
"id" : "listReport",
|
|
118
|
+
"level" : 1,
|
|
119
|
+
"name" : "ListReport"
|
|
120
|
+
},
|
|
121
|
+
"objectPage" : {
|
|
122
|
+
"id" : "objectPage",
|
|
123
|
+
"level" : 1,
|
|
124
|
+
"name" : "ObjectPage"
|
|
125
|
+
},
|
|
126
|
+
"notFound": {
|
|
127
|
+
"id": "notFound",
|
|
128
|
+
"name": "NotFound",
|
|
129
|
+
"transition": "show"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
sap.ui.define([
|
|
5
|
+
"sap/ui/core/sample/common/Helper",
|
|
6
|
+
"sap/ui/test/Opa",
|
|
7
|
+
"sap/ui/test/Opa5",
|
|
8
|
+
"sap/ui/test/TestUtils",
|
|
9
|
+
"sap/ui/test/actions/Press"
|
|
10
|
+
], function (Helper, Opa, Opa5, TestUtils, Press) {
|
|
11
|
+
"use strict";
|
|
12
|
+
var sListReport = "sap.ui.core.sample.odata.v4.DeepCreate.ListReport",
|
|
13
|
+
sObjectPage = "sap.ui.core.sample.odata.v4.DeepCreate.ObjectPage";
|
|
14
|
+
|
|
15
|
+
Opa5.createPageObjects({
|
|
16
|
+
onTheListReport : {
|
|
17
|
+
actions : {
|
|
18
|
+
pressCreate : function () {
|
|
19
|
+
Helper.pressButton(this, sListReport, "create");
|
|
20
|
+
if (TestUtils.isRealOData()) {
|
|
21
|
+
// remember created sales order for cleanup
|
|
22
|
+
this.waitFor({id : "objectPage",
|
|
23
|
+
success : function (oControl) {
|
|
24
|
+
var oCreated = oControl.getBindingContext();
|
|
25
|
+
|
|
26
|
+
oCreated.created().then(function () {
|
|
27
|
+
var aCreatedEntityPaths = Opa.getContext().aCreatedEntityPaths,
|
|
28
|
+
sPath = oCreated.getPath();
|
|
29
|
+
|
|
30
|
+
if (!aCreatedEntityPaths) {
|
|
31
|
+
Opa.getContext().aCreatedEntityPaths
|
|
32
|
+
= aCreatedEntityPaths = [];
|
|
33
|
+
}
|
|
34
|
+
aCreatedEntityPaths.push(sPath);
|
|
35
|
+
Opa5.assert.ok(true, "Remembered SalesOrder: " + sPath);
|
|
36
|
+
}, function () { /* ignore */ });
|
|
37
|
+
},
|
|
38
|
+
viewName : sObjectPage});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
onTheObjectPage : {
|
|
44
|
+
actions : {
|
|
45
|
+
changeNote : function (sNote) {
|
|
46
|
+
Helper.changeInputValue(this, sObjectPage, "SalesOrder::note", sNote);
|
|
47
|
+
},
|
|
48
|
+
pressCreateLineItem : function () {
|
|
49
|
+
Helper.pressButton(this, sObjectPage, "createLineItem");
|
|
50
|
+
},
|
|
51
|
+
pressDeleteSelectedLineItems : function () {
|
|
52
|
+
Helper.pressButton(this, sObjectPage, "deleteLineItem");
|
|
53
|
+
},
|
|
54
|
+
pressResetChanges : function () {
|
|
55
|
+
Helper.pressButton(this, sObjectPage, "resetChanges");
|
|
56
|
+
},
|
|
57
|
+
pressSave : function () {
|
|
58
|
+
Helper.pressButton(this, sObjectPage, "save");
|
|
59
|
+
},
|
|
60
|
+
pressValueHelpOnProductID : function (iRow) {
|
|
61
|
+
this.waitFor({
|
|
62
|
+
actions : function (oControl) {
|
|
63
|
+
new Press().executeOn(oControl.getAggregation("field"));
|
|
64
|
+
},
|
|
65
|
+
matchers : function (oControl) {
|
|
66
|
+
return oControl.getBindingContext().getIndex() === iRow;
|
|
67
|
+
},
|
|
68
|
+
controlType : "sap.ui.core.sample.common.ValueHelp",
|
|
69
|
+
id : /SO_2_SOITEM:ProductID/,
|
|
70
|
+
success : function (oControls) {
|
|
71
|
+
Opa5.assert.ok(true, "ValueHelp pressed: " + oControls[0].getValue());
|
|
72
|
+
},
|
|
73
|
+
viewName : sObjectPage
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
selectLineItem : function (iRow) {
|
|
77
|
+
this.waitFor({
|
|
78
|
+
actions : new Press(),
|
|
79
|
+
controlType : "sap.m.CheckBox",
|
|
80
|
+
id : /selectMulti/,
|
|
81
|
+
matchers : function (oControl) {
|
|
82
|
+
return oControl.getBindingContext().getIndex() === iRow;
|
|
83
|
+
},
|
|
84
|
+
success : function (aControls) {
|
|
85
|
+
aControls.forEach(function (oControl) {
|
|
86
|
+
Opa5.assert.ok(true, "Item selected: "
|
|
87
|
+
+ oControl.getBindingContext());
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
viewName : sObjectPage
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
assertions : {
|
|
95
|
+
checkGrossAmount : function (sGrossAmount) {
|
|
96
|
+
Helper.checkInputValue(this, sObjectPage, "SalesOrder::grossAmount",
|
|
97
|
+
sGrossAmount);
|
|
98
|
+
},
|
|
99
|
+
checkSalesOrderID : function (sSalesOrderID) {
|
|
100
|
+
Helper.checkInputValue(this, sObjectPage, "SalesOrder::id", sSalesOrderID);
|
|
101
|
+
},
|
|
102
|
+
checkSalesOrderItemsCount : function (iCount) {
|
|
103
|
+
Helper.waitForSortedByID(this, {
|
|
104
|
+
id : /SO_2_SOITEM-trigger|lineItemsTitle/,
|
|
105
|
+
success : function (aControls) {
|
|
106
|
+
if (aControls.length === 2) {
|
|
107
|
+
Helper.checkMoreButtonCount(aControls.shift(),
|
|
108
|
+
"[5/" + iCount + "]");
|
|
109
|
+
}
|
|
110
|
+
Opa5.assert.strictEqual(aControls[0].getText(),
|
|
111
|
+
iCount + " Sales Order Line Items", "Count in title is " + iCount);
|
|
112
|
+
},
|
|
113
|
+
viewName : sObjectPage
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/pages/Main.js
CHANGED
|
@@ -104,47 +104,6 @@ sap.ui.define([
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
onTheMessagePopover : {
|
|
108
|
-
actions : {
|
|
109
|
-
close : function () {
|
|
110
|
-
this.waitFor({
|
|
111
|
-
actions : function (oMessagePopover) {
|
|
112
|
-
oMessagePopover.close();
|
|
113
|
-
},
|
|
114
|
-
controlType : "sap.m.MessagePopover",
|
|
115
|
-
success : function (aControls) {
|
|
116
|
-
Opa5.assert.strictEqual(aControls.length, 1, "Message Popover closed");
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}, assertions : {
|
|
121
|
-
checkMessages : function (aExpectedMessages) {
|
|
122
|
-
this.waitFor({
|
|
123
|
-
controlType : "sap.m.MessagePopover",
|
|
124
|
-
success : function (aMessagePopover) {
|
|
125
|
-
var iExpectedCount = aExpectedMessages.length,
|
|
126
|
-
aItems = aMessagePopover[0].getItems();
|
|
127
|
-
|
|
128
|
-
Opa5.assert.ok(aMessagePopover.length === 1);
|
|
129
|
-
Opa5.assert.strictEqual(aItems.length, iExpectedCount,
|
|
130
|
-
"Check Messages: message count is as expected: " + iExpectedCount
|
|
131
|
-
);
|
|
132
|
-
aExpectedMessages.forEach(function (oExpectedMessage, i) {
|
|
133
|
-
var bFound;
|
|
134
|
-
|
|
135
|
-
bFound = aItems.some(function (oItem) {
|
|
136
|
-
return oItem.getTitle() === oExpectedMessage.message
|
|
137
|
-
&& oItem.getType() === oExpectedMessage.type;
|
|
138
|
-
});
|
|
139
|
-
Opa5.assert.ok(bFound, "Check Messages: expected message[" + i
|
|
140
|
-
+ "]: " + oExpectedMessage.message + " type: "
|
|
141
|
-
+ oExpectedMessage.type);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
107
|
onTheObjectPage : {
|
|
149
108
|
actions : {
|
|
150
109
|
confirmDeletion : function () {
|
|
@@ -154,7 +154,6 @@ sap.ui.define([
|
|
|
154
154
|
+ ", " + oContext.getProperty("SO_2_BP/CompanyName"));
|
|
155
155
|
}).catch(function (oError) {
|
|
156
156
|
if (!oError.canceled) {
|
|
157
|
-
MessageBox.error("" + oError);
|
|
158
157
|
throw oError; // unexpected error
|
|
159
158
|
}
|
|
160
159
|
});
|
|
@@ -274,7 +273,7 @@ sap.ui.define([
|
|
|
274
273
|
this.setSalesOrderBindingContext(null); // hide the object page
|
|
275
274
|
this.aDeletedSalesOrders.push(oContext);
|
|
276
275
|
this.updateUndoButton();
|
|
277
|
-
oContext.delete().catch(function (
|
|
276
|
+
oContext.delete().catch(function () { // canceled or error already reported
|
|
278
277
|
var oItem;
|
|
279
278
|
|
|
280
279
|
if (!oSalesOrderTable.getSelectedItem()) {
|
|
@@ -286,10 +285,6 @@ sap.ui.define([
|
|
|
286
285
|
that.setSalesOrderBindingContext(oContext); // show the object page again
|
|
287
286
|
}
|
|
288
287
|
}
|
|
289
|
-
if (!oError.canceled) {
|
|
290
|
-
MessageToast.show("Could not delete sales order "
|
|
291
|
-
+ oContext.getProperty("SalesOrderID"));
|
|
292
|
-
}
|
|
293
288
|
}).finally(function () {
|
|
294
289
|
that.aDeletedSalesOrders.splice(that.aDeletedSalesOrders.indexOf(oContext), 1);
|
|
295
290
|
that.updateUndoButton();
|
|
@@ -297,15 +292,8 @@ sap.ui.define([
|
|
|
297
292
|
},
|
|
298
293
|
|
|
299
294
|
onDeleteSalesOrderLineItem : function () {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
oContext.delete().catch(function (oError) {
|
|
303
|
-
if (!oError.canceled) {
|
|
304
|
-
MessageToast.show("Could not delete line item "
|
|
305
|
-
+ oContext.getProperty("ItemPosition") + " of sales order "
|
|
306
|
-
+ oContext.getProperty("SalesOrderID"));
|
|
307
|
-
}
|
|
308
|
-
});
|
|
295
|
+
this.byId("SO_2_SOITEM").getSelectedItem().getBindingContext().delete()
|
|
296
|
+
.catch(function () { /* canceled or error already reported */ });
|
|
309
297
|
},
|
|
310
298
|
|
|
311
299
|
onDeleteSalesOrderSchedules : function () {
|
|
@@ -328,13 +316,13 @@ sap.ui.define([
|
|
|
328
316
|
// removing schedule(s) implicitly removes items
|
|
329
317
|
// -> remove context of dependent bindings and hide details
|
|
330
318
|
this.setSalesOrderLineItemBindingContext();
|
|
331
|
-
this.requestSideEffects(sGroupId, "SO_2_SOITEM");
|
|
319
|
+
aPromises.push(this.requestSideEffects(sGroupId, "SO_2_SOITEM"));
|
|
332
320
|
|
|
333
321
|
Promise.all(aPromises).then(function () {
|
|
334
322
|
oTable.removeSelections();
|
|
335
323
|
oUiModel.setProperty("/bScheduleSelected", false);
|
|
336
324
|
MessageBox.success("Deleted " + aPromises.length + " sales order schedule(s)");
|
|
337
|
-
});
|
|
325
|
+
}, function () { /* error already reported */ });
|
|
338
326
|
},
|
|
339
327
|
|
|
340
328
|
onExecuteSimulateDiscount : function () {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
xmlns:mvc="sap.ui.core.mvc">
|
|
7
7
|
<IconTabBar select=".onTabSelect">
|
|
8
8
|
<items>
|
|
9
|
-
<IconTabFilter id="list" text="m.Table">
|
|
9
|
+
<IconTabFilter id="list" key="m" text="m.Table">
|
|
10
10
|
<Table id="businessPartnerList" growing="true" growingThreshold="21">
|
|
11
11
|
<headerToolbar>
|
|
12
12
|
<Toolbar>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</columns>
|
|
28
28
|
</Table>
|
|
29
29
|
</IconTabFilter>
|
|
30
|
-
<IconTabFilter id="table" text="table.Table">
|
|
30
|
+
<IconTabFilter id="table" key="table" text="table.Table">
|
|
31
31
|
<t:Table ariaLabelledBy="title" id="businessPartnerTable" selectionMode="None"
|
|
32
32
|
visibleRowCount="21">
|
|
33
33
|
<t:extension>
|
|
@@ -55,4 +55,4 @@
|
|
|
55
55
|
</IconTabFilter>
|
|
56
56
|
</items>
|
|
57
57
|
</IconTabBar>
|
|
58
|
-
</mvc:View>
|
|
58
|
+
</mvc:View>
|
|
@@ -16,11 +16,10 @@ sap.ui.define([
|
|
|
16
16
|
"sap/ui/model/type/Date",
|
|
17
17
|
"sap/ui/model/type/Float",
|
|
18
18
|
"sap/ui/model/type/Integer",
|
|
19
|
-
"sap/ui/model/type/String"
|
|
20
|
-
"sap/ui/test/TestUtils"
|
|
19
|
+
"sap/ui/model/type/String"
|
|
21
20
|
], function (Log, deepEqual, Configuration, UI5Date, BindingMode, CompositeBinding, CompositeType,
|
|
22
21
|
Context, ParseException, PropertyBinding, StaticBinding, ValidateException, JSONModel,
|
|
23
|
-
TypeDate, TypeFloat, TypeInteger, TypeString
|
|
22
|
+
TypeDate, TypeFloat, TypeInteger, TypeString
|
|
24
23
|
) {
|
|
25
24
|
"use strict";
|
|
26
25
|
|
|
@@ -255,6 +254,28 @@ sap.ui.define([
|
|
|
255
254
|
this.composite.resume();
|
|
256
255
|
});
|
|
257
256
|
|
|
257
|
+
//**********************************************************************************************
|
|
258
|
+
QUnit.test("constructor", function (assert) {
|
|
259
|
+
var aBindings = [],
|
|
260
|
+
oBinding = new CompositeBinding(aBindings, "~bRawValues", "~bInternalValues");
|
|
261
|
+
|
|
262
|
+
// CompositeBinding has its own #getModel and #getPath methods always returning null; values passed to the base
|
|
263
|
+
// class constructor are not used there
|
|
264
|
+
assert.strictEqual(oBinding.oModel, null, "model passed to PropertyBinding c'tor");
|
|
265
|
+
assert.strictEqual(oBinding.sPath, "", "path passed to PropertyBinding c'tor");
|
|
266
|
+
assert.strictEqual(oBinding.aValues, null);
|
|
267
|
+
assert.strictEqual(oBinding.bRawValues, "~bRawValues");
|
|
268
|
+
assert.strictEqual(oBinding.bPreventUpdate, false);
|
|
269
|
+
assert.strictEqual(oBinding.bInternalValues, "~bInternalValues");
|
|
270
|
+
assert.ok(oBinding.hasOwnProperty("aOriginalValues"));
|
|
271
|
+
assert.strictEqual(oBinding.aOriginalValues, undefined);
|
|
272
|
+
assert.ok(oBinding.hasOwnProperty("fnChangeHandler"));
|
|
273
|
+
assert.strictEqual(oBinding.fnChangeHandler, undefined);
|
|
274
|
+
assert.ok(oBinding.hasOwnProperty("fnDataStateChangeHandler"));
|
|
275
|
+
assert.strictEqual(oBinding.fnDataStateChangeHandler, undefined);
|
|
276
|
+
|
|
277
|
+
});
|
|
278
|
+
|
|
258
279
|
[{
|
|
259
280
|
aModels : [{}, null /*static binding*/],
|
|
260
281
|
bMultipleModels : false
|
|
@@ -268,7 +289,7 @@ sap.ui.define([
|
|
|
268
289
|
aModels : [{}], // same model
|
|
269
290
|
bMultipleModels : false
|
|
270
291
|
}].forEach(function (oFixture, i) {
|
|
271
|
-
QUnit.test("
|
|
292
|
+
QUnit.test("constructor, bMultipleModels, # " + i, function (assert) {
|
|
272
293
|
var aBinding0 = {getModel : function () {}},
|
|
273
294
|
aBinding1 = {getModel : function () {}},
|
|
274
295
|
aModels = oFixture.aModels;
|
|
@@ -811,9 +832,6 @@ sap.ui.define([
|
|
|
811
832
|
this.oLogMock = this.mock(Log);
|
|
812
833
|
this.oLogMock.expects("error").never();
|
|
813
834
|
this.oLogMock.expects("warning").never();
|
|
814
|
-
},
|
|
815
|
-
afterEach : function (assert) {
|
|
816
|
-
return TestUtils.awaitRendering();
|
|
817
835
|
}
|
|
818
836
|
});
|
|
819
837
|
|
|
@@ -7,8 +7,9 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/core/InvisibleText",
|
|
8
8
|
"sap/ui/core/EnabledPropagator",
|
|
9
9
|
"sap/ui/core/dnd/DragInfo",
|
|
10
|
-
"sap/ui/qunit/utils/createAndAppendDiv"
|
|
11
|
-
|
|
10
|
+
"sap/ui/qunit/utils/createAndAppendDiv",
|
|
11
|
+
"sap/ui/model/json/JSONModel"
|
|
12
|
+
], function(Core, Control, Element, Renderer, RenderManager, InvisibleText, EnabledPropagator, DragInfo, createAndAppendDiv, JSONModel) {
|
|
12
13
|
|
|
13
14
|
"use strict";
|
|
14
15
|
/*global QUnit,sinon*/
|
|
@@ -1608,4 +1609,87 @@ sap.ui.define([
|
|
|
1608
1609
|
oParent.destroy();
|
|
1609
1610
|
});
|
|
1610
1611
|
|
|
1612
|
+
QUnit.module("SupressInvalidate", {
|
|
1613
|
+
before: function() {
|
|
1614
|
+
this.oApiVerionStub = sinon.stub(PatchingControl.getMetadata().getRenderer(), "apiVersion").value(4);
|
|
1615
|
+
this.oJSONModel = new JSONModel([{ header: "Header1"}, { header: "Header2"} ]);
|
|
1616
|
+
},
|
|
1617
|
+
beforeEach: function() {
|
|
1618
|
+
this.oParent = new PatchingControl({
|
|
1619
|
+
models: this.oJSONModel,
|
|
1620
|
+
items: {
|
|
1621
|
+
path: "/",
|
|
1622
|
+
template: new PatchingControl({
|
|
1623
|
+
header: "{header}"
|
|
1624
|
+
})
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
this.oParent.placeAt("qunit-fixture");
|
|
1628
|
+
Core.applyChanges();
|
|
1629
|
+
},
|
|
1630
|
+
afterEach: function() {
|
|
1631
|
+
this.oParent.destroy();
|
|
1632
|
+
},
|
|
1633
|
+
after: function() {
|
|
1634
|
+
this.oApiVerionStub.restore();
|
|
1635
|
+
this.oJSONModel.destroy();
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
|
|
1639
|
+
QUnit.test("Insert aggregation with bSupressInvalidate=true and binding propagation should be reflected in the child", function(assert) {
|
|
1640
|
+
var oChild = this.oParent.getItems()[0];
|
|
1641
|
+
var sId = oChild.getId();
|
|
1642
|
+
this.oParent.destroyAggregation("items", "KeepDom");
|
|
1643
|
+
assert.strictEqual(oChild.getDomRef().textContent, "Header1", "child dom is rendered correctly");
|
|
1644
|
+
|
|
1645
|
+
var oBinding = this.oParent.getBinding("items");
|
|
1646
|
+
var oSecondContext = oBinding.getContexts(1, 1)[0];
|
|
1647
|
+
var oNewChild = new PatchingControl(sId, {
|
|
1648
|
+
header: "{header}"
|
|
1649
|
+
}).setBindingContext(oSecondContext);
|
|
1650
|
+
|
|
1651
|
+
var oParentInvalidateSpy = sinon.spy(this.oParent, "invalidate");
|
|
1652
|
+
var oNewChildInvalidateSpy = sinon.spy(oNewChild, "invalidate");
|
|
1653
|
+
this.oParent.addAggregation("items", oNewChild, true);
|
|
1654
|
+
assert.ok(oParentInvalidateSpy.notCalled, "Invalidate is not called on the parent");
|
|
1655
|
+
assert.ok(oNewChildInvalidateSpy.calledOnce, "Invalidate is called for the header property change on the child");
|
|
1656
|
+
|
|
1657
|
+
this.oParent.invalidate();
|
|
1658
|
+
Core.applyChanges();
|
|
1659
|
+
assert.strictEqual(oNewChild.getDomRef().textContent, "Header2", "new child dom is rendered correctly");
|
|
1660
|
+
|
|
1661
|
+
oNewChildInvalidateSpy.restore();
|
|
1662
|
+
oParentInvalidateSpy.restore();
|
|
1663
|
+
});
|
|
1664
|
+
|
|
1665
|
+
QUnit.test("Move aggregation with bSupressInvalidate=true and rendering should start for the child only once", function(assert) {
|
|
1666
|
+
var oAnotherParent = new PatchingControl({
|
|
1667
|
+
models: this.oJSONModel,
|
|
1668
|
+
items: {
|
|
1669
|
+
path: "/",
|
|
1670
|
+
template: new PatchingControl({
|
|
1671
|
+
header: "{header}"
|
|
1672
|
+
})
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
oAnotherParent.placeAt("qunit-fixture");
|
|
1676
|
+
Core.applyChanges();
|
|
1677
|
+
|
|
1678
|
+
oAnotherParent.destroyItems();
|
|
1679
|
+
Core.applyChanges();
|
|
1680
|
+
|
|
1681
|
+
var oBinding = this.oParent.getBinding("items");
|
|
1682
|
+
var oSecondContext = oBinding.getContexts(1, 1)[0];
|
|
1683
|
+
var oChild = this.oParent.getItems()[0];
|
|
1684
|
+
oChild.setBindingContext(oSecondContext);
|
|
1685
|
+
|
|
1686
|
+
oChild.onAfterRendering = sinon.spy();
|
|
1687
|
+
oAnotherParent.addAggregation("items", oChild, true);
|
|
1688
|
+
oAnotherParent.invalidate();
|
|
1689
|
+
Core.applyChanges();
|
|
1690
|
+
|
|
1691
|
+
assert.strictEqual(oChild.getDomRef().textContent, "Header2", "child dom is rendered correctly");
|
|
1692
|
+
assert.ok(oChild.onAfterRendering.calledOnce, "oChild.onAfterRendering is called only once");
|
|
1693
|
+
});
|
|
1694
|
+
|
|
1611
1695
|
});
|
|
@@ -2,9 +2,8 @@ sap.ui.define([
|
|
|
2
2
|
"sap/base/Log",
|
|
3
3
|
"sap/base/util/deepEqual",
|
|
4
4
|
"sap/ui/core/message/Message",
|
|
5
|
-
"sap/ui/model/DataState"
|
|
6
|
-
|
|
7
|
-
], function (Log, deepEqual, Message, DataState, TestUtils) {
|
|
5
|
+
"sap/ui/model/DataState"
|
|
6
|
+
], function (Log, deepEqual, Message, DataState) {
|
|
8
7
|
/*global QUnit*/
|
|
9
8
|
"use strict";
|
|
10
9
|
|
|
@@ -14,10 +13,6 @@ sap.ui.define([
|
|
|
14
13
|
this.oLogMock = this.mock(Log);
|
|
15
14
|
this.oLogMock.expects("error").never();
|
|
16
15
|
this.oLogMock.expects("warning").never();
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
afterEach : function (assert) {
|
|
20
|
-
return TestUtils.awaitRendering();
|
|
21
16
|
}
|
|
22
17
|
});
|
|
23
18
|
|