@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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/Event",
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/base/i18n/Formatting",
|
|
11
|
+
"sap/base/i18n/Localization",
|
|
12
|
+
"sap/ui/thirdparty/jquery"
|
|
13
|
+
], (
|
|
14
|
+
BaseEvent,
|
|
15
|
+
Log,
|
|
16
|
+
Formatting,
|
|
17
|
+
Localization,
|
|
18
|
+
jQuery
|
|
19
|
+
) => {
|
|
20
|
+
'use strict';
|
|
21
|
+
|
|
22
|
+
const mRegistry = {};
|
|
23
|
+
|
|
24
|
+
function getObjectsToUpdate() {
|
|
25
|
+
let aObjectsToUpdate = [];
|
|
26
|
+
for (const fnGetObjects of Object.values(mRegistry)) {
|
|
27
|
+
aObjectsToUpdate = [...aObjectsToUpdate, ...Object.values(fnGetObjects())];
|
|
28
|
+
}
|
|
29
|
+
return aObjectsToUpdate;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function handleLocalizationChange(oEvent) {
|
|
33
|
+
let sEventId = "LocalizationChanged";
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated As of Version 1.120
|
|
36
|
+
*/
|
|
37
|
+
sEventId = "localizationChanged";
|
|
38
|
+
|
|
39
|
+
const mChanges = BaseEvent.getParameters(oEvent),
|
|
40
|
+
oBrowserEvent = jQuery.Event(sEventId, {changes : mChanges}),
|
|
41
|
+
aObjectsToUpdate = getObjectsToUpdate(),
|
|
42
|
+
bRTLChanged = mChanges.rtl !== undefined;
|
|
43
|
+
|
|
44
|
+
Log.info("localization settings changed: " + Object.keys(mChanges).join(","), null, "sap/ui/core/util/LocalizationHelper");
|
|
45
|
+
|
|
46
|
+
// special handling for changes of the RTL mode
|
|
47
|
+
if (bRTLChanged) {
|
|
48
|
+
// update the dir attribute of the document
|
|
49
|
+
document.documentElement.setAttribute("dir", mChanges.rtl ? "rtl" : "ltr");
|
|
50
|
+
Log.info("RTL mode " + mChanges.rtl ? "activated" : "deactivated");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* phase 1: update the models
|
|
55
|
+
*/
|
|
56
|
+
for (const oObject of aObjectsToUpdate) {
|
|
57
|
+
for (const sName in oObject.oModels) {
|
|
58
|
+
const oModel = oObject.oModels[sName];
|
|
59
|
+
oModel?._handleLocalizationChange?.();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* phase 2: update bindings and types
|
|
65
|
+
*/
|
|
66
|
+
for (const oObject of aObjectsToUpdate) {
|
|
67
|
+
for (const sName in oObject.mBindingInfos) {
|
|
68
|
+
const oBindingInfo = oObject.mBindingInfos[sName];
|
|
69
|
+
const aParts = oBindingInfo.parts;
|
|
70
|
+
if (aParts) {
|
|
71
|
+
// property or composite binding: visit all parts
|
|
72
|
+
for (let i = 0; i < aParts.length; i++) {
|
|
73
|
+
oBindingInfo.type?._handleLocalizationChange?.();
|
|
74
|
+
}
|
|
75
|
+
oBindingInfo.modelChangeHandler?.();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// invalidate all UIAreas if RTL changed
|
|
79
|
+
if (bRTLChanged && oObject.isA("sap.ui.core.UIArea")) {
|
|
80
|
+
oObject.invalidate();
|
|
81
|
+
}
|
|
82
|
+
// notify Elements via a pseudo browser event (onLocalizationChanged)
|
|
83
|
+
if (oObject.isA("sap.ui.core.Element")) {
|
|
84
|
+
oObject._handleEvent(oBrowserEvent);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
Formatting.attachChange(handleLocalizationChange);
|
|
90
|
+
Localization.attachChange(handleLocalizationChange);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Update all localization dependent objects that this managed object can reach,
|
|
94
|
+
* except for its aggregated children (which will be updated by the Core).
|
|
95
|
+
*
|
|
96
|
+
* To make the update work as smooth as possible, it happens in two phases:
|
|
97
|
+
* <ol>
|
|
98
|
+
* <li>In phase 1 all known models are updated.</li>
|
|
99
|
+
* <li>In phase 2 all bindings are updated.</li>
|
|
100
|
+
* </ol>
|
|
101
|
+
* This separation is necessary as the models for the bindings might be updated
|
|
102
|
+
* in some ManagedObject or in the Core and the order in which the objects are visited
|
|
103
|
+
* is not defined.
|
|
104
|
+
*
|
|
105
|
+
* @private
|
|
106
|
+
* @ui5-restricted sap.ui.core
|
|
107
|
+
*/
|
|
108
|
+
const _LocalizationHelper = {
|
|
109
|
+
init() {
|
|
110
|
+
const sDir = Localization.getRTL() ? "rtl" : "ltr";
|
|
111
|
+
|
|
112
|
+
// Set the document's dir property
|
|
113
|
+
document.documentElement.setAttribute("dir", sDir); // webkit does not allow setting document.dir before the body exists
|
|
114
|
+
Log.info("Content direction set to '" + sDir + "'", null, "sap/ui/core/util/_LocalizationHelper");
|
|
115
|
+
},
|
|
116
|
+
registerForUpdate(sType, fnGetObjects) {
|
|
117
|
+
mRegistry[sType] = fnGetObjects;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return _LocalizationHelper;
|
|
122
|
+
});
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/EventProvider', './Serializer', './delegate/HTML', '
|
|
|
20
20
|
* @class HTMLViewSerializer class.
|
|
21
21
|
* @extends sap.ui.base.EventProvider
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.120.
|
|
23
|
+
* @version 1.120.1
|
|
24
24
|
* @alias sap.ui.core.util.serializer.HTMLViewSerializer
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/base/EventProvider', "sap/base/assert"],
|
|
|
21
21
|
* @class Serializer class.
|
|
22
22
|
* @extends sap.ui.base.EventProvider
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.1
|
|
25
25
|
* @alias sap.ui.core.util.serializer.Serializer
|
|
26
26
|
* @private
|
|
27
27
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/base/EventProvider', './HTMLViewSerializer', './XMLViewSe
|
|
|
21
21
|
* @class ViewSerializer class.
|
|
22
22
|
* @extends sap.ui.base.EventProvider
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.1
|
|
25
25
|
* @alias sap.ui.core.util.serializer.ViewSerializer
|
|
26
26
|
* @private
|
|
27
27
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/EventProvider', './Serializer', './delegate/XML', 's
|
|
|
20
20
|
* @class XMLViewSerializer class.
|
|
21
21
|
* @extends sap.ui.base.EventProvider
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.120.
|
|
23
|
+
* @version 1.120.1
|
|
24
24
|
* @alias sap.ui.core.util.serializer.XMLViewSerializer
|
|
25
25
|
* @private
|
|
26
26
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/base/EventProvider'],
|
|
|
17
17
|
* @class Abstract serializer delegate class.
|
|
18
18
|
* @extends sap.ui.base.EventProvider
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.120.
|
|
20
|
+
* @version 1.120.1
|
|
21
21
|
* @alias sap.ui.core.util.serializer.delegate.Delegate
|
|
22
22
|
* @private
|
|
23
23
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Delegate', "sap/base/strings/hyphenate", "sap/base/util/deepEq
|
|
|
19
19
|
* @class HTML serializer delegate class.
|
|
20
20
|
* @extends sap.ui.core.util.serializer.delegate.Delegate
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.120.
|
|
22
|
+
* @version 1.120.1
|
|
23
23
|
* @alias sap.ui.core.util.serializer.delegate.HTML
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class XML serializer delegate class.
|
|
25
25
|
* @extends sap.ui.core.util.serializer.delegate.Delegate
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.120.
|
|
27
|
+
* @version 1.120.1
|
|
28
28
|
* @alias sap.ui.core.util.serializer.delegate.XML
|
|
29
29
|
* @private
|
|
30
30
|
* @ui5-restricted sap.watt, com.sap.webide
|
|
@@ -23,7 +23,7 @@ function(ElementMetadata, WebComponentRenderer, camelize) {
|
|
|
23
23
|
*
|
|
24
24
|
* @class
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.120.
|
|
26
|
+
* @version 1.120.1
|
|
27
27
|
* @since 1.118.0
|
|
28
28
|
* @experimental Since 1.118.0 The API might change. It is not intended for productive usage yet!
|
|
29
29
|
* @alias sap.ui.core.webc.WebComponentMetadata
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./WebSocket', "sap/base/Log"],
|
|
|
21
21
|
* @class WebSocket class implementing the pcp-protocol.
|
|
22
22
|
* @extends sap.ui.core.ws.WebSocket
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.1
|
|
25
25
|
* @alias sap.ui.core.ws.SapPcpWebSocket
|
|
26
26
|
*/
|
|
27
27
|
var SapPcpWebSocket = WebSocket.extend("sap.ui.core.ws.SapPcpWebSocket", /** @lends sap.ui.core.ws.SapPcpWebSocket.prototype */ {
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class Basic WebSocket class.
|
|
26
26
|
* @extends sap.ui.base.EventProvider
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.120.
|
|
28
|
+
* @version 1.120.1
|
|
29
29
|
* @alias sap.ui.core.ws.WebSocket
|
|
30
30
|
*/
|
|
31
31
|
var WebSocket = EventProvider.extend("sap.ui.core.ws.WebSocket", /** @lends sap.ui.core.ws.WebSocket.prototype */ {
|
|
@@ -34,7 +34,7 @@ sap.ui.define('sap/ui/debug/ControlTree', [
|
|
|
34
34
|
* @class Control Tree used for the Debug Environment
|
|
35
35
|
* @extends sap.ui.base.EventProvider
|
|
36
36
|
* @author Martin Schaus, Frank Weigel
|
|
37
|
-
* @version 1.120.
|
|
37
|
+
* @version 1.120.1
|
|
38
38
|
* @alias sap.ui.debug.ControlTree
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
@@ -37,7 +37,7 @@ sap.ui.define('sap/ui/debug/DebugEnv', [
|
|
|
37
37
|
* @class Central Class for the Debug Environment
|
|
38
38
|
*
|
|
39
39
|
* @author Martin Schaus, Frank Weigel
|
|
40
|
-
* @version 1.120.
|
|
40
|
+
* @version 1.120.1
|
|
41
41
|
* @private
|
|
42
42
|
* @alias sap.ui.debug.DebugEnv
|
|
43
43
|
* @deprecated As of Version 1.120
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
ListBinding.apply(this, arguments);
|
|
48
48
|
|
|
49
49
|
this.mNormalizeCache = {};
|
|
50
|
-
this.oModel.
|
|
50
|
+
this.oModel.checkFilter(this.aApplicationFilters);
|
|
51
51
|
this.oCombinedFilter = FilterProcessor.combineFilters(this.aFilters, this.aApplicationFilters);
|
|
52
52
|
this.bIgnoreSuspend = false;
|
|
53
53
|
// the serialized context data for the contexts returned by the last call of getContexts
|
|
@@ -324,11 +324,14 @@ sap.ui.define([
|
|
|
324
324
|
* be adjusted; if no type is given, then any previously configured application filters are
|
|
325
325
|
* cleared and the given filters are used as control filters
|
|
326
326
|
* @returns {this} returns <code>this</code> to facilitate method chaining
|
|
327
|
-
* @throws {Error}
|
|
327
|
+
* @throws {Error} If one of the filters uses an operator that is not supported by the underlying model
|
|
328
|
+
* implementation or if the {@link sap.ui.model.Filter.NONE} filter instance is contained in
|
|
329
|
+
* <code>aFilters</code> together with other filters
|
|
330
|
+
*
|
|
328
331
|
* @public
|
|
329
332
|
*/
|
|
330
333
|
ClientListBinding.prototype.filter = function(aFilters, sFilterType){
|
|
331
|
-
this.oModel.
|
|
334
|
+
this.oModel.checkFilter(aFilters);
|
|
332
335
|
|
|
333
336
|
if (this.bSuspended) {
|
|
334
337
|
this.checkUpdate(true);
|
|
@@ -60,7 +60,7 @@ sap.ui.define([
|
|
|
60
60
|
this.mNormalizeCache = {};
|
|
61
61
|
|
|
62
62
|
if (aApplicationFilters) {
|
|
63
|
-
this.oModel.
|
|
63
|
+
this.oModel.checkFilter(aApplicationFilters);
|
|
64
64
|
|
|
65
65
|
if (this.oModel._getObject(this.sPath, this.oContext)) {
|
|
66
66
|
this.filter(aApplicationFilters, FilterType.Application);
|
|
@@ -269,7 +269,10 @@ sap.ui.define([
|
|
|
269
269
|
* is given, any previously configured application filters are cleared, and the given filters
|
|
270
270
|
* are used as control filters
|
|
271
271
|
* @return {this} <code>this</code> to facilitate method chaining
|
|
272
|
-
* @throws {Error}
|
|
272
|
+
* @throws {Error} If one of the filters uses an operator that is not supported by the underlying model
|
|
273
|
+
* implementation or if the {@link sap.ui.model.Filter.NONE} filter instance is contained in
|
|
274
|
+
* <code>aFilters</code> together with other filters
|
|
275
|
+
*
|
|
273
276
|
* @public
|
|
274
277
|
*/
|
|
275
278
|
ClientTreeBinding.prototype.filter = function(aFilters, sFilterType){
|
|
@@ -281,7 +284,7 @@ sap.ui.define([
|
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
// check filter integrity
|
|
284
|
-
this.oModel.
|
|
287
|
+
this.oModel.checkFilter(aFilters);
|
|
285
288
|
|
|
286
289
|
if (sFilterType == FilterType.Application) {
|
|
287
290
|
this.aApplicationFilters = aFilters || [];
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['./SimpleType'],
|
|
|
39
39
|
* <code>true</code>.
|
|
40
40
|
* @extends sap.ui.model.SimpleType
|
|
41
41
|
* @public
|
|
42
|
-
* @version 1.120.
|
|
42
|
+
* @version 1.120.1
|
|
43
43
|
*/
|
|
44
44
|
var CompositeType = SimpleType.extend("sap.ui.model.CompositeType", /** @lends sap.ui.model.CompositeType.prototype */ {
|
|
45
45
|
|
|
@@ -23,8 +23,11 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
23
23
|
* Groups filters according to their path and combines filters on the same path using "OR" and filters on
|
|
24
24
|
* different paths using "AND", all multi-filters contained are ANDed.
|
|
25
25
|
*
|
|
26
|
-
* @param {sap.ui.model.Filter[]} aFilters
|
|
27
|
-
* @return {sap.ui.model.Filter}
|
|
26
|
+
* @param {sap.ui.model.Filter[]} [aFilters] The filters to be grouped
|
|
27
|
+
* @return {sap.ui.model.Filter|undefined} A single filter containing all filters of the array combined or
|
|
28
|
+
* <code>undefined</code> if no filters are given
|
|
29
|
+
* @throws {Error} If the {@link sap.ui.model.Filter.NONE} is contained in <code>aFilters</code> together
|
|
30
|
+
* with other filters
|
|
28
31
|
* @public
|
|
29
32
|
* @since 1.71
|
|
30
33
|
* @static
|
|
@@ -49,11 +52,9 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
49
52
|
if (aFilters.length === 1) {
|
|
50
53
|
return aFilters[0];
|
|
51
54
|
}
|
|
55
|
+
Filter.checkFilterNone(aFilters);
|
|
52
56
|
// Collect filters on same path, make sure to keep order as before for compatibility with tests
|
|
53
|
-
|
|
54
|
-
if (oFilter === Filter.NONE) {
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
+
aFilters.forEach(function(oFilter) {
|
|
57
58
|
if (oFilter.aFilters || oFilter.sVariable) { // multi/lambda filter
|
|
58
59
|
sCurPath = "__multiFilter";
|
|
59
60
|
} else {
|
|
@@ -63,11 +64,7 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
63
64
|
mSamePath[sCurPath] = [];
|
|
64
65
|
}
|
|
65
66
|
mSamePath[sCurPath].push(oFilter);
|
|
66
|
-
|
|
67
|
-
return false;
|
|
68
|
-
})) {
|
|
69
|
-
return Filter.NONE;
|
|
70
|
-
}
|
|
67
|
+
});
|
|
71
68
|
// Create ORed multifilters for all filter groups
|
|
72
69
|
for (var sPath in mSamePath) {
|
|
73
70
|
aResult.push(getFilter(mSamePath[sPath], sPath === "__multiFilter")); // multi filters are ANDed
|
|
@@ -79,9 +76,13 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
79
76
|
/**
|
|
80
77
|
* Combines control filters and application filters using AND and returns the resulting filter
|
|
81
78
|
*
|
|
82
|
-
* @param {sap.ui.model.Filter[]} aFilters control filters
|
|
83
|
-
* @param {sap.ui.model.Filter[]} aApplicationFilters application filters
|
|
84
|
-
* @return {sap.ui.model.Filter}
|
|
79
|
+
* @param {sap.ui.model.Filter[]} [aFilters] The control filters
|
|
80
|
+
* @param {sap.ui.model.Filter[]} [aApplicationFilters] The application filters
|
|
81
|
+
* @return {sap.ui.model.Filter|undefined} A single filter containing all filters of the array combined or
|
|
82
|
+
* <code>undefined</code> if no filters are given
|
|
83
|
+
* @throws {Error} If the {@link sap.ui.model.Filter.NONE} is contained in <code>aFilters</code> or
|
|
84
|
+
* <code>aApplicationFilters</code> together with other filters; if {@link sap.ui.model.Filter.NONE} is combined
|
|
85
|
+
* with another filter, see {@link sap.ui.model.Filter}
|
|
85
86
|
* @private
|
|
86
87
|
* @since 1.58
|
|
87
88
|
* @static
|
|
@@ -91,9 +92,6 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
91
92
|
|
|
92
93
|
oGroupedFilter = this.groupFilters(aFilters);
|
|
93
94
|
oGroupedApplicationFilter = this.groupFilters(aApplicationFilters);
|
|
94
|
-
if (oGroupedFilter === Filter.NONE || oGroupedApplicationFilter === Filter.NONE) {
|
|
95
|
-
return Filter.NONE;
|
|
96
|
-
}
|
|
97
95
|
|
|
98
96
|
if (oGroupedFilter) {
|
|
99
97
|
aCombinedFilters.push(oGroupedFilter);
|
|
@@ -119,6 +117,8 @@ sap.ui.define(['./Filter', 'sap/base/Log'],
|
|
|
119
117
|
* @param {function} fnGetValue the method to get the actual value to filter on
|
|
120
118
|
* @param {object} [mNormalizeCache] cache for normalized filter values
|
|
121
119
|
* @return {array} a new array instance containing the filtered data set
|
|
120
|
+
* @throws {Error} If the {@link sap.ui.model.Filter.NONE} is contained in <code>vFilters</code> together
|
|
121
|
+
* with other filters
|
|
122
122
|
* @private
|
|
123
123
|
* @static
|
|
124
124
|
*/
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
* @extends sap.ui.core.message.MessageProcessor
|
|
52
52
|
*
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.120.
|
|
54
|
+
* @version 1.120.1
|
|
55
55
|
*
|
|
56
56
|
* @public
|
|
57
57
|
* @alias sap.ui.model.Model
|
|
@@ -1164,12 +1164,14 @@ sap.ui.define([
|
|
|
1164
1164
|
* Single filter or an array of filter instances
|
|
1165
1165
|
* @throws {Error}
|
|
1166
1166
|
* If at least one filter uses an <code>sap.ui.model.FilterOperator</code> that is not
|
|
1167
|
-
* supported by the related model instance
|
|
1167
|
+
* supported by the related model instance or if the {@link sap.ui.model.Filter.NONE} filter instance is contained
|
|
1168
|
+
* in <code>vFilters</code> together with other filters
|
|
1168
1169
|
* @private
|
|
1169
1170
|
* @ui5-restricted sap.ui.model
|
|
1170
1171
|
*/
|
|
1171
|
-
Model.prototype.
|
|
1172
|
-
|
|
1172
|
+
Model.prototype.checkFilter = function(vFilters) {
|
|
1173
|
+
Filter.checkFilterNone(vFilters);
|
|
1174
|
+
Model._traverseFilter(vFilters, function (oFilter) {
|
|
1173
1175
|
if (this.mUnsupportedFilterOperators[oFilter.sOperator]) {
|
|
1174
1176
|
throw new Error("Filter instances contain an unsupported FilterOperator: " + oFilter.sOperator);
|
|
1175
1177
|
}
|
|
@@ -1204,7 +1206,7 @@ sap.ui.define([
|
|
|
1204
1206
|
* Check function which is called for each filter instance in the tree
|
|
1205
1207
|
* @private
|
|
1206
1208
|
*/
|
|
1207
|
-
|
|
1209
|
+
Model._traverseFilter = function(vFilters, fnCheck) {
|
|
1208
1210
|
vFilters = vFilters || [];
|
|
1209
1211
|
|
|
1210
1212
|
if (vFilters instanceof Filter) {
|
|
@@ -1218,12 +1220,12 @@ sap.ui.define([
|
|
|
1218
1220
|
fnCheck(oFilter);
|
|
1219
1221
|
|
|
1220
1222
|
// check subfilter for lambda expressions (e.g. Any, All, ...)
|
|
1221
|
-
_traverseFilter(oFilter.oCondition, fnCheck);
|
|
1223
|
+
Model._traverseFilter(oFilter.oCondition, fnCheck);
|
|
1222
1224
|
|
|
1223
1225
|
// check multi filter if necessary
|
|
1224
|
-
_traverseFilter(oFilter.aFilters, fnCheck);
|
|
1226
|
+
Model._traverseFilter(oFilter.aFilters, fnCheck);
|
|
1225
1227
|
}
|
|
1226
|
-
}
|
|
1228
|
+
};
|
|
1227
1229
|
|
|
1228
1230
|
/**
|
|
1229
1231
|
* Introduces data binding support on the ManagedObject prototype via mixin.
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/EventProvider', "sap/base/assert"],
|
|
|
20
20
|
* @extends sap.ui.base.EventProvider
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.120.
|
|
23
|
+
* @version 1.120.1
|
|
24
24
|
*
|
|
25
25
|
* @param {int} iSelectionMode <code>sap.ui.model.SelectionModel.SINGLE_SELECTION</code> or <code>sap.ui.model.SelectionModel.MULTI_SELECTION</code>
|
|
26
26
|
*
|
package/src/sap/ui/model/Type.js
CHANGED
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
this.oCombinedFilter = null;
|
|
70
70
|
|
|
71
71
|
// check filter integrity
|
|
72
|
-
this.oModel.
|
|
72
|
+
this.oModel.checkFilter(this.aApplicationFilters);
|
|
73
73
|
|
|
74
74
|
// load the entity type for the collection only once and not e.g. every time when filtering
|
|
75
75
|
if (!this.oModel.getServiceMetadata()) {
|
|
@@ -873,6 +873,9 @@ sap.ui.define([
|
|
|
873
873
|
* depending on whether the filtering has been done
|
|
874
874
|
* @return {this}
|
|
875
875
|
* Returns <code>this</code> to facilitate method chaining or the success state
|
|
876
|
+
* @throws {Error} If one of the filters uses an operator that is not supported by the underlying model
|
|
877
|
+
* implementation or if the {@link sap.ui.model.Filter.NONE} filter instance is contained in
|
|
878
|
+
* <code>aFilters</code> together with other filters
|
|
876
879
|
*
|
|
877
880
|
* @public
|
|
878
881
|
*/
|
|
@@ -889,7 +892,7 @@ sap.ui.define([
|
|
|
889
892
|
}
|
|
890
893
|
|
|
891
894
|
// check filter integrity
|
|
892
|
-
this.oModel.
|
|
895
|
+
this.oModel.checkFilter(aFilters);
|
|
893
896
|
|
|
894
897
|
if (sFilterType == FilterType.Application) {
|
|
895
898
|
this.aApplicationFilters = aFilters;
|