@openui5/sap.ui.core 1.93.3 → 1.96.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +13 -2
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +1 -1
- package/src/jquery.sap.global.js +5 -2
- 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/jquery.sap.stubs.js +2 -1
- package/src/jquery.sap.trace.js +2 -1
- package/src/sap/base/i18n/ResourceBundle.js +6 -2
- package/src/sap/base/strings/whitespaceReplacer.js +52 -0
- 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 +37 -42
- package/src/sap/ui/Global.js +8 -7
- package/src/sap/ui/base/DataType.js +14 -8
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/ExpressionParser.js +9 -6
- package/src/sap/ui/base/Interface.js +3 -49
- package/src/sap/ui/base/ManagedObject.js +12 -7
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +49 -4
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/syncXHRFix.js +2 -1
- package/src/sap/ui/core/.library +5 -5
- package/src/sap/ui/core/AppCacheBuster.js +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -11
- package/src/sap/ui/core/Component.js +300 -140
- package/src/sap/ui/core/ComponentContainer.js +24 -8
- package/src/sap/ui/core/ComponentMetadata.js +14 -3
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +67 -31
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +103 -25
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/CustomizingConfiguration.js +35 -260
- package/src/sap/ui/core/DeclarativeSupport.js +3 -2
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +4 -2
- package/src/sap/ui/core/EnabledPropagator.js +91 -73
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/ExtensionPoint.js +7 -14
- package/src/sap/ui/core/Fragment.js +30 -32
- 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 +7 -8
- package/src/sap/ui/core/IconPool.js +26 -1097
- package/src/sap/ui/core/IconRenderer.js +6 -6
- 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/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +26 -4
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +4 -61
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Patcher.js +27 -3
- package/src/sap/ui/core/Placeholder.js +28 -15
- package/src/sap/ui/core/RenderManager.js +36 -6
- package/src/sap/ui/core/Renderer.js +13 -3
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +2 -2
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHintsMixin.js +14 -7
- 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 +1 -1
- package/src/sap/ui/core/UIComponent.js +42 -16
- 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 +2 -2
- package/src/sap/ui/core/XMLCompositeMetadata.js +2 -2
- package/src/sap/ui/core/XMLTemplateProcessor.js +116 -41
- package/src/sap/ui/core/_IconRegistry.js +1148 -0
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +6 -3
- 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 +2 -2
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +16 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +73 -221
- package/src/sap/ui/core/hyphenation/HyphenationTestingWords.js +11 -10
- 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 +13 -15
- 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/messagebundle_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/messagebundle_it.properties +1 -1
- package/src/sap/ui/core/messagebundle_pl.properties +1 -1
- package/src/sap/ui/core/messagebundle_th.properties +2 -2
- package/src/sap/ui/core/mvc/Controller.js +38 -19
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +30 -32
- package/src/sap/ui/core/mvc/ControllerMetadata.js +18 -18
- package/src/sap/ui/core/mvc/HTMLView.js +2 -2
- package/src/sap/ui/core/mvc/JSONView.js +2 -2
- package/src/sap/ui/core/mvc/JSView.js +2 -2
- package/src/sap/ui/core/mvc/TemplateView.js +2 -2
- package/src/sap/ui/core/mvc/View.js +58 -85
- package/src/sap/ui/core/mvc/XMLView.js +2 -2
- package/src/sap/ui/core/mvc/XMLViewRenderer.js +17 -20
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/History.js +10 -2
- package/src/sap/ui/core/routing/Router.js +8 -1
- package/src/sap/ui/core/routing/Target.js +13 -0
- package/src/sap/ui/core/routing/Targets.js +13 -2
- package/src/sap/ui/core/routing/async/Route.js +1 -1
- package/src/sap/ui/core/routing/async/Target.js +353 -259
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/BootSupportTool.js +11 -0
- package/src/sap/ui/core/support/InteractionTree.css +4 -0
- 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/ViewInfo.css +599 -0
- package/src/sap/ui/core/support/controls/InteractionTree.js +352 -222
- package/src/sap/ui/core/support/controls/ObjectViewer.js +3 -41
- package/src/sap/ui/core/support/controls/TimelineOverview.js +49 -24
- package/src/sap/ui/core/support/controls/TreeViewer.js +12 -58
- package/src/sap/ui/core/support/plugins/ControlTree.js +59 -68
- package/src/sap/ui/core/support/plugins/Debugging.js +9 -11
- package/src/sap/ui/core/support/plugins/Interaction.js +2 -2
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +147 -75
- package/src/sap/ui/core/support/plugins/Selector.js +19 -24
- package/src/sap/ui/core/support/plugins/TechInfo.js +5 -5
- package/src/sap/ui/core/support/plugins/Trace.js +95 -32
- package/src/sap/ui/core/support/plugins/ViewInfo.js +9 -73
- package/src/sap/ui/core/support/support.css +109 -14
- package/src/sap/ui/core/support/support.html +6 -2
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.fragment.xml +1 -0
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +149 -72
- package/src/sap/ui/core/themes/base/Icon.less +9 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +6 -4
- 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 +10 -28
- package/src/sap/ui/core/tmpl/TemplateControl.js +4 -4
- package/src/sap/ui/core/tmpl/_parsePath.js +35 -0
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/DraftEnabledMockServer.js +9 -4
- 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 +5 -5
- package/src/sap/ui/core/util/MockServerAnnotationsHandler.js +3 -2
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/XMLPreprocessor.js +11 -12
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +136 -63
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +170 -153
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +424 -293
- 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/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 +10 -4
- package/src/sap/ui/debug/DebugEnv.js +3 -4
- package/src/sap/ui/debug/Highlighter.js +8 -2
- package/src/sap/ui/debug/PropertyList.css +55 -0
- package/src/sap/ui/debug/PropertyList.js +111 -182
- package/src/sap/ui/model/Binding.js +174 -118
- package/src/sap/ui/model/ClientContextBinding.js +1 -1
- package/src/sap/ui/model/ClientListBinding.js +1 -3
- package/src/sap/ui/model/ClientModel.js +4 -4
- package/src/sap/ui/model/ClientPropertyBinding.js +4 -2
- package/src/sap/ui/model/ClientTreeBinding.js +15 -9
- package/src/sap/ui/model/ClientTreeBindingAdapter.js +28 -23
- package/src/sap/ui/model/CompositeBinding.js +98 -77
- package/src/sap/ui/model/CompositeDataState.js +2 -2
- package/src/sap/ui/model/CompositeType.js +2 -2
- package/src/sap/ui/model/Context.js +4 -2
- package/src/sap/ui/model/ContextBinding.js +6 -14
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/Filter.js +255 -53
- package/src/sap/ui/model/FilterOperator.js +1 -1
- package/src/sap/ui/model/FilterProcessor.js +27 -17
- package/src/sap/ui/model/FilterType.js +1 -1
- package/src/sap/ui/model/ListBinding.js +180 -117
- package/src/sap/ui/model/MetaModel.js +4 -9
- package/src/sap/ui/model/Model.js +345 -294
- package/src/sap/ui/model/PropertyBinding.js +92 -58
- package/src/sap/ui/model/SelectionModel.js +2 -2
- package/src/sap/ui/model/SimpleType.js +2 -2
- package/src/sap/ui/model/Sorter.js +1 -1
- package/src/sap/ui/model/SorterProcessor.js +1 -1
- package/src/sap/ui/model/StaticBinding.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +2 -2
- package/src/sap/ui/model/TreeBinding.js +1 -1
- package/src/sap/ui/model/TreeBindingAdapter.js +251 -100
- package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +16 -9
- package/src/sap/ui/model/TreeBindingUtils.js +1 -0
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +8 -4
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +1 -1
- package/src/sap/ui/model/analytics/BatchResponseCollector.js +1 -1
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +1 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +34 -25
- package/src/sap/ui/model/base/ManagedObjectModel.js +4 -0
- package/src/sap/ui/model/json/JSONListBinding.js +8 -5
- package/src/sap/ui/model/json/JSONModel.js +24 -15
- package/src/sap/ui/model/json/JSONPropertyBinding.js +4 -3
- package/src/sap/ui/model/json/JSONTreeBinding.js +1 -1
- package/src/sap/ui/model/message/MessageListBinding.js +6 -3
- package/src/sap/ui/model/message/MessageModel.js +23 -15
- package/src/sap/ui/model/message/MessagePropertyBinding.js +2 -2
- package/src/sap/ui/model/odata/AnnotationHelper.js +1 -1
- package/src/sap/ui/model/odata/AnnotationParser.js +1 -1
- package/src/sap/ui/model/odata/CountMode.js +1 -1
- package/src/sap/ui/model/odata/Filter.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +2 -2
- package/src/sap/ui/model/odata/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +2 -2
- package/src/sap/ui/model/odata/ODataMetaModel.js +5 -3
- package/src/sap/ui/model/odata/ODataMetadata.js +2 -2
- package/src/sap/ui/model/odata/ODataModel.js +8 -7
- package/src/sap/ui/model/odata/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBinding.js +65 -33
- package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +2 -2
- package/src/sap/ui/model/odata/ODataUtils.js +13 -11
- package/src/sap/ui/model/odata/OperationMode.js +1 -1
- package/src/sap/ui/model/odata/_AnnotationHelperExpression.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/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 +81 -9
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +3 -3
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +39 -49
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +236 -73
- package/src/sap/ui/model/odata/v2/ODataModel.js +314 -164
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +110 -97
- package/src/sap/ui/model/odata/v2/_CreatedContextsCache.js +129 -0
- package/src/sap/ui/model/odata/v4/Context.js +6 -3
- package/src/sap/ui/model/odata/v4/ODataBinding.js +5 -6
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +117 -40
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +95 -15
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +44 -31
- package/src/sap/ui/model/odata/v4/ODataModel.js +86 -78
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +47 -28
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +11 -7
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +10 -3
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +8 -1
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +24 -16
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +32 -30
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +52 -17
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +2 -2
- package/src/sap/ui/model/resource/ResourceModel.js +6 -2
- package/src/sap/ui/model/resource/ResourcePropertyBinding.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +2 -2
- package/src/sap/ui/model/type/Currency.js +2 -2
- package/src/sap/ui/model/type/Date.js +9 -3
- package/src/sap/ui/model/type/DateInterval.js +4 -2
- package/src/sap/ui/model/type/DateTime.js +2 -2
- package/src/sap/ui/model/type/DateTimeInterval.js +2 -2
- package/src/sap/ui/model/type/FileSize.js +4 -2
- package/src/sap/ui/model/type/Float.js +4 -2
- package/src/sap/ui/model/type/Integer.js +4 -2
- package/src/sap/ui/model/type/String.js +2 -2
- package/src/sap/ui/model/type/Time.js +2 -2
- package/src/sap/ui/model/type/TimeInterval.js +2 -2
- package/src/sap/ui/model/type/Unit.js +14 -7
- package/src/sap/ui/model/xml/XMLListBinding.js +15 -9
- package/src/sap/ui/model/xml/XMLModel.js +70 -41
- package/src/sap/ui/model/xml/XMLPropertyBinding.js +4 -4
- package/src/sap/ui/model/xml/XMLTreeBinding.js +5 -4
- package/src/sap/ui/performance/trace/Interaction.js +30 -15
- package/src/sap/ui/performance/trace/initTraces.js +1 -1
- package/src/sap/ui/qunit/QUnitUtils.js +3 -2
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +9 -11
- package/src/sap/ui/test/TestUtils.js +11 -4
- package/src/sap/ui/test/actions/Drag.js +6 -2
- package/src/sap/ui/test/actions/Drop.js +6 -2
- package/src/sap/ui/test/actions/EnterText.js +6 -0
- package/src/sap/ui/test/actions/Press.js +6 -0
- package/src/sap/ui/test/actions/Scroll.js +6 -0
- package/src/sap/ui/test/autowaiter/_resourceWaiter.js +4 -4
- package/src/sap/ui/test/launchers/componentLauncher.js +0 -4
- package/src/sap/ui/test/matchers/I18NText.js +29 -11
- package/src/sap/ui/test/opaQunit.js +5 -0
- package/src/sap/ui/thirdparty/crossroads.js +6 -4
- package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly.js +1196 -0
- package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly_Loader.js +797 -0
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js +108 -127
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.wasm +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/bg.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/ca.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/da.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/de.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/el-monoton.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/en-us.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/es.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/et.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/fi.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/fr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hi.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hu.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/it.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/lt.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/nb-no.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/nl.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/pt.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/ru.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/sl.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/sv.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/th.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/tr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/uk.hpb +0 -0
- package/src/sap/ui/thirdparty/jquery.js +9 -1
- package/src/sap/ui/thirdparty/qunit-2.js +1 -1
- package/src/sap/ui/thirdparty/qunit.js +1 -1
- package/src/sap/ui/util/Mobile.js +2 -20
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/isCrossOriginURL.js +16 -6
- package/src/sap-ui-core-nojQuery.js +1 -1
- package/src/sap-ui-core.js +1 -1
- package/src/sap-ui-debug.js +3 -17
- package/ui5.yaml +5 -2
- package/src/sap/ui/core/support/plugins/MessageTest.js +0 -96
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenopoly.bundle.js +0 -860
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
/*eslint-disable max-len */
|
|
7
7
|
// Provides the base implementation for all model implementations
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/ui/core/message/MessageProcessor',
|
|
@@ -16,17 +16,19 @@ sap.ui.define([
|
|
|
16
16
|
function(MessageProcessor, BindingMode, Context, Filter, deepEqual, each) {
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
19
|
-
/*global Set */
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* The SAPUI5 Data Binding API.
|
|
23
22
|
*
|
|
24
|
-
* The default binding mode for model implementations (if not implemented otherwise) is two
|
|
25
|
-
* are one
|
|
26
|
-
*
|
|
27
|
-
*
|
|
23
|
+
* The default binding mode for model implementations (if not implemented otherwise) is two-way
|
|
24
|
+
* and the supported binding modes by the model are one-way, two-way and one-time. The default
|
|
25
|
+
* binding mode can be changed by the application for each model instance. A model
|
|
26
|
+
* implementation should specify its supported binding modes and set the default binding mode
|
|
27
|
+
* accordingly (e.g. if the model supports only one-way binding the default binding mode should
|
|
28
|
+
* also be set to one-way).
|
|
28
29
|
*
|
|
29
|
-
* The default size limit for models is 100. The size limit determines the number of entries
|
|
30
|
+
* The default size limit for models is 100. The size limit determines the number of entries
|
|
31
|
+
* used for the list bindings.
|
|
30
32
|
*
|
|
31
33
|
*
|
|
32
34
|
* @namespace
|
|
@@ -37,7 +39,8 @@ sap.ui.define([
|
|
|
37
39
|
/**
|
|
38
40
|
* Constructor for a new Model.
|
|
39
41
|
*
|
|
40
|
-
* Every Model is a MessageProcessor that is able to handle Messages with the normal binding
|
|
42
|
+
* Every Model is a MessageProcessor that is able to handle Messages with the normal binding
|
|
43
|
+
* path syntax in the target.
|
|
41
44
|
*
|
|
42
45
|
* @class
|
|
43
46
|
* This is an abstract base class for model objects.
|
|
@@ -46,7 +49,7 @@ sap.ui.define([
|
|
|
46
49
|
* @extends sap.ui.core.message.MessageProcessor
|
|
47
50
|
*
|
|
48
51
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
52
|
+
* @version 1.96.2
|
|
50
53
|
*
|
|
51
54
|
* @public
|
|
52
55
|
* @alias sap.ui.model.Model
|
|
@@ -96,14 +99,6 @@ sap.ui.define([
|
|
|
96
99
|
"attachRequestCompleted", "detachRequestCompleted", "attachRequestFailed", "detachRequestFailed", "attachRequestSent",
|
|
97
100
|
"detachRequestSent", "attachPropertyChange", "detachPropertyChange", "setSizeLimit", "refresh", "isList", "getObject"
|
|
98
101
|
]
|
|
99
|
-
/* the following would save code, but requires the new ManagedObject (1.9.1)
|
|
100
|
-
, events : {
|
|
101
|
-
"parseError" : {},
|
|
102
|
-
"requestFailed" : {},
|
|
103
|
-
"requestSent" : {},
|
|
104
|
-
"requestCompleted" ; {}
|
|
105
|
-
}
|
|
106
|
-
*/
|
|
107
102
|
}
|
|
108
103
|
});
|
|
109
104
|
|
|
@@ -113,40 +108,44 @@ sap.ui.define([
|
|
|
113
108
|
*/
|
|
114
109
|
Model.M_EVENTS = {
|
|
115
110
|
/**
|
|
116
|
-
* Depending on the model implementation a ParseError should be fired if a parse error
|
|
111
|
+
* Depending on the model implementation a ParseError should be fired if a parse error
|
|
112
|
+
* occurred.
|
|
117
113
|
* Contains the parameters:
|
|
118
114
|
* errorCode, url, reason, srcText, line, linepos, filepos
|
|
119
115
|
*/
|
|
120
116
|
ParseError : "parseError",
|
|
121
117
|
|
|
122
118
|
/**
|
|
123
|
-
* Depending on the model implementation a RequestFailed should be fired if a request to a
|
|
119
|
+
* Depending on the model implementation a RequestFailed should be fired if a request to a
|
|
120
|
+
* backend failed.
|
|
124
121
|
* Contains the parameters:
|
|
125
122
|
* message, statusCode, statusText and responseText
|
|
126
|
-
*
|
|
127
123
|
*/
|
|
128
124
|
RequestFailed : "requestFailed",
|
|
129
125
|
|
|
130
126
|
/**
|
|
131
|
-
* Depending on the model implementation a RequestSent should be fired when a request to a
|
|
132
|
-
*
|
|
133
|
-
*
|
|
127
|
+
* Depending on the model implementation a RequestSent should be fired when a request to a
|
|
128
|
+
* backend is sent.
|
|
129
|
+
* Contains Parameters:
|
|
130
|
+
* url, type, async, info (<strong>deprecated</strong>), infoObject
|
|
134
131
|
*/
|
|
135
132
|
RequestSent : "requestSent",
|
|
136
133
|
|
|
137
134
|
/**
|
|
138
|
-
* Depending on the model implementation a RequestCompleted should be fired when a request
|
|
139
|
-
*
|
|
140
|
-
*
|
|
135
|
+
* Depending on the model implementation a RequestCompleted should be fired when a request
|
|
136
|
+
* to a backend is completed regardless if the request failed or succeeded.
|
|
137
|
+
* Contains Parameters:
|
|
138
|
+
* url, type, async, info (<strong>deprecated</strong>), infoObject, success, errorobject
|
|
141
139
|
*/
|
|
142
140
|
RequestCompleted : "requestCompleted",
|
|
143
141
|
|
|
144
142
|
/**
|
|
145
|
-
* Event is fired when changes occur to a property value in the model. The event contains a
|
|
146
|
-
*
|
|
143
|
+
* Event is fired when changes occur to a property value in the model. The event contains a
|
|
144
|
+
* reason parameter which describes the cause of the property value change. Currently the
|
|
145
|
+
* event is only fired with reason <code>sap.ui.model.ChangeReason.Binding</code> which is
|
|
146
|
+
* fired when two way changes occur to a value of a property binding.
|
|
147
147
|
* Contains the parameters:
|
|
148
148
|
* reason, path, context, value
|
|
149
|
-
*
|
|
150
149
|
*/
|
|
151
150
|
PropertyChange : "propertyChange"
|
|
152
151
|
};
|
|
@@ -154,38 +153,44 @@ sap.ui.define([
|
|
|
154
153
|
/**
|
|
155
154
|
* The <code>requestFailed</code> event is fired, when data retrieval from a backend failed.
|
|
156
155
|
*
|
|
157
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
156
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
157
|
+
* be omitted.
|
|
158
158
|
*
|
|
159
159
|
* @name sap.ui.model.Model#requestFailed
|
|
160
160
|
* @event
|
|
161
161
|
* @param {sap.ui.base.Event} oEvent
|
|
162
162
|
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
163
163
|
* @param {object} oEvent.getParameters
|
|
164
|
-
|
|
165
|
-
*
|
|
166
|
-
* @param {string} oEvent.getParameters.statusCode
|
|
167
|
-
*
|
|
168
|
-
* @param {string}
|
|
164
|
+
* @param {string} oEvent.getParameters.message
|
|
165
|
+
* A text that describes the failure.
|
|
166
|
+
* @param {string} oEvent.getParameters.statusCode
|
|
167
|
+
* HTTP status code returned by the request (if available)
|
|
168
|
+
* @param {string} oEvent.getParameters.statusText
|
|
169
|
+
* The status as a text, details not specified, intended only for diagnosis output
|
|
170
|
+
* @param {string} [oEvent.getParameters.responseText]
|
|
171
|
+
* Response that has been received for the request, as a text string
|
|
169
172
|
* @public
|
|
170
173
|
*/
|
|
171
174
|
|
|
172
175
|
/**
|
|
173
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
174
|
-
* <code>sap.ui.model.Model</code>.
|
|
175
|
-
*
|
|
176
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
177
|
-
* if specified, otherwise it will be bound to this
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
176
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
177
|
+
* {@link #event:requestFailed requestFailed} event of this <code>sap.ui.model.Model</code>.
|
|
178
|
+
*
|
|
179
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
180
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
181
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
182
|
+
*
|
|
183
|
+
* @param {object} [oData]
|
|
184
|
+
* An application-specific payload object that will be passed to the event handler along with
|
|
185
|
+
* the event object when firing the event
|
|
186
|
+
* @param {function} fnFunction
|
|
187
|
+
* The function to be called when the event occurs
|
|
188
|
+
* @param {object} [oListener]
|
|
189
|
+
* Context object to call the event handler with. Defaults to this
|
|
190
|
+
* <code>sap.ui.model.Model</code> itself
|
|
191
|
+
*
|
|
192
|
+
* @returns {this}
|
|
193
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
189
194
|
* @public
|
|
190
195
|
*/
|
|
191
196
|
Model.prototype.attachRequestFailed = function(oData, fnFunction, oListener) {
|
|
@@ -194,15 +199,14 @@ sap.ui.define([
|
|
|
194
199
|
};
|
|
195
200
|
|
|
196
201
|
/**
|
|
197
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
198
|
-
* <code>sap.ui.model.Model</code>.
|
|
202
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
203
|
+
* {@link #event:requestFailed requestFailed} event of this <code>sap.ui.model.Model</code>.
|
|
199
204
|
*
|
|
200
205
|
* The passed function and listener object must match the ones used for event registration.
|
|
201
206
|
*
|
|
202
|
-
* @param {function}
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* [oListener] Context object on which the given function had to be called
|
|
207
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
208
|
+
* @param {object} [oListener] Context object on which the given function had to be called
|
|
209
|
+
*
|
|
206
210
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
207
211
|
* @public
|
|
208
212
|
*/
|
|
@@ -214,13 +218,19 @@ sap.ui.define([
|
|
|
214
218
|
/**
|
|
215
219
|
* Fires event {@link #event:requestFailed requestFailed} to attached listeners.
|
|
216
220
|
*
|
|
217
|
-
* @param {object} [oParameters]
|
|
218
|
-
*
|
|
219
|
-
* @param {string} [oParameters.
|
|
220
|
-
*
|
|
221
|
-
* @param {string} [oParameters.
|
|
222
|
-
*
|
|
223
|
-
* @
|
|
221
|
+
* @param {object} [oParameters]
|
|
222
|
+
* Parameters to pass along with the event
|
|
223
|
+
* @param {string} [oParameters.message]
|
|
224
|
+
* A text that describes the failure.
|
|
225
|
+
* @param {string} [oParameters.statusCode]
|
|
226
|
+
* HTTP status code returned by the request (if available)
|
|
227
|
+
* @param {string} [oParameters.statusText]
|
|
228
|
+
* The status as a text, details not specified, intended only for diagnosis output
|
|
229
|
+
* @param {string} [oParameters.responseText]
|
|
230
|
+
* Response that has been received for the request, as a text string
|
|
231
|
+
*
|
|
232
|
+
* @returns {this}
|
|
233
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
224
234
|
* @protected
|
|
225
235
|
*/
|
|
226
236
|
Model.prototype.fireRequestFailed = function(oParameters) {
|
|
@@ -230,7 +240,8 @@ sap.ui.define([
|
|
|
230
240
|
|
|
231
241
|
|
|
232
242
|
/**
|
|
233
|
-
* The <code>parseError</code> event is fired when parsing of a model document (e.g. XML
|
|
243
|
+
* The <code>parseError</code> event is fired when parsing of a model document (e.g. XML
|
|
244
|
+
* response) fails.
|
|
234
245
|
*
|
|
235
246
|
* @name sap.ui.model.Model#parseError
|
|
236
247
|
* @event
|
|
@@ -248,22 +259,24 @@ sap.ui.define([
|
|
|
248
259
|
*/
|
|
249
260
|
|
|
250
261
|
/**
|
|
251
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
252
|
-
* <code>sap.ui.model.Model</code>.
|
|
253
|
-
*
|
|
254
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
255
|
-
* if specified, otherwise it will be bound to this
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
262
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
263
|
+
* {@link #event:parseError parseError} event of this <code>sap.ui.model.Model</code>.
|
|
264
|
+
*
|
|
265
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
266
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
267
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
268
|
+
*
|
|
269
|
+
* @param {object} [oData]
|
|
270
|
+
* An application-specific payload object that will be passed to the event handler along with
|
|
271
|
+
* the event object when firing the event
|
|
272
|
+
* @param {function} fnFunction
|
|
273
|
+
* The function to be called when the event occurs
|
|
274
|
+
* @param {object} [oListener]
|
|
275
|
+
* Context object to call the event handler with. Defaults to this
|
|
276
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
277
|
+
*
|
|
278
|
+
* @returns {this}
|
|
279
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
267
280
|
* @public
|
|
268
281
|
*/
|
|
269
282
|
Model.prototype.attachParseError = function(oData, fnFunction, oListener) {
|
|
@@ -272,16 +285,18 @@ sap.ui.define([
|
|
|
272
285
|
};
|
|
273
286
|
|
|
274
287
|
/**
|
|
275
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
276
|
-
* <code>sap.ui.model.Model</code>.
|
|
288
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
289
|
+
* {@link #event:parseError parseError} event of this <code>sap.ui.model.Model</code>.
|
|
277
290
|
*
|
|
278
291
|
* The passed function and listener object must match the ones used for event registration.
|
|
279
292
|
*
|
|
280
|
-
* @param {function}
|
|
281
|
-
*
|
|
282
|
-
* @param {object}
|
|
283
|
-
*
|
|
284
|
-
*
|
|
293
|
+
* @param {function} fnFunction
|
|
294
|
+
* The function to be called when the event occurs
|
|
295
|
+
* @param {object} [oListener]
|
|
296
|
+
* Context object on which the given function had to be called
|
|
297
|
+
*
|
|
298
|
+
* @returns {this}
|
|
299
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
285
300
|
* @public
|
|
286
301
|
*/
|
|
287
302
|
Model.prototype.detachParseError = function(fnFunction, oListener) {
|
|
@@ -312,38 +327,46 @@ sap.ui.define([
|
|
|
312
327
|
/**
|
|
313
328
|
* The <code>requestSent</code> event is fired, after a request has been sent to a backend.
|
|
314
329
|
*
|
|
315
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
330
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
331
|
+
* be omitted.
|
|
316
332
|
*
|
|
317
333
|
* @name sap.ui.model.Model#requestSent
|
|
318
334
|
* @event
|
|
319
335
|
* @param {sap.ui.base.Event} oEvent
|
|
320
336
|
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
321
337
|
* @param {object} oEvent.getParameters
|
|
322
|
-
* @param {string} oEvent.getParameters.url
|
|
323
|
-
*
|
|
324
|
-
* @param {
|
|
325
|
-
*
|
|
326
|
-
* @param {
|
|
338
|
+
* @param {string} oEvent.getParameters.url
|
|
339
|
+
* The url which is sent to the back end
|
|
340
|
+
* @param {string} [oEvent.getParameters.type]
|
|
341
|
+
* The type of the request (if available)
|
|
342
|
+
* @param {boolean} [oEvent.getParameters.async]
|
|
343
|
+
* If the request is synchronous or asynchronous (if available)
|
|
344
|
+
* @param {string} [oEvent.getParameters.info]
|
|
345
|
+
* Additional information for the request (if available) <strong>deprecated</strong>
|
|
346
|
+
* @param {object} [oEvent.getParameters.infoObject]
|
|
347
|
+
* Additional information for the request (if available)
|
|
327
348
|
* @public
|
|
328
349
|
*/
|
|
329
350
|
|
|
330
351
|
/**
|
|
331
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
332
|
-
* <code>sap.ui.model.Model</code>.
|
|
333
|
-
*
|
|
334
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
335
|
-
* if specified, otherwise it will be bound to this
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
352
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
353
|
+
* {@link #event:requestSent requestSent} event of this <code>sap.ui.model.Model</code>.
|
|
354
|
+
*
|
|
355
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
356
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
357
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
358
|
+
*
|
|
359
|
+
* @param {object} [oData]
|
|
360
|
+
* An application-specific payload object that will be passed to the event handler along with
|
|
361
|
+
* the event object when firing the event
|
|
362
|
+
* @param {function} fnFunction
|
|
363
|
+
* The function to be called when the event occurs
|
|
364
|
+
* @param {object} [oListener]
|
|
365
|
+
* Context object to call the event handler with. Defaults to this
|
|
366
|
+
* <code>sap.ui.model.Model</code> itself
|
|
367
|
+
*
|
|
368
|
+
* @returns {this}
|
|
369
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
347
370
|
* @public
|
|
348
371
|
*/
|
|
349
372
|
Model.prototype.attachRequestSent = function(oData, fnFunction, oListener) {
|
|
@@ -352,15 +375,14 @@ sap.ui.define([
|
|
|
352
375
|
};
|
|
353
376
|
|
|
354
377
|
/**
|
|
355
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
356
|
-
* <code>sap.ui.model.Model</code>.
|
|
378
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
379
|
+
* {@link #event:requestSent requestSent} event of this <code>sap.ui.model.Model</code>.
|
|
357
380
|
*
|
|
358
381
|
* The passed function and listener object must match the ones used for event registration.
|
|
359
382
|
*
|
|
360
|
-
* @param {function}
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
* [oListener] Context object on which the given function had to be called
|
|
383
|
+
* @param {function} fnFunction The function to be called, when the event occurs
|
|
384
|
+
* @param {object} [oListener] Context object on which the given function had to be called
|
|
385
|
+
*
|
|
364
386
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
365
387
|
* @public
|
|
366
388
|
*/
|
|
@@ -372,12 +394,19 @@ sap.ui.define([
|
|
|
372
394
|
/**
|
|
373
395
|
* Fires event {@link #event:requestSent requestSent} to attached listeners.
|
|
374
396
|
*
|
|
375
|
-
* @param {object} [oParameters]
|
|
376
|
-
*
|
|
377
|
-
* @param {string} [oParameters.
|
|
378
|
-
*
|
|
379
|
-
* @param {string} [oParameters.
|
|
380
|
-
*
|
|
397
|
+
* @param {object} [oParameters]
|
|
398
|
+
* Parameters to pass along with the event
|
|
399
|
+
* @param {string} [oParameters.url]
|
|
400
|
+
* The url which is sent to the back end.
|
|
401
|
+
* @param {string} [oParameters.type]
|
|
402
|
+
* The type of the request (if available)
|
|
403
|
+
* @param {boolean} [oParameters.async]
|
|
404
|
+
* If the request is synchronous or asynchronous (if available)
|
|
405
|
+
* @param {string} [oParameters.info]
|
|
406
|
+
* Additional information for the request (if available) <strong>deprecated</strong>
|
|
407
|
+
* @param {object} [oParameters.infoObject]
|
|
408
|
+
* Additional information for the request (if available)
|
|
409
|
+
*
|
|
381
410
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
382
411
|
* @protected
|
|
383
412
|
*/
|
|
@@ -387,49 +416,58 @@ sap.ui.define([
|
|
|
387
416
|
};
|
|
388
417
|
|
|
389
418
|
/**
|
|
390
|
-
* The <code>requestCompleted</code> event is fired, after a request has been completed
|
|
391
|
-
* a response), no matter whether the request succeeded or not.
|
|
419
|
+
* The <code>requestCompleted</code> event is fired, after a request has been completed
|
|
420
|
+
* (includes receiving a response), no matter whether the request succeeded or not.
|
|
392
421
|
*
|
|
393
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
422
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
423
|
+
* be omitted.
|
|
394
424
|
*
|
|
395
425
|
* @name sap.ui.model.Model#requestCompleted
|
|
396
426
|
* @event
|
|
397
427
|
* @param {sap.ui.base.Event} oEvent
|
|
428
|
+
* The <code>requestCompleted</code> event
|
|
398
429
|
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
430
|
+
* The source of the request
|
|
399
431
|
* @param {object} oEvent.getParameters
|
|
400
|
-
*
|
|
401
|
-
* @param {string}
|
|
432
|
+
* The request parameters
|
|
433
|
+
* @param {string} oEvent.getParameters.url
|
|
434
|
+
* URL which was sent to the back end
|
|
435
|
+
* @param {string} [oEvent.getParameters.type]
|
|
436
|
+
* Type of the request (if available)
|
|
402
437
|
* @param {boolean} oEvent.getParameters.success
|
|
403
|
-
*
|
|
404
|
-
*
|
|
438
|
+
* Whether the request has been successful or not. In case of errors, consult the optional
|
|
439
|
+
* <code>errorobject</code> parameter.
|
|
405
440
|
* @param {object} [oEvent.getParameters.errorobject]
|
|
406
|
-
*
|
|
441
|
+
* If the request failed the error if any can be accessed in this property.
|
|
407
442
|
* @param {boolean} [oEvent.getParameters.async]
|
|
408
|
-
*
|
|
443
|
+
* If the request is synchronous or asynchronous (if available)
|
|
409
444
|
* @param {string} [oEvent.getParameters.info]
|
|
410
|
-
*
|
|
445
|
+
* Additional information for the request (if available) <strong>deprecated</strong>
|
|
411
446
|
* @param {object} [oEvent.getParameters.infoObject]
|
|
412
|
-
*
|
|
447
|
+
* Additional information for the request (if available)
|
|
413
448
|
* @public
|
|
414
449
|
*/
|
|
415
450
|
|
|
416
451
|
/**
|
|
417
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
452
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
453
|
+
* {@link #event:requestCompleted requestCompleted} event of this
|
|
418
454
|
* <code>sap.ui.model.Model</code>.
|
|
419
455
|
*
|
|
420
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
421
|
-
* if specified, otherwise it will be bound to this
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
456
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
457
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
458
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
459
|
+
*
|
|
460
|
+
* @param {object} [oData]
|
|
461
|
+
* An application-specific payload object that will be passed to the event handler along with
|
|
462
|
+
* the event object when firing the event
|
|
463
|
+
* @param {function} fnFunction
|
|
464
|
+
* The function to be called when the event occurs
|
|
465
|
+
* @param {object} [oListener]
|
|
466
|
+
* Context object to call the event handler with. Defaults to this
|
|
467
|
+
* <code>sap.ui.model.Model</code> itself
|
|
468
|
+
*
|
|
469
|
+
* @returns {this}
|
|
470
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
433
471
|
* @public
|
|
434
472
|
*/
|
|
435
473
|
Model.prototype.attachRequestCompleted = function(oData, fnFunction, oListener) {
|
|
@@ -438,16 +476,17 @@ sap.ui.define([
|
|
|
438
476
|
};
|
|
439
477
|
|
|
440
478
|
/**
|
|
441
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
479
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
480
|
+
* {@link #event:requestCompleted requestCompleted} event of this
|
|
442
481
|
* <code>sap.ui.model.Model</code>.
|
|
443
482
|
*
|
|
444
483
|
* The passed function and listener object must match the ones used for event registration.
|
|
445
484
|
*
|
|
446
|
-
* @param {function}
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
485
|
+
* @param {function} fnFunction The function to be called, when the event occurs
|
|
486
|
+
* @param {object} [oListener] Context object on which the given function had to be called
|
|
487
|
+
*
|
|
488
|
+
* @returns {this}
|
|
489
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
451
490
|
* @public
|
|
452
491
|
*/
|
|
453
492
|
Model.prototype.detachRequestCompleted = function(fnFunction, oListener) {
|
|
@@ -458,14 +497,21 @@ sap.ui.define([
|
|
|
458
497
|
/**
|
|
459
498
|
* Fires event {@link #event:requestCompleted requestCompleted} to attached listeners.
|
|
460
499
|
*
|
|
461
|
-
* @param {object} [oParameters]
|
|
462
|
-
*
|
|
463
|
-
* @param {string} [oParameters.
|
|
464
|
-
*
|
|
465
|
-
* @param {string} [oParameters.
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
500
|
+
* @param {object} [oParameters]
|
|
501
|
+
* Parameters to pass along with the event
|
|
502
|
+
* @param {string} [oParameters.url]
|
|
503
|
+
* The url which was sent to the back end.
|
|
504
|
+
* @param {string} [oParameters.type]
|
|
505
|
+
* The type of the request (if available)
|
|
506
|
+
* @param {boolean} [oParameters.async]
|
|
507
|
+
* If the request was synchronous or asynchronous (if available)
|
|
508
|
+
* @param {string} [oParameters.info]
|
|
509
|
+
* additional information for the request (if available) <strong>deprecated</strong>
|
|
510
|
+
* @param {object} [oParameters.infoObject]
|
|
511
|
+
* Additional information for the request (if available)
|
|
512
|
+
*
|
|
513
|
+
* @returns {this}
|
|
514
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
469
515
|
* @protected
|
|
470
516
|
*/
|
|
471
517
|
Model.prototype.fireRequestCompleted = function(oParameters) {
|
|
@@ -489,8 +535,8 @@ sap.ui.define([
|
|
|
489
535
|
* @param {object} [oParameters] Parameters to pass along with the event
|
|
490
536
|
* @param {sap.ui.model.ChangeReason} [oParameters.reason] The reason of the property change
|
|
491
537
|
* @param {string} [oParameters.path] The path of the property
|
|
492
|
-
* @param {object} [oParameters.context]
|
|
493
|
-
* @param {object} [oParameters.value]
|
|
538
|
+
* @param {object} [oParameters.context] The context of the property
|
|
539
|
+
* @param {object} [oParameters.value] The value of the property
|
|
494
540
|
*
|
|
495
541
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
496
542
|
* @protected
|
|
@@ -501,44 +547,53 @@ sap.ui.define([
|
|
|
501
547
|
};
|
|
502
548
|
|
|
503
549
|
/**
|
|
504
|
-
* The <code>propertyChange</code> event is fired when changes occur to a property value in the
|
|
550
|
+
* The <code>propertyChange</code> event is fired when changes occur to a property value in the
|
|
551
|
+
* model.
|
|
505
552
|
*
|
|
506
|
-
* The event contains a <code>reason</code> parameter which describes the cause of the property
|
|
507
|
-
* Currently the event is only fired with reason
|
|
508
|
-
* when two way changes occur to a
|
|
553
|
+
* The event contains a <code>reason</code> parameter which describes the cause of the property
|
|
554
|
+
* value change. Currently the event is only fired with reason
|
|
555
|
+
* <code>sap.ui.model.ChangeReason.Binding</code> which is fired when two way changes occur to a
|
|
556
|
+
* value of a property binding.
|
|
509
557
|
*
|
|
510
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
558
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
559
|
+
* be omitted.
|
|
511
560
|
*
|
|
512
561
|
* @name sap.ui.model.Model#propertyChange
|
|
513
562
|
* @event
|
|
514
563
|
* @param {sap.ui.base.Event} oEvent
|
|
515
564
|
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
516
565
|
* @param {object} oEvent.getParameters
|
|
517
|
-
* @param {sap.ui.model.ChangeReason} oEvent.getParameters.reason
|
|
518
|
-
*
|
|
519
|
-
* @param {
|
|
520
|
-
*
|
|
566
|
+
* @param {sap.ui.model.ChangeReason} oEvent.getParameters.reason
|
|
567
|
+
* The cause of the property value change
|
|
568
|
+
* @param {string} oEvent.getParameters.path
|
|
569
|
+
* The path of the property
|
|
570
|
+
* @param {sap.ui.model.Context} [oEvent.getParameters.context]
|
|
571
|
+
* The binding context (if available)
|
|
572
|
+
* @param {object} oEvent.getParameters.value
|
|
573
|
+
* The current value of the property
|
|
521
574
|
* @public
|
|
522
575
|
* @since 1.40
|
|
523
576
|
*/
|
|
524
577
|
|
|
525
578
|
/**
|
|
526
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
527
|
-
* <code>sap.ui.model.Model</code>.
|
|
528
|
-
*
|
|
529
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
530
|
-
* if specified, otherwise it will be bound to this
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
579
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
580
|
+
* {@link #event:propertyChange propertyChange} event of this <code>sap.ui.model.Model</code>.
|
|
581
|
+
*
|
|
582
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
583
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
584
|
+
* <code>sap.ui.model.Model</code> itself.
|
|
585
|
+
*
|
|
586
|
+
* @param {object} [oData]
|
|
587
|
+
* An application-specific payload object that will be passed to the event handler along with
|
|
588
|
+
* the event object when firing the event
|
|
589
|
+
* @param {function} fnFunction
|
|
590
|
+
* The function to be called when the event occurs
|
|
591
|
+
* @param {object} [oListener]
|
|
592
|
+
* Context object to call the event handler with. Defaults to this
|
|
593
|
+
* <code>sap.ui.model.Model</code> itself
|
|
594
|
+
*
|
|
595
|
+
* @returns {this}
|
|
596
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
542
597
|
* @public
|
|
543
598
|
*/
|
|
544
599
|
Model.prototype.attachPropertyChange = function(oData, fnFunction, oListener) {
|
|
@@ -547,16 +602,16 @@ sap.ui.define([
|
|
|
547
602
|
};
|
|
548
603
|
|
|
549
604
|
/**
|
|
550
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
551
|
-
* <code>sap.ui.model.Model</code>.
|
|
605
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
606
|
+
* {@link #event:propertyChange propertyChange} event of this <code>sap.ui.model.Model</code>.
|
|
552
607
|
*
|
|
553
608
|
* The passed function and listener object must match the ones used for event registration.
|
|
554
609
|
*
|
|
555
|
-
* @param {function}
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
*
|
|
610
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
611
|
+
* @param {object} [oListener] Context object on which the given function had to be called
|
|
612
|
+
*
|
|
613
|
+
* @returns {this}
|
|
614
|
+
* Reference to <code>this</code> in order to allow method chaining
|
|
560
615
|
* @public
|
|
561
616
|
*/
|
|
562
617
|
Model.prototype.detachPropertyChange = function(fnFunction, oListener) {
|
|
@@ -564,126 +619,113 @@ sap.ui.define([
|
|
|
564
619
|
return this;
|
|
565
620
|
};
|
|
566
621
|
|
|
567
|
-
// the 'abstract methods' to be implemented by child classes
|
|
568
|
-
|
|
569
622
|
/**
|
|
570
|
-
* Implement in inheriting classes.
|
|
571
623
|
* @abstract
|
|
572
624
|
*
|
|
573
625
|
* @name sap.ui.model.Model.prototype.bindProperty
|
|
574
626
|
* @function
|
|
575
|
-
* @param {string}
|
|
576
|
-
*
|
|
577
|
-
* @param {
|
|
578
|
-
* [oContext=null] the context object for this databinding (optional)
|
|
579
|
-
* @param {object}
|
|
580
|
-
* [mParameters=null] additional model specific parameters (optional)
|
|
581
|
-
* @return {sap.ui.model.PropertyBinding}
|
|
627
|
+
* @param {string} sPath The path pointing to the property that should be bound
|
|
628
|
+
* @param {sap.ui.model.Context} [oContext] The context object for this databinding
|
|
629
|
+
* @param {object} [mParameters] Additional model-specific parameters
|
|
582
630
|
*
|
|
631
|
+
* @return {sap.ui.model.PropertyBinding} The newly created binding
|
|
583
632
|
* @public
|
|
584
633
|
*/
|
|
585
634
|
|
|
586
635
|
/**
|
|
587
|
-
* Implement in inheriting classes.
|
|
588
636
|
* @abstract
|
|
589
637
|
*
|
|
590
638
|
* @name sap.ui.model.Model.prototype.bindList
|
|
591
639
|
* @function
|
|
592
|
-
* @param {string}
|
|
593
|
-
*
|
|
594
|
-
* @param {sap.ui.model.Context}
|
|
595
|
-
*
|
|
596
|
-
* @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]}
|
|
597
|
-
*
|
|
598
|
-
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]}
|
|
599
|
-
*
|
|
600
|
-
* @param {object}
|
|
601
|
-
*
|
|
640
|
+
* @param {string} sPath
|
|
641
|
+
* The path pointing to the list / array that should be bound
|
|
642
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
643
|
+
* The context object for this databinding
|
|
644
|
+
* @param {sap.ui.model.Sorter|sap.ui.model.Sorter[]} [aSorters]
|
|
645
|
+
* Initial sort order (can be either a sorter or an array of sorters)
|
|
646
|
+
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} [aFilters]
|
|
647
|
+
* Predefined filter/s (can be either a filter or an array of filters)
|
|
648
|
+
* @param {object} [mParameters]
|
|
649
|
+
* Additional model-specific parameters
|
|
650
|
+
*
|
|
602
651
|
* @return {sap.ui.model.ListBinding}
|
|
603
|
-
|
|
652
|
+
* The newly created binding
|
|
604
653
|
* @public
|
|
605
654
|
*/
|
|
606
655
|
|
|
607
656
|
/**
|
|
608
|
-
* Implement in inheriting classes.
|
|
609
657
|
* @abstract
|
|
610
658
|
*
|
|
611
659
|
* @name sap.ui.model.Model.prototype.bindTree
|
|
612
660
|
* @function
|
|
613
|
-
* @param {string}
|
|
614
|
-
*
|
|
615
|
-
* @param {sap.ui.model.Context}
|
|
616
|
-
*
|
|
617
|
-
* @param {sap.ui.model.Filter[]}
|
|
618
|
-
*
|
|
619
|
-
* @param {object}
|
|
620
|
-
*
|
|
621
|
-
* @param {sap.ui.model.Sorter[]}
|
|
622
|
-
*
|
|
661
|
+
* @param {string} sPath
|
|
662
|
+
* The path pointing to the tree / array that should be bound
|
|
663
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
664
|
+
* The context object for this databinding
|
|
665
|
+
* @param {sap.ui.model.Filter[]} [aFilters]
|
|
666
|
+
* Predefined filter/s contained in an array
|
|
667
|
+
* @param {object} [mParameters]
|
|
668
|
+
* Additional model specific parameters
|
|
669
|
+
* @param {sap.ui.model.Sorter[]} [aSorters]
|
|
670
|
+
* Predefined sap.ui.model.sorter/s contained in an array
|
|
671
|
+
*
|
|
623
672
|
* @return {sap.ui.model.TreeBinding}
|
|
624
|
-
|
|
673
|
+
* The newly created binding
|
|
625
674
|
* @public
|
|
626
675
|
*/
|
|
627
676
|
|
|
628
677
|
/**
|
|
629
|
-
* Implement in inheriting classes.
|
|
630
678
|
* @abstract
|
|
631
679
|
*
|
|
632
680
|
* @name sap.ui.model.Model.prototype.createBindingContext
|
|
633
681
|
* @function
|
|
634
|
-
* @param {string}
|
|
635
|
-
*
|
|
636
|
-
* @param {sap.ui.model.Context}
|
|
637
|
-
*
|
|
638
|
-
* @param {object}
|
|
639
|
-
*
|
|
640
|
-
* @param {function}
|
|
641
|
-
*
|
|
642
|
-
* @param {boolean}
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
682
|
+
* @param {string} sPath
|
|
683
|
+
* The path to create the new context from
|
|
684
|
+
* @param {sap.ui.model.Context} [oContext]
|
|
685
|
+
* The context which should be used to create the new binding context
|
|
686
|
+
* @param {object} [mParameters]
|
|
687
|
+
* The parameters used to create the new binding context
|
|
688
|
+
* @param {function} [fnCallBack]
|
|
689
|
+
* The function which should be called after the binding context has been created
|
|
690
|
+
* @param {boolean} [bReload]
|
|
691
|
+
* Force reload even if data is already available; for server-side models this should refetch
|
|
692
|
+
* the data from the server
|
|
693
|
+
*
|
|
694
|
+
* @return {sap.ui.model.Context}
|
|
695
|
+
* The binding context, if it could be created synchronously
|
|
647
696
|
* @public
|
|
648
697
|
*/
|
|
649
698
|
|
|
650
699
|
/**
|
|
651
|
-
* Implement in inheriting classes.
|
|
652
700
|
* @abstract
|
|
653
701
|
*
|
|
654
702
|
* @name sap.ui.model.Model.prototype.destroyBindingContext
|
|
655
703
|
* @function
|
|
656
|
-
* @param {sap.ui.model.Context}
|
|
657
|
-
* oContext to destroy
|
|
658
|
-
|
|
704
|
+
* @param {sap.ui.model.Context} oContext The context to destroy
|
|
659
705
|
* @public
|
|
660
706
|
*/
|
|
661
707
|
|
|
662
708
|
/**
|
|
663
|
-
* Implement in inheriting classes.
|
|
664
709
|
* @abstract
|
|
665
710
|
*
|
|
666
711
|
* @name sap.ui.model.Model.prototype.getProperty
|
|
667
712
|
* @function
|
|
668
|
-
* @param {string}
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
* [oContext=null] the context with which the path should be resolved
|
|
713
|
+
* @param {string} sPath The path to where to read the attribute value
|
|
714
|
+
* @param {sap.ui.model.Context} [oContext] The context with which the path should be resolved
|
|
715
|
+
*
|
|
672
716
|
* @returns {any} Value of the addressed property
|
|
673
717
|
* @public
|
|
674
718
|
*/
|
|
675
719
|
|
|
676
720
|
/**
|
|
677
|
-
* Implement in inheriting classes.
|
|
678
721
|
* @abstract
|
|
679
722
|
*
|
|
680
|
-
* @param {string}
|
|
681
|
-
*
|
|
682
|
-
* @param {
|
|
683
|
-
*
|
|
684
|
-
* @
|
|
685
|
-
*
|
|
686
|
-
* @returns {any} The value for the given path/context or <code>undefined</code> if data could not be found
|
|
723
|
+
* @param {string} sPath Path to where to read the object
|
|
724
|
+
* @param {sap.ui.model.Context} [oContext] Context with which the path should be resolved
|
|
725
|
+
* @param {object} [mParameters] Additional model-specific parameters
|
|
726
|
+
*
|
|
727
|
+
* @returns {any}
|
|
728
|
+
* The value for the given path/context or <code>undefined</code> if data could not be found
|
|
687
729
|
* @public
|
|
688
730
|
*/
|
|
689
731
|
Model.prototype.getObject = function(sPath, oContext, mParameters) {
|
|
@@ -697,24 +739,22 @@ sap.ui.define([
|
|
|
697
739
|
*
|
|
698
740
|
* @name sap.ui.model.Model.prototype.bindContext
|
|
699
741
|
* @function
|
|
700
|
-
* @param {string}
|
|
701
|
-
*
|
|
702
|
-
* @param {
|
|
703
|
-
*
|
|
704
|
-
* @param {object}
|
|
705
|
-
* [mParameters=null] additional model specific parameters (optional)
|
|
706
|
-
* @param {object}
|
|
707
|
-
* [oEvents=null] event handlers can be passed to the binding ({change:myHandler})
|
|
708
|
-
* @return {sap.ui.model.ContextBinding}
|
|
742
|
+
* @param {string} sPath The path pointing to the property that should be bound
|
|
743
|
+
* @param {sap.ui.model.Context} [oContext] The context object for this databinding
|
|
744
|
+
* @param {object} [mParameters] Additional model-specific parameters
|
|
745
|
+
* @param {object} [oEvents] Event handlers can be passed to the binding ({change:myHandler})
|
|
709
746
|
*
|
|
747
|
+
* @return {sap.ui.model.ContextBinding} The newly created binding
|
|
710
748
|
* @public
|
|
711
749
|
*/
|
|
712
750
|
|
|
713
751
|
/**
|
|
714
|
-
* Gets a binding context. If context already exists, return it from the map,
|
|
715
|
-
*
|
|
752
|
+
* Gets a binding context. If the context already exists, return it from the map, otherwise create
|
|
753
|
+
* one using the context constructor.
|
|
716
754
|
*
|
|
717
|
-
* @param {string} sPath
|
|
755
|
+
* @param {string} sPath The path
|
|
756
|
+
*
|
|
757
|
+
* @returns {sap.ui.model.Context} The context for the path
|
|
718
758
|
*/
|
|
719
759
|
Model.prototype.getContext = function(sPath) {
|
|
720
760
|
if (!sPath.startsWith("/")) {
|
|
@@ -738,9 +778,10 @@ sap.ui.define([
|
|
|
738
778
|
* setting the 'legacySyntax' property. Then an unresolvable, relative path
|
|
739
779
|
* is automatically converted into an absolute path.
|
|
740
780
|
*
|
|
741
|
-
* @param {string} sPath
|
|
742
|
-
* @param {sap.ui.model.Context} [oContext]
|
|
743
|
-
*
|
|
781
|
+
* @param {string} sPath Path to resolve
|
|
782
|
+
* @param {sap.ui.model.Context} [oContext] Context to resolve a relative path against
|
|
783
|
+
*
|
|
784
|
+
* @return {string} Resolved path or undefined
|
|
744
785
|
*/
|
|
745
786
|
Model.prototype.resolve = function(sPath, oContext) {
|
|
746
787
|
var bIsRelative = typeof sPath == "string" && !sPath.startsWith("/"),
|
|
@@ -780,7 +821,7 @@ sap.ui.define([
|
|
|
780
821
|
/**
|
|
781
822
|
* Add a binding to this model.
|
|
782
823
|
*
|
|
783
|
-
* @param {sap.ui.model.Binding} oBinding
|
|
824
|
+
* @param {sap.ui.model.Binding} oBinding The binding to be added
|
|
784
825
|
*/
|
|
785
826
|
Model.prototype.addBinding = function(oBinding) {
|
|
786
827
|
this._cleanUpBindings();
|
|
@@ -790,7 +831,7 @@ sap.ui.define([
|
|
|
790
831
|
/**
|
|
791
832
|
* Returns a copy of all active bindings of the model.
|
|
792
833
|
*
|
|
793
|
-
* @return {sap.ui.model.Binding[]}
|
|
834
|
+
* @return {sap.ui.model.Binding[]} The active bindings of the model
|
|
794
835
|
* @private
|
|
795
836
|
*/
|
|
796
837
|
Model.prototype.getBindings = function() {
|
|
@@ -827,9 +868,9 @@ sap.ui.define([
|
|
|
827
868
|
/**
|
|
828
869
|
* Set the default binding mode for the model.
|
|
829
870
|
*
|
|
830
|
-
* If the default binding mode should be changed, this method should be called directly after
|
|
831
|
-
* creation and before any binding creation. Otherwise it is not guaranteed that
|
|
832
|
-
* be updated with the new binding mode.
|
|
871
|
+
* If the default binding mode should be changed, this method should be called directly after
|
|
872
|
+
* model instance creation and before any binding creation. Otherwise it is not guaranteed that
|
|
873
|
+
* the existing bindings will be updated with the new binding mode.
|
|
833
874
|
*
|
|
834
875
|
* @param {sap.ui.model.BindingMode} sMode The default binding mode to set for the model
|
|
835
876
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
@@ -908,7 +949,8 @@ sap.ui.define([
|
|
|
908
949
|
/**
|
|
909
950
|
* Refresh the model.
|
|
910
951
|
*
|
|
911
|
-
* This will check all bindings for updated data and update the controls if data has been
|
|
952
|
+
* This will check all bindings for updated data and update the controls if data has been
|
|
953
|
+
* changed.
|
|
912
954
|
*
|
|
913
955
|
* @param {boolean} [bForceUpdate=false] Update controls even if data has not been changed
|
|
914
956
|
* @public
|
|
@@ -1034,7 +1076,8 @@ sap.ui.define([
|
|
|
1034
1076
|
};
|
|
1035
1077
|
|
|
1036
1078
|
/**
|
|
1037
|
-
* Private method iterating the registered bindings of this model instance and initiating their
|
|
1079
|
+
* Private method iterating the registered bindings of this model instance and initiating their
|
|
1080
|
+
* check for messages.
|
|
1038
1081
|
* @private
|
|
1039
1082
|
*/
|
|
1040
1083
|
Model.prototype.checkMessages = function() {
|
|
@@ -1048,8 +1091,8 @@ sap.ui.define([
|
|
|
1048
1091
|
/**
|
|
1049
1092
|
* Destroys the model and clears the model data.
|
|
1050
1093
|
*
|
|
1051
|
-
* A model implementation may override this function and perform model
|
|
1052
|
-
* abort requests, prevent new requests, etc.
|
|
1094
|
+
* A model implementation may override this function and perform model-specific cleanup tasks
|
|
1095
|
+
* e.g. abort requests, prevent new requests, etc.
|
|
1053
1096
|
*
|
|
1054
1097
|
* @see sap.ui.base.Object.prototype.destroy
|
|
1055
1098
|
* @public
|
|
@@ -1077,7 +1120,8 @@ sap.ui.define([
|
|
|
1077
1120
|
* model type.
|
|
1078
1121
|
* @abstract
|
|
1079
1122
|
* @public
|
|
1080
|
-
* @returns {sap.ui.model.MetaModel}
|
|
1123
|
+
* @returns {sap.ui.model.MetaModel}
|
|
1124
|
+
* The meta model or <code>undefined</code> if no meta model exists.
|
|
1081
1125
|
*/
|
|
1082
1126
|
Model.prototype.getMetaModel = function() {
|
|
1083
1127
|
return undefined;
|
|
@@ -1086,7 +1130,8 @@ sap.ui.define([
|
|
|
1086
1130
|
/**
|
|
1087
1131
|
* Returns the original value for the property with the given path and context.
|
|
1088
1132
|
*
|
|
1089
|
-
* The original value is the value that was last responded by a server if using a server model
|
|
1133
|
+
* The original value is the value that was last responded by a server if using a server model
|
|
1134
|
+
* implementation.
|
|
1090
1135
|
*
|
|
1091
1136
|
* @param {string} sPath Path/name of the property
|
|
1092
1137
|
* @param {sap.ui.model.Context} [oContext] Context if available to access the property value
|
|
@@ -1114,15 +1159,18 @@ sap.ui.define([
|
|
|
1114
1159
|
/**
|
|
1115
1160
|
* Checks whether the given filters contain an unsupported operator.
|
|
1116
1161
|
*
|
|
1117
|
-
* OData v1, v2 and Client Bindings cannot be filtered with
|
|
1118
|
-
* <code>"Any"</code> and <code>"All"</code>. The
|
|
1119
|
-
* can be configured in each model
|
|
1162
|
+
* OData v1, v2 and Client Bindings cannot be filtered with
|
|
1163
|
+
* <code>sap.ui.model.FilterOperator</code>s, <code>"Any"</code> and <code>"All"</code>. The
|
|
1164
|
+
* model property <code>mUnsupportedFilterOperators</code> can be configured in each model
|
|
1165
|
+
* subclass to describe the unsupported operators.
|
|
1120
1166
|
*
|
|
1121
1167
|
* If any of the given filters contains nested filters, those are checked recursively.
|
|
1122
1168
|
*
|
|
1123
|
-
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilters
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1169
|
+
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilters
|
|
1170
|
+
* Single filter or an array of filter instances
|
|
1171
|
+
* @throws {Error}
|
|
1172
|
+
* If at least one filter uses an <code>sap.ui.model.FilterOperator</code> that is not
|
|
1173
|
+
* supported by the related model instance
|
|
1126
1174
|
* @private
|
|
1127
1175
|
* @ui5-restricted sap.ui.model
|
|
1128
1176
|
*/
|
|
@@ -1155,8 +1203,11 @@ sap.ui.define([
|
|
|
1155
1203
|
/**
|
|
1156
1204
|
* Traverses the given filter tree.
|
|
1157
1205
|
*
|
|
1158
|
-
* @param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters
|
|
1159
|
-
*
|
|
1206
|
+
* @param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters
|
|
1207
|
+
* Array of filters or a single filter instance, which will be checked for unsupported filter
|
|
1208
|
+
* operators
|
|
1209
|
+
* @param {function} fnCheck
|
|
1210
|
+
* Check function which is called for each filter instance in the tree
|
|
1160
1211
|
* @private
|
|
1161
1212
|
*/
|
|
1162
1213
|
function _traverseFilter (vFilters, fnCheck) {
|