@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 JSON model implementation of a list binding
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./ChangeReason",
|
|
@@ -220,7 +220,10 @@ sap.ui.define([
|
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Makes sure the path is prepended and appended with a "/" if necessary.
|
|
223
|
-
*
|
|
223
|
+
*
|
|
224
|
+
* @param {string} sContextPath The path to be checked
|
|
225
|
+
*
|
|
226
|
+
* @returns {string} The sanitized path
|
|
224
227
|
*/
|
|
225
228
|
ClientTreeBinding.prototype._sanitizePath = function (sContextPath) {
|
|
226
229
|
if (!sContextPath.endsWith("/")) {
|
|
@@ -291,7 +294,6 @@ sap.ui.define([
|
|
|
291
294
|
}
|
|
292
295
|
this._mLengthsCache = {};
|
|
293
296
|
this._fireChange({reason: "filter"});
|
|
294
|
-
// TODO remove this if the filter event is removed
|
|
295
297
|
this._fireFilter({filters: aFilters});
|
|
296
298
|
|
|
297
299
|
return this;
|
|
@@ -363,11 +365,12 @@ sap.ui.define([
|
|
|
363
365
|
|
|
364
366
|
/**
|
|
365
367
|
* Sorts the contexts of this ClientTreeBinding.
|
|
366
|
-
* The tree will be sorted level by level. So the nodes are NOT sorted absolute, but relative to
|
|
367
|
-
* to keep the hierarchy untouched.
|
|
368
|
+
* The tree will be sorted level by level. So the nodes are NOT sorted absolute, but relative to
|
|
369
|
+
* their parent node, to keep the hierarchy untouched.
|
|
368
370
|
*
|
|
369
|
-
* @param {sap.ui.model.Sorter[]}
|
|
370
|
-
*
|
|
371
|
+
* @param {sap.ui.model.Sorter[]} aSorters An array of Sorter instances which will be applied
|
|
372
|
+
*
|
|
373
|
+
* @return {this} Returns <code>this</code> to facilitate method chaining
|
|
371
374
|
* @public
|
|
372
375
|
*/
|
|
373
376
|
ClientTreeBinding.prototype.sort = function (aSorters) {
|
|
@@ -396,7 +399,10 @@ sap.ui.define([
|
|
|
396
399
|
|
|
397
400
|
/**
|
|
398
401
|
* Sets the length cache.
|
|
399
|
-
* Called by get*Contexts() to keep track of the child count (after filtering)
|
|
402
|
+
* Called by get*Contexts() to keep track of the child count (after filtering).
|
|
403
|
+
*
|
|
404
|
+
* @param {string} sKey The cache entry to set the length for
|
|
405
|
+
* @param {number} iLength The new length
|
|
400
406
|
*/
|
|
401
407
|
ClientTreeBinding.prototype._setLengthCache = function (sKey, iLength) {
|
|
402
408
|
// keep track of the child count for each context (after filtering)
|
|
@@ -407,7 +413,7 @@ sap.ui.define([
|
|
|
407
413
|
* Check whether this Binding would provide new values and in case it changed,
|
|
408
414
|
* inform interested parties about this.
|
|
409
415
|
*
|
|
410
|
-
* @param {boolean} bForceupdate
|
|
416
|
+
* @param {boolean} bForceupdate Not used in this method
|
|
411
417
|
*
|
|
412
418
|
*/
|
|
413
419
|
ClientTreeBinding.prototype.checkUpdate = function(bForceupdate){
|
|
@@ -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 class sap.ui.model.odata.ODataAnnotations
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/ui/model/TreeBinding',
|
|
@@ -50,14 +50,6 @@ sap.ui.define([
|
|
|
50
50
|
|
|
51
51
|
this._invalidTree = true;
|
|
52
52
|
|
|
53
|
-
// TODO: Decide if the tree state feature should be available for ClientModels
|
|
54
|
-
//-> remove comments if yes
|
|
55
|
-
|
|
56
|
-
// restore old tree state if given
|
|
57
|
-
//if (this.mParameters.treeState) {
|
|
58
|
-
// this.setTreeState(this.mParameters.treeState);
|
|
59
|
-
//}
|
|
60
|
-
|
|
61
53
|
//set the default auto expand mode
|
|
62
54
|
this.setNumberOfExpandedLevels(this.mParameters.numberOfExpandedLevels || 0);
|
|
63
55
|
};
|
|
@@ -205,30 +197,39 @@ sap.ui.define([
|
|
|
205
197
|
};
|
|
206
198
|
|
|
207
199
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
200
|
+
* Find the first node in the tree matching the search criteria. In case the tree structure
|
|
201
|
+
* is invalid, it is rebuilt before finding the node.
|
|
202
|
+
*
|
|
203
|
+
* @param {any} vParam The search criteria
|
|
204
|
+
*
|
|
205
|
+
* @returns {object} A tree node which may be a cached sum row
|
|
210
206
|
*/
|
|
211
|
-
ClientTreeBindingAdapter.prototype.findNode = function () {
|
|
207
|
+
ClientTreeBindingAdapter.prototype.findNode = function (vParam) {
|
|
212
208
|
this._buildTree();
|
|
213
209
|
return TreeBindingAdapter.prototype.findNode.apply(this, arguments);
|
|
214
210
|
};
|
|
215
211
|
|
|
216
212
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
213
|
+
* Marks a single node as selected. In case the tree structure is invalid, it is rebuilt
|
|
214
|
+
* before a <code>setSelectedIndex</code> operation.
|
|
215
|
+
*
|
|
216
|
+
* @param {number} iRowIndex Row to mark as selected
|
|
219
217
|
*/
|
|
220
|
-
ClientTreeBindingAdapter.prototype.setSelectedIndex = function () {
|
|
218
|
+
ClientTreeBindingAdapter.prototype.setSelectedIndex = function (iRowIndex) {
|
|
221
219
|
this._buildTree();
|
|
222
|
-
|
|
220
|
+
TreeBindingAdapter.prototype.setSelectedIndex.apply(this, arguments);
|
|
223
221
|
};
|
|
224
222
|
|
|
225
223
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
224
|
+
* Marks multiple nodes as selected. In case the tree structure is invalid, it is rebuilt
|
|
225
|
+
* before a <code>setSelctionInterval</code> operation.
|
|
226
|
+
*
|
|
227
|
+
* @param {number} iFromIndex The first index to mark as selected
|
|
228
|
+
* @param {number} iToIndex The last index to mark as selected
|
|
228
229
|
*/
|
|
229
|
-
ClientTreeBindingAdapter.prototype.setSelectionInterval = function () {
|
|
230
|
+
ClientTreeBindingAdapter.prototype.setSelectionInterval = function (iFromIndex, iToIndex) {
|
|
230
231
|
this._buildTree();
|
|
231
|
-
|
|
232
|
+
TreeBindingAdapter.prototype.setSelectionInterval.apply(this, arguments);
|
|
232
233
|
};
|
|
233
234
|
|
|
234
235
|
/**
|
|
@@ -268,11 +269,15 @@ sap.ui.define([
|
|
|
268
269
|
};
|
|
269
270
|
|
|
270
271
|
/**
|
|
271
|
-
* Calculate the request length based on the given information
|
|
272
|
+
* Calculate the request length based on the given information.
|
|
273
|
+
*
|
|
274
|
+
* Because client treebinding knows the complete data from the very beginning, it returns
|
|
275
|
+
* the maximum group size, the current section is not considered.
|
|
272
276
|
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
277
|
+
* @param {number} iMaxGroupSize The maximum group size
|
|
278
|
+
* @param {object} oSection Information of the current section
|
|
275
279
|
*
|
|
280
|
+
* @returns {number} The request length
|
|
276
281
|
*/
|
|
277
282
|
ClientTreeBindingAdapter.prototype._calculateRequestLength = function(iMaxGroupSize, oSection) {
|
|
278
283
|
return iMaxGroupSize;
|
|
@@ -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 abstract property binding.
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./BindingMode",
|
|
@@ -28,28 +28,31 @@ sap.ui.define([
|
|
|
28
28
|
* @class
|
|
29
29
|
* Combines multiple property bindings (called 'parts') into a single one.
|
|
30
30
|
*
|
|
31
|
-
* A <code>CompositeBinding</code> combines the values from all its binding parts (each an
|
|
32
|
-
* <code>PropertyBinding</code>), either by calling a formatter function or by
|
|
33
|
-
* {@link sap.ui.model.CompositeType composite type}. When a formatter function is
|
|
34
|
-
* composite binding is automatically limited to <code>OneWay</code> mode. When a
|
|
35
|
-
* can also operate in <code>TwoWay</code> mode.
|
|
31
|
+
* A <code>CompositeBinding</code> combines the values from all its binding parts (each an
|
|
32
|
+
* instance of <code>PropertyBinding</code>), either by calling a formatter function or by
|
|
33
|
+
* involving a {@link sap.ui.model.CompositeType composite type}. When a formatter function is
|
|
34
|
+
* used, the composite binding is automatically limited to <code>OneWay</code> mode. When a
|
|
35
|
+
* type is used, the binding can also operate in <code>TwoWay</code> mode.
|
|
36
36
|
*
|
|
37
|
-
* Higher layers of the framework derive composite bindings from easy-to-write string
|
|
38
|
-
* (the following features require complex binding syntax, e.g.
|
|
37
|
+
* Higher layers of the framework derive composite bindings from easy-to-write string
|
|
38
|
+
* representations (the following features require complex binding syntax, e.g.
|
|
39
|
+
* <code>data-sap-ui-bindingSyntax="complex"</code>):
|
|
39
40
|
*
|
|
40
41
|
* XML views, for example, convert attribute values with nested curly braces like
|
|
41
42
|
* <pre>
|
|
42
43
|
* text="{fullname} &lt;{email}&gt;"
|
|
43
44
|
* </pre>
|
|
44
|
-
* into a composite binding with two parts (one property binding for property "fullname" and one
|
|
45
|
-
* property "email") and with a generic formatter function that injects the values of the
|
|
46
|
-
* the string literal "{0} <{1}>" accordingly.
|
|
45
|
+
* into a composite binding with two parts (one property binding for property "fullname" and one
|
|
46
|
+
* for property "email") and with a generic formatter function that injects the values of the
|
|
47
|
+
* parts into the string literal "{0} <{1}>" accordingly.
|
|
47
48
|
*
|
|
48
|
-
* Similarly, {@link topic:daf6852a04b44d118963968a1239d2c0 expression bindings} are parsed and
|
|
49
|
-
* into composite bindings, too. The formatter function is created by the framework
|
|
50
|
-
* calculations as defined by the expression string, taking the values from the
|
|
49
|
+
* Similarly, {@link topic:daf6852a04b44d118963968a1239d2c0 expression bindings} are parsed and
|
|
50
|
+
* converted into composite bindings, too. The formatter function is created by the framework
|
|
51
|
+
* and executes the calculations as defined by the expression string, taking the values from the
|
|
52
|
+
* binding parts as input.
|
|
51
53
|
*
|
|
52
|
-
* <b>Note:</b> A nesting of composite bindings is currently not supported (albeit being
|
|
54
|
+
* <b>Note:</b> A nesting of composite bindings is currently not supported (albeit being
|
|
55
|
+
* helpful).
|
|
53
56
|
*
|
|
54
57
|
* @see {@link topic:a2fe8e763014477e87990ff50657a0d0}
|
|
55
58
|
* @public
|
|
@@ -113,11 +116,14 @@ sap.ui.define([
|
|
|
113
116
|
};
|
|
114
117
|
|
|
115
118
|
/**
|
|
116
|
-
* Sets the optional type and internal type for the binding. The type and internal type are used
|
|
117
|
-
* The internal type is the property type of the element
|
|
119
|
+
* Sets the optional type and internal type for the binding. The type and internal type are used
|
|
120
|
+
* to do the parsing/formatting correctly. The internal type is the property type of the element
|
|
121
|
+
* which the value is formatted to.
|
|
118
122
|
*
|
|
119
|
-
* @param {sap.ui.model.CompositeType} oType
|
|
120
|
-
*
|
|
123
|
+
* @param {sap.ui.model.CompositeType} oType
|
|
124
|
+
* The type for the binding
|
|
125
|
+
* @param {string} sInternalType
|
|
126
|
+
* The internal type of the element property which this binding is bound against.
|
|
121
127
|
*
|
|
122
128
|
* @public
|
|
123
129
|
*/
|
|
@@ -197,7 +203,7 @@ sap.ui.define([
|
|
|
197
203
|
* Sets the values. This will cause the setValue to be called for each nested binding, except
|
|
198
204
|
* for undefined values in the array.
|
|
199
205
|
*
|
|
200
|
-
* @param {array} aValues
|
|
206
|
+
* @param {array} aValues The values to set for this binding
|
|
201
207
|
*
|
|
202
208
|
* @public
|
|
203
209
|
*/
|
|
@@ -218,7 +224,7 @@ sap.ui.define([
|
|
|
218
224
|
/**
|
|
219
225
|
* Returns the raw values of the property bindings in an array.
|
|
220
226
|
*
|
|
221
|
-
* @return {object}
|
|
227
|
+
* @return {object} The values of the internal property bindings in an array
|
|
222
228
|
*
|
|
223
229
|
* @public
|
|
224
230
|
*/
|
|
@@ -235,9 +241,10 @@ sap.ui.define([
|
|
|
235
241
|
};
|
|
236
242
|
|
|
237
243
|
/**
|
|
238
|
-
* Returns the current external value of the bound target which is formatted via a type or
|
|
244
|
+
* Returns the current external value of the bound target which is formatted via a type or
|
|
245
|
+
* formatter function.
|
|
239
246
|
*
|
|
240
|
-
* @return {object}
|
|
247
|
+
* @return {object} The current value of the bound target
|
|
241
248
|
*
|
|
242
249
|
* @throws {sap.ui.model.FormatException}
|
|
243
250
|
*
|
|
@@ -275,12 +282,13 @@ sap.ui.define([
|
|
|
275
282
|
};
|
|
276
283
|
|
|
277
284
|
/**
|
|
278
|
-
* Sets the external value of a composite binding. If no CompositeType is assigned to the
|
|
279
|
-
* implementation assumes a space
|
|
280
|
-
* nested binding, except for undefined values in the array.
|
|
285
|
+
* Sets the external value of a composite binding. If no CompositeType is assigned to the
|
|
286
|
+
* binding, the default implementation assumes a space-separated list of values. This will cause
|
|
287
|
+
* the setValue to be called for each nested binding, except for undefined values in the array.
|
|
288
|
+
*
|
|
289
|
+
* @param {object} oValue The value to set for this binding
|
|
290
|
+
* @return {undefined|Promise} A promise in case of asynchronous type parsing or validation
|
|
281
291
|
*
|
|
282
|
-
* @param {object} oValue the value to set for this binding
|
|
283
|
-
* @return {undefined|Promise} a promise in case of asynchronous type parsing or validation
|
|
284
292
|
* @throws sap.ui.model.ParseException
|
|
285
293
|
* @throws sap.ui.model.ValidateException
|
|
286
294
|
*
|
|
@@ -292,10 +300,10 @@ sap.ui.define([
|
|
|
292
300
|
|
|
293
301
|
if (this.sInternalType === "raw") {
|
|
294
302
|
this.setRawValue(oValue);
|
|
295
|
-
return;
|
|
303
|
+
return undefined;
|
|
296
304
|
} else if (this.sInternalType === "internal") {
|
|
297
305
|
this.setInternalValue(oValue);
|
|
298
|
-
return;
|
|
306
|
+
return undefined;
|
|
299
307
|
}
|
|
300
308
|
|
|
301
309
|
oInternalType = this.sInternalType && DataType.getType(this.sInternalType);
|
|
@@ -303,7 +311,7 @@ sap.ui.define([
|
|
|
303
311
|
// No twoway binding when using formatters
|
|
304
312
|
if (this.fnFormatter) {
|
|
305
313
|
Log.warning("Tried to use twoway binding, but a formatter function is used");
|
|
306
|
-
return;
|
|
314
|
+
return undefined;
|
|
307
315
|
}
|
|
308
316
|
|
|
309
317
|
oDataState = this.getDataState();
|
|
@@ -358,10 +366,10 @@ sap.ui.define([
|
|
|
358
366
|
};
|
|
359
367
|
|
|
360
368
|
/**
|
|
361
|
-
* Returns the current internal value of the bound target which is an array of the
|
|
362
|
-
*
|
|
369
|
+
* Returns the current internal value of the bound target which is an array of the internal (JS
|
|
370
|
+
* native) values of nested bindings.
|
|
363
371
|
*
|
|
364
|
-
* @return {array}
|
|
372
|
+
* @return {array} The current values of the nested bindings
|
|
365
373
|
*
|
|
366
374
|
* @public
|
|
367
375
|
*/
|
|
@@ -372,10 +380,11 @@ sap.ui.define([
|
|
|
372
380
|
};
|
|
373
381
|
|
|
374
382
|
/**
|
|
375
|
-
* Sets the internal value of the bound target. Parameter must be an array of
|
|
376
|
-
*
|
|
383
|
+
* Sets the internal value of the bound target. Parameter must be an array of values matching
|
|
384
|
+
* the internal (JS native) types of nested bindings.
|
|
377
385
|
*
|
|
378
386
|
* @param {array} aValues the new values of the nested bindings
|
|
387
|
+
* @return {undefined|Promise} A promise in case of asynchronous type parsing or validation
|
|
379
388
|
*
|
|
380
389
|
* @public
|
|
381
390
|
*/
|
|
@@ -421,10 +430,10 @@ sap.ui.define([
|
|
|
421
430
|
};
|
|
422
431
|
|
|
423
432
|
/**
|
|
424
|
-
* Returns the current raw value of the bound target which is an array of the
|
|
425
|
-
*
|
|
433
|
+
* Returns the current raw value of the bound target which is an array of the raw (model)
|
|
434
|
+
* values of nested bindings.
|
|
426
435
|
*
|
|
427
|
-
* @return {array}
|
|
436
|
+
* @return {array} The current values of the nested bindings
|
|
428
437
|
*
|
|
429
438
|
* @public
|
|
430
439
|
*/
|
|
@@ -435,10 +444,11 @@ sap.ui.define([
|
|
|
435
444
|
};
|
|
436
445
|
|
|
437
446
|
/**
|
|
438
|
-
* Sets the raw value of the bound target. Parameter must be an array of
|
|
439
|
-
*
|
|
447
|
+
* Sets the raw value of the bound target. Parameter must be an array of values matching the raw
|
|
448
|
+
* (model) types of nested bindings.
|
|
440
449
|
*
|
|
441
450
|
* @param {array} aValues the new values of the nested bindings
|
|
451
|
+
* @return {undefined|Promise} A promise in case of asynchronous type parsing or validation
|
|
442
452
|
*
|
|
443
453
|
* @public
|
|
444
454
|
*/
|
|
@@ -510,6 +520,7 @@ sap.ui.define([
|
|
|
510
520
|
* method always gets the full set of values to validate, even if partial updates are
|
|
511
521
|
* used.
|
|
512
522
|
*
|
|
523
|
+
* @param {any[]} aValues Values to fill empty current values with
|
|
513
524
|
* @return {array} Array of values used for validation
|
|
514
525
|
*
|
|
515
526
|
* @private
|
|
@@ -532,7 +543,7 @@ sap.ui.define([
|
|
|
532
543
|
/**
|
|
533
544
|
* Returns the property bindings contained in this composite binding.
|
|
534
545
|
*
|
|
535
|
-
* @return {array}
|
|
546
|
+
* @return {array} The property bindings in this composite binding
|
|
536
547
|
*
|
|
537
548
|
* @public
|
|
538
549
|
*/
|
|
@@ -540,11 +551,11 @@ sap.ui.define([
|
|
|
540
551
|
return this.aBindings;
|
|
541
552
|
};
|
|
542
553
|
|
|
543
|
-
|
|
544
554
|
/**
|
|
545
555
|
* {@see sap.ui.model.Binding#hasValidation}
|
|
546
556
|
*
|
|
547
|
-
* @returns {boolean}
|
|
557
|
+
* @returns {boolean}
|
|
558
|
+
* Whether the binding throws a validation exception when an invalid value is set on it
|
|
548
559
|
* @private
|
|
549
560
|
*/
|
|
550
561
|
CompositeBinding.prototype.hasValidation = function() {
|
|
@@ -570,11 +581,12 @@ sap.ui.define([
|
|
|
570
581
|
* Attaches event handler <code>fnFunction</code> to the <code>change</code> event of this
|
|
571
582
|
* <code>sap.ui.model.CompositeBinding</code>.
|
|
572
583
|
*
|
|
573
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
574
|
-
* if specified, otherwise it will be bound to this
|
|
584
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
585
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
586
|
+
* <code>sap.ui.model.CompositeBinding</code> itself.
|
|
575
587
|
*
|
|
576
588
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
577
|
-
* @param {object} [oListener]
|
|
589
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
578
590
|
* @protected
|
|
579
591
|
*/
|
|
580
592
|
CompositeBinding.prototype.attachChange = function(fnFunction, oListener) {
|
|
@@ -605,7 +617,7 @@ sap.ui.define([
|
|
|
605
617
|
* <code>sap.ui.model.CompositeBinding</code>.
|
|
606
618
|
*
|
|
607
619
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
608
|
-
* @param {object} [oListener]
|
|
620
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
609
621
|
* @protected
|
|
610
622
|
*/
|
|
611
623
|
CompositeBinding.prototype.detachChange = function(fnFunction, oListener) {
|
|
@@ -619,14 +631,15 @@ sap.ui.define([
|
|
|
619
631
|
};
|
|
620
632
|
|
|
621
633
|
/**
|
|
622
|
-
* Attaches event handler <code>fnFunction</code> to the <code>DataStateChange</code> event of
|
|
623
|
-
* <code>sap.ui.model.CompositeBinding</code>.
|
|
634
|
+
* Attaches event handler <code>fnFunction</code> to the <code>DataStateChange</code> event of
|
|
635
|
+
* this <code>sap.ui.model.CompositeBinding</code>.
|
|
624
636
|
*
|
|
625
|
-
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
626
|
-
* if specified, otherwise it will be bound to this
|
|
637
|
+
* When called, the context of the event handler (its <code>this</code>) will be bound to
|
|
638
|
+
* <code>oListener</code> if specified, otherwise it will be bound to this
|
|
639
|
+
* <code>sap.ui.model.CompositeBinding</code> itself.
|
|
627
640
|
*
|
|
628
641
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
629
|
-
* @param {object} [oListener]
|
|
642
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
630
643
|
* @protected
|
|
631
644
|
*/
|
|
632
645
|
CompositeBinding.prototype.attachDataStateChange = function(fnFunction, oListener) {
|
|
@@ -652,7 +665,7 @@ sap.ui.define([
|
|
|
652
665
|
* this <code>sap.ui.model.CompositeBinding</code>.
|
|
653
666
|
*
|
|
654
667
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
655
|
-
* @param {object} [oListener]
|
|
668
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
656
669
|
* @protected
|
|
657
670
|
*/
|
|
658
671
|
CompositeBinding.prototype.detachDataStateChange = function(fnFunction, oListener) {
|
|
@@ -666,15 +679,15 @@ sap.ui.define([
|
|
|
666
679
|
};
|
|
667
680
|
|
|
668
681
|
/**
|
|
669
|
-
* Attaches event handler <code>fnFunction</code> to the <code>AggregatedDataStateChange</code>
|
|
670
|
-
* <code>sap.ui.model.CompositeBinding</code>.
|
|
682
|
+
* Attaches event handler <code>fnFunction</code> to the <code>AggregatedDataStateChange</code>
|
|
683
|
+
* event of this <code>sap.ui.model.CompositeBinding</code>.
|
|
671
684
|
*
|
|
672
|
-
* The <code>AggregatedDataStateChange</code> event is fired asynchronously, meaning that the
|
|
673
|
-
* object given as parameter of the event contains all changes that were
|
|
674
|
-
* in the running thread.
|
|
685
|
+
* The <code>AggregatedDataStateChange</code> event is fired asynchronously, meaning that the
|
|
686
|
+
* <code>DataState</code> object given as parameter of the event contains all changes that were
|
|
687
|
+
* applied to the <code>DataState</code> in the running thread.
|
|
675
688
|
*
|
|
676
689
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
677
|
-
* @param {object} [oListener]
|
|
690
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
678
691
|
* @protected
|
|
679
692
|
*/
|
|
680
693
|
CompositeBinding.prototype.attachAggregatedDataStateChange = function(fnFunction, oListener) {
|
|
@@ -700,11 +713,12 @@ sap.ui.define([
|
|
|
700
713
|
};
|
|
701
714
|
|
|
702
715
|
/**
|
|
703
|
-
* Detaches event handler <code>fnFunction</code> from the
|
|
704
|
-
* event of this
|
|
716
|
+
* Detaches event handler <code>fnFunction</code> from the
|
|
717
|
+
* <code>AggregatedDataStateChange</code> event of this
|
|
718
|
+
* <code>sap.ui.model.CompositeBinding</code>.
|
|
705
719
|
*
|
|
706
720
|
* @param {function} fnFunction The function to be called, when the event occurs
|
|
707
|
-
* @param {object} [oListener]
|
|
721
|
+
* @param {object} [oListener] Object on which to call the given function
|
|
708
722
|
* @protected
|
|
709
723
|
*/
|
|
710
724
|
CompositeBinding.prototype.detachAggregatedDataStateChange = function(fnFunction, oListener) {
|
|
@@ -717,11 +731,12 @@ sap.ui.define([
|
|
|
717
731
|
}
|
|
718
732
|
};
|
|
719
733
|
|
|
720
|
-
|
|
721
734
|
/**
|
|
722
|
-
* Determines if the property bindings in the composite binding should be updated by calling
|
|
735
|
+
* Determines if the property bindings in the composite binding should be updated by calling
|
|
736
|
+
* updateRequired on all property bindings with the specified model.
|
|
737
|
+
*
|
|
723
738
|
* @param {object} oModel The model instance to compare against
|
|
724
|
-
* @returns {boolean}
|
|
739
|
+
* @returns {boolean} Whether this binding should be updated
|
|
725
740
|
* @protected
|
|
726
741
|
*/
|
|
727
742
|
CompositeBinding.prototype.updateRequired = function(oModel) {
|
|
@@ -735,9 +750,11 @@ sap.ui.define([
|
|
|
735
750
|
/**
|
|
736
751
|
* Initialize the binding. The method should be called when creating a binding.
|
|
737
752
|
* The default implementation calls checkUpdate(true).
|
|
738
|
-
* Prevent checkUpdate to be triggered while initializing
|
|
753
|
+
* Prevent checkUpdate to be triggered while initializing nested bindings, it is
|
|
739
754
|
* sufficient to call checkUpdate when all nested bindings are initialized.
|
|
740
755
|
*
|
|
756
|
+
* @returns {this} A reference to itself
|
|
757
|
+
*
|
|
741
758
|
* @protected
|
|
742
759
|
*/
|
|
743
760
|
CompositeBinding.prototype.initialize = function() {
|
|
@@ -756,8 +773,9 @@ sap.ui.define([
|
|
|
756
773
|
|
|
757
774
|
|
|
758
775
|
/**
|
|
759
|
-
* Returns the data state for this binding
|
|
760
|
-
*
|
|
776
|
+
* Returns the data state for this binding.
|
|
777
|
+
*
|
|
778
|
+
* @return {sap.ui.model.CompositeDataState} The data state
|
|
761
779
|
*/
|
|
762
780
|
CompositeBinding.prototype.getDataState = function() {
|
|
763
781
|
if (!this.oDataState) {
|
|
@@ -771,9 +789,11 @@ sap.ui.define([
|
|
|
771
789
|
/**
|
|
772
790
|
* Suspends the binding update. No change events will be fired.
|
|
773
791
|
*
|
|
774
|
-
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
775
|
-
* Special operations on bindings, which require updates to work properly
|
|
776
|
-
* will also update and cause a change event although
|
|
792
|
+
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
793
|
+
* in suspended mode. Special operations on bindings, which require updates to work properly
|
|
794
|
+
* (as paging or filtering in list bindings) will also update and cause a change event although
|
|
795
|
+
* the binding is suspended.
|
|
796
|
+
*
|
|
777
797
|
* @public
|
|
778
798
|
*/
|
|
779
799
|
CompositeBinding.prototype.suspend = function() {
|
|
@@ -786,9 +806,11 @@ sap.ui.define([
|
|
|
786
806
|
/**
|
|
787
807
|
* Suspends the binding update. No change events will be fired.
|
|
788
808
|
*
|
|
789
|
-
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
790
|
-
* Special operations on bindings, which require updates to work properly
|
|
791
|
-
* will also update and cause a change event although
|
|
809
|
+
* A refresh call with bForceUpdate set to true will also update the binding and fire a change
|
|
810
|
+
* in suspended mode. Special operations on bindings, which require updates to work properly
|
|
811
|
+
* (as paging or filtering in list bindings) will also update and cause a change event although
|
|
812
|
+
* the binding is suspended.
|
|
813
|
+
*
|
|
792
814
|
* @public
|
|
793
815
|
*/
|
|
794
816
|
CompositeBinding.prototype.resume = function() {
|
|
@@ -803,7 +825,7 @@ sap.ui.define([
|
|
|
803
825
|
* Check whether this Binding would provide new values and in case it changed,
|
|
804
826
|
* inform interested parties about this.
|
|
805
827
|
*
|
|
806
|
-
* @param {boolean}
|
|
828
|
+
* @param {boolean} bForceUpdate Whether an update should be forced
|
|
807
829
|
*
|
|
808
830
|
*/
|
|
809
831
|
CompositeBinding.prototype.checkUpdate = function(bForceUpdate){
|
|
@@ -842,5 +864,4 @@ sap.ui.define([
|
|
|
842
864
|
};
|
|
843
865
|
|
|
844
866
|
return CompositeBinding;
|
|
845
|
-
|
|
846
867
|
});
|
|
@@ -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
|
sap.ui.define(['./DataState', "sap/base/util/deepEqual", "sap/base/util/each"], function(DataState, deepEqual, each) {
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define(['./DataState', "sap/base/util/deepEqual", "sap/base/util/each"],
|
|
|
14
14
|
* @extends sap.ui.model.DataState
|
|
15
15
|
*
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.96.2
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
* @alias sap.ui.model.CompositeDataState
|
|
@@ -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 composite type implementations
|
|
8
8
|
sap.ui.define(['./SimpleType'],
|
|
9
9
|
function (SimpleType) {
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['./SimpleType'],
|
|
|
39
39
|
* <code>true</code>.
|
|
40
40
|
* @extends sap.ui.model.SimpleType
|
|
41
41
|
* @public
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.96.2
|
|
43
43
|
*/
|
|
44
44
|
var CompositeType = SimpleType.extend("sap.ui.model.CompositeType", /** @lends sap.ui.model.CompositeType.prototype */ {
|
|
45
45
|
|
|
@@ -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(['sap/ui/base/Object', "sap/base/util/isPlainObject"],
|
|
9
9
|
function(BaseObject, isPlainObject) {
|
|
@@ -203,7 +203,9 @@ sap.ui.define(['sap/ui/base/Object', "sap/base/util/isPlainObject"],
|
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
* Returns the path of this Context instance.
|
|
207
|
+
*
|
|
208
|
+
* @returns {string} The path
|
|
207
209
|
*/
|
|
208
210
|
Context.prototype.toString = function() {
|
|
209
211
|
return this.sPath;
|
|
@@ -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(['./Binding'],
|
|
9
9
|
function(Binding) {
|
|
@@ -43,28 +43,20 @@ sap.ui.define(['./Binding'],
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Check whether this Binding would provide new values and in case it changed,
|
|
47
|
-
*
|
|
46
|
+
* Check whether this Binding would provide new values and in case it changed, inform interested
|
|
47
|
+
* parties about this.
|
|
48
48
|
*
|
|
49
|
-
* @param {boolean} bForceupdate
|
|
49
|
+
* @param {boolean} bForceupdate Ignored in this method
|
|
50
50
|
*/
|
|
51
51
|
ContextBinding.prototype.checkUpdate = function(bForceupdate) {
|
|
52
52
|
// nothing to do here, data changes can not change the context
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* Refreshes the binding, check whether the model data has been changed and fire change event
|
|
57
|
-
* if this is the case. For server side models this should refetch the data from the server.
|
|
58
|
-
*
|
|
59
|
-
* @param {boolean} bForceUpdate Does not have any effect on this binding
|
|
60
|
-
*
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
55
|
/**
|
|
65
56
|
* Return the bound context.
|
|
66
57
|
*
|
|
67
|
-
* @returns {sap.ui.model.Context}
|
|
58
|
+
* @returns {sap.ui.model.Context}
|
|
59
|
+
* Context object used by this context binding or <code>null</code>
|
|
68
60
|
* @public
|
|
69
61
|
*/
|
|
70
62
|
ContextBinding.prototype.getBoundContext = function() {
|