@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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/base/Log",
|
|
8
|
+
"sap/ui/base/ManagedObjectRegistry",
|
|
9
|
+
"sap/ui/core/Configuration"
|
|
10
|
+
], (
|
|
11
|
+
Log,
|
|
12
|
+
ManagedObjectRegistry,
|
|
13
|
+
Configuration
|
|
14
|
+
) => {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
const fnOnDuplicate = function(sId, oldElement, newElement) {
|
|
18
|
+
if ( oldElement._sapui_candidateForDestroy ) {
|
|
19
|
+
Log.debug("destroying dangling template " + oldElement + " when creating new object with same ID");
|
|
20
|
+
oldElement.destroy();
|
|
21
|
+
} else {
|
|
22
|
+
var sMsg = "adding element with duplicate id '" + sId + "'";
|
|
23
|
+
/**
|
|
24
|
+
* duplicate ID detected => fail or at least log a warning
|
|
25
|
+
* @deprecated As of Version 1.120.
|
|
26
|
+
*/
|
|
27
|
+
if (!Configuration.getNoDuplicateIds()) {
|
|
28
|
+
Log.warning(sMsg);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
Log.error(sMsg);
|
|
32
|
+
throw new Error("Error: " + sMsg);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Registry of all <code>sap.ui.core.Element</code>s that currently exist.
|
|
38
|
+
*
|
|
39
|
+
* @alias module:sap/ui/core/ElementRegistry
|
|
40
|
+
* @namespace
|
|
41
|
+
* @public
|
|
42
|
+
* @since 1.120
|
|
43
|
+
*/
|
|
44
|
+
const ElementRegistry = ManagedObjectRegistry.create({
|
|
45
|
+
"onDuplicate": fnOnDuplicate
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Number of existing elements.
|
|
50
|
+
*
|
|
51
|
+
* @type {int}
|
|
52
|
+
* @readonly
|
|
53
|
+
* @name module:sap/ui/core/ElementRegistry.size
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Return an object with all instances of <code>sap.ui.core.Element</code>,
|
|
59
|
+
* keyed by their ID.
|
|
60
|
+
*
|
|
61
|
+
* Each call creates a new snapshot object. Depending on the size of the UI,
|
|
62
|
+
* this operation therefore might be expensive. Consider to use the <code>forEach</code>
|
|
63
|
+
* or <code>filter</code> method instead of executing similar operations on the returned
|
|
64
|
+
* object.
|
|
65
|
+
*
|
|
66
|
+
* <b>Note</b>: The returned object is created by a call to <code>Object.create(null)</code>,
|
|
67
|
+
* and therefore lacks all methods of <code>Object.prototype</code>, e.g. <code>toString</code> etc.
|
|
68
|
+
*
|
|
69
|
+
* @returns {Object<sap.ui.core.ID,sap.ui.core.Element>} Object with all elements, keyed by their ID
|
|
70
|
+
* @name module:sap/ui/core/ElementRegistry.all
|
|
71
|
+
* @function
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves an Element by its ID.
|
|
77
|
+
*
|
|
78
|
+
* When the ID is <code>null</code> or <code>undefined</code> or when there's no element with
|
|
79
|
+
* the given ID, then <code>undefined</code> is returned.
|
|
80
|
+
*
|
|
81
|
+
* @param {sap.ui.core.ID} id ID of the element to retrieve
|
|
82
|
+
* @returns {sap.ui.core.Element|undefined} Element with the given ID or <code>undefined</code>
|
|
83
|
+
* @name module:sap/ui/core/ElementRegistry.get
|
|
84
|
+
* @function
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Calls the given <code>callback</code> for each element.
|
|
90
|
+
*
|
|
91
|
+
* The expected signature of the callback is
|
|
92
|
+
* <pre>
|
|
93
|
+
* function callback(oElement, sID)
|
|
94
|
+
* </pre>
|
|
95
|
+
* where <code>oElement</code> is the currently visited element instance and <code>sID</code>
|
|
96
|
+
* is the ID of that instance.
|
|
97
|
+
*
|
|
98
|
+
* The order in which the callback is called for elements is not specified and might change between
|
|
99
|
+
* calls (over time and across different versions of UI5).
|
|
100
|
+
*
|
|
101
|
+
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
102
|
+
* not specified. Newly added objects might or might not be visited. When an element is destroyed during
|
|
103
|
+
* the filtering and was not visited yet, it might or might not be visited. As the behavior for such
|
|
104
|
+
* concurrent modifications is not specified, it may change in newer releases.
|
|
105
|
+
*
|
|
106
|
+
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
107
|
+
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
108
|
+
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
109
|
+
* context object, that object wins over the given <code>thisArg</code>.
|
|
110
|
+
*
|
|
111
|
+
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
112
|
+
* Function to call for each element
|
|
113
|
+
* @param {Object} [thisArg=undefined]
|
|
114
|
+
* Context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
115
|
+
* @throws {TypeError} If <code>callback</code> is not a function
|
|
116
|
+
* @name module:sap/ui/core/ElementRegistry.forEach
|
|
117
|
+
* @function
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Returns an array with elements for which the given <code>callback</code> returns a value that coerces
|
|
123
|
+
* to <code>true</code>.
|
|
124
|
+
*
|
|
125
|
+
* The expected signature of the callback is
|
|
126
|
+
* <pre>
|
|
127
|
+
* function callback(oElement, sID)
|
|
128
|
+
* </pre>
|
|
129
|
+
* where <code>oElement</code> is the currently visited element instance and <code>sID</code>
|
|
130
|
+
* is the ID of that instance.
|
|
131
|
+
*
|
|
132
|
+
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
133
|
+
* not specified. Newly added objects might or might not be visited. When an element is destroyed during
|
|
134
|
+
* the filtering and was not visited yet, it might or might not be visited. As the behavior for such
|
|
135
|
+
* concurrent modifications is not specified, it may change in newer releases.
|
|
136
|
+
*
|
|
137
|
+
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
138
|
+
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
139
|
+
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
140
|
+
* context object, that object wins over the given <code>thisArg</code>.
|
|
141
|
+
*
|
|
142
|
+
* This function returns an array with all elements matching the given predicate. The order of the
|
|
143
|
+
* elements in the array is not specified and might change between calls (over time and across different
|
|
144
|
+
* versions of UI5).
|
|
145
|
+
*
|
|
146
|
+
* @param {function(sap.ui.core.Element,sap.ui.core.ID):boolean} callback
|
|
147
|
+
* predicate against which each element is tested
|
|
148
|
+
* @param {Object} [thisArg=undefined]
|
|
149
|
+
* context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
150
|
+
* @returns {sap.ui.core.Element[]}
|
|
151
|
+
* Array of elements matching the predicate; order is undefined and might change in newer versions of UI5
|
|
152
|
+
* @throws {TypeError} If <code>callback</code> is not a function
|
|
153
|
+
* @name module:sap/ui/core/ElementRegistry.filter
|
|
154
|
+
* @function
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
return ElementRegistry;
|
|
159
|
+
});
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
*
|
|
44
44
|
* @param {boolean} [bDefault=true] Value that should be used as default value for the enhancement of the control.
|
|
45
45
|
* @param {boolean} [bLegacy=false] Whether the introduced property should use the old name <code>Enabled</code>.
|
|
46
|
-
* @version 1.120.
|
|
46
|
+
* @version 1.120.2
|
|
47
47
|
* @public
|
|
48
48
|
* @class
|
|
49
49
|
* @alias sap.ui.core.EnabledPropagator
|
|
@@ -151,11 +151,11 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/mvc/View", "sap/ui/core/Component"],
|
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
153
|
// unknown extension class
|
|
154
|
-
Log.warning("Customizing: Unknown extension className configured (and ignored) in Component.js for extension point '" + sExtName
|
|
154
|
+
Log.warning("[FUTURE FATAL] Customizing: Unknown extension className configured (and ignored) in Component.js for extension point '" + sExtName
|
|
155
155
|
+ "' in View '" + oView.sViewName + "': " + oExtensionConfig.className);
|
|
156
156
|
}
|
|
157
157
|
} else {
|
|
158
|
-
Log.warning("Customizing: no extension className configured in Component.js for extension point '" + sExtName
|
|
158
|
+
Log.warning("[FUTURE FATAL] Customizing: no extension className configured in Component.js for extension point '" + sExtName
|
|
159
159
|
+ "' in View '" + oView.sViewName + "': " + oExtensionConfig.className);
|
|
160
160
|
}
|
|
161
161
|
} else if (ExtensionPoint._fnExtensionProvider) {
|
|
@@ -180,7 +180,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/mvc/View", "sap/ui/core/Component"],
|
|
|
180
180
|
if (!oView) {
|
|
181
181
|
// Someone could create a Fragment via the factory with a Controller without an associated view,
|
|
182
182
|
// e.g. by creating a Controller instance via Controller.create().
|
|
183
|
-
Log.warning("View instance could not be passed to ExtensionPoint Provider for extension point '" + sExtName + "' " +
|
|
183
|
+
Log.warning("[FUTURE FATAL] View instance could not be passed to ExtensionPoint Provider for extension point '" + sExtName + "' " +
|
|
184
184
|
"in fragment '" + sFragmentId + "'.");
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
@@ -275,7 +275,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/mvc/View", "sap/ui/core/Component"],
|
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
// the target control has no default aggregation, or the aggregationName provided doesn't match an existing aggregation as defined at the targetControl
|
|
278
|
-
Log.error("Creating extension point failed - Tried to add extension point with name " + sExtName + " to an aggregation of " +
|
|
278
|
+
Log.error("[FUTURE FATAL] Creating extension point failed - Tried to add extension point with name " + sExtName + " to an aggregation of " +
|
|
279
279
|
oTargetControl.getId() + " in view " + oView.sViewName + ", but sAggregationName was not provided correctly and I could not find a default aggregation");
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -310,7 +310,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/mvc/View", "sap/ui/core/Component"],
|
|
|
310
310
|
} else if (typeof fnExtensionProvider == "function") {
|
|
311
311
|
ExtensionPoint._fnExtensionProvider = fnExtensionProvider;
|
|
312
312
|
} else {
|
|
313
|
-
Log.error("ExtensionPoint provider must be a function!");
|
|
313
|
+
Log.error("[FUTURE FATAL] ExtensionPoint provider must be a function!");
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
|
|
@@ -9,10 +9,11 @@ sap.ui.define([
|
|
|
9
9
|
"../base/EventProvider",
|
|
10
10
|
"../base/Object",
|
|
11
11
|
"sap/base/Log",
|
|
12
|
+
"sap/ui/core/UIAreaRegistry",
|
|
12
13
|
"sap/ui/thirdparty/jquery",
|
|
13
14
|
"sap/ui/dom/_ready"
|
|
14
15
|
],
|
|
15
|
-
function(EventProvider, BaseObject, Log, jQuery, _ready) {
|
|
16
|
+
function (EventProvider, BaseObject, Log, UIAreaRegistry, jQuery, _ready) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
18
19
|
// Element, UIArea module references, lazily probed when needed
|
|
@@ -397,7 +398,7 @@ sap.ui.define([
|
|
|
397
398
|
var oControlUIArea = oControl.getUIArea();
|
|
398
399
|
var oUIArea = null;
|
|
399
400
|
if (oControlUIArea) {
|
|
400
|
-
oUIArea =
|
|
401
|
+
oUIArea = oControlUIArea;
|
|
401
402
|
} else {
|
|
402
403
|
StaticArea = StaticArea || sap.ui.require("sap/ui/core/StaticArea");
|
|
403
404
|
if (StaticArea) {
|
|
@@ -60,7 +60,7 @@ function(
|
|
|
60
60
|
* @class
|
|
61
61
|
* @extends sap.ui.base.ManagedObject
|
|
62
62
|
* @author SAP SE
|
|
63
|
-
* @version 1.120.
|
|
63
|
+
* @version 1.120.2
|
|
64
64
|
* @public
|
|
65
65
|
* @alias sap.ui.core.Fragment
|
|
66
66
|
*/
|
|
@@ -145,7 +145,7 @@ function(
|
|
|
145
145
|
*/
|
|
146
146
|
Fragment.registerType = function(sType, oFragmentImpl) {
|
|
147
147
|
if (typeof (sType) !== "string") {
|
|
148
|
-
Log.error("Ignoring non-string Fragment type: " + sType);
|
|
148
|
+
Log.error("[FUTURE FATAL] Ignoring non-string Fragment type: " + sType);
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -179,7 +179,7 @@ function(
|
|
|
179
179
|
this.fnScopedRunWithOwner = mSettings.containingView && mSettings.containingView.fnScopedRunWithOwner;
|
|
180
180
|
|
|
181
181
|
if (!this.fnScopedRunWithOwner && this._sOwnerId) {
|
|
182
|
-
var oOwnerComponent = Component.
|
|
182
|
+
var oOwnerComponent = Component.getComponentById(this._sOwnerId);
|
|
183
183
|
this.fnScopedRunWithOwner = function(fnCallbackToBeScoped) {
|
|
184
184
|
return oOwnerComponent.runAsOwner(fnCallbackToBeScoped);
|
|
185
185
|
};
|
|
@@ -230,7 +230,7 @@ function(
|
|
|
230
230
|
*/
|
|
231
231
|
Fragment.byId = function(sFragmentId, sId) {
|
|
232
232
|
if (!(typeof (sFragmentId) === "string" && typeof (sId) === "string")) {
|
|
233
|
-
Log.error("sap.ui.core.Fragment.byId: two strings must be given as parameters, but are: " + sFragmentId + " and " + sId);
|
|
233
|
+
Log.error("[FUTURE FATAL] sap.ui.core.Fragment.byId: two strings must be given as parameters, but are: " + sFragmentId + " and " + sId);
|
|
234
234
|
return undefined;
|
|
235
235
|
}
|
|
236
236
|
return Element.getElementById(sFragmentId + "--" + sId);
|
|
@@ -248,7 +248,7 @@ function(
|
|
|
248
248
|
*/
|
|
249
249
|
Fragment.createId = function(sFragmentId, sId) {
|
|
250
250
|
if (!(typeof (sFragmentId) === "string" && typeof (sId) === "string")) {
|
|
251
|
-
Log.error("sap.ui.core.Fragment.createId: two strings must be given as parameters, but are: " + sFragmentId + " and " + sId);
|
|
251
|
+
Log.error("[FUTURE FATAL] sap.ui.core.Fragment.createId: two strings must be given as parameters, but are: " + sFragmentId + " and " + sId);
|
|
252
252
|
return undefined;
|
|
253
253
|
}
|
|
254
254
|
return sFragmentId + "--" + sId;
|
|
@@ -386,7 +386,7 @@ function(
|
|
|
386
386
|
// owner-id is either available because the async factory was called in a sync block
|
|
387
387
|
// or: the containing view carries the owner id for us
|
|
388
388
|
var sOwnerId = mSettings.sOwnerId || mSettings.containingView && mSettings.containingView._sOwnerId;
|
|
389
|
-
var oOwnerComponent = Component.
|
|
389
|
+
var oOwnerComponent = Component.getComponentById(sOwnerId);
|
|
390
390
|
if (oOwnerComponent) {
|
|
391
391
|
return oOwnerComponent.runAsOwner(function () {
|
|
392
392
|
return new Fragment(mSettings);
|
|
@@ -832,7 +832,7 @@ function(
|
|
|
832
832
|
try {
|
|
833
833
|
pContentPromise.unwrap();
|
|
834
834
|
} catch (e) {
|
|
835
|
-
Log.error("An Error occured during XML processing of '" +
|
|
835
|
+
Log.error("[FUTURE FATAL] An Error occured during XML processing of '" +
|
|
836
836
|
this.getMetadata().getName() +
|
|
837
837
|
"' with id '" +
|
|
838
838
|
this.getId() +
|
package/src/sap/ui/core/HTML.js
CHANGED
package/src/sap/ui/core/Icon.js
CHANGED
|
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
|
|
|
12
12
|
* Provides the default renderer for the controls that have set their <code>visible</code> property to <code>false</code>.
|
|
13
13
|
*
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.120.
|
|
15
|
+
* @version 1.120.2
|
|
16
16
|
* @alias module:sap/ui/core/InvisibleRenderer
|
|
17
17
|
* @since 1.66.0
|
|
18
18
|
* @protected
|
package/src/sap/ui/core/Item.js
CHANGED
|
@@ -140,7 +140,7 @@ sap.ui.define(['../base/ManagedObject', "sap/base/assert"],
|
|
|
140
140
|
* @see sap.ui.core.LabelEnablement#enrich
|
|
141
141
|
*
|
|
142
142
|
* @author SAP SE
|
|
143
|
-
* @version 1.120.
|
|
143
|
+
* @version 1.120.2
|
|
144
144
|
* @protected
|
|
145
145
|
* @alias sap.ui.core.LabelEnablement
|
|
146
146
|
* @namespace
|
package/src/sap/ui/core/Lib.js
CHANGED
|
@@ -411,7 +411,7 @@ sap.ui.define([
|
|
|
411
411
|
vValueToSet = vValue;
|
|
412
412
|
} else if ( sKey != "name" ) {
|
|
413
413
|
// ignore other values (silently ignore "name")
|
|
414
|
-
Log.warning("library info setting ignored: " + sKey + "=" + vValue);
|
|
414
|
+
Log.warning("[FUTURE FATAL] library info setting ignored: " + sKey + "=" + vValue);
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
if (vValueToSet !== undefined) {
|
|
@@ -479,10 +479,10 @@ sap.ui.define([
|
|
|
479
479
|
*/
|
|
480
480
|
preload: function(mOptions) {
|
|
481
481
|
if (mOptions && (mOptions.hasOwnProperty("async") || mOptions.hasOwnProperty("sync"))) {
|
|
482
|
-
Log.error("The 'preload' function of class sap/ui/core/Lib only support preloading a library asynchronously. The given 'async' or 'sync' setting is ignored.");
|
|
482
|
+
Log.error("[FUTURE FATAL] The 'preload' function of class sap/ui/core/Lib only support preloading a library asynchronously. The given 'async' or 'sync' setting is ignored.");
|
|
483
483
|
}
|
|
484
484
|
if (mOptions && mOptions.hasOwnProperty("json")) {
|
|
485
|
-
Log.error("The 'preload' function of class sap/ui/core/Lib only support preloading in JS Format. The given 'json' setting is ignored.");
|
|
485
|
+
Log.error("[FUTURE FATAL] The 'preload' function of class sap/ui/core/Lib only support preloading in JS Format. The given 'json' setting is ignored.");
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
return this._preload(["url", "lazy"].reduce(function(acc, sProperty) {
|
|
@@ -562,6 +562,7 @@ sap.ui.define([
|
|
|
562
562
|
// (but the loader avoids double loading).
|
|
563
563
|
Log.debug("Lazy dependency to '" + this.name + "' encountered, loading library-preload-lazy.js");
|
|
564
564
|
|
|
565
|
+
/** @deprecated */
|
|
565
566
|
if (mOptions.sync) {
|
|
566
567
|
try {
|
|
567
568
|
sap.ui.requireSync(sLibPackage + '/library-preload-lazy'); // legacy-relevant: Sync path
|
|
@@ -569,10 +570,10 @@ sap.ui.define([
|
|
|
569
570
|
Log.error("failed to load '" + sLibPackage + "/library-preload-lazy.js" + "' synchronously (" + (e && e.message || e) + ")");
|
|
570
571
|
}
|
|
571
572
|
return this;
|
|
572
|
-
} else {
|
|
573
|
-
return sap.ui.loader._.loadJSResourceAsync(
|
|
574
|
-
sLibPackage + '/library-preload-lazy.js', /* ignoreErrors = */ true);
|
|
575
573
|
}
|
|
574
|
+
|
|
575
|
+
return sap.ui.loader._.loadJSResourceAsync(
|
|
576
|
+
sLibPackage + '/library-preload-lazy.js', /* ignoreErrors = */ true);
|
|
576
577
|
}
|
|
577
578
|
|
|
578
579
|
// otherwise mark as pending
|
|
@@ -634,6 +635,7 @@ sap.ui.define([
|
|
|
634
635
|
aPromises = aDependencies.map(function(oDependency) {
|
|
635
636
|
var oLibrary = Library._get(oDependency.name, true/* bCreate */);
|
|
636
637
|
return oLibrary._preload({
|
|
638
|
+
/** @deprecated since 1.120 */
|
|
637
639
|
sync: mOptions.sync,
|
|
638
640
|
lazy: oDependency.lazy
|
|
639
641
|
});
|
|
@@ -1227,6 +1229,8 @@ sap.ui.define([
|
|
|
1227
1229
|
// note: namespace already contains a trailing dot '.'
|
|
1228
1230
|
const sNamespacePrefix = mSubNamespaces.get(target);
|
|
1229
1231
|
DataType.registerEnum(`${sNamespacePrefix}${prop}`, value);
|
|
1232
|
+
|
|
1233
|
+
Log.debug(`[Library API-Version 2] If you intend to use API-Version 2 in your library, make sure to call 'sap/ui/base/DataType.registerEnum' for ${sNamespacePrefix}${prop}.`);
|
|
1230
1234
|
} else {
|
|
1231
1235
|
const firstChar = prop.charAt(0);
|
|
1232
1236
|
if (firstChar === firstChar.toLowerCase() && firstChar !== firstChar.toUpperCase()) {
|
|
@@ -1368,10 +1372,15 @@ sap.ui.define([
|
|
|
1368
1372
|
var oLib = Library._get(mSettings.name, true /* bCreate */);
|
|
1369
1373
|
oLib.enhanceSettings(mSettings);
|
|
1370
1374
|
|
|
1371
|
-
|
|
1372
|
-
var oLibNamespace = ObjectPath.create(mSettings.name),
|
|
1375
|
+
var oLibNamespace = Object.create(null),
|
|
1373
1376
|
i;
|
|
1374
1377
|
|
|
1378
|
+
/**
|
|
1379
|
+
* Creates the library namespace inside the global object.
|
|
1380
|
+
* @deprecated since 1.120
|
|
1381
|
+
*/
|
|
1382
|
+
oLibNamespace = ObjectPath.create(mSettings.name);
|
|
1383
|
+
|
|
1375
1384
|
// If a library states that it is using apiVersion 2, we expect types to be fully declared.
|
|
1376
1385
|
// In this case we don't need to create Proxies for the library namespace.
|
|
1377
1386
|
const apiVersion = mSettings.apiVersion ?? 1;
|
|
@@ -1381,12 +1390,18 @@ sap.ui.define([
|
|
|
1381
1390
|
// activate proxy for outer library namespace object
|
|
1382
1391
|
oLibNamespace = new Proxy(oLibNamespace, oLibProxyHandler);
|
|
1383
1392
|
|
|
1384
|
-
|
|
1393
|
+
/**
|
|
1394
|
+
* proxy must be written back to the original path (global)
|
|
1395
|
+
* @deprecated since 1.120
|
|
1396
|
+
*/
|
|
1385
1397
|
ObjectPath.set(mSettings.name, oLibNamespace);
|
|
1386
1398
|
}
|
|
1387
1399
|
|
|
1388
1400
|
|
|
1389
|
-
|
|
1401
|
+
/**
|
|
1402
|
+
* Synchronously resolve dependencies
|
|
1403
|
+
* @deprecated since 1.120
|
|
1404
|
+
*/
|
|
1390
1405
|
for (i = 0; i < oLib.dependencies.length; i++) {
|
|
1391
1406
|
var sDepLib = oLib.dependencies[i];
|
|
1392
1407
|
var oDepLib = Library._get(sDepLib, true /* bCreate */);
|
|
@@ -1400,14 +1415,20 @@ sap.ui.define([
|
|
|
1400
1415
|
// register interface types
|
|
1401
1416
|
DataType.registerInterfaceTypes(oLib.interfaces);
|
|
1402
1417
|
|
|
1403
|
-
|
|
1404
|
-
|
|
1418
|
+
/**
|
|
1419
|
+
* Declare a module for each (non-builtin) simple type.
|
|
1420
|
+
* Only needed for backward compatibility: some code 'requires' such types although they never have been modules on their own.
|
|
1421
|
+
* @deprecated since 1.120
|
|
1422
|
+
*/
|
|
1405
1423
|
for (i = 0; i < oLib.types.length; i++) {
|
|
1406
1424
|
if ( !/^(any|boolean|float|int|string|object|void)$/.test(oLib.types[i]) ) {
|
|
1407
|
-
|
|
1425
|
+
// register a wrapper module that logs a deprecation warning
|
|
1426
|
+
const sTypeName = oLib.types[i];
|
|
1427
|
+
sap.ui.loader._.declareModule(sTypeName.replace(/\./g, "/") + ".js",
|
|
1428
|
+
`Deprecation: Importing the type '${sTypeName}' as a module is deprecated. Please require the corresponding 'library.js' containing the type directly. You can then reference the type via the library's module export.`);
|
|
1408
1429
|
|
|
1409
1430
|
// ensure parent namespace of the type
|
|
1410
|
-
var sNamespacePrefix =
|
|
1431
|
+
var sNamespacePrefix = sTypeName.substring(0, sTypeName.lastIndexOf("."));
|
|
1411
1432
|
if (ObjectPath.get(sNamespacePrefix) === undefined) {
|
|
1412
1433
|
// parent type namespace does not exists, so we create its
|
|
1413
1434
|
ObjectPath.create(sNamespacePrefix);
|
|
@@ -1415,11 +1436,16 @@ sap.ui.define([
|
|
|
1415
1436
|
}
|
|
1416
1437
|
}
|
|
1417
1438
|
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1439
|
+
/**
|
|
1440
|
+
* create lazy loading stubs for all controls and elements
|
|
1441
|
+
* @deprecated since 1.120
|
|
1442
|
+
*/
|
|
1443
|
+
(() => {
|
|
1444
|
+
var aElements = oLib.controls.concat(oLib.elements);
|
|
1445
|
+
for (i = 0; i < aElements.length; i++) {
|
|
1446
|
+
sap.ui.lazyRequire(aElements[i], "new extend getMetadata"); // TODO don't create an 'extend' stub for final classes
|
|
1447
|
+
}
|
|
1448
|
+
})();
|
|
1423
1449
|
|
|
1424
1450
|
// include the library theme, but only if it has not been suppressed in library metadata or by configuration
|
|
1425
1451
|
if (!oLib.noLibraryCSS) {
|
|
@@ -1612,19 +1638,11 @@ sap.ui.define([
|
|
|
1612
1638
|
return oLib;
|
|
1613
1639
|
});
|
|
1614
1640
|
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
mOptions.json = mAdditionalConfig[oLib.name].json;
|
|
1621
|
-
}
|
|
1622
|
-
return oLib._preload(mOptions);
|
|
1623
|
-
})) :
|
|
1624
|
-
Promise.resolve(aLibs);
|
|
1625
|
-
|
|
1626
|
-
return bRequire ? pPreloaded.then(requireLibrariesAsync) : pPreloaded;
|
|
1627
|
-
} else {
|
|
1641
|
+
/**
|
|
1642
|
+
* sync loading
|
|
1643
|
+
* @deprecated since 1.120
|
|
1644
|
+
*/
|
|
1645
|
+
if (mOptions.sync) {
|
|
1628
1646
|
if (bPreload) {
|
|
1629
1647
|
aLibs.forEach(function(oLib) {
|
|
1630
1648
|
var mOptions = {sync: true};
|
|
@@ -1655,6 +1673,18 @@ sap.ui.define([
|
|
|
1655
1673
|
|
|
1656
1674
|
return aLibs;
|
|
1657
1675
|
}
|
|
1676
|
+
|
|
1677
|
+
const pPreloaded = bPreload ?
|
|
1678
|
+
Promise.all(aLibs.map(function(oLib) {
|
|
1679
|
+
const mOptions = {};
|
|
1680
|
+
if (mAdditionalConfig[oLib.name] && mAdditionalConfig[oLib.name].hasOwnProperty("json")) {
|
|
1681
|
+
mOptions.json = mAdditionalConfig[oLib.name].json;
|
|
1682
|
+
}
|
|
1683
|
+
return oLib._preload(mOptions);
|
|
1684
|
+
})) :
|
|
1685
|
+
Promise.resolve(aLibs);
|
|
1686
|
+
|
|
1687
|
+
return bRequire ? pPreloaded.then(requireLibrariesAsync) : pPreloaded;
|
|
1658
1688
|
};
|
|
1659
1689
|
|
|
1660
1690
|
/**
|