@openui5/sap.ui.core 1.120.0 → 1.120.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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 +1 -57
- package/src/sap/ui/base/ManagedObjectMetadata.js +25 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +27 -8
- package/src/sap/ui/core/ComponentContainer.js +3 -3
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +9 -7
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +14 -68
- 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 +7 -3
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +3 -3
- 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 +59 -29
- 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 +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +5 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/date/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/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +2 -2
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/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 +2 -2
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +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/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 +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/FilterProcessor.js +17 -17
- 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/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 +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +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 +6 -55
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +6 -3
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- 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 +1 -1
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/performance/trace/Interaction.js +20 -16
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/actions/EnterText.js +4 -0
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- 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/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/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/ClientModel.qunit.js +28 -28
- package/test/sap/ui/core/qunit/Lib.qunit.js +42 -0
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +86 -3
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +19 -0
- package/test/sap/ui/core/qunit/component/Component.qunit.js +26 -3
- package/test/sap/ui/core/qunit/i18n/Islamic.qunit.js +4 -4
- 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 +46 -18
- package/test/sap/ui/core/qunit/model/Model.qunit.js +43 -2
- 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/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/ODataBinding.qunit.js +19 -9
- 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 +37 -0
- package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +15 -0
- 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/relnotes/changes-1.120.json +82 -0
package/src/sap/ui/Device.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* This API is independent from any other part of the UI5 framework. This allows it to be loaded beforehand, if it is needed, to create the UI5 bootstrap
|
|
12
12
|
* dynamically depending on the capabilities of the browser or device.
|
|
13
13
|
*
|
|
14
|
-
* @version 1.120.
|
|
14
|
+
* @version 1.120.1
|
|
15
15
|
* @namespace
|
|
16
16
|
* @name sap.ui.Device
|
|
17
17
|
* @public
|
|
@@ -32,7 +32,7 @@ if (typeof window.sap.ui !== "object") {
|
|
|
32
32
|
|
|
33
33
|
//Skip initialization if API is already available
|
|
34
34
|
if (typeof window.sap.ui.Device === "object" || typeof window.sap.ui.Device === "function") {
|
|
35
|
-
var apiVersion = "1.120.
|
|
35
|
+
var apiVersion = "1.120.1";
|
|
36
36
|
window.sap.ui.Device._checkAPIVersion(apiVersion);
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
@@ -105,7 +105,7 @@ if (typeof window.sap.ui !== "object") {
|
|
|
105
105
|
|
|
106
106
|
//Only used internal to make clear when Device API is loaded in wrong version
|
|
107
107
|
Device._checkAPIVersion = function(sVersion) {
|
|
108
|
-
var v = "1.120.
|
|
108
|
+
var v = "1.120.1";
|
|
109
109
|
if (v != sVersion) {
|
|
110
110
|
oLogger.log(WARNING, "Device API version differs: " + v + " <-> " + sVersion);
|
|
111
111
|
}
|
package/src/sap/ui/Global.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* sap.ui.lazyRequire("sap.ui.core.Control");
|
|
19
19
|
* sap.ui.lazyRequire("sap.m.Button");
|
|
20
20
|
*
|
|
21
|
-
* @version 1.120.
|
|
21
|
+
* @version 1.120.1
|
|
22
22
|
* @author SAP SE
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
@@ -48,7 +48,7 @@ sap.ui.define([
|
|
|
48
48
|
* The <code>sap</code> namespace is automatically registered with the
|
|
49
49
|
* OpenAjax hub if it exists.
|
|
50
50
|
*
|
|
51
|
-
* @version 1.120.
|
|
51
|
+
* @version 1.120.1
|
|
52
52
|
* @namespace
|
|
53
53
|
* @public
|
|
54
54
|
* @name sap
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* The <code>sap.ui</code> namespace is the central OpenAjax compliant entry
|
|
62
62
|
* point for UI related JavaScript functionality provided by SAP.
|
|
63
63
|
*
|
|
64
|
-
* @version 1.120.
|
|
64
|
+
* @version 1.120.1
|
|
65
65
|
* @namespace
|
|
66
66
|
* @name sap.ui
|
|
67
67
|
* @public
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* The version of the SAP UI Library
|
|
76
76
|
* @type string
|
|
77
77
|
*/
|
|
78
|
-
version: "1.120.
|
|
78
|
+
version: "1.120.1",
|
|
79
79
|
// buildinfo.lastchange is deprecated and is therefore defaulted to empty string
|
|
80
80
|
buildinfo : { lastchange : "", buildtime : "${buildtime}" }
|
|
81
81
|
});
|
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.1
|
|
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.1
|
|
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.1
|
|
264
264
|
* @public
|
|
265
265
|
* @alias sap.ui.base.ManagedObject
|
|
266
266
|
*/
|
|
@@ -4670,62 +4670,6 @@ sap.ui.define([
|
|
|
4670
4670
|
return oClone;
|
|
4671
4671
|
};
|
|
4672
4672
|
|
|
4673
|
-
/**
|
|
4674
|
-
* Update all localization dependent objects that this managed object can reach,
|
|
4675
|
-
* except for its aggregated children (which will be updated by the Core).
|
|
4676
|
-
*
|
|
4677
|
-
* To make the update work as smooth as possible, it happens in two phases:
|
|
4678
|
-
* <ol>
|
|
4679
|
-
* <li>In phase 1 all known models are updated.</li>
|
|
4680
|
-
* <li>In phase 2 all bindings are updated.</li>
|
|
4681
|
-
* </ol>
|
|
4682
|
-
* This separation is necessary as the models for the bindings might be updated
|
|
4683
|
-
* in some ManagedObject or in the Core and the order in which the objects are visited
|
|
4684
|
-
* is not defined.
|
|
4685
|
-
*
|
|
4686
|
-
* @private
|
|
4687
|
-
*/
|
|
4688
|
-
ManagedObject._handleLocalizationChange = function(iPhase) {
|
|
4689
|
-
var oModel, sName, oBindingInfo, i;
|
|
4690
|
-
|
|
4691
|
-
if ( iPhase === 1 ) {
|
|
4692
|
-
|
|
4693
|
-
/*
|
|
4694
|
-
* phase 1: update the models
|
|
4695
|
-
*/
|
|
4696
|
-
for (sName in this.oModels) {
|
|
4697
|
-
oModel = this.oModels[sName];
|
|
4698
|
-
if ( oModel && oModel._handleLocalizationChange ) {
|
|
4699
|
-
oModel._handleLocalizationChange();
|
|
4700
|
-
}
|
|
4701
|
-
}
|
|
4702
|
-
|
|
4703
|
-
} else if ( iPhase === 2 ) {
|
|
4704
|
-
|
|
4705
|
-
/*
|
|
4706
|
-
* phase 2: update bindings and types
|
|
4707
|
-
*/
|
|
4708
|
-
for (sName in this.mBindingInfos) {
|
|
4709
|
-
oBindingInfo = this.mBindingInfos[sName];
|
|
4710
|
-
var aParts = oBindingInfo.parts;
|
|
4711
|
-
if (aParts) {
|
|
4712
|
-
// property or composite binding: visit all parts
|
|
4713
|
-
for (i = 0; i < aParts.length; i++) {
|
|
4714
|
-
if ( oBindingInfo.type && oBindingInfo.type._handleLocalizationChange ) {
|
|
4715
|
-
oBindingInfo.type._handleLocalizationChange();
|
|
4716
|
-
}
|
|
4717
|
-
}
|
|
4718
|
-
if ( oBindingInfo.modelChangeHandler ) {
|
|
4719
|
-
oBindingInfo.modelChangeHandler();
|
|
4720
|
-
}
|
|
4721
|
-
} // else: don't update list bindings
|
|
4722
|
-
// Note: the template for a list binding will be visited by the core!
|
|
4723
|
-
}
|
|
4724
|
-
|
|
4725
|
-
}
|
|
4726
|
-
};
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
4673
|
/**
|
|
4730
4674
|
* Searches and returns all aggregated objects that pass the given check function.
|
|
4731
4675
|
*
|
|
@@ -79,7 +79,7 @@ function(
|
|
|
79
79
|
*
|
|
80
80
|
*
|
|
81
81
|
* @author Frank Weigel
|
|
82
|
-
* @version 1.120.
|
|
82
|
+
* @version 1.120.1
|
|
83
83
|
* @since 0.8.6
|
|
84
84
|
* @alias sap.ui.base.ManagedObjectMetadata
|
|
85
85
|
* @extends sap.ui.base.Metadata
|
|
@@ -128,6 +128,29 @@ function(
|
|
|
128
128
|
return result;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Validates the given default class against its aggregation type.
|
|
133
|
+
*/
|
|
134
|
+
function validateDefaultClass(oAggregation, oOriginalAggregationInfo, fnClass) {
|
|
135
|
+
const fnDefaultClass = oOriginalAggregationInfo.defaultClass;
|
|
136
|
+
|
|
137
|
+
// we check if:
|
|
138
|
+
// 1. the defaultClass matches the aggregation type
|
|
139
|
+
// 2. the defaultClass matches the altTypes ('object' must not be included)
|
|
140
|
+
// 3. the defaultClass defined with a nullish value
|
|
141
|
+
if (fnDefaultClass) {
|
|
142
|
+
if (!BaseObject.isObjectA(fnDefaultClass.prototype, oAggregation.type)) {
|
|
143
|
+
throw new TypeError(`The 'defaultClass' of the aggregation '${oAggregation.name}' in '${fnClass.getName()}' is not of type '${oAggregation.type}'.`);
|
|
144
|
+
} else if (oAggregation.altTypes?.includes("object")) {
|
|
145
|
+
throw new TypeError(`The aggregation '${oAggregation.name}' in '${fnClass.getName()}' must not defined a 'defaultClass' together with the altType 'object'.`);
|
|
146
|
+
}
|
|
147
|
+
} else if (oOriginalAggregationInfo.hasOwnProperty("defaultClass")) {
|
|
148
|
+
throw new TypeError(`The 'defaultClass' of the aggregation '${oAggregation.name}' in '${fnClass.getName()}' is defined with a nullish value (${fnDefaultClass}).`);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return fnDefaultClass;
|
|
152
|
+
}
|
|
153
|
+
|
|
131
154
|
var Kind = {
|
|
132
155
|
SPECIAL_SETTING : -1, PROPERTY : 0, SINGLE_AGGREGATION : 1, MULTIPLE_AGGREGATION : 2, SINGLE_ASSOCIATION : 3, MULTIPLE_ASSOCIATION : 4, EVENT : 5
|
|
133
156
|
};
|
|
@@ -259,6 +282,7 @@ function(
|
|
|
259
282
|
this.name = name;
|
|
260
283
|
this.type = info.type || 'sap.ui.core.Control';
|
|
261
284
|
this.altTypes = Array.isArray(info.altTypes) ? info.altTypes : undefined;
|
|
285
|
+
this.defaultClass = validateDefaultClass(this, info, oClass) || null;
|
|
262
286
|
this.multiple = typeof info.multiple === 'boolean' ? info.multiple : true;
|
|
263
287
|
this.singularName = this.multiple ? info.singularName || guessSingularName(name) : undefined;
|
|
264
288
|
this.bindable = !!info.bindable;
|
|
@@ -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.1
|
|
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.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>The SAPUI5 Core Runtime.
|
|
12
12
|
|
|
@@ -30,7 +30,8 @@ sap.ui.define([
|
|
|
30
30
|
'sap/ui/core/_UrlResolver',
|
|
31
31
|
'sap/ui/VersionInfo',
|
|
32
32
|
'sap/ui/core/mvc/ViewType',
|
|
33
|
-
'sap/ui/core/Configuration'
|
|
33
|
+
'sap/ui/core/Configuration',
|
|
34
|
+
'sap/ui/core/util/_LocalizationHelper'
|
|
34
35
|
], function(
|
|
35
36
|
Manifest,
|
|
36
37
|
ComponentMetadata,
|
|
@@ -56,7 +57,8 @@ sap.ui.define([
|
|
|
56
57
|
_UrlResolver,
|
|
57
58
|
VersionInfo,
|
|
58
59
|
ViewType,
|
|
59
|
-
Configuration
|
|
60
|
+
Configuration,
|
|
61
|
+
_LocalizationHelper
|
|
60
62
|
) {
|
|
61
63
|
"use strict";
|
|
62
64
|
|
|
@@ -234,7 +236,7 @@ sap.ui.define([
|
|
|
234
236
|
* @extends sap.ui.base.ManagedObject
|
|
235
237
|
* @abstract
|
|
236
238
|
* @author SAP SE
|
|
237
|
-
* @version 1.120.
|
|
239
|
+
* @version 1.120.1
|
|
238
240
|
* @alias sap.ui.core.Component
|
|
239
241
|
* @since 1.9.2
|
|
240
242
|
*/
|
|
@@ -473,7 +475,7 @@ sap.ui.define([
|
|
|
473
475
|
}
|
|
474
476
|
|
|
475
477
|
if (sComponentId) {
|
|
476
|
-
oComponent = Component.
|
|
478
|
+
oComponent = Component.getComponentById(sComponentId);
|
|
477
479
|
}
|
|
478
480
|
|
|
479
481
|
if (oComponent) {
|
|
@@ -744,7 +746,7 @@ sap.ui.define([
|
|
|
744
746
|
* @since 1.25.1
|
|
745
747
|
*/
|
|
746
748
|
Component.getOwnerComponentFor = function(oObject) {
|
|
747
|
-
return Component.
|
|
749
|
+
return Component.getComponentById(Component.getOwnerIdFor(oObject));
|
|
748
750
|
};
|
|
749
751
|
|
|
750
752
|
/**
|
|
@@ -2531,7 +2533,7 @@ sap.ui.define([
|
|
|
2531
2533
|
"Use 'Component.get' instead", "sap.ui.component", null, fnLogProperties.bind(null, vConfig));
|
|
2532
2534
|
// when only a string is given, then this function behaves like a
|
|
2533
2535
|
// getter and returns an existing component instance
|
|
2534
|
-
return Component.
|
|
2536
|
+
return Component.getComponentById(vConfig);
|
|
2535
2537
|
}
|
|
2536
2538
|
|
|
2537
2539
|
if (vConfig.async) {
|
|
@@ -2624,7 +2626,7 @@ sap.ui.define([
|
|
|
2624
2626
|
* Part of the old sap.ui.component implementation than can be re-used by the new factory
|
|
2625
2627
|
*/
|
|
2626
2628
|
function componentFactory(vConfig, bLegacy) {
|
|
2627
|
-
var oOwnerComponent = Component.
|
|
2629
|
+
var oOwnerComponent = Component.getComponentById(ManagedObject._sOwnerId);
|
|
2628
2630
|
|
|
2629
2631
|
if (Array.isArray(vConfig.activeTerminologies) && vConfig.activeTerminologies.length &&
|
|
2630
2632
|
Array.isArray(Localization.getActiveTerminologies()) && Localization.getActiveTerminologies().length) {
|
|
@@ -2869,9 +2871,24 @@ sap.ui.define([
|
|
|
2869
2871
|
* @since 1.56.0
|
|
2870
2872
|
* @static
|
|
2871
2873
|
* @public
|
|
2874
|
+
* @deprecated As of version 1.120, please use the static {@link sap.ui.core.Component.getComponentById getComponentById} instead.
|
|
2872
2875
|
*/
|
|
2873
2876
|
Component.get = function (sId) {
|
|
2874
2877
|
// lookup and return the component
|
|
2878
|
+
return Component.getComponentById(sId);
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Returns an existing component instance, identified by its ID.
|
|
2883
|
+
*
|
|
2884
|
+
* @param {string} sId ID of the component.
|
|
2885
|
+
* @returns {sap.ui.core.Component|undefined} Component instance or <code>undefined</code> when no component
|
|
2886
|
+
* with the given ID exists.
|
|
2887
|
+
* @since 1.120
|
|
2888
|
+
* @static
|
|
2889
|
+
* @public
|
|
2890
|
+
*/
|
|
2891
|
+
Component.getComponentById = function(sId) {
|
|
2875
2892
|
return Component.registry.get(sId);
|
|
2876
2893
|
};
|
|
2877
2894
|
|
|
@@ -3029,7 +3046,7 @@ sap.ui.define([
|
|
|
3029
3046
|
// determine the semantic of the manifest property
|
|
3030
3047
|
bManifestFirst = !!vManifest;
|
|
3031
3048
|
sManifestUrl = vManifest && typeof vManifest === 'string' ? vManifest : undefined;
|
|
3032
|
-
oManifest = vManifest && typeof vManifest === 'object' ? createSanitizedManifest(vManifest, {url: oConfig && oConfig.altManifestUrl, activeTerminologies: aActiveTerminologies}) : undefined;
|
|
3049
|
+
oManifest = vManifest && typeof vManifest === 'object' ? createSanitizedManifest(vManifest, {url: oConfig && oConfig.altManifestUrl, activeTerminologies: aActiveTerminologies, process: !oConfig.async}) : undefined;
|
|
3033
3050
|
}
|
|
3034
3051
|
|
|
3035
3052
|
// if we find a manifest URL in the configuration
|
|
@@ -4091,5 +4108,7 @@ sap.ui.define([
|
|
|
4091
4108
|
* @protected
|
|
4092
4109
|
*/
|
|
4093
4110
|
|
|
4111
|
+
_LocalizationHelper.registerForUpdate("Components", Component.registry.all);
|
|
4112
|
+
|
|
4094
4113
|
return Component;
|
|
4095
4114
|
});
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* See also {@link module:sap/ui/core/ComponentSupport}.
|
|
62
62
|
*
|
|
63
63
|
* @extends sap.ui.core.Control
|
|
64
|
-
* @version 1.120.
|
|
64
|
+
* @version 1.120.1
|
|
65
65
|
*
|
|
66
66
|
* @public
|
|
67
67
|
* @alias sap.ui.core.ComponentContainer
|
|
@@ -219,7 +219,7 @@ sap.ui.define([
|
|
|
219
219
|
*/
|
|
220
220
|
function setContainerComponent(oComponentContainer, vComponent, bSuppressInvalidate, bDestroyOldComponent) {
|
|
221
221
|
// find the reference to the current component and to the old component
|
|
222
|
-
var oComponent = typeof vComponent === "string" ? Component.
|
|
222
|
+
var oComponent = typeof vComponent === "string" ? Component.getComponentById(vComponent) : vComponent;
|
|
223
223
|
var oOldComponent = oComponentContainer.getComponentInstance();
|
|
224
224
|
// if there is no difference between the old and the new component just skip this setter
|
|
225
225
|
if (oOldComponent !== oComponent) {
|
|
@@ -251,7 +251,7 @@ sap.ui.define([
|
|
|
251
251
|
*/
|
|
252
252
|
ComponentContainer.prototype.getComponentInstance = function () {
|
|
253
253
|
var sComponentId = this.getComponent();
|
|
254
|
-
return sComponentId && Component.
|
|
254
|
+
return sComponentId && Component.getComponentById(sComponentId);
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
// Delegate registered by the ComponentContainer#showPlaceholder function
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
) {
|
|
42
42
|
"use strict";
|
|
43
43
|
|
|
44
|
-
var oVersion = new Version("1.120.
|
|
44
|
+
var oVersion = new Version("1.120.1");
|
|
45
45
|
var oFormatSettings;
|
|
46
46
|
|
|
47
47
|
// Lazy dependency to core
|
|
@@ -223,8 +223,7 @@ sap.ui.define([
|
|
|
223
223
|
* bindings in existing Elements, Controls, UIAreas or Components</li>
|
|
224
224
|
* <li>ResourceModels currently assigned to the Core, a UIArea, Component,
|
|
225
225
|
* Element or Control</li>
|
|
226
|
-
* <li>Elements or Controls that implement the <code>
|
|
227
|
-
* (note the lowercase 'l' in onlocalizationChanged)</li>
|
|
226
|
+
* <li>Elements or Controls that implement the <code>onLocalizationChanged</code> hook</li>
|
|
228
227
|
* </ul>
|
|
229
228
|
*
|
|
230
229
|
* It furthermore derives the RTL mode from the new language, if no explicit RTL
|
|
@@ -1061,8 +1060,8 @@ sap.ui.define([
|
|
|
1061
1060
|
* @borrows module:sap/base/i18n/Formatting.getLegacyDateFormat as #getLegacyDateFormat
|
|
1062
1061
|
* @borrows module:sap/base/i18n/Formatting.getLegacyTimeFormat as #getLegacyTimeFormat
|
|
1063
1062
|
* @borrows module:sap/base/i18n/Formatting.getLegacyNumberFormat as #getLegacyNumberFormat
|
|
1064
|
-
* @borrows module:sap/base/i18n/Formatting.
|
|
1065
|
-
* @borrows module:sap/base/i18n/Formatting.
|
|
1063
|
+
* @borrows module:sap/base/i18n/Formatting.getCustomIslamicCalendarData as #getLegacyDateCalendarCustomizing
|
|
1064
|
+
* @borrows module:sap/base/i18n/Formatting.setCustomIslamicCalendarData as #setLegacyDateCalendarCustomizing
|
|
1066
1065
|
* @borrows module:sap/base/i18n/Formatting.getTrailingCurrencyCode as #getTrailingCurrencyCode
|
|
1067
1066
|
* @borrows module:sap/base/i18n/Formatting.setTrailingCurrencyCode as #setTrailingCurrencyCode
|
|
1068
1067
|
* @borrows module:sap/base/i18n/Formatting.getCustomLocaleData as #getCustomLocaleData
|
|
@@ -1314,11 +1313,11 @@ sap.ui.define([
|
|
|
1314
1313
|
},
|
|
1315
1314
|
|
|
1316
1315
|
setLegacyDateCalendarCustomizing : function() {
|
|
1317
|
-
Formatting.
|
|
1316
|
+
Formatting.setCustomIslamicCalendarData.apply(Formatting, arguments);
|
|
1318
1317
|
return this;
|
|
1319
1318
|
},
|
|
1320
1319
|
|
|
1321
|
-
getLegacyDateCalendarCustomizing : Formatting.
|
|
1320
|
+
getLegacyDateCalendarCustomizing : Formatting.getCustomIslamicCalendarData,
|
|
1322
1321
|
|
|
1323
1322
|
setTrailingCurrencyCode : function() {
|
|
1324
1323
|
Formatting.setTrailingCurrencyCode.apply(Formatting, arguments);
|
|
@@ -1350,6 +1349,9 @@ sap.ui.define([
|
|
|
1350
1349
|
if (["ABAPDateFormat", "ABAPTimeFormat", "ABAPNumberFormat"].includes(sName)) {
|
|
1351
1350
|
mParameters[sName.replace("ABAP", "legacy")] = mParameters[sName];
|
|
1352
1351
|
delete mParameters[sName];
|
|
1352
|
+
} else if (sName === 'customIslamicCalendarData') {
|
|
1353
|
+
mParameters['legacyDateCalendarCustomizing'] = mParameters[sName];
|
|
1354
|
+
delete mParameters[sName];
|
|
1353
1355
|
}
|
|
1354
1356
|
});
|
|
1355
1357
|
if (!mChanges && Core) {
|
|
@@ -81,7 +81,7 @@ sap.ui.define([
|
|
|
81
81
|
* @extends sap.ui.core.Element
|
|
82
82
|
* @abstract
|
|
83
83
|
* @author SAP SE
|
|
84
|
-
* @version 1.120.
|
|
84
|
+
* @version 1.120.1
|
|
85
85
|
* @alias sap.ui.core.Control
|
|
86
86
|
*/
|
|
87
87
|
var Control = Element.extend("sap.ui.core.Control", /** @lends sap.ui.core.Control.prototype */ {
|
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -25,7 +25,6 @@ sap.ui.define([
|
|
|
25
25
|
"sap/base/Event",
|
|
26
26
|
"sap/base/Log",
|
|
27
27
|
"sap/base/util/Deferred",
|
|
28
|
-
"sap/base/util/each",
|
|
29
28
|
"sap/base/util/isEmptyObject",
|
|
30
29
|
"sap/base/util/ObjectPath",
|
|
31
30
|
"sap/base/util/Version",
|
|
@@ -37,6 +36,7 @@ sap.ui.define([
|
|
|
37
36
|
"sap/ui/base/Object",
|
|
38
37
|
"sap/ui/base/syncXHRFix",
|
|
39
38
|
"sap/ui/core/support/Hotkeys",
|
|
39
|
+
"sap/ui/core/util/_LocalizationHelper",
|
|
40
40
|
"sap/ui/dom/getComputedStyleFix",
|
|
41
41
|
"sap/ui/performance/Measurement",
|
|
42
42
|
"sap/ui/performance/trace/initTraces",
|
|
@@ -70,7 +70,6 @@ sap.ui.define([
|
|
|
70
70
|
BaseEvent,
|
|
71
71
|
Log,
|
|
72
72
|
Deferred,
|
|
73
|
-
each,
|
|
74
73
|
isEmptyObject,
|
|
75
74
|
ObjectPath,
|
|
76
75
|
Version,
|
|
@@ -82,6 +81,7 @@ sap.ui.define([
|
|
|
82
81
|
BaseObject,
|
|
83
82
|
syncXHRFix,
|
|
84
83
|
Hotkeys,
|
|
84
|
+
_LocalizationHelper,
|
|
85
85
|
getComputedStyleFix,
|
|
86
86
|
Measurement,
|
|
87
87
|
initTraces,
|
|
@@ -358,7 +358,7 @@ sap.ui.define([
|
|
|
358
358
|
* @extends sap.ui.base.Object
|
|
359
359
|
* @final
|
|
360
360
|
* @author SAP SE
|
|
361
|
-
* @version 1.120.
|
|
361
|
+
* @version 1.120.1
|
|
362
362
|
* @alias sap.ui.core.Core
|
|
363
363
|
* @public
|
|
364
364
|
* @hideconstructor
|
|
@@ -620,7 +620,14 @@ sap.ui.define([
|
|
|
620
620
|
|
|
621
621
|
Log.info("Declared libraries: " + this.aLibs, METHOD);
|
|
622
622
|
|
|
623
|
-
|
|
623
|
+
_LocalizationHelper.init();
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* @deprecated As of Version 1.120
|
|
627
|
+
*/
|
|
628
|
+
_LocalizationHelper.registerForUpdate("Core", () => {
|
|
629
|
+
return {"Core": this};
|
|
630
|
+
});
|
|
624
631
|
|
|
625
632
|
this._setupBrowser();
|
|
626
633
|
|
|
@@ -630,6 +637,7 @@ sap.ui.define([
|
|
|
630
637
|
|
|
631
638
|
this._setupAnimation();
|
|
632
639
|
|
|
640
|
+
|
|
633
641
|
// create accessor to the Core API early so that initLibrary and others can use it
|
|
634
642
|
/**
|
|
635
643
|
* Retrieve the {@link sap.ui.core.Core SAPUI5 Core} instance for the current window.
|
|
@@ -919,18 +927,6 @@ sap.ui.define([
|
|
|
919
927
|
};
|
|
920
928
|
};
|
|
921
929
|
|
|
922
|
-
/**
|
|
923
|
-
* Set the document's dir property
|
|
924
|
-
* @private
|
|
925
|
-
*/
|
|
926
|
-
Core.prototype._setupContentDirection = function() {
|
|
927
|
-
var METHOD = "sap.ui.core.Core",
|
|
928
|
-
sDir = Configuration.getRTL() ? "rtl" : "ltr";
|
|
929
|
-
|
|
930
|
-
document.documentElement.setAttribute("dir", sDir); // webkit does not allow setting document.dir before the body exists
|
|
931
|
-
Log.info("Content direction set to '" + sDir + "'",null,METHOD);
|
|
932
|
-
};
|
|
933
|
-
|
|
934
930
|
/**
|
|
935
931
|
* Set the body's browser-related attributes.
|
|
936
932
|
* @private
|
|
@@ -2198,61 +2194,11 @@ sap.ui.define([
|
|
|
2198
2194
|
|
|
2199
2195
|
/**
|
|
2200
2196
|
* @private
|
|
2197
|
+
* @deprecated As of Version 1.120
|
|
2201
2198
|
*/
|
|
2202
2199
|
Core.prototype.fireLocalizationChanged = function(mChanges) {
|
|
2203
|
-
var sEventId = Core.M_EVENTS.LocalizationChanged,
|
|
2204
|
-
oBrowserEvent = jQuery.Event(sEventId, {changes : mChanges}),
|
|
2205
|
-
fnAdapt = ManagedObject._handleLocalizationChange;
|
|
2206
|
-
|
|
2207
|
-
Log.info("localization settings changed: " + Object.keys(mChanges).join(","), null, "sap.ui.core.Core");
|
|
2208
|
-
|
|
2209
|
-
/*
|
|
2210
|
-
* Notify models that are able to handle a localization change
|
|
2211
|
-
*/
|
|
2212
|
-
each(this.oModels, function (prop, oModel) {
|
|
2213
|
-
if (oModel && oModel._handleLocalizationChange) {
|
|
2214
|
-
oModel._handleLocalizationChange();
|
|
2215
|
-
}
|
|
2216
|
-
});
|
|
2217
|
-
|
|
2218
|
-
/*
|
|
2219
|
-
* Notify all UIAreas, Components, Elements to first update their models (phase 1)
|
|
2220
|
-
* and then to update their bindings and corresponding data types (phase 2)
|
|
2221
|
-
*/
|
|
2222
|
-
function notifyAll(iPhase) {
|
|
2223
|
-
UIArea.registry.forEach(function(oUIArea) {
|
|
2224
|
-
fnAdapt.call(oUIArea, iPhase);
|
|
2225
|
-
});
|
|
2226
|
-
Component.registry.forEach(function(oComponent) {
|
|
2227
|
-
fnAdapt.call(oComponent, iPhase);
|
|
2228
|
-
});
|
|
2229
|
-
Element.registry.forEach(function(oElement) {
|
|
2230
|
-
fnAdapt.call(oElement, iPhase);
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
notifyAll.call(this,1);
|
|
2235
|
-
notifyAll.call(this,2);
|
|
2236
|
-
|
|
2237
|
-
// special handling for changes of the RTL mode
|
|
2238
|
-
if ( mChanges.rtl != undefined ) {
|
|
2239
|
-
// update the dir attribute of the document
|
|
2240
|
-
document.documentElement.setAttribute("dir", mChanges.rtl ? "rtl" : "ltr");
|
|
2241
|
-
|
|
2242
|
-
// invalidate all UIAreas
|
|
2243
|
-
UIArea.registry.forEach(function(oUIArea) {
|
|
2244
|
-
oUIArea.invalidate();
|
|
2245
|
-
});
|
|
2246
|
-
Log.info("RTL mode " + mChanges.rtl ? "activated" : "deactivated");
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
// notify Elements via a pseudo browser event (onlocalizationChanged, note the lower case 'l')
|
|
2250
|
-
Element.registry.forEach(function(oElement) {
|
|
2251
|
-
oElement._handleEvent(oBrowserEvent);
|
|
2252
|
-
});
|
|
2253
|
-
|
|
2254
2200
|
// notify registered Core listeners
|
|
2255
|
-
_oEventProvider.fireEvent(
|
|
2201
|
+
_oEventProvider.fireEvent(Core.M_EVENTS.LocalizationChanged, {changes : mChanges});
|
|
2256
2202
|
};
|
|
2257
2203
|
|
|
2258
2204
|
/**
|