@openui5/sap.ui.core 1.120.1 → 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 +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/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 -9
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -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 +30 -144
- package/src/sap/ui/core/ComponentContainer.js +3 -3
- 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 +1 -1
- package/src/sap/ui/core/Control.js +6 -4
- package/src/sap/ui/core/Core.js +6 -4
- 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 +25 -141
- 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 +5 -5
- 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 +7 -7
- 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 +51 -13
- 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/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 +1 -1
- 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 +20 -9
- 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 +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +6 -4
- 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/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/ClientModel.js +1 -1
- 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 +8 -5
- 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 +1 -1
- 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/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/ODataModel.js +4 -4
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +32 -27
- 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 +1 -1
- 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/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 -5
- 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/ui5.yaml +1 -1
- 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/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/Descendant/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/I18NText/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/matcher/LabelFor/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/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/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +1 -1
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +1 -1
- package/test/sap/ui/core/qunit/BindingParser.qunit.js +4 -4
- 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 +19 -2
- 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/component/Component.qunit.js +9 -8
- 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/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/FilterProcessor.qunit.js +22 -8
- 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/v2/ODataModel.integration.qunit.js +69 -0
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +43 -22
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +318 -217
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +2111 -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 +38 -14
- 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 +225 -0
|
@@ -165,7 +165,7 @@ sap.ui.define([
|
|
|
165
165
|
try {
|
|
166
166
|
BindingParser.mergeParts(oBindingInfo);
|
|
167
167
|
} catch (e) {
|
|
168
|
-
Log.error("Cannot merge parts: " + e.message, sBinding,
|
|
168
|
+
Log.error("[FUTURE FATAL] Cannot merge parts: " + e.message, sBinding,
|
|
169
169
|
"sap.ui.base.BindingParser");
|
|
170
170
|
// rely on error in ManagedObject
|
|
171
171
|
}
|
|
@@ -201,7 +201,7 @@ sap.ui.define([
|
|
|
201
201
|
oEnv.aFunctionsNotFound = oEnv.aFunctionsNotFound || [];
|
|
202
202
|
oEnv.aFunctionsNotFound.push(sName);
|
|
203
203
|
} else {
|
|
204
|
-
Log.error(sProp + " function " + sName + " not found!");
|
|
204
|
+
Log.error("[FUTURE FATAL] " + sProp + " function " + sName + " not found!");
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -239,7 +239,7 @@ sap.ui.define([
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
if (!o.type) {
|
|
242
|
-
Log.error("Failed to resolve type '" + sType + "'. Maybe not loaded or a typo?");
|
|
242
|
+
Log.error("[FUTURE FATAL] Failed to resolve type '" + sType + "'. Maybe not loaded or a typo?");
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
// TODO why are formatOptions and constraints also removed for an already instantiated type?
|
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
}).catch(function(oError){
|
|
268
268
|
// [Compatibility]: We must not throw an error during type creation (except constructor failures!).
|
|
269
269
|
// We catch any require() rejection and log the error.
|
|
270
|
-
Log.error(oError);
|
|
270
|
+
Log.error("[FUTURE FATAL]", oError);
|
|
271
271
|
}).then(fnInstantiateType);
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -547,10 +547,10 @@ sap.ui.define([
|
|
|
547
547
|
oType = mTypes[sTypeName] = createEnumType(sTypeName, oType);
|
|
548
548
|
delete mEnumRegistry[sTypeName];
|
|
549
549
|
} else if ( oType ) {
|
|
550
|
-
Log.warning("'" + sTypeName + "' is not a valid data type. Falling back to type 'any'.");
|
|
550
|
+
Log.warning("[FUTURE FATAL] '" + sTypeName + "' is not a valid data type. Falling back to type 'any'.");
|
|
551
551
|
oType = mTypes.any;
|
|
552
552
|
} else {
|
|
553
|
-
Log.error("data type '" + sTypeName + "' could not be found.");
|
|
553
|
+
Log.error("[FUTURE FATAL] data type '" + sTypeName + "' could not be found.");
|
|
554
554
|
oType = undefined;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -609,7 +609,7 @@ sap.ui.define([
|
|
|
609
609
|
"DataType.createType: base type must be empty or a DataType or a non-empty string");
|
|
610
610
|
if ( /[\[\]]/.test(sName) ) {
|
|
611
611
|
Log.error(
|
|
612
|
-
"DataType.createType: array types ('something[]') must not be created with createType, " +
|
|
612
|
+
"[FUTURE FATAL] DataType.createType: array types ('something[]') must not be created with createType, " +
|
|
613
613
|
"they're created on-the-fly by DataType.getType");
|
|
614
614
|
}
|
|
615
615
|
if ( typeof vBase === "string" ) {
|
|
@@ -617,13 +617,13 @@ sap.ui.define([
|
|
|
617
617
|
}
|
|
618
618
|
vBase = vBase || mTypes.any;
|
|
619
619
|
if ( vBase.isArrayType() || vBase.isEnumType() ) {
|
|
620
|
-
Log.error("DataType.createType: base type must not be an array- or enum-type");
|
|
620
|
+
Log.error("[FUTURE FATAL] DataType.createType: base type must not be an array- or enum-type");
|
|
621
621
|
}
|
|
622
622
|
if ( sName === 'array' || mTypes[sName] instanceof DataType ) {
|
|
623
623
|
if ( sName === 'array' || mTypes[sName].getBaseType() == null ) {
|
|
624
624
|
throw new Error("DataType.createType: primitive or hidden type " + sName + " can't be re-defined");
|
|
625
625
|
}
|
|
626
|
-
Log.warning("DataTypes.createType: type " + sName + " is redefined. " +
|
|
626
|
+
Log.warning("[FUTURE FATAL] DataTypes.createType: type " + sName + " is redefined. " +
|
|
627
627
|
"This is an unsupported usage of DataType and might cause issues." );
|
|
628
628
|
}
|
|
629
629
|
var oType = mTypes[sName] = createType(sName, mSettings, vBase);
|
package/src/sap/ui/base/Event.js
CHANGED
|
@@ -23,7 +23,7 @@ sap.ui.define(['./Object', "sap/base/assert"],
|
|
|
23
23
|
* @extends sap.ui.base.Object
|
|
24
24
|
* @implements sap.ui.base.Poolable
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.120.
|
|
26
|
+
* @version 1.120.2
|
|
27
27
|
* @alias sap.ui.base.Event
|
|
28
28
|
* @public
|
|
29
29
|
* @template {Object<string,any>} [ParamsType=object]
|
|
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/base/Object'], function(BaseObject) {
|
|
|
28
28
|
* no internals of the class can be accessed.
|
|
29
29
|
*
|
|
30
30
|
* @author Malte Wedel, Daniel Brinkmann
|
|
31
|
-
* @version 1.120.
|
|
31
|
+
* @version 1.120.2
|
|
32
32
|
* @param {sap.ui.base.Object} oObject
|
|
33
33
|
* Object for which a facade should be created
|
|
34
34
|
* @param {string[]} aMethods
|
|
@@ -260,7 +260,7 @@ sap.ui.define([
|
|
|
260
260
|
*
|
|
261
261
|
* @extends sap.ui.base.EventProvider
|
|
262
262
|
* @author SAP SE
|
|
263
|
-
* @version 1.120.
|
|
263
|
+
* @version 1.120.2
|
|
264
264
|
* @public
|
|
265
265
|
* @alias sap.ui.base.ManagedObject
|
|
266
266
|
*/
|
|
@@ -1345,7 +1345,7 @@ sap.ui.define([
|
|
|
1345
1345
|
if (Array.isArray(oValue)){
|
|
1346
1346
|
// assumption: we have an extensionPoint here which is always an array, even if it contains a single control
|
|
1347
1347
|
if (oValue.length > 1){
|
|
1348
|
-
Log.error("Tried to add an array of controls to a single aggregation");
|
|
1348
|
+
Log.error("[FUTURE FATAL] Tried to add an array of controls to a single aggregation");
|
|
1349
1349
|
}
|
|
1350
1350
|
oValue = oValue[0];
|
|
1351
1351
|
}
|
|
@@ -1923,7 +1923,7 @@ sap.ui.define([
|
|
|
1923
1923
|
|
|
1924
1924
|
if (typeof (vObject) == "number") { // "object" is the index now
|
|
1925
1925
|
if (vObject < 0 || vObject >= aIds.length) {
|
|
1926
|
-
Log.warning("ManagedObject.removeAssociation called with invalid index: " + sAssociationName + ", " + vObject);
|
|
1926
|
+
Log.warning("[FUTURE FATAL] ManagedObject.removeAssociation called with invalid index: " + sAssociationName + ", " + vObject);
|
|
1927
1927
|
} else {
|
|
1928
1928
|
sId = aIds[vObject];
|
|
1929
1929
|
aIds.splice(vObject, 1);
|
|
@@ -2306,7 +2306,7 @@ sap.ui.define([
|
|
|
2306
2306
|
i = iIndex;
|
|
2307
2307
|
}
|
|
2308
2308
|
if (i !== iIndex) {
|
|
2309
|
-
Log.warning("ManagedObject.insertAggregation: index '" + iIndex + "' out of range [0," + aChildren.length + "], forced to " + i);
|
|
2309
|
+
Log.warning("[FUTURE FATAL] ManagedObject.insertAggregation: index '" + iIndex + "' out of range [0," + aChildren.length + "], forced to " + i);
|
|
2310
2310
|
}
|
|
2311
2311
|
aChildren.splice(i, 0, oObject);
|
|
2312
2312
|
oObject.setParent(this, sAggregationName, bSuppressInvalidate);
|
|
@@ -2425,7 +2425,7 @@ sap.ui.define([
|
|
|
2425
2425
|
|
|
2426
2426
|
if (typeof (vObject) == "number") { // "vObject" is the index now
|
|
2427
2427
|
if (vObject < 0 || vObject >= aChildren.length) {
|
|
2428
|
-
Log.warning("ManagedObject.removeAggregation called with invalid index: " + sAggregationName + ", " + vObject);
|
|
2428
|
+
Log.warning("[FUTURE FATAL] ManagedObject.removeAggregation called with invalid index: " + sAggregationName + ", " + vObject);
|
|
2429
2429
|
|
|
2430
2430
|
} else {
|
|
2431
2431
|
oChild = aChildren[vObject];
|
|
@@ -2651,7 +2651,7 @@ sap.ui.define([
|
|
|
2651
2651
|
ManagedObject.prototype._removeChild = function(oChild, sAggregationName, bSuppressInvalidate) {
|
|
2652
2652
|
if (!sAggregationName) {
|
|
2653
2653
|
// an aggregation name has to be specified!
|
|
2654
|
-
Log.error("Cannot remove aggregated child without aggregation name.", null, this);
|
|
2654
|
+
Log.error("[FUTURE FATAL] Cannot remove aggregated child without aggregation name.", null, this);
|
|
2655
2655
|
} else {
|
|
2656
2656
|
// set suppress invalidate flag
|
|
2657
2657
|
if (bSuppressInvalidate) {
|
|
@@ -3250,7 +3250,7 @@ sap.ui.define([
|
|
|
3250
3250
|
};
|
|
3251
3251
|
|
|
3252
3252
|
function logError(sFunctionName) {
|
|
3253
|
-
Log.error("Unexpected call of '" + sFunctionName + "'.");
|
|
3253
|
+
Log.error("[FUTURE FATAL] Unexpected call of '" + sFunctionName + "'.");
|
|
3254
3254
|
}
|
|
3255
3255
|
|
|
3256
3256
|
/**
|
|
@@ -3713,7 +3713,7 @@ sap.ui.define([
|
|
|
3713
3713
|
throw new Error("Aggregation \"" + sName + "\" does not exist in " + this);
|
|
3714
3714
|
}
|
|
3715
3715
|
if (!oAggregationInfo.multiple) {
|
|
3716
|
-
Log.error("Binding of single aggregation \"" + sName + "\" of " + this + " is not supported!");
|
|
3716
|
+
Log.error("[FUTURE FATAL] Binding of single aggregation \"" + sName + "\" of " + this + " is not supported!");
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
3719
|
// Old API compatibility (sName, sPath, oTemplate, oSorter, aFilters)
|
|
@@ -3903,7 +3903,7 @@ sap.ui.define([
|
|
|
3903
3903
|
* @since 1.28
|
|
3904
3904
|
*/
|
|
3905
3905
|
ManagedObject.prototype.propagateMessages = function(sName, aMessages) {
|
|
3906
|
-
Log.warning("Message for " + this + ", Property " + sName);
|
|
3906
|
+
Log.warning("[FUTURE FATAL] ]Message for " + this + ", Property " + sName);
|
|
3907
3907
|
};
|
|
3908
3908
|
|
|
3909
3909
|
/**
|
|
@@ -8,187 +8,204 @@ sap.ui.define(["sap/ui/base/ManagedObject", "sap/base/Log", "sap/base/assert"],
|
|
|
8
8
|
function(ManagedObject, Log, assert) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if ( typeof FNClass !== 'function' || !(FNClass.prototype instanceof ManagedObject) ) {
|
|
14
|
-
throw new TypeError("ManagedObjectRegistry mixin can only be applied to subclasses of sap.ui.base.ManagedObject");
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
oOptions = oOptions || {};
|
|
18
|
-
|
|
19
|
-
var fnOnDuplicate = oOptions.onDuplicate || function(sId, oldInstance, newInstance) {
|
|
20
|
-
var sStereotype = FNClass.getMetadata().getStereotype();
|
|
21
|
-
Log.error("adding object \"" + sStereotype + "\" with duplicate id '" + sId + "'");
|
|
22
|
-
throw new Error("Error: adding object \"" + sStereotype + "\" with duplicate id '" + sId + "'");
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
var fnOnDeregister = oOptions.onDeregister || null;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Map (object) of objects keyed by their ID.
|
|
29
|
-
* @private
|
|
30
|
-
*/
|
|
31
|
-
var mInstances = Object.create(null);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Number of objects in <code>mInstances</code>.
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
var iInstancesCount = 0;
|
|
38
|
-
|
|
39
|
-
FNClass.prototype.register = function register() {
|
|
40
|
-
var sId = this.getId(),
|
|
41
|
-
old = mInstances[sId];
|
|
42
|
-
|
|
43
|
-
if ( old && old !== this ) {
|
|
44
|
-
fnOnDuplicate(sId, old, this);
|
|
45
|
-
// executes only if duplicate check succeeds
|
|
46
|
-
iInstancesCount--;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
mInstances[sId] = this;
|
|
50
|
-
iInstancesCount++;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
FNClass.prototype.deregister = function deregister() {
|
|
54
|
-
var sId = this.getId();
|
|
55
|
-
if ( mInstances[sId] ) {
|
|
56
|
-
if ( fnOnDeregister ) {
|
|
57
|
-
fnOnDeregister(sId);
|
|
58
|
-
}
|
|
59
|
-
delete mInstances[sId];
|
|
60
|
-
iInstancesCount--;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
FNClass["registry"] = Object.freeze({
|
|
65
|
-
|
|
11
|
+
const ManagedObjectRegistry = {
|
|
12
|
+
create(oOptions) {
|
|
66
13
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @returns {int} Number of currently existing objects.
|
|
14
|
+
* Map (object) of objects keyed by their ID.
|
|
70
15
|
* @private
|
|
71
16
|
*/
|
|
72
|
-
|
|
73
|
-
return iInstancesCount;
|
|
74
|
-
},
|
|
17
|
+
const mInstances = Object.create(null);
|
|
75
18
|
|
|
76
19
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* Each call creates a new snapshot object. Depending on the size of the UI,
|
|
80
|
-
* this operation therefore might be expensive. Consider to use the <code>forEach</code>
|
|
81
|
-
* or <code>filter</code> method instead of executing the same operations on the returned
|
|
82
|
-
* object.
|
|
83
|
-
*
|
|
84
|
-
* <b>Note</b>: The returned object is created by a call to <code>Object.create(null)</code>,
|
|
85
|
-
* so it doesn't have a prototype and therefore no <code>toString</code> method.
|
|
86
|
-
*
|
|
87
|
-
* @returns {object} Object with all elements, keyed by their ID
|
|
20
|
+
* Number of objects in <code>mInstances</code>.
|
|
88
21
|
* @private
|
|
89
22
|
*/
|
|
90
|
-
|
|
91
|
-
var mResults = Object.create(null);
|
|
92
|
-
return Object.assign(mResults, mInstances);
|
|
93
|
-
},
|
|
23
|
+
let iInstancesCount = 0;
|
|
94
24
|
|
|
95
|
-
|
|
96
|
-
* Retrieves an object by its ID.
|
|
97
|
-
*
|
|
98
|
-
* @param {sap.ui.core.ID|null|undefined} ID of the object to retrieve.
|
|
99
|
-
* @returns {sap.ui.core.Element|undefined} Object with the given ID or <code>undefined</code>
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
get: function(id) {
|
|
103
|
-
assert(id == null || typeof id === "string", "id must be a string when defined");
|
|
104
|
-
// allow null, as this occurs frequently and it is easier to check whether there is a control in the end than
|
|
105
|
-
// first checking whether there is an ID and then checking for a control
|
|
106
|
-
return id == null ? undefined : mInstances[id];
|
|
107
|
-
},
|
|
25
|
+
oOptions ??= {};
|
|
108
26
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* is undefined. Newly added elements might or might not be visited. If an element is destroyed
|
|
114
|
-
* during the loop and was not visited yet, it won't be visited.
|
|
115
|
-
*
|
|
116
|
-
* <code>function callback(element, id)</code>
|
|
117
|
-
*
|
|
118
|
-
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
119
|
-
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
120
|
-
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
121
|
-
* context object, that object wins over the given <code>thisArg</code>.
|
|
122
|
-
*
|
|
123
|
-
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
124
|
-
* Function to call for each element
|
|
125
|
-
* @param {Object} [thisArg=undefined]
|
|
126
|
-
* Context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
127
|
-
* @throws {TypeError} If <code>callback</code> is not a function
|
|
128
|
-
* @private
|
|
129
|
-
*/
|
|
130
|
-
forEach: function(callback, thisArg) {
|
|
131
|
-
if (typeof callback !== "function") {
|
|
132
|
-
throw new TypeError(callback + " is not a function");
|
|
133
|
-
}
|
|
134
|
-
if ( thisArg != null ) {
|
|
135
|
-
callback = callback.bind(thisArg);
|
|
136
|
-
}
|
|
137
|
-
for ( var id in mInstances ) {
|
|
138
|
-
callback(mInstances[id], id);
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Collects all elements for which the given <code>callback</code> returns a value that coerces
|
|
144
|
-
* to <code>true</code>.
|
|
145
|
-
*
|
|
146
|
-
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
147
|
-
* undefined. Newly added objects might or might not be visited. If an element is destroyed
|
|
148
|
-
* during the filtering and was not visited yet, it won't be visited.
|
|
149
|
-
*
|
|
150
|
-
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
151
|
-
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
152
|
-
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
153
|
-
* context object, that object wins over the given <code>thisArg</code>.
|
|
154
|
-
*
|
|
155
|
-
* This function returns an array with all elements matching the given predicate. The order of the
|
|
156
|
-
* elements in the array is undefined and might change between calls (over time and across different
|
|
157
|
-
* versions of UI5).
|
|
158
|
-
*
|
|
159
|
-
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
160
|
-
* predicate against which each element is tested
|
|
161
|
-
* @param {Object} thisArg
|
|
162
|
-
* context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
163
|
-
* @returns {sap.ui.core.Element[]}
|
|
164
|
-
* Array of elements matching the predicate; order is undefined and might change in newer versions of UI5
|
|
165
|
-
* @throws {TypeError} If <code>callback</code> is not a function
|
|
166
|
-
* @private
|
|
167
|
-
*/
|
|
168
|
-
filter: function(callback, thisArg) {
|
|
169
|
-
if (typeof callback !== "function") {
|
|
170
|
-
throw new TypeError(callback + " is not a function");
|
|
171
|
-
}
|
|
172
|
-
if ( thisArg != null ) {
|
|
173
|
-
callback = callback.bind(thisArg);
|
|
174
|
-
}
|
|
175
|
-
var result = [],
|
|
176
|
-
id;
|
|
177
|
-
for ( id in mInstances ) {
|
|
178
|
-
if ( callback(mInstances[id], id) ) {
|
|
179
|
-
result.push(mInstances[id]);
|
|
27
|
+
const facade = {
|
|
28
|
+
init(FNClass) {
|
|
29
|
+
if ( typeof FNClass !== 'function' || !(FNClass.prototype instanceof ManagedObject) ) {
|
|
30
|
+
throw new TypeError("ManagedObjectRegistry mixin can only be applied to subclasses of sap.ui.base.ManagedObject");
|
|
180
31
|
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return result;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
});
|
|
187
32
|
|
|
188
|
-
|
|
33
|
+
var fnOnDuplicate = oOptions.onDuplicate || function(sId, oldInstance, newInstance) {
|
|
34
|
+
var sStereotype = FNClass.getMetadata().getStereotype();
|
|
35
|
+
Log.error("adding object \"" + sStereotype + "\" with duplicate id '" + sId + "'");
|
|
36
|
+
throw new Error("Error: adding object \"" + sStereotype + "\" with duplicate id '" + sId + "'");
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var fnOnDeregister = oOptions.onDeregister || null;
|
|
40
|
+
|
|
41
|
+
FNClass.prototype.register = function register() {
|
|
42
|
+
var sId = this.getId(),
|
|
43
|
+
old = mInstances[sId];
|
|
44
|
+
|
|
45
|
+
if ( old && old !== this ) {
|
|
46
|
+
fnOnDuplicate(sId, old, this);
|
|
47
|
+
// executes only if duplicate check succeeds
|
|
48
|
+
iInstancesCount--;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
mInstances[sId] = this;
|
|
52
|
+
iInstancesCount++;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
FNClass.prototype.deregister = function deregister() {
|
|
56
|
+
var sId = this.getId();
|
|
57
|
+
if ( mInstances[sId] ) {
|
|
58
|
+
if ( fnOnDeregister ) {
|
|
59
|
+
fnOnDeregister(sId);
|
|
60
|
+
}
|
|
61
|
+
delete mInstances[sId];
|
|
62
|
+
iInstancesCount--;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
delete facade.init;
|
|
66
|
+
Object.freeze(facade);
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Returns the number of existing objects.
|
|
71
|
+
*
|
|
72
|
+
* @returns {int} Number of currently existing objects.
|
|
73
|
+
* @private
|
|
74
|
+
* @ui5-restricted sap.ui.core, sap.m.TablePersoController, sap.m.TablePersoDialog
|
|
75
|
+
*/
|
|
76
|
+
get size() {
|
|
77
|
+
return iInstancesCount;
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Return an object with all registered object instances, keyed by their ID.
|
|
82
|
+
*
|
|
83
|
+
* Each call creates a new snapshot object. Depending on the size of the UI,
|
|
84
|
+
* this operation therefore might be expensive. Consider to use the <code>forEach</code>
|
|
85
|
+
* or <code>filter</code> method instead of executing the same operations on the returned
|
|
86
|
+
* object.
|
|
87
|
+
*
|
|
88
|
+
* <b>Note</b>: The returned object is created by a call to <code>Object.create(null)</code>,
|
|
89
|
+
* so it doesn't have a prototype and therefore no <code>toString</code> method.
|
|
90
|
+
*
|
|
91
|
+
* @returns {object} Object with all elements, keyed by their ID
|
|
92
|
+
* @private
|
|
93
|
+
* @ui5-restricted sap.ui.core, sap.m.TablePersoController, sap.m.TablePersoDialog
|
|
94
|
+
*/
|
|
95
|
+
all: function() {
|
|
96
|
+
var mResults = Object.create(null);
|
|
97
|
+
return Object.assign(mResults, mInstances);
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves an object by its ID.
|
|
102
|
+
*
|
|
103
|
+
* @param {sap.ui.core.ID|null|undefined} ID of the object to retrieve.
|
|
104
|
+
* @returns {sap.ui.core.Element|undefined} Object with the given ID or <code>undefined</code>
|
|
105
|
+
* @private
|
|
106
|
+
* @ui5-restricted sap.ui.core, sap.m.TablePersoController, sap.m.TablePersoDialog
|
|
107
|
+
*/
|
|
108
|
+
get: function(id) {
|
|
109
|
+
assert(id == null || typeof id === "string", "id must be a string when defined");
|
|
110
|
+
// allow null, as this occurs frequently and it is easier to check whether there is a control in the end than
|
|
111
|
+
// first checking whether there is an ID and then checking for a control
|
|
112
|
+
return id == null ? undefined : mInstances[id];
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Calls the given <code>callback</code> for each object.
|
|
117
|
+
*
|
|
118
|
+
* If objects are created or destroyed during the <code>forEach</code> loop, then the behavior
|
|
119
|
+
* is undefined. Newly added elements might or might not be visited. If an element is destroyed
|
|
120
|
+
* during the loop and was not visited yet, it won't be visited.
|
|
121
|
+
*
|
|
122
|
+
* <code>function callback(element, id)</code>
|
|
123
|
+
*
|
|
124
|
+
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
125
|
+
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
126
|
+
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
127
|
+
* context object, that object wins over the given <code>thisArg</code>.
|
|
128
|
+
*
|
|
129
|
+
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
130
|
+
* Function to call for each element
|
|
131
|
+
* @param {Object} [thisArg=undefined]
|
|
132
|
+
* Context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
133
|
+
* @throws {TypeError} If <code>callback</code> is not a function
|
|
134
|
+
* @private
|
|
135
|
+
* @ui5-restricted sap.ui.core, sap.m.TablePersoController, sap.m.TablePersoDialog
|
|
136
|
+
*/
|
|
137
|
+
forEach: function(callback, thisArg) {
|
|
138
|
+
if (typeof callback !== "function") {
|
|
139
|
+
throw new TypeError(callback + " is not a function");
|
|
140
|
+
}
|
|
141
|
+
if ( thisArg != null ) {
|
|
142
|
+
callback = callback.bind(thisArg);
|
|
143
|
+
}
|
|
144
|
+
for ( var id in mInstances ) {
|
|
145
|
+
callback(mInstances[id], id);
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Collects all elements for which the given <code>callback</code> returns a value that coerces
|
|
151
|
+
* to <code>true</code>.
|
|
152
|
+
*
|
|
153
|
+
* If elements are created or destroyed within the <code>callback</code>, then the behavior is
|
|
154
|
+
* undefined. Newly added objects might or might not be visited. If an element is destroyed
|
|
155
|
+
* during the filtering and was not visited yet, it won't be visited.
|
|
156
|
+
*
|
|
157
|
+
* If a <code>thisArg</code> is given, it will be provided as <code>this</code> context when calling
|
|
158
|
+
* <code>callback</code>. The <code>this</code> value that the implementation of <code>callback</code>
|
|
159
|
+
* sees, depends on the usual resolution mechanism. E.g. when <code>callback</code> was bound to some
|
|
160
|
+
* context object, that object wins over the given <code>thisArg</code>.
|
|
161
|
+
*
|
|
162
|
+
* This function returns an array with all elements matching the given predicate. The order of the
|
|
163
|
+
* elements in the array is undefined and might change between calls (over time and across different
|
|
164
|
+
* versions of UI5).
|
|
165
|
+
*
|
|
166
|
+
* @param {function(sap.ui.core.Element,sap.ui.core.ID)} callback
|
|
167
|
+
* predicate against which each element is tested
|
|
168
|
+
* @param {Object} thisArg
|
|
169
|
+
* context object to provide as <code>this</code> in each call of <code>callback</code>
|
|
170
|
+
* @returns {sap.ui.core.Element[]}
|
|
171
|
+
* Array of elements matching the predicate; order is undefined and might change in newer versions of UI5
|
|
172
|
+
* @throws {TypeError} If <code>callback</code> is not a function
|
|
173
|
+
* @private
|
|
174
|
+
* @ui5-restricted sap.ui.core, sap.m.TablePersoController, sap.m.TablePersoDialog
|
|
175
|
+
*/
|
|
176
|
+
filter: function(callback, thisArg) {
|
|
177
|
+
if (typeof callback !== "function") {
|
|
178
|
+
throw new TypeError(callback + " is not a function");
|
|
179
|
+
}
|
|
180
|
+
if ( thisArg != null ) {
|
|
181
|
+
callback = callback.bind(thisArg);
|
|
182
|
+
}
|
|
183
|
+
var result = [],
|
|
184
|
+
id;
|
|
185
|
+
for ( id in mInstances ) {
|
|
186
|
+
if ( callback(mInstances[id], id) ) {
|
|
187
|
+
result.push(mInstances[id]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
189
190
|
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
return result;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
return facade;
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @param {sap.ui.base.ManagedObject} FNClass The class to create the registry
|
|
199
|
+
* @param {object} oOptions The create config options
|
|
200
|
+
* @private
|
|
201
|
+
* @deprecated
|
|
202
|
+
*/
|
|
203
|
+
apply(FNClass, oOptions) {
|
|
204
|
+
const registry = ManagedObjectRegistry.create(oOptions);
|
|
205
|
+
registry.init(FNClass);
|
|
206
|
+
FNClass.registry = registry;
|
|
207
|
+
}
|
|
192
208
|
};
|
|
193
209
|
|
|
210
|
+
return ManagedObjectRegistry;
|
|
194
211
|
});
|
|
@@ -26,7 +26,7 @@ sap.ui.define(['./Metadata', "sap/base/Log"],
|
|
|
26
26
|
* @class Base class for all SAPUI5 Objects.
|
|
27
27
|
* @abstract
|
|
28
28
|
* @author Malte Wedel
|
|
29
|
-
* @version 1.120.
|
|
29
|
+
* @version 1.120.2
|
|
30
30
|
* @public
|
|
31
31
|
* @alias sap.ui.base.Object
|
|
32
32
|
* @throws {Error} When an instance of the class or its subclasses is created without the <code>new</code> operator.
|
package/src/sap/ui/core/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.120.
|
|
9
|
+
<version>1.120.2</version>
|
|
10
10
|
|
|
11
11
|
<documentation>The SAPUI5 Core Runtime.
|
|
12
12
|
|
|
@@ -273,9 +273,9 @@
|
|
|
273
273
|
<copyright>Google Inc.</copyright>
|
|
274
274
|
<pattern>sap/ui/thirdparty/caja-html-sanitizer.js</pattern>
|
|
275
275
|
</lib>
|
|
276
|
-
<lib name="cldr" displayName="Unicode Common Locale Data Repository" npmName="cldr-core" version="43" hash="
|
|
276
|
+
<lib name="cldr" displayName="Unicode Common Locale Data Repository" npmName="cldr-core" version="43" hash="b4bcaaf008b31d9d4f3db512908da528" homepage="http://cldr.unicode.org/" id="73555000106100020909">
|
|
277
277
|
<license url="http://www.unicode.org/copyright.html" type="Unicode-DFS-2015" />
|
|
278
|
-
<copyright>1991-
|
|
278
|
+
<copyright>1991-2023 Unicode, Inc.</copyright>
|
|
279
279
|
<pattern>sap/ui/core/cldr/*</pattern>
|
|
280
280
|
</lib>
|
|
281
281
|
<lib name="mobiscroll" displayName="MobiScroll" npmName="n/a" version="2.9.0" hash="2a76d1439bbc5afaf10324b2108e4d9c" homepage="http://mobiscroll.com" id="73554900106100005562">
|