@openui5/sap.ui.core 1.120.0 → 1.120.2
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/.reuse/dep5 +1 -1
- 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.storage.js +3 -3
- package/src/sap/base/Event.js +2 -2
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/Formatting.js +30 -14
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/Localization.js +1 -2
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/BindingParser.js +4 -4
- package/src/sap/ui/base/DataType.js +5 -5
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +9 -65
- package/src/sap/ui/base/ManagedObjectMetadata.js +25 -1
- package/src/sap/ui/base/ManagedObjectRegistry.js +186 -169
- 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 +3 -3
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +55 -150
- package/src/sap/ui/core/ComponentContainer.js +5 -5
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentRegistry.js +153 -0
- package/src/sap/ui/core/ComponentSupport.js +3 -3
- package/src/sap/ui/core/Configuration.js +9 -7
- package/src/sap/ui/core/Control.js +6 -4
- package/src/sap/ui/core/Core.js +19 -71
- 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 +30 -142
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/ElementRegistry.js +159 -0
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/ExtensionPoint.js +5 -5
- package/src/sap/ui/core/FocusHandler.js +3 -2
- package/src/sap/ui/core/Fragment.js +7 -7
- 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/Lib.js +62 -32
- 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 +55 -11
- package/src/sap/ui/core/Manifest.js +4 -5
- package/src/sap/ui/core/Message.js +2 -1
- package/src/sap/ui/core/Messaging.js +2 -2
- 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/Shortcut.js +15 -9
- package/src/sap/ui/core/StaticArea.js +4 -1
- package/src/sap/ui/core/Theming.js +3 -3
- 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 +54 -12
- package/src/sap/ui/core/UIAreaRegistry.js +150 -0
- package/src/sap/ui/core/UIComponent.js +3 -3
- 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 +95 -76
- package/src/sap/ui/core/cldr/Unicode-Data-Files-LICENSE.txt +1 -1
- package/src/sap/ui/core/cldr/cy.json +12 -3
- package/src/sap/ui/core/cldr/en_AU.json +48 -12
- package/src/sap/ui/core/cldr/en_GB.json +24 -6
- package/src/sap/ui/core/cldr/en_HK.json +24 -6
- package/src/sap/ui/core/cldr/en_IE.json +24 -6
- package/src/sap/ui/core/cldr/en_IN.json +24 -6
- package/src/sap/ui/core/cldr/en_NZ.json +24 -6
- package/src/sap/ui/core/cldr/en_PG.json +24 -6
- package/src/sap/ui/core/cldr/en_SG.json +24 -6
- package/src/sap/ui/core/cldr/en_ZA.json +24 -6
- package/src/sap/ui/core/cldr/es.json +288 -72
- package/src/sap/ui/core/cldr/es_AR.json +288 -72
- package/src/sap/ui/core/cldr/es_BO.json +288 -72
- package/src/sap/ui/core/cldr/es_CL.json +144 -36
- package/src/sap/ui/core/cldr/es_CO.json +144 -36
- package/src/sap/ui/core/cldr/es_MX.json +288 -72
- package/src/sap/ui/core/cldr/fa.json +48 -12
- package/src/sap/ui/core/cldr/id.json +56 -14
- package/src/sap/ui/core/cldr/kk.json +184 -46
- package/src/sap/ui/core/cldr/ms.json +56 -14
- package/src/sap/ui/core/cldr/nb.json +36 -9
- package/src/sap/ui/core/cldr/nl.json +264 -66
- package/src/sap/ui/core/cldr/nl_BE.json +264 -66
- package/src/sap/ui/core/cldr/pt.json +288 -72
- package/src/sap/ui/core/cldr/pt_PT.json +288 -72
- package/src/sap/ui/core/cldr/sr.json +96 -24
- package/src/sap/ui/core/cldr/sr_Latn.json +72 -18
- package/src/sap/ui/core/date/Islamic.js +4 -4
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- 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 +25 -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 +9 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +7 -7
- 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/message/MessageType.js +1 -1
- package/src/sap/ui/core/mvc/Controller.js +15 -13
- package/src/sap/ui/core/mvc/ControllerExtension.js +7 -5
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +2 -2
- package/src/sap/ui/core/mvc/ControllerMetadata.js +1 -1
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +4 -4
- 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 +21 -10
- package/src/sap/ui/core/mvc/XMLView.js +8 -2
- 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/History.js +1 -1
- package/src/sap/ui/core/routing/Route.js +6 -6
- package/src/sap/ui/core/routing/Router.js +6 -6
- package/src/sap/ui/core/routing/Targets.js +3 -3
- package/src/sap/ui/core/routing/async/Target.js +2 -2
- package/src/sap/ui/core/routing/async/Targets.js +1 -1
- package/src/sap/ui/core/rules/Misc.support.js +3 -3
- package/src/sap/ui/core/search/OpenSearchProvider.js +2 -1
- package/src/sap/ui/core/search/SearchProvider.js +2 -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 +7 -5
- 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/theming/Parameters.js +7 -7
- package/src/sap/ui/core/theming/ThemeHelper.js +2 -2
- package/src/sap/ui/core/theming/ThemeManager.js +2 -2
- 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 +34 -3
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/_LocalizationHelper.js +122 -0
- 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/Binding.js +2 -2
- package/src/sap/ui/model/ClientListBinding.js +6 -3
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +6 -3
- package/src/sap/ui/model/CompositeDataState.js +5 -5
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +10 -10
- package/src/sap/ui/model/FilterProcessor.js +19 -16
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +2 -2
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +10 -8
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +6 -6
- 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/ODataListBinding.js +5 -2
- package/src/sap/ui/model/odata/ODataMessageParser.js +3 -3
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +5 -2
- package/src/sap/ui/model/odata/v2/ODataModel.js +9 -58
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +6 -3
- package/src/sap/ui/model/odata/v4/Context.js +32 -27
- package/src/sap/ui/model/odata/v4/ODataBinding.js +3 -0
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +198 -155
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataModel.js +9 -4
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +9 -6
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +220 -85
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +33 -20
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +70 -18
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +9 -5
- 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/performance/trace/Interaction.js +20 -16
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +5 -5
- package/src/sap/ui/test/BranchTracking.js +4 -0
- package/src/sap/ui/test/actions/EnterText.js +1 -1
- package/src/sap/ui/test/generic/GenericTestCollection.js +1 -0
- package/src/sap/ui/test/generic/TestBase.js +4 -4
- package/src/sap/ui/test/generic/Utils.js +3 -2
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +23 -15
- package/src/ui5loader.js +9 -4
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/manifest.json +3 -10
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/MessageManager/ODataBackendMessagesComp/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Template.controller.js +3 -3
- package/test/sap/ui/core/demokit/sample/common/Controller.js +0 -1
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/BindingPath/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/Component.js +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/manifest.json +3 -11
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/package.json +13 -0
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +11 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/Ancestry/Main.controller.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.controller.js +14 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +6 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/MIT.MultipleInlineCreationRowsGrid.html +5 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.view.xml +9 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +23 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/pages/Main.js +58 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.controller.js +75 -30
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +19 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +84 -28
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/data/metadata.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/01/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/01/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/01/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/02/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/Component.js +9 -25
- package/test/sap/ui/core/demokit/tutorial/databinding/03/manifest.json +20 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/Component.js +9 -26
- package/test/sap/ui/core/demokit/tutorial/databinding/04/manifest.json +21 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/Component.js +9 -26
- package/test/sap/ui/core/demokit/tutorial/databinding/05/manifest.json +21 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/Component.js +9 -27
- package/test/sap/ui/core/demokit/tutorial/databinding/06/manifest.json +22 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/Component.js +9 -28
- package/test/sap/ui/core/demokit/tutorial/databinding/07/manifest.json +23 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/Component.js +9 -28
- package/test/sap/ui/core/demokit/tutorial/databinding/08/manifest.json +23 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/09/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/10/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/databinding/11/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/12/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/13/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/databinding/14/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/Component.js +9 -32
- package/test/sap/ui/core/demokit/tutorial/databinding/15/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/webapp/manifest.json +5 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/Component.js +9 -30
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/manifest.json +24 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/manifest.json +27 -0
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/Component.js +9 -33
- package/test/sap/ui/core/demokit/tutorial/navigation/01/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/Component.js +9 -35
- package/test/sap/ui/core/demokit/tutorial/navigation/02/manifest.json +30 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/Component.js +9 -37
- package/test/sap/ui/core/demokit/tutorial/navigation/03/manifest.json +32 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/Component.js +9 -38
- package/test/sap/ui/core/demokit/tutorial/navigation/04/manifest.json +33 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/Component.js +9 -38
- package/test/sap/ui/core/demokit/tutorial/navigation/05/manifest.json +33 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/Component.js +9 -40
- package/test/sap/ui/core/demokit/tutorial/navigation/06/manifest.json +35 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/Component.js +9 -42
- package/test/sap/ui/core/demokit/tutorial/navigation/07/manifest.json +37 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/Component.js +9 -45
- package/test/sap/ui/core/demokit/tutorial/navigation/08/manifest.json +40 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/Component.js +9 -45
- package/test/sap/ui/core/demokit/tutorial/navigation/09/manifest.json +40 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/Component.js +9 -47
- package/test/sap/ui/core/demokit/tutorial/navigation/10/manifest.json +42 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/11/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/12/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/13/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/14/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/15/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/16/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/Component.js +9 -52
- package/test/sap/ui/core/demokit/tutorial/navigation/17/manifest.json +47 -0
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/Component.js +3 -27
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/manifest.json +28 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/Component.js +9 -29
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/manifest.json +25 -0
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/qunit/BindingParser.qunit.js +4 -4
- package/test/sap/ui/core/qunit/ClientModel.qunit.js +28 -28
- package/test/sap/ui/core/qunit/CommandExecution.qunit.js +3 -1
- package/test/sap/ui/core/qunit/Core.qunit.js +1 -1
- package/test/sap/ui/core/qunit/DataBinding.qunit.js +6 -6
- package/test/sap/ui/core/qunit/Declarative.qunit.js +6 -6
- package/test/sap/ui/core/qunit/Element_base.qunit.js +8 -7
- package/test/sap/ui/core/qunit/Element_base_legacyAPIs.qunit.js +48 -0
- package/test/sap/ui/core/qunit/Element_closestTo.qunit.js +1 -1
- package/test/sap/ui/core/qunit/Fragment.qunit.js +63 -13
- package/test/sap/ui/core/qunit/HTML.qunit.js +5 -5
- package/test/sap/ui/core/qunit/Lib.qunit.js +59 -0
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +86 -3
- package/test/sap/ui/core/qunit/PlaceAt.qunit.js +6 -6
- package/test/sap/ui/core/qunit/Shortcut.qunit.js +9 -1
- package/test/sap/ui/core/qunit/UIArea.qunit.js +7 -6
- package/test/sap/ui/core/qunit/analytics/odata4analytics.qunit.js +41 -0
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.html +7 -5
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +46 -7
- package/test/sap/ui/core/qunit/base/config/GlobalConfigForCascade.js +24 -21
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +19 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +35 -11
- package/test/sap/ui/core/qunit/component/ComponentContainer.qunit.js +1 -1
- package/test/sap/ui/core/qunit/component/Models.qunit.js +29 -30
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +3 -3
- package/test/sap/ui/core/qunit/generic/ControlMemoryLeaks.qunit.js +4 -3
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +6 -7
- package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +3 -2
- package/test/sap/ui/core/qunit/generic/legacy/testsuite.generic.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/Islamic.qunit.js +4 -4
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +65 -0
- package/test/sap/ui/core/qunit/jquery.sap.ui.qunit.js +12 -12
- package/test/sap/ui/core/qunit/loader/syncMode_unavoidablySync.qunit.js +54 -1
- package/test/sap/ui/core/qunit/messages/messagesGeneral.qunit.js +3 -1
- package/test/sap/ui/core/qunit/mockserver/testdata/shopping/Products.json +1 -1
- package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -2
- package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -2
- package/test/sap/ui/core/qunit/model/FilterProcessor.qunit.js +58 -16
- package/test/sap/ui/core/qunit/model/Model.qunit.js +43 -2
- package/test/sap/ui/core/qunit/mvc/AnyView.qunit.js +3 -0
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +3 -2
- package/test/sap/ui/core/qunit/mvc/EventHandlerResolver.qunit.js +2 -2
- package/test/sap/ui/core/qunit/mvc/View.qunit.js +38 -35
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessor.qunit.js +1 -1
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorAsync.qunit.js +1 -1
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +5 -5
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +1 -1
- package/test/sap/ui/core/qunit/mvc/extensions/ControllerMetadata.qunit.js +6 -2
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +12 -0
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +12 -0
- package/test/sap/ui/core/qunit/mvc/extensions/testdata/AnotherMain.controller.js +3 -1
- package/test/sap/ui/core/qunit/mvc/testdata/XMLViewEmbeddingTypedViews.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +26 -7
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLTemplateProcessorRequireXML_legacyAPIs.qunit.js +5 -5
- package/test/sap/ui/core/qunit/mvc_legacyAPIs/XMLView_legacyAPIs.qunit.js +2 -2
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +36 -34
- package/test/sap/ui/core/qunit/odata/ODataModel_legacyAPIs.qunit.js +22 -22
- package/test/sap/ui/core/qunit/odata/ODataTreeBindingAdapter.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +16 -16
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +69 -0
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +2 -11
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +17 -17
- package/test/sap/ui/core/qunit/odata/v2/ODataV2Model.qunit.js +32 -36
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +43 -22
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +19 -9
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +318 -217
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +5 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +2148 -124
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +43 -35
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +20 -2
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +453 -125
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +70 -33
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +256 -8
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +10 -2
- package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +40 -1
- package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +11 -2
- package/test/sap/ui/core/qunit/performance/trace/Interaction.qunit.js +4 -7
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +102 -52
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -1
- package/test/sap/ui/core/qunit/routing/async/Targets.qunit.js +4 -5
- package/test/sap/ui/core/qunit/routing/async/TitleHistory.qunit.js +1 -1
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/Child/Component.js +1 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/Child/manifest.json +1 -5
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/Parent/Component.js +1 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/Parent/manifest.json +1 -5
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/ParentExtended/Component.js +15 -0
- package/test/sap/ui/core/qunit/routing/fixture/router/component/parentRoute/ParentExtended/manifest.json +8 -0
- package/test/sap/ui/core/qunit/routing/sync/Router.qunit.js +2 -2
- package/test/sap/ui/core/qunit/routing/sync/Targets.qunit.js +2 -3
- package/test/sap/ui/core/qunit/testdata/fragments/XMLTestFragmentWithXMLView.fragment.xml +5 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.base.configuration.qunit.js +1 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.control.framework.qunit.js +4 -0
- package/test/sap/ui/core/qunit/types/DateFormat.qunit.js +190 -0
- package/test/sap/ui/core/qunit/types/DateInterval.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ui5classes/ManagedObjectRegistry.qunit.js +161 -0
- package/test/sap/ui/core/qunit/ui5classes/ManagedObjectRegistry_legacyAPIs.qunit.js +150 -0
- package/test/sap/ui/core/qunit/ui5classes/testsuite.ui5classes.qunit.js +84 -0
- package/test/sap/ui/core/qunit/util/ViewSerializer.qunit.js +4 -3
- package/test/sap/ui/core/relnotes/changes-1.120.json +307 -0
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
) {
|
|
42
42
|
"use strict";
|
|
43
43
|
|
|
44
|
-
var oVersion = new Version("1.120.
|
|
44
|
+
var oVersion = new Version("1.120.2");
|
|
45
45
|
var oFormatSettings;
|
|
46
46
|
|
|
47
47
|
// Lazy dependency to core
|
|
@@ -223,8 +223,7 @@ sap.ui.define([
|
|
|
223
223
|
* bindings in existing Elements, Controls, UIAreas or Components</li>
|
|
224
224
|
* <li>ResourceModels currently assigned to the Core, a UIArea, Component,
|
|
225
225
|
* Element or Control</li>
|
|
226
|
-
* <li>Elements or Controls that implement the <code>
|
|
227
|
-
* (note the lowercase 'l' in onlocalizationChanged)</li>
|
|
226
|
+
* <li>Elements or Controls that implement the <code>onLocalizationChanged</code> hook</li>
|
|
228
227
|
* </ul>
|
|
229
228
|
*
|
|
230
229
|
* It furthermore derives the RTL mode from the new language, if no explicit RTL
|
|
@@ -1061,8 +1060,8 @@ sap.ui.define([
|
|
|
1061
1060
|
* @borrows module:sap/base/i18n/Formatting.getLegacyDateFormat as #getLegacyDateFormat
|
|
1062
1061
|
* @borrows module:sap/base/i18n/Formatting.getLegacyTimeFormat as #getLegacyTimeFormat
|
|
1063
1062
|
* @borrows module:sap/base/i18n/Formatting.getLegacyNumberFormat as #getLegacyNumberFormat
|
|
1064
|
-
* @borrows module:sap/base/i18n/Formatting.
|
|
1065
|
-
* @borrows module:sap/base/i18n/Formatting.
|
|
1063
|
+
* @borrows module:sap/base/i18n/Formatting.getCustomIslamicCalendarData as #getLegacyDateCalendarCustomizing
|
|
1064
|
+
* @borrows module:sap/base/i18n/Formatting.setCustomIslamicCalendarData as #setLegacyDateCalendarCustomizing
|
|
1066
1065
|
* @borrows module:sap/base/i18n/Formatting.getTrailingCurrencyCode as #getTrailingCurrencyCode
|
|
1067
1066
|
* @borrows module:sap/base/i18n/Formatting.setTrailingCurrencyCode as #setTrailingCurrencyCode
|
|
1068
1067
|
* @borrows module:sap/base/i18n/Formatting.getCustomLocaleData as #getCustomLocaleData
|
|
@@ -1314,11 +1313,11 @@ sap.ui.define([
|
|
|
1314
1313
|
},
|
|
1315
1314
|
|
|
1316
1315
|
setLegacyDateCalendarCustomizing : function() {
|
|
1317
|
-
Formatting.
|
|
1316
|
+
Formatting.setCustomIslamicCalendarData.apply(Formatting, arguments);
|
|
1318
1317
|
return this;
|
|
1319
1318
|
},
|
|
1320
1319
|
|
|
1321
|
-
getLegacyDateCalendarCustomizing : Formatting.
|
|
1320
|
+
getLegacyDateCalendarCustomizing : Formatting.getCustomIslamicCalendarData,
|
|
1322
1321
|
|
|
1323
1322
|
setTrailingCurrencyCode : function() {
|
|
1324
1323
|
Formatting.setTrailingCurrencyCode.apply(Formatting, arguments);
|
|
@@ -1350,6 +1349,9 @@ sap.ui.define([
|
|
|
1350
1349
|
if (["ABAPDateFormat", "ABAPTimeFormat", "ABAPNumberFormat"].includes(sName)) {
|
|
1351
1350
|
mParameters[sName.replace("ABAP", "legacy")] = mParameters[sName];
|
|
1352
1351
|
delete mParameters[sName];
|
|
1352
|
+
} else if (sName === 'customIslamicCalendarData') {
|
|
1353
|
+
mParameters['legacyDateCalendarCustomizing'] = mParameters[sName];
|
|
1354
|
+
delete mParameters[sName];
|
|
1353
1355
|
}
|
|
1354
1356
|
});
|
|
1355
1357
|
if (!mChanges && Core) {
|
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
'./CustomStyleClassSupport',
|
|
10
10
|
'./Core',
|
|
11
11
|
'./Element',
|
|
12
|
+
'./ElementRegistry',
|
|
12
13
|
'./UIArea',
|
|
13
14
|
'./StaticArea',
|
|
14
15
|
'./RenderManager',
|
|
@@ -22,6 +23,7 @@ sap.ui.define([
|
|
|
22
23
|
CustomStyleClassSupport,
|
|
23
24
|
Core,
|
|
24
25
|
Element,
|
|
26
|
+
ElementRegistry,
|
|
25
27
|
UIArea,
|
|
26
28
|
StaticArea,
|
|
27
29
|
RenderManager,
|
|
@@ -81,7 +83,7 @@ sap.ui.define([
|
|
|
81
83
|
* @extends sap.ui.core.Element
|
|
82
84
|
* @abstract
|
|
83
85
|
* @author SAP SE
|
|
84
|
-
* @version 1.120.
|
|
86
|
+
* @version 1.120.2
|
|
85
87
|
* @alias sap.ui.core.Control
|
|
86
88
|
*/
|
|
87
89
|
var Control = Element.extend("sap.ui.core.Control", /** @lends sap.ui.core.Control.prototype */ {
|
|
@@ -662,7 +664,7 @@ sap.ui.define([
|
|
|
662
664
|
|
|
663
665
|
if (oContainer instanceof Element) {
|
|
664
666
|
if (!isSuitableAsContainer(oContainer)) {
|
|
665
|
-
Log.warning("placeAt cannot be processed because container " + oContainer + " does not have an aggregation 'content'.");
|
|
667
|
+
Log.warning("[FUTURE FATAL] placeAt cannot be processed because container " + oContainer + " does not have an aggregation 'content'.");
|
|
666
668
|
return this;
|
|
667
669
|
}
|
|
668
670
|
} else {
|
|
@@ -691,7 +693,7 @@ sap.ui.define([
|
|
|
691
693
|
oContainer.addContent(this);
|
|
692
694
|
break;
|
|
693
695
|
default:
|
|
694
|
-
Log.warning("Position " + vPosition + " is not supported for function placeAt.");
|
|
696
|
+
Log.warning("[FUTURE FATAL] Position " + vPosition + " is not supported for function placeAt.");
|
|
695
697
|
}
|
|
696
698
|
}
|
|
697
699
|
}.bind(this));
|
|
@@ -1269,7 +1271,7 @@ sap.ui.define([
|
|
|
1269
1271
|
* @public
|
|
1270
1272
|
*/
|
|
1271
1273
|
Control.getControlsByFieldGroupId = function(vFieldGroupIds) {
|
|
1272
|
-
return
|
|
1274
|
+
return ElementRegistry.filter((oElement) => {
|
|
1273
1275
|
return oElement.isA("sap.ui.core.Control") && oElement.checkFieldGroupIds(vFieldGroupIds);
|
|
1274
1276
|
});
|
|
1275
1277
|
};
|
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -11,6 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"./Configuration",
|
|
12
12
|
"./ControlBehavior",
|
|
13
13
|
"./Element",
|
|
14
|
+
"./ElementRegistry",
|
|
14
15
|
"./ElementMetadata",
|
|
15
16
|
"./Lib",
|
|
16
17
|
"./Rendering",
|
|
@@ -25,7 +26,6 @@ sap.ui.define([
|
|
|
25
26
|
"sap/base/Event",
|
|
26
27
|
"sap/base/Log",
|
|
27
28
|
"sap/base/util/Deferred",
|
|
28
|
-
"sap/base/util/each",
|
|
29
29
|
"sap/base/util/isEmptyObject",
|
|
30
30
|
"sap/base/util/ObjectPath",
|
|
31
31
|
"sap/base/util/Version",
|
|
@@ -37,6 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
"sap/ui/base/Object",
|
|
38
38
|
"sap/ui/base/syncXHRFix",
|
|
39
39
|
"sap/ui/core/support/Hotkeys",
|
|
40
|
+
"sap/ui/core/util/_LocalizationHelper",
|
|
40
41
|
"sap/ui/dom/getComputedStyleFix",
|
|
41
42
|
"sap/ui/performance/Measurement",
|
|
42
43
|
"sap/ui/performance/trace/initTraces",
|
|
@@ -56,6 +57,7 @@ sap.ui.define([
|
|
|
56
57
|
Configuration,
|
|
57
58
|
ControlBehavior,
|
|
58
59
|
Element,
|
|
60
|
+
ElementRegistry,
|
|
59
61
|
ElementMetadata,
|
|
60
62
|
Library,
|
|
61
63
|
Rendering,
|
|
@@ -70,7 +72,6 @@ sap.ui.define([
|
|
|
70
72
|
BaseEvent,
|
|
71
73
|
Log,
|
|
72
74
|
Deferred,
|
|
73
|
-
each,
|
|
74
75
|
isEmptyObject,
|
|
75
76
|
ObjectPath,
|
|
76
77
|
Version,
|
|
@@ -82,6 +83,7 @@ sap.ui.define([
|
|
|
82
83
|
BaseObject,
|
|
83
84
|
syncXHRFix,
|
|
84
85
|
Hotkeys,
|
|
86
|
+
_LocalizationHelper,
|
|
85
87
|
getComputedStyleFix,
|
|
86
88
|
Measurement,
|
|
87
89
|
initTraces,
|
|
@@ -358,7 +360,7 @@ sap.ui.define([
|
|
|
358
360
|
* @extends sap.ui.base.Object
|
|
359
361
|
* @final
|
|
360
362
|
* @author SAP SE
|
|
361
|
-
* @version 1.120.
|
|
363
|
+
* @version 1.120.2
|
|
362
364
|
* @alias sap.ui.core.Core
|
|
363
365
|
* @public
|
|
364
366
|
* @hideconstructor
|
|
@@ -427,8 +429,8 @@ sap.ui.define([
|
|
|
427
429
|
|
|
428
430
|
Object.defineProperty(this, "mElements", {
|
|
429
431
|
get: function() {
|
|
430
|
-
Log.error("oCore.mElements was a private member and has been removed. Use one of the methods in sap.ui.core.
|
|
431
|
-
return
|
|
432
|
+
Log.error("oCore.mElements was a private member and has been removed. Use one of the methods in sap.ui.core.ElementRegistry instead");
|
|
433
|
+
return ElementRegistry.all(); // this is a very costly snapshot!
|
|
432
434
|
},
|
|
433
435
|
configurable: false
|
|
434
436
|
});
|
|
@@ -495,7 +497,7 @@ sap.ui.define([
|
|
|
495
497
|
const paths = {};
|
|
496
498
|
const oResourceRoots = BaseConfig.get({
|
|
497
499
|
name: "sapUiResourceRoots",
|
|
498
|
-
type: BaseConfig.Type.
|
|
500
|
+
type: BaseConfig.Type.MergedObject
|
|
499
501
|
}) ?? {};
|
|
500
502
|
for (const n in oResourceRoots) {
|
|
501
503
|
paths[ui5ToRJS(n)] = oResourceRoots[n] || ".";
|
|
@@ -620,7 +622,14 @@ sap.ui.define([
|
|
|
620
622
|
|
|
621
623
|
Log.info("Declared libraries: " + this.aLibs, METHOD);
|
|
622
624
|
|
|
623
|
-
|
|
625
|
+
_LocalizationHelper.init();
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @deprecated As of Version 1.120
|
|
629
|
+
*/
|
|
630
|
+
_LocalizationHelper.registerForUpdate("Core", () => {
|
|
631
|
+
return {"Core": this};
|
|
632
|
+
});
|
|
624
633
|
|
|
625
634
|
this._setupBrowser();
|
|
626
635
|
|
|
@@ -630,6 +639,7 @@ sap.ui.define([
|
|
|
630
639
|
|
|
631
640
|
this._setupAnimation();
|
|
632
641
|
|
|
642
|
+
|
|
633
643
|
// create accessor to the Core API early so that initLibrary and others can use it
|
|
634
644
|
/**
|
|
635
645
|
* Retrieve the {@link sap.ui.core.Core SAPUI5 Core} instance for the current window.
|
|
@@ -919,18 +929,6 @@ sap.ui.define([
|
|
|
919
929
|
};
|
|
920
930
|
};
|
|
921
931
|
|
|
922
|
-
/**
|
|
923
|
-
* Set the document's dir property
|
|
924
|
-
* @private
|
|
925
|
-
*/
|
|
926
|
-
Core.prototype._setupContentDirection = function() {
|
|
927
|
-
var METHOD = "sap.ui.core.Core",
|
|
928
|
-
sDir = Configuration.getRTL() ? "rtl" : "ltr";
|
|
929
|
-
|
|
930
|
-
document.documentElement.setAttribute("dir", sDir); // webkit does not allow setting document.dir before the body exists
|
|
931
|
-
Log.info("Content direction set to '" + sDir + "'",null,METHOD);
|
|
932
|
-
};
|
|
933
|
-
|
|
934
932
|
/**
|
|
935
933
|
* Set the body's browser-related attributes.
|
|
936
934
|
* @private
|
|
@@ -2198,61 +2196,11 @@ sap.ui.define([
|
|
|
2198
2196
|
|
|
2199
2197
|
/**
|
|
2200
2198
|
* @private
|
|
2199
|
+
* @deprecated As of Version 1.120
|
|
2201
2200
|
*/
|
|
2202
2201
|
Core.prototype.fireLocalizationChanged = function(mChanges) {
|
|
2203
|
-
var sEventId = Core.M_EVENTS.LocalizationChanged,
|
|
2204
|
-
oBrowserEvent = jQuery.Event(sEventId, {changes : mChanges}),
|
|
2205
|
-
fnAdapt = ManagedObject._handleLocalizationChange;
|
|
2206
|
-
|
|
2207
|
-
Log.info("localization settings changed: " + Object.keys(mChanges).join(","), null, "sap.ui.core.Core");
|
|
2208
|
-
|
|
2209
|
-
/*
|
|
2210
|
-
* Notify models that are able to handle a localization change
|
|
2211
|
-
*/
|
|
2212
|
-
each(this.oModels, function (prop, oModel) {
|
|
2213
|
-
if (oModel && oModel._handleLocalizationChange) {
|
|
2214
|
-
oModel._handleLocalizationChange();
|
|
2215
|
-
}
|
|
2216
|
-
});
|
|
2217
|
-
|
|
2218
|
-
/*
|
|
2219
|
-
* Notify all UIAreas, Components, Elements to first update their models (phase 1)
|
|
2220
|
-
* and then to update their bindings and corresponding data types (phase 2)
|
|
2221
|
-
*/
|
|
2222
|
-
function notifyAll(iPhase) {
|
|
2223
|
-
UIArea.registry.forEach(function(oUIArea) {
|
|
2224
|
-
fnAdapt.call(oUIArea, iPhase);
|
|
2225
|
-
});
|
|
2226
|
-
Component.registry.forEach(function(oComponent) {
|
|
2227
|
-
fnAdapt.call(oComponent, iPhase);
|
|
2228
|
-
});
|
|
2229
|
-
Element.registry.forEach(function(oElement) {
|
|
2230
|
-
fnAdapt.call(oElement, iPhase);
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
notifyAll.call(this,1);
|
|
2235
|
-
notifyAll.call(this,2);
|
|
2236
|
-
|
|
2237
|
-
// special handling for changes of the RTL mode
|
|
2238
|
-
if ( mChanges.rtl != undefined ) {
|
|
2239
|
-
// update the dir attribute of the document
|
|
2240
|
-
document.documentElement.setAttribute("dir", mChanges.rtl ? "rtl" : "ltr");
|
|
2241
|
-
|
|
2242
|
-
// invalidate all UIAreas
|
|
2243
|
-
UIArea.registry.forEach(function(oUIArea) {
|
|
2244
|
-
oUIArea.invalidate();
|
|
2245
|
-
});
|
|
2246
|
-
Log.info("RTL mode " + mChanges.rtl ? "activated" : "deactivated");
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
// notify Elements via a pseudo browser event (onlocalizationChanged, note the lower case 'l')
|
|
2250
|
-
Element.registry.forEach(function(oElement) {
|
|
2251
|
-
oElement._handleEvent(oBrowserEvent);
|
|
2252
|
-
});
|
|
2253
|
-
|
|
2254
2202
|
// notify registered Core listeners
|
|
2255
|
-
_oEventProvider.fireEvent(
|
|
2203
|
+
_oEventProvider.fireEvent(Core.M_EVENTS.LocalizationChanged, {changes : mChanges});
|
|
2256
2204
|
};
|
|
2257
2205
|
|
|
2258
2206
|
/**
|
|
@@ -9,7 +9,6 @@ sap.ui.define([
|
|
|
9
9
|
'../base/DataType',
|
|
10
10
|
'../base/Object',
|
|
11
11
|
'../base/ManagedObject',
|
|
12
|
-
'../base/ManagedObjectRegistry',
|
|
13
12
|
'./ElementMetadata',
|
|
14
13
|
'../Device',
|
|
15
14
|
"sap/ui/performance/trace/Interaction",
|
|
@@ -20,13 +19,14 @@ sap.ui.define([
|
|
|
20
19
|
"./RenderManager",
|
|
21
20
|
"./Configuration",
|
|
22
21
|
"./EnabledPropagator",
|
|
23
|
-
"./
|
|
22
|
+
"./ElementRegistry",
|
|
23
|
+
"./Theming",
|
|
24
|
+
"sap/ui/core/util/_LocalizationHelper"
|
|
24
25
|
],
|
|
25
26
|
function(
|
|
26
27
|
DataType,
|
|
27
28
|
BaseObject,
|
|
28
29
|
ManagedObject,
|
|
29
|
-
ManagedObjectRegistry,
|
|
30
30
|
ElementMetadata,
|
|
31
31
|
Device,
|
|
32
32
|
Interaction,
|
|
@@ -37,7 +37,9 @@ sap.ui.define([
|
|
|
37
37
|
RenderManager,
|
|
38
38
|
Configuration,
|
|
39
39
|
EnabledPropagator,
|
|
40
|
-
|
|
40
|
+
ElementRegistry,
|
|
41
|
+
Theming,
|
|
42
|
+
_LocalizationHelper
|
|
41
43
|
) {
|
|
42
44
|
"use strict";
|
|
43
45
|
|
|
@@ -132,7 +134,7 @@ sap.ui.define([
|
|
|
132
134
|
*
|
|
133
135
|
* @extends sap.ui.base.ManagedObject
|
|
134
136
|
* @author SAP SE
|
|
135
|
-
* @version 1.120.
|
|
137
|
+
* @version 1.120.2
|
|
136
138
|
* @public
|
|
137
139
|
* @alias sap.ui.core.Element
|
|
138
140
|
*/
|
|
@@ -210,27 +212,7 @@ sap.ui.define([
|
|
|
210
212
|
|
|
211
213
|
}, /* Metadata constructor */ ElementMetadata);
|
|
212
214
|
|
|
213
|
-
|
|
214
|
-
ManagedObjectRegistry.apply(Element, {
|
|
215
|
-
onDuplicate: function(sId, oldElement, newElement) {
|
|
216
|
-
if ( oldElement._sapui_candidateForDestroy ) {
|
|
217
|
-
Log.debug("destroying dangling template " + oldElement + " when creating new object with same ID");
|
|
218
|
-
oldElement.destroy();
|
|
219
|
-
} else {
|
|
220
|
-
var sMsg = "adding element with duplicate id '" + sId + "'";
|
|
221
|
-
/**
|
|
222
|
-
* duplicate ID detected => fail or at least log a warning
|
|
223
|
-
* @deprecated As of Version 1.120.
|
|
224
|
-
*/
|
|
225
|
-
if (!Configuration.getNoDuplicateIds()) {
|
|
226
|
-
Log.warning(sMsg);
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
Log.error(sMsg);
|
|
230
|
-
throw new Error("Error: " + sMsg);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
});
|
|
215
|
+
ElementRegistry.init(Element);
|
|
234
216
|
|
|
235
217
|
/**
|
|
236
218
|
* Creates metadata for a UI Element by extending the Object Metadata.
|
|
@@ -566,6 +548,14 @@ sap.ui.define([
|
|
|
566
548
|
/**
|
|
567
549
|
* This triggers immediate rerendering of its parent and thus of itself and its children.
|
|
568
550
|
*
|
|
551
|
+
* @deprecated As of 1.70, using this method is no longer recommended, but still works. Synchronous DOM
|
|
552
|
+
* updates via this method have several drawbacks: they only work when the control has been rendered
|
|
553
|
+
* before (no initial rendering possible), multiple state changes won't be combined automatically into
|
|
554
|
+
* a single re-rendering, they might cause additional layout trashing, standard invalidation might
|
|
555
|
+
* cause another async re-rendering.
|
|
556
|
+
*
|
|
557
|
+
* The recommended alternative is to rely on invalidation and standard re-rendering.
|
|
558
|
+
*
|
|
569
559
|
* As <code>sap.ui.core.Element</code> "bubbles up" the rerender, changes to
|
|
570
560
|
* child-<code>Elements</code> will also result in immediate rerendering of the whole sub tree.
|
|
571
561
|
* @protected
|
|
@@ -576,7 +566,6 @@ sap.ui.define([
|
|
|
576
566
|
}
|
|
577
567
|
};
|
|
578
568
|
|
|
579
|
-
|
|
580
569
|
/**
|
|
581
570
|
* Returns the UI area of this element, if any.
|
|
582
571
|
*
|
|
@@ -1259,7 +1248,7 @@ sap.ui.define([
|
|
|
1259
1248
|
var value = this.getValue();
|
|
1260
1249
|
|
|
1261
1250
|
function error(reason) {
|
|
1262
|
-
Log.error("CustomData with key " + key + " should be written to HTML of " + oRelated + " but " + reason);
|
|
1251
|
+
Log.error("[FUTURE FATAL] CustomData with key " + key + " should be written to HTML of " + oRelated + " but " + reason);
|
|
1263
1252
|
return null;
|
|
1264
1253
|
}
|
|
1265
1254
|
|
|
@@ -1483,7 +1472,7 @@ sap.ui.define([
|
|
|
1483
1472
|
var argLength = arguments.length;
|
|
1484
1473
|
if ( argLength === 1 && arguments[0] !== null && typeof arguments[0] == "object"
|
|
1485
1474
|
|| argLength > 1 && argLength < 4 && arguments[1] !== null ) {
|
|
1486
|
-
Log.error("Cannot create custom data on an already destroyed element '" + this + "'");
|
|
1475
|
+
Log.error("[FUTURE FATAL] Cannot create custom data on an already destroyed element '" + this + "'");
|
|
1487
1476
|
return this;
|
|
1488
1477
|
}
|
|
1489
1478
|
return Element.prototype.data.apply(this, arguments);
|
|
@@ -1891,7 +1880,7 @@ sap.ui.define([
|
|
|
1891
1880
|
oDomRef = vParam;
|
|
1892
1881
|
} else if (vParam.jquery) {
|
|
1893
1882
|
oDomRef = vParam[0];
|
|
1894
|
-
Log.error("[FUTURE] Do not call Element.closestTo() with jQuery object as parameter. \
|
|
1883
|
+
Log.error("[FUTURE FATAL] Do not call Element.closestTo() with jQuery object as parameter. \
|
|
1895
1884
|
The function should be called with either a DOM Element or a CSS selector. \
|
|
1896
1885
|
(future error, ignored for now)");
|
|
1897
1886
|
} else {
|
|
@@ -1931,7 +1920,7 @@ sap.ui.define([
|
|
|
1931
1920
|
* @function
|
|
1932
1921
|
* @since 1.119
|
|
1933
1922
|
*/
|
|
1934
|
-
Element.getElementById =
|
|
1923
|
+
Element.getElementById = ElementRegistry.get;
|
|
1935
1924
|
|
|
1936
1925
|
/**
|
|
1937
1926
|
* Returns the element currently in focus.
|
|
@@ -1957,127 +1946,26 @@ sap.ui.define([
|
|
|
1957
1946
|
* @namespace sap.ui.core.Element.registry
|
|
1958
1947
|
* @public
|
|
1959
1948
|
* @since 1.67
|
|
1949
|
+
* @deprecated As of version 1.120. Use {@link module:sap/ui/core/ElementRegistry} instead.
|
|
1950
|
+
* @borrows module:sap/ui/core/ElementRegistry.size as size
|
|
1951
|
+
* @borrows module:sap/ui/core/ElementRegistry.all as all
|
|
1952
|
+
* @borrows module:sap/ui/core/ElementRegistry.get as get
|
|
1953
|
+
* @borrows module:sap/ui/core/ElementRegistry.forEach as forEach
|
|
1954
|
+
* @borrows module:sap/ui/core/ElementRegistry.filter as filter
|
|
1960
1955
|
*/
|
|
1961
|
-
|
|
1962
|
-
/**
|
|
1963
|
-
* Number of existing elements.
|
|
1964
|
-
*
|
|
1965
|
-
* @type {int}
|
|
1966
|
-
* @readonly
|
|
1967
|
-
* @name sap.ui.core.Element.registry.size
|
|
1968
|
-
* @public
|
|
1969
|
-
*/
|
|
1970
|
-
|
|
1971
|
-
/**
|
|
1972
|
-
* Return an object with all instances of <code>sap.ui.core.Element</code>,
|
|
1973
|
-
* keyed by their ID.
|
|
1974
|
-
*
|
|
1975
|
-
* Each call creates a new snapshot object. Depending on the size of the UI,
|
|
1976
|
-
* this operation therefore might be expensive. Consider to use the <code>forEach</code>
|
|
1977
|
-
* or <code>filter</code> method instead of executing similar operations on the returned
|
|
1978
|
-
* object.
|
|
1979
|
-
*
|
|
1980
|
-
* <b>Note</b>: The returned object is created by a call to <code>Object.create(null)</code>,
|
|
1981
|
-
* and therefore lacks all methods of <code>Object.prototype</code>, e.g. <code>toString</code> etc.
|
|
1982
|
-
*
|
|
1983
|
-
* @returns {Object<sap.ui.core.ID,sap.ui.core.Element>} Object with all elements, keyed by their ID
|
|
1984
|
-
* @name sap.ui.core.Element.registry.all
|
|
1985
|
-
* @function
|
|
1986
|
-
* @public
|
|
1987
|
-
*/
|
|
1988
|
-
|
|
1989
|
-
/**
|
|
1990
|
-
* Retrieves an Element by its ID.
|
|
1991
|
-
*
|
|
1992
|
-
* When the ID is <code>null</code> or <code>undefined</code> or when there's no element with
|
|
1993
|
-
* the given ID, then <code>undefined</code> is returned.
|
|
1994
|
-
*
|
|
1995
|
-
* @param {sap.ui.core.ID} id ID of the element to retrieve
|
|
1996
|
-
* @returns {sap.ui.core.Element|undefined} Element with the given ID or <code>undefined</code>
|
|
1997
|
-
* @name sap.ui.core.Element.getElementById
|
|
1998
|
-
* @function
|
|
1999
|
-
* @public
|
|
2000
|
-
*/
|
|
2001
|
-
|
|
2002
|
-
/**
|
|
2003
|
-
* Calls the given <code>callback</code> for each element.
|
|
2004
|
-
*
|
|
2005
|
-
* The expected signature of the callback is
|
|
2006
|
-
* <pre>
|
|
2007
|
-
* function callback(oElement, sID)
|
|
2008
|
-
* </pre>
|
|
2009
|
-
* where <code>oElement</code> is the currently visited element instance and <code>sID</code>
|
|
2010
|
-
* is the ID of that instance.
|
|
2011
|
-
*
|
|
2012
|
-
* The order in which the callback is called for elements is not specified and might change between
|
|
2013
|
-
* calls (over time and across different versions of UI5).
|
|
2014
|
-
*
|
|
2015
|
-
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
2016
|
-
* not specified. Newly added objects might or might not be visited. When an element is destroyed during
|
|
2017
|
-
* the filtering and was not visited yet, it might or might not be visited. As the behavior for such
|
|
2018
|
-
* concurrent modifications is not specified, it may change in newer releases.
|
|
2019
|
-
*
|
|
2020
|
-
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
2021
|
-
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
2022
|
-
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
2023
|
-
* context object, that object wins over the given <code>thisArg</code>.
|
|
2024
|
-
*
|
|
2025
|
-
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
2026
|
-
* Function to call for each element
|
|
2027
|
-
* @param {Object} [thisArg=undefined]
|
|
2028
|
-
* Context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
2029
|
-
* @throws {TypeError} If <code>callback</code> is not a function
|
|
2030
|
-
* @name sap.ui.core.Element.registry.forEach
|
|
2031
|
-
* @function
|
|
2032
|
-
* @public
|
|
2033
|
-
*/
|
|
2034
|
-
|
|
2035
|
-
/**
|
|
2036
|
-
* Returns an array with elements for which the given <code>callback</code> returns a value that coerces
|
|
2037
|
-
* to <code>true</code>.
|
|
2038
|
-
*
|
|
2039
|
-
* The expected signature of the callback is
|
|
2040
|
-
* <pre>
|
|
2041
|
-
* function callback(oElement, sID)
|
|
2042
|
-
* </pre>
|
|
2043
|
-
* where <code>oElement</code> is the currently visited element instance and <code>sID</code>
|
|
2044
|
-
* is the ID of that instance.
|
|
2045
|
-
*
|
|
2046
|
-
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
2047
|
-
* not specified. Newly added objects might or might not be visited. When an element is destroyed during
|
|
2048
|
-
* the filtering and was not visited yet, it might or might not be visited. As the behavior for such
|
|
2049
|
-
* concurrent modifications is not specified, it may change in newer releases.
|
|
2050
|
-
*
|
|
2051
|
-
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
2052
|
-
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
2053
|
-
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
2054
|
-
* context object, that object wins over the given <code>thisArg</code>.
|
|
2055
|
-
*
|
|
2056
|
-
* This function returns an array with all elements matching the given predicate. The order of the
|
|
2057
|
-
* elements in the array is not specified and might change between calls (over time and across different
|
|
2058
|
-
* versions of UI5).
|
|
2059
|
-
*
|
|
2060
|
-
* @param {function(sap.ui.core.Element,sap.ui.core.ID):boolean} callback
|
|
2061
|
-
* predicate against which each element is tested
|
|
2062
|
-
* @param {Object} [thisArg=undefined]
|
|
2063
|
-
* context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
2064
|
-
* @returns {sap.ui.core.Element[]}
|
|
2065
|
-
* Array of elements matching the predicate; order is undefined and might change in newer versions of UI5
|
|
2066
|
-
* @throws {TypeError} If <code>callback</code> is not a function
|
|
2067
|
-
* @name sap.ui.core.Element.registry.filter
|
|
2068
|
-
* @function
|
|
2069
|
-
* @public
|
|
2070
|
-
*/
|
|
1956
|
+
Element.registry = ElementRegistry;
|
|
2071
1957
|
|
|
2072
1958
|
Theming.attachApplied(function(oEvent) {
|
|
2073
1959
|
// notify all elements/controls via a pseudo browser event
|
|
2074
1960
|
var oJQueryEvent = jQuery.Event("ThemeChanged");
|
|
2075
1961
|
oJQueryEvent.theme = oEvent.theme;
|
|
2076
|
-
|
|
1962
|
+
ElementRegistry.forEach(function(oElement) {
|
|
2077
1963
|
oElement._handleEvent(oJQueryEvent);
|
|
2078
1964
|
});
|
|
2079
1965
|
});
|
|
2080
1966
|
|
|
1967
|
+
_LocalizationHelper.registerForUpdate("Elements", ElementRegistry.all);
|
|
1968
|
+
|
|
2081
1969
|
return Element;
|
|
2082
1970
|
|
|
2083
1971
|
});
|