@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 an abstraction for model bindings
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/ui/base/EventProvider',
|
|
@@ -27,10 +27,10 @@ sap.ui.define([
|
|
|
27
27
|
* model for the control, so it is the event provider for changes in the data model
|
|
28
28
|
* and provides getters for accessing properties or lists.
|
|
29
29
|
*
|
|
30
|
-
* @param {sap.ui.model.Model} oModel
|
|
31
|
-
* @param {string} sPath
|
|
32
|
-
* @param {sap.ui.model.Context} oContext
|
|
33
|
-
* @param {object} [mParameters]
|
|
30
|
+
* @param {sap.ui.model.Model} oModel The model
|
|
31
|
+
* @param {string} sPath The path
|
|
32
|
+
* @param {sap.ui.model.Context} oContext The context object
|
|
33
|
+
* @param {object} [mParameters] Additional, implementation-specific parameters
|
|
34
34
|
* @abstract
|
|
35
35
|
* @public
|
|
36
36
|
* @alias sap.ui.model.Binding
|
|
@@ -70,13 +70,17 @@ sap.ui.define([
|
|
|
70
70
|
/**
|
|
71
71
|
* The <code>dataRequested</code> event is fired, when data was requested from a backend.
|
|
72
72
|
*
|
|
73
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
73
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
74
|
+
* be omitted.
|
|
74
75
|
*
|
|
75
76
|
* @name sap.ui.model.Binding#dataRequested
|
|
76
77
|
* @event
|
|
77
|
-
* @param {sap.ui.base.Event} oEvent
|
|
78
|
-
*
|
|
79
|
-
* @param {
|
|
78
|
+
* @param {sap.ui.base.Event} oEvent
|
|
79
|
+
* The event object
|
|
80
|
+
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
81
|
+
* The object on which the event initially occurred
|
|
82
|
+
* @param {object} oEvent.getParameters
|
|
83
|
+
* Object containing all event parameters
|
|
80
84
|
* @public
|
|
81
85
|
*/
|
|
82
86
|
|
|
@@ -85,14 +89,19 @@ sap.ui.define([
|
|
|
85
89
|
*
|
|
86
90
|
* This event may also be fired when an error occurred.
|
|
87
91
|
*
|
|
88
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
92
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
93
|
+
* be omitted.
|
|
89
94
|
*
|
|
90
95
|
* @name sap.ui.model.Binding#dataReceived
|
|
91
96
|
* @event
|
|
92
|
-
* @param {sap.ui.base.Event} oEvent
|
|
93
|
-
*
|
|
94
|
-
* @param {
|
|
95
|
-
*
|
|
97
|
+
* @param {sap.ui.base.Event} oEvent
|
|
98
|
+
* The event object
|
|
99
|
+
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
100
|
+
* The object on which the event initially occurred
|
|
101
|
+
* @param {object} oEvent.getParameters
|
|
102
|
+
* Object containing all event parameters
|
|
103
|
+
* @param {string} [oEvent.getParameters.data]
|
|
104
|
+
* The data received; is <code>undefined</code> in error cases
|
|
96
105
|
* @public
|
|
97
106
|
*/
|
|
98
107
|
|
|
@@ -111,38 +120,49 @@ sap.ui.define([
|
|
|
111
120
|
* @param {object} oEvent.getParameters
|
|
112
121
|
* Object containing all event parameters
|
|
113
122
|
* @param {string} [oEvent.getParameters.reason]
|
|
114
|
-
* A string stating the reason for the data change
|
|
123
|
+
* A string stating the reason for the data change; some change reasons can be found in
|
|
115
124
|
* {@link sap.ui.model.ChangeReason}, but there may be additional reasons specified by a
|
|
116
|
-
* specific model implementation
|
|
125
|
+
* specific model implementation
|
|
117
126
|
* @public
|
|
118
127
|
*/
|
|
119
128
|
|
|
120
129
|
/**
|
|
121
|
-
* The <code>DataStateChange</code> event is fired
|
|
130
|
+
* The <code>DataStateChange</code> event is fired when the <code>DataState</code> of the
|
|
131
|
+
* binding has changed.
|
|
122
132
|
*
|
|
123
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
133
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
134
|
+
* be omitted.
|
|
124
135
|
*
|
|
125
136
|
* @name sap.ui.model.Binding#DataStateChange
|
|
126
137
|
* @event
|
|
127
|
-
* @param {sap.ui.base.Event} oEvent
|
|
128
|
-
*
|
|
129
|
-
* @param {
|
|
130
|
-
*
|
|
138
|
+
* @param {sap.ui.base.Event} oEvent
|
|
139
|
+
* The event object
|
|
140
|
+
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
141
|
+
* The object on which the event initially occurred
|
|
142
|
+
* @param {object} oEvent.getParameters
|
|
143
|
+
* Object containing all event parameters
|
|
144
|
+
* @param {sap.ui.model.DataState} [oEvent.getParameters.dataState]
|
|
145
|
+
* The <code>DataState</code> object of the binding
|
|
131
146
|
* @protected
|
|
132
147
|
*/
|
|
133
148
|
|
|
134
149
|
/**
|
|
135
|
-
* The <code>AggregatedDataStateChange</code> event is fired asynchronously when all
|
|
136
|
-
* within the actual stack are done.
|
|
150
|
+
* The <code>AggregatedDataStateChange</code> event is fired asynchronously when all
|
|
151
|
+
* <code>datastateChange</code>s within the actual stack are done.
|
|
137
152
|
*
|
|
138
|
-
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
153
|
+
* Note: Subclasses might add additional parameters to the event object. Optional parameters can
|
|
154
|
+
* be omitted.
|
|
139
155
|
*
|
|
140
156
|
* @name sap.ui.model.Binding#AggregatedDataStateChange
|
|
141
157
|
* @event
|
|
142
|
-
* @param {sap.ui.base.Event} oEvent
|
|
143
|
-
*
|
|
144
|
-
* @param {
|
|
145
|
-
*
|
|
158
|
+
* @param {sap.ui.base.Event} oEvent
|
|
159
|
+
* The event object
|
|
160
|
+
* @param {sap.ui.base.EventProvider} oEvent.getSource
|
|
161
|
+
* The object on which the event initially occurred
|
|
162
|
+
* @param {object} oEvent.getParameters
|
|
163
|
+
* Object containing all event parameters
|
|
164
|
+
* @param {sap.ui.model.DataState} [oEvent.getParameters.dataState]
|
|
165
|
+
* The <code>DataState</code> object of the binding
|
|
146
166
|
* @protected
|
|
147
167
|
*/
|
|
148
168
|
|
|
@@ -202,16 +222,16 @@ sap.ui.define([
|
|
|
202
222
|
};
|
|
203
223
|
|
|
204
224
|
/**
|
|
205
|
-
* Getter for current active messages
|
|
206
|
-
* @return {Object}
|
|
225
|
+
* Getter for current active messages.
|
|
226
|
+
* @return {Object} The context object
|
|
207
227
|
*/
|
|
208
228
|
Binding.prototype.getMessages = function() {
|
|
209
229
|
return this.vMessages;
|
|
210
230
|
};
|
|
211
231
|
|
|
212
232
|
/**
|
|
213
|
-
* Returns the data state for this binding
|
|
214
|
-
* @return {sap.ui.model.DataState}
|
|
233
|
+
* Returns the data state for this binding.
|
|
234
|
+
* @return {sap.ui.model.DataState} The data state
|
|
215
235
|
*/
|
|
216
236
|
Binding.prototype.getDataState = function() {
|
|
217
237
|
if (!this.oDataState) {
|
|
@@ -302,15 +322,18 @@ sap.ui.define([
|
|
|
302
322
|
|
|
303
323
|
// Eventing and related
|
|
304
324
|
/**
|
|
305
|
-
* Attaches
|
|
306
|
-
* <code>sap.ui.model.Model</code>.
|
|
325
|
+
* Attaches the <code>fnFunction</code> event handler to the {@link #event:change change} event
|
|
326
|
+
* of this <code>sap.ui.model.Model</code>.
|
|
307
327
|
*
|
|
308
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
309
|
-
* if specified, otherwise it will be bound to this
|
|
328
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
329
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
330
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
310
331
|
*
|
|
311
|
-
* @param {function} fnFunction
|
|
312
|
-
*
|
|
313
|
-
*
|
|
332
|
+
* @param {function} fnFunction
|
|
333
|
+
* The function to be called when the event occurs
|
|
334
|
+
* @param {object} [oListener]
|
|
335
|
+
* Context object to call the event handler with; defaults to this
|
|
336
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
314
337
|
* @public
|
|
315
338
|
*/
|
|
316
339
|
Binding.prototype.attachChange = function(fnFunction, oListener) {
|
|
@@ -321,10 +344,10 @@ sap.ui.define([
|
|
|
321
344
|
};
|
|
322
345
|
|
|
323
346
|
/**
|
|
324
|
-
* Detaches event handler <code>fnFunction</code> from the {@link #event:change change} event of
|
|
325
|
-
* <code>sap.ui.model.Binding</code>.
|
|
347
|
+
* Detaches event handler <code>fnFunction</code> from the {@link #event:change change} event of
|
|
348
|
+
* this <code>sap.ui.model.Binding</code>.
|
|
326
349
|
*
|
|
327
|
-
* @param {function} fnFunction Function to be called
|
|
350
|
+
* @param {function} fnFunction Function to be called when the event occurs
|
|
328
351
|
* @param {object} [oListener] Context object on which the given function had to be called
|
|
329
352
|
* @public
|
|
330
353
|
*/
|
|
@@ -336,15 +359,19 @@ sap.ui.define([
|
|
|
336
359
|
};
|
|
337
360
|
|
|
338
361
|
/**
|
|
339
|
-
* Attaches
|
|
362
|
+
* Attaches the <code>fnFunction</code> event handler to the
|
|
363
|
+
* {@link #event:DataStateChange DataStateChange} event of thi
|
|
340
364
|
* <code>sap.ui.model.Binding</code>.
|
|
341
365
|
*
|
|
342
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
343
|
-
* if specified, otherwise it will be bound to this
|
|
366
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
367
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
368
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
344
369
|
*
|
|
345
|
-
* @param {function} fnFunction
|
|
346
|
-
*
|
|
347
|
-
*
|
|
370
|
+
* @param {function} fnFunction
|
|
371
|
+
* Function to be called when the event occurs
|
|
372
|
+
* @param {object} [oListener]
|
|
373
|
+
* Context object to call the event handler with; defaults to this
|
|
374
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
348
375
|
* @protected
|
|
349
376
|
*/
|
|
350
377
|
Binding.prototype.attachDataStateChange = function(fnFunction, oListener) {
|
|
@@ -352,10 +379,11 @@ sap.ui.define([
|
|
|
352
379
|
};
|
|
353
380
|
|
|
354
381
|
/**
|
|
355
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
382
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
383
|
+
* {@link #event:DataStateChange DataStateChange} event of this
|
|
356
384
|
* <code>sap.ui.model.Binding</code>.
|
|
357
385
|
*
|
|
358
|
-
* @param {function} fnFunction The function to be called
|
|
386
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
359
387
|
* @param {object} [oListener] Context object on which the given function had to be called
|
|
360
388
|
* @protected
|
|
361
389
|
*/
|
|
@@ -364,15 +392,19 @@ sap.ui.define([
|
|
|
364
392
|
};
|
|
365
393
|
|
|
366
394
|
/**
|
|
367
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
368
|
-
* event of this
|
|
395
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
396
|
+
* {@link #event:AggregatedDataStateChange AggregatedDataStateChange} event of this
|
|
397
|
+
* <code>sap.ui.model.Binding</code>.
|
|
369
398
|
*
|
|
370
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
371
|
-
* if specified, otherwise it will be bound to this
|
|
399
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
400
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
401
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
372
402
|
*
|
|
373
|
-
* @param {function} fnFunction
|
|
374
|
-
*
|
|
375
|
-
*
|
|
403
|
+
* @param {function} fnFunction
|
|
404
|
+
* The function to be called when the event occurs
|
|
405
|
+
* @param {object} [oListener]
|
|
406
|
+
* Context object to call the event handler with; defaults to this
|
|
407
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
376
408
|
* @protected
|
|
377
409
|
*/
|
|
378
410
|
Binding.prototype.attachAggregatedDataStateChange = function(fnFunction, oListener) {
|
|
@@ -380,10 +412,11 @@ sap.ui.define([
|
|
|
380
412
|
};
|
|
381
413
|
|
|
382
414
|
/**
|
|
383
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
384
|
-
* event of this
|
|
415
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
416
|
+
* {@link #event:AggregatedDataStateChange AggregatedDataStateChange} event of this
|
|
417
|
+
* <code>sap.ui.model.Binding</code>.
|
|
385
418
|
*
|
|
386
|
-
* @param {function} fnFunction The function to be called
|
|
419
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
387
420
|
* @param {object} [oListener] Context object on which the given function had to be called
|
|
388
421
|
* @protected
|
|
389
422
|
*/
|
|
@@ -393,8 +426,8 @@ sap.ui.define([
|
|
|
393
426
|
|
|
394
427
|
/**
|
|
395
428
|
* Fires event {@link #event:change change} to attached listeners.
|
|
396
|
-
*
|
|
397
|
-
*
|
|
429
|
+
*
|
|
430
|
+
* @param {object} oParameters Parameters to pass along with the event.
|
|
398
431
|
* @private
|
|
399
432
|
*/
|
|
400
433
|
Binding.prototype._fireChange = function(oParameters) {
|
|
@@ -402,15 +435,18 @@ sap.ui.define([
|
|
|
402
435
|
};
|
|
403
436
|
|
|
404
437
|
/**
|
|
405
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
406
|
-
* <code>sap.ui.model.Binding</code>.
|
|
438
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
439
|
+
* {@link #event:dataRequested dataRequested} event of this <code>sap.ui.model.Binding</code>.
|
|
407
440
|
*
|
|
408
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
409
|
-
* if specified, otherwise it will be bound to this
|
|
441
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
442
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
443
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
410
444
|
*
|
|
411
|
-
* @param {function} fnFunction
|
|
412
|
-
*
|
|
413
|
-
*
|
|
445
|
+
* @param {function} fnFunction
|
|
446
|
+
* The function to be called when the event occurs
|
|
447
|
+
* @param {object} [oListener]
|
|
448
|
+
* Context object to call the event handler with; defaults to this
|
|
449
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
414
450
|
* @public
|
|
415
451
|
*/
|
|
416
452
|
Binding.prototype.attachDataRequested = function(fnFunction, oListener) {
|
|
@@ -418,10 +454,10 @@ sap.ui.define([
|
|
|
418
454
|
};
|
|
419
455
|
|
|
420
456
|
/**
|
|
421
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
422
|
-
* <code>sap.ui.model.Binding</code>.
|
|
457
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
458
|
+
* {@link #event:dataRequested dataRequested} event of this <code>sap.ui.model.Binding</code>.
|
|
423
459
|
*
|
|
424
|
-
* @param {function} fnFunction The function to be called
|
|
460
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
425
461
|
* @param {object} [oListener] Context object on which the given function had to be called
|
|
426
462
|
* @public
|
|
427
463
|
*/
|
|
@@ -431,7 +467,8 @@ sap.ui.define([
|
|
|
431
467
|
|
|
432
468
|
/**
|
|
433
469
|
* Fires event {@link #event:dataRequested dataRequested} to attached listeners.
|
|
434
|
-
*
|
|
470
|
+
*
|
|
471
|
+
* @param {object} oParameters Parameters to pass along with the event
|
|
435
472
|
* @protected
|
|
436
473
|
*/
|
|
437
474
|
Binding.prototype.fireDataRequested = function(oParameters) {
|
|
@@ -439,15 +476,18 @@ sap.ui.define([
|
|
|
439
476
|
};
|
|
440
477
|
|
|
441
478
|
/**
|
|
442
|
-
* Attaches event handler <code>fnFunction</code> to the
|
|
443
|
-
* <code>sap.ui.model.Binding</code>.
|
|
479
|
+
* Attaches event handler <code>fnFunction</code> to the
|
|
480
|
+
* {@link #event:dataReceived dataReceived} event of this <code>sap.ui.model.Binding</code>.
|
|
444
481
|
*
|
|
445
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
446
|
-
* if specified, otherwise it will be bound to this
|
|
482
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
483
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
484
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
447
485
|
*
|
|
448
|
-
* @param {function} fnFunction
|
|
449
|
-
*
|
|
450
|
-
*
|
|
486
|
+
* @param {function} fnFunction
|
|
487
|
+
* Function to be called when the event occurs
|
|
488
|
+
* @param {object} [oListener]
|
|
489
|
+
* Context object to call the event handler with; defaults to this
|
|
490
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
451
491
|
* @public
|
|
452
492
|
*/
|
|
453
493
|
Binding.prototype.attachDataReceived = function(fnFunction, oListener) {
|
|
@@ -455,10 +495,10 @@ sap.ui.define([
|
|
|
455
495
|
};
|
|
456
496
|
|
|
457
497
|
/**
|
|
458
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
459
|
-
* <code>sap.ui.model.Binding</code>.
|
|
498
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
499
|
+
* {@link #event:dataReceived dataReceived} event of this <code>sap.ui.model.Binding</code>.
|
|
460
500
|
*
|
|
461
|
-
* @param {function} fnFunction Function to be called
|
|
501
|
+
* @param {function} fnFunction Function to be called when the event occurs
|
|
462
502
|
* @param {object} [oListener] Context object on which the given function had to be called
|
|
463
503
|
* @public
|
|
464
504
|
*/
|
|
@@ -471,8 +511,8 @@ sap.ui.define([
|
|
|
471
511
|
*
|
|
472
512
|
* This event may also be fired when an error occurred.
|
|
473
513
|
*
|
|
474
|
-
* @param {object} oParameters Parameters to pass along with the event
|
|
475
|
-
* @param {object} [oParameters.data] Data received
|
|
514
|
+
* @param {object} oParameters Parameters to pass along with the event
|
|
515
|
+
* @param {object} [oParameters.data] Data received; on error cases it will be undefined
|
|
476
516
|
* @protected
|
|
477
517
|
*/
|
|
478
518
|
Binding.prototype.fireDataReceived = function(oParameters) {
|
|
@@ -480,9 +520,11 @@ sap.ui.define([
|
|
|
480
520
|
};
|
|
481
521
|
|
|
482
522
|
/**
|
|
483
|
-
* Determines if the binding should be updated by comparing the current model against a
|
|
523
|
+
* Determines if the binding should be updated by comparing the current model against a
|
|
524
|
+
* specified model.
|
|
525
|
+
*
|
|
484
526
|
* @param {object} oModel The model instance to compare against
|
|
485
|
-
* @returns {boolean}
|
|
527
|
+
* @returns {boolean} Whether this binding should be updated
|
|
486
528
|
* @protected
|
|
487
529
|
*/
|
|
488
530
|
Binding.prototype.updateRequired = function(oModel) {
|
|
@@ -492,7 +534,8 @@ sap.ui.define([
|
|
|
492
534
|
/**
|
|
493
535
|
* Returns whether this binding validates the values that are set on it.
|
|
494
536
|
*
|
|
495
|
-
* @returns {boolean}
|
|
537
|
+
* @returns {boolean}
|
|
538
|
+
* Whether the binding throws a validation exception when an invalid value is set on it.
|
|
496
539
|
* @private
|
|
497
540
|
*/
|
|
498
541
|
Binding.prototype.hasValidation = function() {
|
|
@@ -500,12 +543,11 @@ sap.ui.define([
|
|
|
500
543
|
};
|
|
501
544
|
|
|
502
545
|
/**
|
|
503
|
-
* Checks whether an update of this bindings is required. If this is the case the change event
|
|
504
|
-
* the binding is fired.
|
|
505
|
-
*
|
|
506
|
-
* parameter is ignored. Subclasses should implement this, if possible.
|
|
546
|
+
* Checks whether an update of this bindings is required. If this is the case the change event
|
|
547
|
+
* of the binding is fired. The default implementation just fires the change event when the
|
|
548
|
+
* method is called. Subclasses should implement this, if possible.
|
|
507
549
|
*
|
|
508
|
-
* @param {boolean} bForceUpdate
|
|
550
|
+
* @param {boolean} bForceUpdate Whether the event should be fired when the binding is suspended
|
|
509
551
|
*
|
|
510
552
|
* @private
|
|
511
553
|
*/
|
|
@@ -548,6 +590,8 @@ sap.ui.define([
|
|
|
548
590
|
|
|
549
591
|
/**
|
|
550
592
|
* _refresh for compatibility
|
|
593
|
+
*
|
|
594
|
+
* @param {boolean} bForceUpdate Whether an update should be forced
|
|
551
595
|
* @private
|
|
552
596
|
*/
|
|
553
597
|
Binding.prototype._refresh = function(bForceUpdate) {
|
|
@@ -571,7 +615,8 @@ sap.ui.define([
|
|
|
571
615
|
};
|
|
572
616
|
|
|
573
617
|
/**
|
|
574
|
-
* Returns whether the binding is initial, which means it did not get an initial value yet
|
|
618
|
+
* Returns whether the binding is initial, which means it did not get an initial value yet.
|
|
619
|
+
*
|
|
575
620
|
* @returns {boolean} Whether the binding is initial
|
|
576
621
|
* @public
|
|
577
622
|
*/
|
|
@@ -580,7 +625,8 @@ sap.ui.define([
|
|
|
580
625
|
};
|
|
581
626
|
|
|
582
627
|
/**
|
|
583
|
-
* Returns whether the binding is relative, which means its path does not start with a slash
|
|
628
|
+
* Returns whether the binding is relative, which means its path does not start with a slash.
|
|
629
|
+
*
|
|
584
630
|
* @returns {boolean} Whether the binding is relative
|
|
585
631
|
* @public
|
|
586
632
|
*/
|
|
@@ -591,7 +637,8 @@ sap.ui.define([
|
|
|
591
637
|
/**
|
|
592
638
|
* Attach multiple events.
|
|
593
639
|
*
|
|
594
|
-
* @param {Object.<string, function>} oEvents
|
|
640
|
+
* @param {Object.<string, function>} oEvents Events to attach to this binding
|
|
641
|
+
* @returns {sap.ui.model.Binding} A reference to itself
|
|
595
642
|
* @protected
|
|
596
643
|
*/
|
|
597
644
|
Binding.prototype.attachEvents = function(oEvents) {
|
|
@@ -613,7 +660,8 @@ sap.ui.define([
|
|
|
613
660
|
/**
|
|
614
661
|
* Detach multiple events.
|
|
615
662
|
*
|
|
616
|
-
* @param {Object.<string, function>} oEvents
|
|
663
|
+
* @param {Object.<string, function>} oEvents Events to detach from this binding
|
|
664
|
+
* @returns {sap.ui.model.Binding} A reference to itself
|
|
617
665
|
* @protected
|
|
618
666
|
*/
|
|
619
667
|
Binding.prototype.detachEvents = function(oEvents) {
|
|
@@ -633,15 +681,18 @@ sap.ui.define([
|
|
|
633
681
|
};
|
|
634
682
|
|
|
635
683
|
/**
|
|
636
|
-
* Attaches event handler <code>fnFunction</code> to the {@link #event:refresh refresh} event of
|
|
637
|
-
* <code>sap.ui.model.Binding</code>.
|
|
684
|
+
* Attaches event handler <code>fnFunction</code> to the {@link #event:refresh refresh} event of
|
|
685
|
+
* this <code>sap.ui.model.Binding</code>.
|
|
638
686
|
*
|
|
639
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
640
|
-
* if specified, otherwise it will be bound to this
|
|
687
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
688
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
689
|
+
* <code>sap.ui.model.Binding</code> itself.
|
|
641
690
|
*
|
|
642
|
-
* @param {function} fnFunction
|
|
643
|
-
*
|
|
644
|
-
*
|
|
691
|
+
* @param {function} fnFunction
|
|
692
|
+
* The function to be called when the event occurs
|
|
693
|
+
* @param {object} [oListener]
|
|
694
|
+
* Context object to call the event handler with; defaults to this
|
|
695
|
+
* <code>sap.ui.model.Binding</code> itself
|
|
645
696
|
* @protected
|
|
646
697
|
*/
|
|
647
698
|
Binding.prototype.attachRefresh = function(fnFunction, oListener) {
|
|
@@ -649,10 +700,11 @@ sap.ui.define([
|
|
|
649
700
|
};
|
|
650
701
|
|
|
651
702
|
/**
|
|
652
|
-
* Detaches event handler <code>fnFunction</code> from the {@link #event:refresh refresh} event
|
|
653
|
-
* <code>sap.ui.model.Binding</code>.
|
|
654
|
-
*
|
|
655
|
-
* @param {
|
|
703
|
+
* Detaches event handler <code>fnFunction</code> from the {@link #event:refresh refresh} event
|
|
704
|
+
* of this <code>sap.ui.model.Binding</code>.
|
|
705
|
+
*
|
|
706
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
707
|
+
* @param {object} [oListener] Object on which to call the given function.
|
|
656
708
|
* @protected
|
|
657
709
|
*/
|
|
658
710
|
Binding.prototype.detachRefresh = function(fnFunction, oListener) {
|
|
@@ -661,7 +713,8 @@ sap.ui.define([
|
|
|
661
713
|
|
|
662
714
|
/**
|
|
663
715
|
* Fires event {@link #event:refresh refresh} to attached listeners.
|
|
664
|
-
*
|
|
716
|
+
*
|
|
717
|
+
* @param {object} [oParameters] The arguments to pass along with the event
|
|
665
718
|
* @private
|
|
666
719
|
*/
|
|
667
720
|
Binding.prototype._fireRefresh = function(oParameters) {
|
|
@@ -671,9 +724,11 @@ sap.ui.define([
|
|
|
671
724
|
/**
|
|
672
725
|
* Suspends the binding update. No change events will be fired.
|
|
673
726
|
*
|
|
674
|
-
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
675
|
-
* Special operations on bindings, which require updates to work properly
|
|
676
|
-
* will also update and cause a change event although
|
|
727
|
+
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
728
|
+
* in suspended mode. Special operations on bindings, which require updates to work properly
|
|
729
|
+
* (as paging or filtering in list bindings) will also update and cause a change event although
|
|
730
|
+
* the binding is suspended.
|
|
731
|
+
*
|
|
677
732
|
* @public
|
|
678
733
|
*/
|
|
679
734
|
Binding.prototype.suspend = function() {
|
|
@@ -693,9 +748,10 @@ sap.ui.define([
|
|
|
693
748
|
/**
|
|
694
749
|
* Resumes the binding update. Change events will be fired again.
|
|
695
750
|
*
|
|
696
|
-
* When the binding is resumed, a change event will be fired immediately
|
|
697
|
-
* was suspended. For server-side models, a request to the server will
|
|
698
|
-
* while the binding was suspended.
|
|
751
|
+
* When the binding is resumed, a change event will be fired immediately if the data has
|
|
752
|
+
* changed while the binding was suspended. For server-side models, a request to the server will
|
|
753
|
+
* be triggered if a refresh was requested while the binding was suspended.
|
|
754
|
+
*
|
|
699
755
|
* @public
|
|
700
756
|
*/
|
|
701
757
|
Binding.prototype.resume = function() {
|
|
@@ -735,7 +791,7 @@ sap.ui.define([
|
|
|
735
791
|
/**
|
|
736
792
|
* Checks whether an update of the data state of this binding is required.
|
|
737
793
|
*
|
|
738
|
-
* @param {map} mPaths A Map of paths to check if update needed
|
|
794
|
+
* @param {map} [mPaths] A Map of paths to check if update needed
|
|
739
795
|
* @private
|
|
740
796
|
*/
|
|
741
797
|
Binding.prototype.checkDataState = function(mPaths) {
|
|
@@ -746,7 +802,7 @@ sap.ui.define([
|
|
|
746
802
|
* Checks whether an update of the data state of this binding is required with the given path.
|
|
747
803
|
*
|
|
748
804
|
* @param {string} sResolvedPath With help of the connected model resolved path
|
|
749
|
-
* @param {map} mPaths A Map of paths to check if update needed
|
|
805
|
+
* @param {map} [mPaths] A Map of paths to check if update needed
|
|
750
806
|
* @private
|
|
751
807
|
*/
|
|
752
808
|
Binding.prototype._checkDataState = function(sResolvedPath, mPaths) {
|
|
@@ -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 an abstraction for list bindings
|
|
8
8
|
sap.ui.define(['./ContextBinding'],
|
|
9
9
|
function(ContextBinding) {
|
|
@@ -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 JSON model implementation of a list binding
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'./ChangeReason',
|
|
@@ -166,7 +166,6 @@ sap.ui.define([
|
|
|
166
166
|
this.bIgnoreSuspend = true;
|
|
167
167
|
|
|
168
168
|
this._fireChange({reason: ChangeReason.Sort});
|
|
169
|
-
// TODO remove this if the sorter event gets removed which is deprecated
|
|
170
169
|
this._fireSort({sorter: aSorters});
|
|
171
170
|
this.bIgnoreSuspend = false;
|
|
172
171
|
|
|
@@ -238,7 +237,6 @@ sap.ui.define([
|
|
|
238
237
|
this.bIgnoreSuspend = true;
|
|
239
238
|
|
|
240
239
|
this._fireChange({reason: ChangeReason.Filter});
|
|
241
|
-
// TODO remove this if the filter event gets removed which is deprecated
|
|
242
240
|
if (sFilterType == FilterType.Application) {
|
|
243
241
|
this._fireFilter({filters: this.aApplicationFilters});
|
|
244
242
|
} else {
|
|
@@ -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 client-based DataBinding implementation
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/thirdparty/jquery",
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.model.Model
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.96.2
|
|
33
33
|
*
|
|
34
34
|
* @param {string} [oData] URL where to load the data from
|
|
35
35
|
* @public
|
|
@@ -149,11 +149,11 @@ sap.ui.define([
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Does nothing.
|
|
153
153
|
*
|
|
154
|
+
* @param {sap.ui.model.Context} oContext The context to destroy
|
|
154
155
|
*/
|
|
155
156
|
ClientModel.prototype.destroyBindingContext = function(oContext) {
|
|
156
|
-
// TODO: what todo here?
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -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 JSON model implementation of a property binding
|
|
8
8
|
sap.ui.define(['./PropertyBinding'],
|
|
9
9
|
function(PropertyBinding) {
|
|
@@ -59,7 +59,9 @@ sap.ui.define(['./PropertyBinding'],
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Setter for context
|
|
62
|
+
* Setter for context.
|
|
63
|
+
*
|
|
64
|
+
* @param {sap.ui.model.Context} oContext The new context to set
|
|
63
65
|
*/
|
|
64
66
|
ClientPropertyBinding.prototype.setContext = function(oContext) {
|
|
65
67
|
if (this.oContext != oContext) {
|