@openui5/sap.ui.core 1.95.0 → 1.96.3
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 +12 -0
- package/.reuse/dep5 +10 -5
- package/THIRDPARTY.txt +17 -8
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +6 -5
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +2 -2
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +2 -3
- package/src/sap/ui/core/ComponentContainer.js +9 -3
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +6 -2
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +64 -6
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +2 -2
- 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 +3 -4
- package/src/sap/ui/core/IconPool.js +11 -0
- package/src/sap/ui/core/IconRenderer.js +4 -4
- 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 +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Patcher.js +27 -3
- package/src/sap/ui/core/Placeholder.js +4 -4
- package/src/sap/ui/core/RenderManager.js +20 -4
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +3 -4
- 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 +112 -37
- package/src/sap/ui/core/_IconRegistry.js +31 -98
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +16 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- 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/Router.js +8 -1
- package/src/sap/ui/core/routing/async/Target.js +2 -4
- 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/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +37 -43
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/Icon.less +9 -0
- package/src/sap/ui/core/themes/base/SAP-icons.css +2 -0
- package/src/sap/ui/core/themes/base/SAP-icons.less +10 -0
- package/src/sap/ui/core/themes/base/base.less +543 -390
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/themes/base/global.less +38 -0
- package/src/sap/ui/core/themes/base/library.source.less +1 -2
- package/src/sap/ui/core/themes/sap_hcb/global.less +34 -0
- package/src/sap/ui/core/theming/Parameters.js +22 -142
- package/src/sap/ui/core/theming/ThemeHelper.js +26 -37
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +4 -0
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +36 -28
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +6 -3
- 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 +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/Highlighter.js +8 -2
- package/src/sap/ui/debug/PropertyList.js +1 -1
- 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 +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +1 -1
- 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 +41 -29
- 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 +3 -2
- package/src/sap/ui/model/json/JSONListBinding.js +8 -5
- package/src/sap/ui/model/json/JSONModel.js +21 -14
- 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 +20 -14
- 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 +2 -2
- package/src/sap/ui/model/odata/ODataMetadata.js +2 -2
- package/src/sap/ui/model/odata/ODataModel.js +2 -2
- 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 +1 -1
- 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 +59 -9
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +2 -2
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +212 -45
- package/src/sap/ui/model/odata/v2/ODataModel.js +139 -59
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +2 -2
- package/src/sap/ui/model/odata/v2/_CreatedContextsCache.js +129 -0
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataBinding.js +2 -3
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +37 -26
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +22 -12
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +30 -20
- package/src/sap/ui/model/odata/v4/ODataModel.js +4 -4
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +37 -28
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +3 -5
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +2 -2
- package/src/sap/ui/model/resource/ResourceModel.js +2 -1
- 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 +67 -40
- 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 +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/matchers/I18NText.js +2 -2
- package/src/sap/ui/test/opaQunit.js +1 -1
- package/src/sap/ui/test/starter/createSuite.js +2 -1
- package/src/sap/ui/thirdparty/IPv6.js +2 -2
- package/src/sap/ui/thirdparty/SecondLevelDomains.js +2 -2
- package/src/sap/ui/thirdparty/URI.js +14 -5
- package/src/sap/ui/thirdparty/URITemplate.js +2 -2
- 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/ui5.yaml +5 -2
|
@@ -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.TreeBindingAdapter
|
|
8
8
|
sap.ui.define(["sap/base/util/each"],
|
|
9
9
|
function(each) {
|
|
@@ -15,13 +15,20 @@ sap.ui.define(["sap/base/util/each"],
|
|
|
15
15
|
*
|
|
16
16
|
* This module is only for experimental and internal use!
|
|
17
17
|
*
|
|
18
|
+
* @param {sap.ui.model.TreeBinding} oBinding
|
|
19
|
+
* The binding to add ListBinding functionality to
|
|
20
|
+
* @param {object} oControl
|
|
21
|
+
* The tree or tree table control using the given binding; the control is used for
|
|
22
|
+
* selection handling
|
|
23
|
+
*
|
|
18
24
|
* @alias sap.ui.model.TreeBindingCompatibilityAdapter
|
|
19
25
|
* @class
|
|
20
26
|
* @protected
|
|
27
|
+
*
|
|
28
|
+
* @deprecated use {@link sap.ui.model.TreeBindingAdapter} instead
|
|
21
29
|
*/
|
|
22
|
-
var TreeBindingCompatibilityAdapter = function (oBinding,
|
|
30
|
+
var TreeBindingCompatibilityAdapter = function (oBinding, oControl) {
|
|
23
31
|
// Code necessary for ClientTreeBinding
|
|
24
|
-
var that = oTable;
|
|
25
32
|
Object.assign(oBinding, {
|
|
26
33
|
_init: function(bExpandFirstLevel) {
|
|
27
34
|
this._bExpandFirstLevel = bExpandFirstLevel;
|
|
@@ -219,19 +226,19 @@ sap.ui.define(["sap/base/util/each"],
|
|
|
219
226
|
this.toggleContext(this.getContextByIndex(iRowIndex));
|
|
220
227
|
},
|
|
221
228
|
storeSelection: function() {
|
|
222
|
-
var aSelectedIndices =
|
|
229
|
+
var aSelectedIndices = oControl.getSelectedIndices();
|
|
223
230
|
var aSelectedContexts = [];
|
|
224
231
|
each(aSelectedIndices, function(iIndex, iValue) {
|
|
225
|
-
aSelectedContexts.push(
|
|
232
|
+
aSelectedContexts.push(oControl.getContextByIndex(iValue));
|
|
226
233
|
});
|
|
227
234
|
this._aSelectedContexts = aSelectedContexts;
|
|
228
235
|
},
|
|
229
236
|
restoreSelection: function() {
|
|
230
|
-
|
|
237
|
+
oControl.clearSelection();
|
|
231
238
|
var _aSelectedContexts = this._aSelectedContexts;
|
|
232
239
|
each(this.aContexts, function(iIndex, oContext) {
|
|
233
240
|
if (((_aSelectedContexts ? _aSelectedContexts.indexOf(oContext) : -1)) >= 0) {
|
|
234
|
-
|
|
241
|
+
oControl.addSelectionInterval(iIndex, iIndex);
|
|
235
242
|
}
|
|
236
243
|
});
|
|
237
244
|
this._aSelectedContexts = undefined;
|
|
@@ -242,13 +249,13 @@ sap.ui.define(["sap/base/util/each"],
|
|
|
242
249
|
},
|
|
243
250
|
detachSelectionChanged: function() {}, // for compatibility
|
|
244
251
|
clearSelection: function () {
|
|
245
|
-
|
|
252
|
+
oControl._oSelection.clearSelection();
|
|
246
253
|
},
|
|
247
254
|
attachSort: function() {},
|
|
248
255
|
detachSort: function() {}
|
|
249
256
|
});
|
|
250
257
|
// initialize the binding
|
|
251
|
-
oBinding._init(
|
|
258
|
+
oBinding._init(oControl.getExpandFirstLevel());
|
|
252
259
|
|
|
253
260
|
};
|
|
254
261
|
|
package/src/sap/ui/model/Type.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// Disable some ESLint rules. camelcase (some "_" in names to indicate indexed variables (like in math)), valid-jsdoc (not completed yet), no-warning-comments (some TODOs are left)
|
|
8
8
|
// All other warnings, errors should be resolved
|
|
9
|
-
/*eslint camelcase:0, valid-jsdoc:0, no-warning-comments:0 */
|
|
9
|
+
/*eslint camelcase:0, valid-jsdoc:0, no-warning-comments:0, max-len:0 */
|
|
10
10
|
|
|
11
11
|
// Provides class sap.ui.model.odata.ODataListBinding
|
|
12
12
|
sap.ui.define([
|
|
@@ -52,7 +52,9 @@ sap.ui.define([
|
|
|
52
52
|
* <li>if an associated property (e.g. text property) of an additional measure is contained in
|
|
53
53
|
* the select binding parameter
|
|
54
54
|
* <li>if a dimension or a measure of the current analytical info is not contained in the select
|
|
55
|
-
* binding parameter
|
|
55
|
+
* binding parameter, unless the dimension or measure has been added automatically by the
|
|
56
|
+
* binding, because a property associated to the dimension or measure has been added as a
|
|
57
|
+
* "visible" or "inResult" column
|
|
56
58
|
* </ul>
|
|
57
59
|
*
|
|
58
60
|
* @param {sap.ui.model.analytics.AnalyticalBinding} oBinding
|
|
@@ -61,16 +63,10 @@ sap.ui.define([
|
|
|
61
63
|
* array if there are no additional select properties needed
|
|
62
64
|
*/
|
|
63
65
|
function getAdditionalSelects(oBinding) {
|
|
64
|
-
var
|
|
66
|
+
var oColumn, aComputedSelect, sComputedSelect, oDimension, i, j, oMeasure, n, sPropertyName,
|
|
67
|
+
oAnalyticalQueryRequest
|
|
65
68
|
= new odata4analytics.QueryResultRequest(oBinding.oAnalyticalQueryResult),
|
|
66
|
-
|
|
67
|
-
sComputedSelect,
|
|
68
|
-
oDimension,
|
|
69
|
-
i,
|
|
70
|
-
j,
|
|
71
|
-
oMeasure,
|
|
72
|
-
n,
|
|
73
|
-
sPropertyName,
|
|
69
|
+
|
|
74
70
|
aSelect = oBinding.mParameters.select.split(","),
|
|
75
71
|
bError = trimAndCheckForDuplicates(aSelect, oBinding.sPath);
|
|
76
72
|
|
|
@@ -106,6 +102,10 @@ sap.ui.define([
|
|
|
106
102
|
sPropertyName = aComputedSelect[i];
|
|
107
103
|
j = aSelect.indexOf(sPropertyName);
|
|
108
104
|
if (j < 0) {
|
|
105
|
+
oColumn = oBinding.mAnalyticalInfoByProperty[sPropertyName];
|
|
106
|
+
if (!oColumn || (!oColumn.visible && !oColumn.inResult)) {
|
|
107
|
+
continue; // ignore automatically added columns
|
|
108
|
+
}
|
|
109
109
|
oLogger.warning("Ignored the 'select' binding parameter, because"
|
|
110
110
|
+ " it does not contain the property '" + sPropertyName + "'",
|
|
111
111
|
oBinding.sPath);
|
|
@@ -248,10 +248,10 @@ sap.ui.define([
|
|
|
248
248
|
* A comma-separated list of property names that need to be selected.<br/>
|
|
249
249
|
* If the <code>select</code> parameter is given, it has to contain all properties that are
|
|
250
250
|
* contained in the analytical information (see
|
|
251
|
-
* {@link sap.ui.model.analytics.AnalyticalBinding#updateAnalyticalInfo})
|
|
252
|
-
* dimensions
|
|
253
|
-
*
|
|
254
|
-
*
|
|
251
|
+
* {@link sap.ui.model.analytics.AnalyticalBinding#updateAnalyticalInfo}). It must not contain
|
|
252
|
+
* additional dimensions or measures or associated properties for additional dimensions or
|
|
253
|
+
* measures. But it may contain additional properties like a text property of a dimension that
|
|
254
|
+
* is also selected.<br/>
|
|
255
255
|
* All properties of the <code>select</code> parameter are also considered in
|
|
256
256
|
* {@link sap.ui.model.analytics.AnalyticalBinding#getDownloadUrl}.<br/>
|
|
257
257
|
* The <code>select</code> parameter must not contain any duplicate entry.<br/>
|
|
@@ -1128,42 +1128,53 @@ sap.ui.define([
|
|
|
1128
1128
|
/**
|
|
1129
1129
|
* Updates the binding's structure with new analytical information.
|
|
1130
1130
|
*
|
|
1131
|
-
* Analytical information is the mapping of UI columns to properties in the bound OData entity
|
|
1132
|
-
* the name of the bound property and in
|
|
1131
|
+
* Analytical information is the mapping of UI columns to properties in the bound OData entity
|
|
1132
|
+
* set. Every column object contains the <code>name</code> of the bound property and in
|
|
1133
|
+
* addition:
|
|
1133
1134
|
* <ol>
|
|
1134
1135
|
* <li>A column bound to a dimension property has further boolean properties:
|
|
1135
1136
|
* <ul>
|
|
1136
|
-
* <li>grouped: dimension
|
|
1137
|
-
* <li>
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1137
|
+
* <li>grouped: dimension is used for building groups</li>
|
|
1138
|
+
* <li>inResult: if the column is not visible, but declared to be part of the result,
|
|
1139
|
+
* values for the related property are also fetched from the OData service</li>
|
|
1140
|
+
* <li>visible: if the column is visible, values for the related property are fetched from
|
|
1141
|
+
* the OData service</li>
|
|
1140
1142
|
* </ul>
|
|
1141
1143
|
* </li>
|
|
1142
1144
|
* <li>A column bound to a measure property has further boolean properties:
|
|
1143
1145
|
* <ul>
|
|
1144
|
-
* <li>
|
|
1146
|
+
* <li>inResult: if the column is not visible, but declared to be part of the result,
|
|
1147
|
+
* values for the related property are also fetched from the OData service</li>
|
|
1148
|
+
* <li>total: totals and sub-totals are provided for the measure at all aggregation
|
|
1149
|
+
* levels</li>
|
|
1150
|
+
* <li>visible: if the column is visible, values for the related property are fetched from
|
|
1151
|
+
* the OData service</li>
|
|
1145
1152
|
* </ul>
|
|
1146
1153
|
* </li>
|
|
1147
1154
|
* <li>A column bound to a hierarchy property has further properties:
|
|
1148
1155
|
* <ul>
|
|
1149
|
-
* <li>grouped: boolean value; indicates whether the hierarchy
|
|
1156
|
+
* <li>grouped: boolean value; indicates whether the hierarchy is used for building
|
|
1150
1157
|
* groups</li>
|
|
1151
1158
|
* <li>level: integer value; the hierarchy level is mandatory for at least one of those
|
|
1152
|
-
* columns that represent the same hierarchy
|
|
1159
|
+
* columns that represent the same hierarchy</li>
|
|
1153
1160
|
* </ul>
|
|
1154
1161
|
* </li>
|
|
1155
1162
|
* </ol>
|
|
1156
1163
|
*
|
|
1157
|
-
* Invoking this function resets the state of the binding and subsequent data requests such as
|
|
1158
|
-
*
|
|
1164
|
+
* Invoking this function resets the state of the binding and subsequent data requests such as
|
|
1165
|
+
* calls to getNodeContexts() trigger OData requests in order to fetch the data that are in line
|
|
1166
|
+
* with this analytical information.
|
|
1159
1167
|
*
|
|
1160
|
-
*
|
|
1168
|
+
* Be aware that a call of this function might lead to additional back-end requests, as well as
|
|
1169
|
+
* a control re-rendering later on.
|
|
1161
1170
|
* Whenever possible use the API of the analytical control, instead of relying on the binding.
|
|
1162
1171
|
*
|
|
1163
1172
|
* @function
|
|
1164
1173
|
* @name sap.ui.model.analytics.AnalyticalBinding.prototype.updateAnalyticalInfo
|
|
1165
|
-
* @param {
|
|
1166
|
-
*
|
|
1174
|
+
* @param {object[]} aColumns
|
|
1175
|
+
* An array with objects holding the analytical information for every column
|
|
1176
|
+
* @param {boolean} bForceChange
|
|
1177
|
+
* Whether to fire a change event asynchronously even if columns didn't change
|
|
1167
1178
|
* @protected
|
|
1168
1179
|
*/
|
|
1169
1180
|
AnalyticalBinding.prototype.updateAnalyticalInfo = function(aColumns, bForceChange) {
|
|
@@ -3383,6 +3394,7 @@ sap.ui.define([
|
|
|
3383
3394
|
// function implementation starts here
|
|
3384
3395
|
|
|
3385
3396
|
if (oData.results.length == 0) {
|
|
3397
|
+
this.bNeedsUpdate = true;
|
|
3386
3398
|
return;
|
|
3387
3399
|
}
|
|
3388
3400
|
// Collecting contexts
|
|
@@ -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
|
"./AnalyticalBinding",
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// Disable some ESLint rules. camelcase (some "_" in names to indicate indexed variables (like in
|
|
7
|
+
// Disable some ESLint rules. camelcase (some "_" in names to indicate indexed variables (like in
|
|
8
|
+
// math)), valid-jsdoc (not completed yet), no-warning-comments (some TODOs are left)
|
|
8
9
|
// All other warnings, errors should be resolved
|
|
9
|
-
/*eslint-disable camelcase, valid-jsdoc, no-warning-comments */
|
|
10
|
+
/*eslint-disable camelcase, valid-jsdoc, no-warning-comments, max-len */
|
|
10
11
|
|
|
11
12
|
// Provides API for analytical extensions in OData service metadata
|
|
12
13
|
sap.ui.define([
|
|
@@ -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
|
"sap/base/Log",
|
|
@@ -142,20 +142,22 @@ sap.ui.define([
|
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Check whether this Binding would provide new values and in case it changed,
|
|
146
|
-
*
|
|
145
|
+
* Check whether this Binding would provide new values and in case it changed, fire a change
|
|
146
|
+
* event with change reason <code>sap.ui.model.ChangeReason.Change</code>.
|
|
147
147
|
*
|
|
148
148
|
* @param {boolean} bForceupdate
|
|
149
|
+
* Whether the change event will be fired regardless of the bindings state
|
|
149
150
|
*
|
|
150
151
|
*/
|
|
151
152
|
JSONListBinding.prototype.checkUpdate = function(bForceupdate){
|
|
153
|
+
var oList;
|
|
152
154
|
|
|
153
155
|
if (this.bSuspended && !this.bIgnoreSuspend && !bForceupdate) {
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
if (!this.bUseExtendedChangeDetection) {
|
|
158
|
-
|
|
160
|
+
oList = this.oModel._getObject(this.sPath, this.oContext) || [];
|
|
159
161
|
if (!deepEqual(this.oList, oList) || bForceupdate) {
|
|
160
162
|
this.update();
|
|
161
163
|
this._fireChange({reason: ChangeReason.Change});
|
|
@@ -165,7 +167,7 @@ sap.ui.define([
|
|
|
165
167
|
var that = this;
|
|
166
168
|
|
|
167
169
|
//If the list has changed we need to update the indices first
|
|
168
|
-
|
|
170
|
+
oList = this.oModel._getObject(this.sPath, this.oContext) || [];
|
|
169
171
|
if (this.oList.length != oList.length) {
|
|
170
172
|
bChangeDetected = true;
|
|
171
173
|
}
|
|
@@ -185,6 +187,7 @@ sap.ui.define([
|
|
|
185
187
|
bChangeDetected = true;
|
|
186
188
|
return false;
|
|
187
189
|
}
|
|
190
|
+
return true;
|
|
188
191
|
});
|
|
189
192
|
}
|
|
190
193
|
} 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
|
/**
|
|
8
8
|
* JSON-based DataBinding
|
|
9
9
|
*
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @extends sap.ui.model.ClientModel
|
|
45
45
|
*
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.96.3
|
|
48
48
|
* @public
|
|
49
49
|
* @alias sap.ui.model.json.JSONModel
|
|
50
50
|
*/
|
|
@@ -118,12 +118,14 @@ sap.ui.define([
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function observeRecursive(oObject, oParentObject, sName) {
|
|
121
|
+
var i;
|
|
122
|
+
|
|
121
123
|
if (Array.isArray(oObject)) {
|
|
122
|
-
for (
|
|
124
|
+
for (i = 0; i < oObject.length; i++) {
|
|
123
125
|
observeRecursive(oObject[i], oObject, i);
|
|
124
126
|
}
|
|
125
127
|
} else if (isPlainObject(oObject)) {
|
|
126
|
-
for (
|
|
128
|
+
for (i in oObject) {
|
|
127
129
|
observeRecursive(oObject[i], oObject, i);
|
|
128
130
|
}
|
|
129
131
|
}
|
|
@@ -211,10 +213,10 @@ sap.ui.define([
|
|
|
211
213
|
// the textStatus is either passed by jQuery via arguments,
|
|
212
214
|
// or by us from a promise reject() in the async case
|
|
213
215
|
var sMessage = sTextStatus || oParams.textStatus;
|
|
214
|
-
var
|
|
215
|
-
var iStatusCode =
|
|
216
|
-
var sStatusText =
|
|
217
|
-
var sResponseText =
|
|
216
|
+
var oParameters = bAsync ? oParams.request : oParams;
|
|
217
|
+
var iStatusCode = oParameters.status;
|
|
218
|
+
var sStatusText = oParameters.statusText;
|
|
219
|
+
var sResponseText = oParameters.responseText;
|
|
218
220
|
|
|
219
221
|
var oError = {
|
|
220
222
|
message : sMessage,
|
|
@@ -231,6 +233,8 @@ sap.ui.define([
|
|
|
231
233
|
if (bAsync) {
|
|
232
234
|
return Promise.reject(oError);
|
|
233
235
|
}
|
|
236
|
+
|
|
237
|
+
return undefined;
|
|
234
238
|
}.bind(this);
|
|
235
239
|
|
|
236
240
|
var _loadData = function(fnSuccess, fnError) {
|
|
@@ -270,6 +274,8 @@ sap.ui.define([
|
|
|
270
274
|
return pReturn;
|
|
271
275
|
} else {
|
|
272
276
|
_loadData(fnSuccess, fnError);
|
|
277
|
+
|
|
278
|
+
return undefined;
|
|
273
279
|
}
|
|
274
280
|
};
|
|
275
281
|
|
|
@@ -309,12 +315,13 @@ sap.ui.define([
|
|
|
309
315
|
/**
|
|
310
316
|
* @see sap.ui.model.Model.prototype.bindTree
|
|
311
317
|
*
|
|
312
|
-
* @param {object}
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
+
* @param {object} [mParameters=null]
|
|
319
|
+
* Additional model specific parameters; if the mParameter <code>arrayNames</code> is
|
|
320
|
+
* specified with an array of string names these names will be checked against the tree data
|
|
321
|
+
* structure and the found data in this array is included in the tree, but only if the parent
|
|
322
|
+
* array is also included; if this parameter is not specified then all found arrays in the
|
|
323
|
+
* data structure are bound; if the tree data structure doesn't contain an array, this
|
|
324
|
+
* parameter doesn't need to be specified
|
|
318
325
|
*
|
|
319
326
|
*/
|
|
320
327
|
JSONModel.prototype.bindTree = function(sPath, oContext, aFilters, mParameters, aSorters) {
|
|
@@ -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([
|
|
9
9
|
'sap/ui/model/ChangeReason',
|
|
@@ -51,10 +51,11 @@ sap.ui.define([
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Check whether this Binding would provide new values and in case it changed,
|
|
55
|
-
*
|
|
54
|
+
* Check whether this Binding would provide new values and in case it changed, fire a change
|
|
55
|
+
* event with change reason <code>Change</code>.
|
|
56
56
|
*
|
|
57
57
|
* @param {boolean} bForceupdate
|
|
58
|
+
* Whether the change event will be fired regardless of the bindings state
|
|
58
59
|
*
|
|
59
60
|
*/
|
|
60
61
|
JSONPropertyBinding.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 the JSON model implementation of a list binding
|
|
8
8
|
sap.ui.define(['sap/ui/model/ClientTreeBinding'],
|
|
9
9
|
function(ClientTreeBinding) {
|
|
@@ -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
|
"sap/base/strings/hash",
|
|
@@ -135,16 +135,18 @@ sap.ui.define([
|
|
|
135
135
|
* inform interested parties about this.
|
|
136
136
|
*
|
|
137
137
|
* @param {boolean} bForceupdate
|
|
138
|
+
* Whether interested parties should be informed regardless of the bindings state
|
|
138
139
|
*
|
|
139
140
|
*/
|
|
140
141
|
MessageListBinding.prototype.checkUpdate = function(bForceupdate){
|
|
142
|
+
var oList;
|
|
141
143
|
|
|
142
144
|
if (this.bSuspended && !this.bIgnoreSuspend) {
|
|
143
145
|
return;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
if (!this.bUseExtendedChangeDetection) {
|
|
147
|
-
|
|
149
|
+
oList = this.oModel._getObject(this.sPath, this.oContext);
|
|
148
150
|
if (!deepEqual(this.oList, oList) || bForceupdate) {
|
|
149
151
|
this.update();
|
|
150
152
|
this._fireChange({reason: ChangeReason.Change});
|
|
@@ -154,7 +156,7 @@ sap.ui.define([
|
|
|
154
156
|
var that = this;
|
|
155
157
|
|
|
156
158
|
//If the list has changed we need to update the indices first.
|
|
157
|
-
|
|
159
|
+
oList = this.oModel._getObject(this.sPath, this.oContext);
|
|
158
160
|
if (!deepEqual(this.oList, oList)) {
|
|
159
161
|
this.update();
|
|
160
162
|
}
|
|
@@ -170,6 +172,7 @@ sap.ui.define([
|
|
|
170
172
|
bChangeDetected = true;
|
|
171
173
|
return false;
|
|
172
174
|
}
|
|
175
|
+
return true;
|
|
173
176
|
});
|
|
174
177
|
}
|
|
175
178
|
} 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
|
/**
|
|
8
8
|
* Message DataBinding
|
|
9
9
|
*
|
|
@@ -29,7 +29,7 @@ sap.ui.define(['sap/ui/model/BindingMode', 'sap/ui/model/ClientModel', 'sap/ui/m
|
|
|
29
29
|
* @extends sap.ui.model.ClientModel
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.96.3
|
|
33
33
|
*
|
|
34
34
|
* @param {sap.ui.core.message.MessageManager} oMessageManager The MessageManager instance
|
|
35
35
|
* @public
|
|
@@ -90,7 +90,12 @@ sap.ui.define(['sap/ui/model/BindingMode', 'sap/ui/model/ClientModel', 'sap/ui/m
|
|
|
90
90
|
* Unsupported operation.
|
|
91
91
|
*
|
|
92
92
|
* Other models provide this method to set a new value for a specific property.
|
|
93
|
-
* <code>MessageModel</code> does not support it as it supports the <code>OneWay</code> mode
|
|
93
|
+
* <code>MessageModel</code> does not support it as it supports the <code>OneWay</code> mode
|
|
94
|
+
* only.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} sPath Unused in this implementation
|
|
97
|
+
* @param {object} oValue Unused in this implementation
|
|
98
|
+
* @param {sap.ui.model.Context} oContext Unused in this implementation
|
|
94
99
|
*
|
|
95
100
|
* @public
|
|
96
101
|
*/
|
|
@@ -100,23 +105,24 @@ sap.ui.define(['sap/ui/model/BindingMode', 'sap/ui/model/ClientModel', 'sap/ui/m
|
|
|
100
105
|
};
|
|
101
106
|
|
|
102
107
|
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
* Returns the value for the property with the given <code>sPropertyName</code>.
|
|
109
|
+
*
|
|
110
|
+
* @param {string} sPath The path to the property
|
|
111
|
+
* @param {sap.ui.model.Context} [oContext] The context to resolve a relative path with
|
|
112
|
+
*
|
|
113
|
+
* @return {any} The value of the property
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
111
116
|
MessageModel.prototype.getProperty = function(sPath, oContext) {
|
|
112
117
|
return this._getObject(sPath, oContext);
|
|
113
118
|
|
|
114
119
|
};
|
|
115
120
|
|
|
116
121
|
/**
|
|
117
|
-
* @param {string} sPath
|
|
118
|
-
* @param {
|
|
119
|
-
*
|
|
122
|
+
* @param {string} sPath The path to the property
|
|
123
|
+
* @param {sap.ui.model.Context} [oContext] The context to resolve a relative path with
|
|
124
|
+
*
|
|
125
|
+
* @returns {any} The node of the specified path/context
|
|
120
126
|
*/
|
|
121
127
|
MessageModel.prototype._getObject = function (sPath, oContext) {
|
|
122
128
|
var oNode;
|
|
@@ -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([
|
|
9
9
|
'sap/ui/model/ChangeReason',
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* inform interested parties about this.
|
|
44
44
|
*
|
|
45
45
|
* @param {boolean} bForceupdate
|
|
46
|
-
*
|
|
46
|
+
* Whether interested parties should be informed regardless of the bindings state
|
|
47
47
|
*/
|
|
48
48
|
MessagePropertyBinding.prototype.checkUpdate = function(bForceupdate){
|
|
49
49
|
var oValue = this._getValue();
|
|
@@ -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 object sap.ui.model.odata.AnnotationHelper
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./_AnnotationHelperBasics",
|
|
@@ -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
|
"./AnnotationParser",
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
27
|
* @version
|
|
28
|
-
* 1.
|
|
28
|
+
* 1.96.3
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
* @deprecated As of version 1.66, please use {@link sap.ui.model.odata.v2.ODataAnnotations} instead.
|
|
@@ -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(['sap/ui/model/ContextBinding', 'sap/ui/model/ChangeReason'],
|
|
9
9
|
function(ContextBinding, ChangeReason) {
|