@openui5/sap.ui.core 1.141.1 → 1.142.0
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/.dtsgenrc +22 -0
- package/README.md +2 -2
- package/REUSE.toml +38 -0
- package/THIRDPARTY.txt +34 -1
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/resolveReference.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +3 -3
- 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 +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +4 -4
- package/src/sap/ui/core/AppCacheBuster.js +21 -19
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/BusyIndicatorUtils.js +1 -1
- package/src/sap/ui/core/Component.js +37 -35
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- 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 +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +2 -2
- 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 -4
- 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 +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +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 +21 -20
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +13 -6
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/_UrlResolver.js +31 -29
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/interaction/KeyboardInteractionDisplay.js +21 -2
- 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/messagebundle.properties +2 -0
- package/src/sap/ui/core/messagebundle_ar.properties +1 -0
- package/src/sap/ui/core/messagebundle_bg.properties +1 -0
- package/src/sap/ui/core/messagebundle_ca.properties +1 -0
- package/src/sap/ui/core/messagebundle_cnr.properties +1 -0
- package/src/sap/ui/core/messagebundle_cs.properties +1 -0
- package/src/sap/ui/core/messagebundle_cy.properties +1 -0
- package/src/sap/ui/core/messagebundle_da.properties +1 -0
- package/src/sap/ui/core/messagebundle_de.properties +1 -0
- package/src/sap/ui/core/messagebundle_el.properties +1 -0
- package/src/sap/ui/core/messagebundle_en.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_GB.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +1 -0
- package/src/sap/ui/core/messagebundle_es.properties +1 -0
- package/src/sap/ui/core/messagebundle_es_MX.properties +1 -0
- package/src/sap/ui/core/messagebundle_et.properties +3 -2
- package/src/sap/ui/core/messagebundle_fi.properties +2 -1
- package/src/sap/ui/core/messagebundle_fr.properties +1 -0
- package/src/sap/ui/core/messagebundle_fr_CA.properties +1 -0
- package/src/sap/ui/core/messagebundle_hi.properties +1 -0
- package/src/sap/ui/core/messagebundle_hr.properties +1 -0
- package/src/sap/ui/core/messagebundle_hu.properties +1 -0
- package/src/sap/ui/core/messagebundle_id.properties +1 -0
- package/src/sap/ui/core/messagebundle_it.properties +2 -1
- package/src/sap/ui/core/messagebundle_iw.properties +1 -0
- package/src/sap/ui/core/messagebundle_ja.properties +1 -0
- package/src/sap/ui/core/messagebundle_kk.properties +9 -8
- package/src/sap/ui/core/messagebundle_ko.properties +1 -0
- package/src/sap/ui/core/messagebundle_lt.properties +1 -0
- package/src/sap/ui/core/messagebundle_lv.properties +1 -0
- package/src/sap/ui/core/messagebundle_mk.properties +1 -0
- package/src/sap/ui/core/messagebundle_ms.properties +1 -0
- package/src/sap/ui/core/messagebundle_nl.properties +1 -0
- package/src/sap/ui/core/messagebundle_no.properties +1 -0
- package/src/sap/ui/core/messagebundle_pl.properties +1 -0
- package/src/sap/ui/core/messagebundle_pt.properties +1 -0
- package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -0
- package/src/sap/ui/core/messagebundle_ro.properties +1 -0
- package/src/sap/ui/core/messagebundle_ru.properties +1 -0
- package/src/sap/ui/core/messagebundle_sh.properties +1 -0
- package/src/sap/ui/core/messagebundle_sk.properties +1 -0
- package/src/sap/ui/core/messagebundle_sl.properties +1 -0
- package/src/sap/ui/core/messagebundle_sr.properties +1 -0
- package/src/sap/ui/core/messagebundle_sv.properties +1 -0
- package/src/sap/ui/core/messagebundle_th.properties +2 -1
- package/src/sap/ui/core/messagebundle_tr.properties +1 -0
- package/src/sap/ui/core/messagebundle_uk.properties +2 -1
- package/src/sap/ui/core/messagebundle_vi.properties +1 -0
- package/src/sap/ui/core/messagebundle_zh_CN.properties +1 -0
- package/src/sap/ui/core/messagebundle_zh_TW.properties +1 -0
- 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/plugin/DeclarativeSupport.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 +31 -33
- 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 +1 -1
- 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/BlindLayer.less +4 -9
- package/src/sap/ui/core/themes/base/BusyIndicator.less +322 -1
- package/src/sap/ui/core/themes/base/CommandShortcutHints.less +9 -9
- package/src/sap/ui/core/themes/base/Icon.less +36 -35
- package/src/sap/ui/core/themes/base/library.source.less +0 -3
- package/src/sap/ui/core/themes/base/parameterClasses.less +32 -20
- package/src/sap/ui/core/themes/base/shared.less +5 -0
- package/src/sap/ui/core/theming/Parameters.js +6 -12
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/_LocalizationHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +7 -11
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +52 -3
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/base/ManagedObjectModel.js +7 -4
- package/src/sap/ui/model/json/JSONModel.js +8 -3
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +43 -15
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +19 -6
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +20 -7
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +50 -50
- package/src/sap/ui/model/odata/v4/Context.js +43 -33
- package/src/sap/ui/model/odata/v4/ODataBinding.js +3 -3
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +6 -6
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +46 -23
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +31 -34
- package/src/sap/ui/model/odata/v4/ODataModel.js +42 -38
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +5 -5
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataUtils.js +6 -6
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +46 -46
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +21 -24
- package/src/sap/ui/model/odata/v4/lib/_GroupLock.js +6 -7
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +7 -7
- package/src/sap/ui/model/odata/v4/lib/_MetadataConverter.js +2 -1
- package/src/sap/ui/model/odata/v4/lib/_MetadataRequestor.js +5 -5
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +90 -34
- package/src/sap/ui/model/odata/v4/lib/_V4MetadataConverter.js +10 -3
- package/src/sap/ui/model/odata/v4/ts.js +2 -2
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/qunit-coverage.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/_BrowserLogCollector.js +1 -4
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/starter/_utils.js +5 -59
- package/src/sap/ui/test/starter/config.js +555 -0
- package/src/sap/ui/thirdparty/jszip.js +44 -2
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_URL.js +158 -0
- package/src/ui5loader.js +2 -2
- package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +0 -293
- package/src/sap/ui/core/themes/base/Shadow.less +0 -3
- package/src/sap/ui/core/themes/base/TechnicalInfo.less +0 -157
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
/**
|
|
19
19
|
* @classdesc
|
|
20
20
|
* A collection of methods which help to consume <a href=
|
|
21
|
-
* "https://docs.oasis-open.org/odata/odata/v4.
|
|
21
|
+
* "https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html#_Toc38530401"
|
|
22
22
|
* >OData V4 annotations</a> in XML template views. Every context argument must belong to an
|
|
23
23
|
* {@link sap.ui.model.odata.v4.ODataMetaModel} instance.
|
|
24
24
|
*
|
|
@@ -43,35 +43,35 @@ sap.ui.define([
|
|
|
43
43
|
*
|
|
44
44
|
* <h3>Supported Expressions</h3>
|
|
45
45
|
* <ul>
|
|
46
|
-
* <li> "14.
|
|
46
|
+
* <li> "14.3 Constant Expressions" for "edm:Bool", "edm:Date", "edm:DateTimeOffset",
|
|
47
47
|
* "edm:Decimal", "edm:Float", "edm:Guid", "edm:Int", "edm:TimeOfDay".
|
|
48
|
-
* <li> constant "14.
|
|
48
|
+
* <li> constant "14.3.11 Expression edm:String": This is turned into a fixed text
|
|
49
49
|
* (for example <code>"Width"</code>). String constants that contain a simple
|
|
50
50
|
* binding <code>"{@i18n>...}"</code> to the hard-coded model name "@i18n" with
|
|
51
51
|
* arbitrary path are not turned into a fixed text, but kept as a data binding
|
|
52
52
|
* expression; this allows local annotation files to refer to a resource bundle for
|
|
53
53
|
* internationalization.
|
|
54
|
-
* <li> dynamic "14.
|
|
54
|
+
* <li> dynamic "14.4.2 Comparison and Logical Operators": These are turned into
|
|
55
55
|
* expression bindings to perform the operations at runtime.
|
|
56
|
-
* <li> dynamic "14.
|
|
56
|
+
* <li> dynamic "14.4.4 Expression edm:Apply":
|
|
57
57
|
* <ul>
|
|
58
|
-
* <li> "14.
|
|
59
|
-
* expression relative to an entity.
|
|
60
|
-
* <li> "14.
|
|
58
|
+
* <li> "odata.concat" from "14.4.4.1 Canonical Functions": This is turned into a
|
|
59
|
+
* data binding expression relative to an entity.
|
|
60
|
+
* <li> "14.4.4.2 Function odata.fillUriTemplate": This is turned into an
|
|
61
61
|
* expression binding to fill the template at runtime.
|
|
62
|
-
* <li> "14.
|
|
62
|
+
* <li> "14.4.4.4 Function odata.uriEncode": This is turned into an expression
|
|
63
63
|
* binding to encode the parameter at runtime.
|
|
64
64
|
* <li> Apply functions may be nested arbitrarily.
|
|
65
65
|
* </ul>
|
|
66
|
-
* <li> dynamic "14.
|
|
66
|
+
* <li> dynamic "14.4.6 Expression edm:Collection": This is turned into an expression
|
|
67
67
|
* binding to be evaluated at runtime. Elements can be conditionally added to the
|
|
68
|
-
* collection when using dynamic "14.
|
|
69
|
-
* <li> dynamic "14.
|
|
68
|
+
* collection when using dynamic "14.4.7 Expression edm:If" as a direct child.
|
|
69
|
+
* <li> dynamic "14.4.7 Expression edm:If": This is turned into an expression
|
|
70
70
|
* binding to be evaluated at runtime. The expression is a conditional expression
|
|
71
71
|
* like <code>"{=condition ? expression1 : expression2}"</code>.
|
|
72
|
-
* <li> dynamic "14.
|
|
72
|
+
* <li> dynamic "14.4.11 Expression edm:Null": This is turned into a
|
|
73
73
|
* <code>null</code> value. It is ignored in <code>odata.concat</code>.
|
|
74
|
-
* <li> dynamic "14.
|
|
74
|
+
* <li> dynamic "14.4.1.7 Expression edm:Path" and "14.4.1.6 Expression
|
|
75
75
|
* edm:PropertyPath": These are turned into data bindings relative to an entity,
|
|
76
76
|
* including type information and constraints as available from metadata, for
|
|
77
77
|
* example
|
|
@@ -100,13 +100,13 @@ sap.ui.define([
|
|
|
100
100
|
* <code>vRawValue</code> is the path itself, and not the object wrapping it.
|
|
101
101
|
* </ul>
|
|
102
102
|
* <b>Note: Import the <code>sap/ui/model/odata/ODataExpressionAddons</code> module when
|
|
103
|
-
* using 14.
|
|
103
|
+
* using 14.4.2 or 14.4.4</b>
|
|
104
104
|
*
|
|
105
105
|
* <h3>$AnnotationPath and $Path</h3>
|
|
106
106
|
* If <code>oDetails.context.getPath()</code> contains a single "$AnnotationPath" or
|
|
107
107
|
* "$Path" segment, the value corresponding to that segment is considered as a data
|
|
108
|
-
* binding path prefix whenever a dynamic "14.
|
|
109
|
-
* "14.
|
|
108
|
+
* binding path prefix whenever a dynamic "14.4.1.7 Expression edm:Path" or
|
|
109
|
+
* "14.4.1.6 Expression edm:PropertyPath" is turned into a data binding. Use
|
|
110
110
|
* {@link sap.ui.model.odata.v4.AnnotationHelper.resolve$Path} to avoid these prefixes
|
|
111
111
|
* in cases where they are not applicable.
|
|
112
112
|
*
|
|
@@ -155,8 +155,8 @@ sap.ui.define([
|
|
|
155
155
|
*
|
|
156
156
|
* <h3>Annotations on an Operation or a Parameter</h3>
|
|
157
157
|
* Since 1.71.0, for annotations on an operation or a parameter, the binding parameter's
|
|
158
|
-
* name is stripped off any dynamic "14.
|
|
159
|
-
* "14.
|
|
158
|
+
* name is stripped off any dynamic "14.4.1.7 Expression edm:Path" and
|
|
159
|
+
* "14.4.1.6 Expression edm:PropertyPath" where it might be used as a first segment.
|
|
160
160
|
* Since 1.76.0, this does not apply to annotations on a parameter.
|
|
161
161
|
* In the former case, we assume that the resulting data binding is
|
|
162
162
|
* relative to the parent context of the operation binding, that is, to the context
|
|
@@ -193,7 +193,7 @@ sap.ui.define([
|
|
|
193
193
|
*
|
|
194
194
|
* <h3>Operation Parameters</h3>
|
|
195
195
|
* Since 1.73.0, this function can be used on action or function parameters and results
|
|
196
|
-
* in a relative data binding, just like a "14.
|
|
196
|
+
* in a relative data binding, just like a "14.4.1.7 Expression edm:Path".
|
|
197
197
|
*
|
|
198
198
|
* Assume we have the following metadata for an unbound action "AcChangeTeamBudgetByID":
|
|
199
199
|
* <pre>
|
|
@@ -225,7 +225,7 @@ sap.ui.define([
|
|
|
225
225
|
*
|
|
226
226
|
* <h3>Structural Properties</h3>
|
|
227
227
|
* Since 1.78.0, this function can be used on a structural property and results in a
|
|
228
|
-
* relative data binding, just like a "14.
|
|
228
|
+
* relative data binding, just like a "14.4.1.7 Expression edm:Path". The usage
|
|
229
229
|
* <pre>
|
|
230
230
|
* <Input value="{meta>/Department/Name@@sap.ui.model.odata.v4.AnnotationHelper.format}"/>
|
|
231
231
|
* </pre>
|
|
@@ -247,7 +247,7 @@ sap.ui.define([
|
|
|
247
247
|
* @param {object} [oDetails.overload]
|
|
248
248
|
* The single operation overload that was targeted by annotations on an operation or
|
|
249
249
|
* a parameter; needed to strip off the binding parameter's name from any dynamic
|
|
250
|
-
* "14.
|
|
250
|
+
* "14.4.1.7 Expression edm:Path" and "14.4.1.6 Expression edm:PropertyPath" where it
|
|
251
251
|
* might be used as a first segment (since 1.71.0). This does not apply to annotations
|
|
252
252
|
* on a parameter (since 1.76.0).
|
|
253
253
|
* @returns {string|Promise<string>}
|
|
@@ -371,10 +371,10 @@ sap.ui.define([
|
|
|
371
371
|
* A function that helps to interpret OData V4 annotations. It knows about the syntax
|
|
372
372
|
* of the path value used by the following dynamic expressions:
|
|
373
373
|
* <ul>
|
|
374
|
-
* <li> "14.
|
|
375
|
-
* <li> "14.5
|
|
376
|
-
* <li> "14.
|
|
377
|
-
* <li> "14.
|
|
374
|
+
* <li> "14.4.1.3 Expression edm:AnnotationPath"
|
|
375
|
+
* <li> "14.4.1.5 Expression edm:NavigationPropertyPath"
|
|
376
|
+
* <li> "14.4.1.7 Expression edm:Path"
|
|
377
|
+
* <li> "14.4.1.6 Expression edm:PropertyPath"
|
|
378
378
|
* </ul>
|
|
379
379
|
* It returns the path of structural and navigation properties from the given path
|
|
380
380
|
* value, but removes "$count", types casts, term casts, and annotations on navigation
|
|
@@ -461,10 +461,10 @@ sap.ui.define([
|
|
|
461
461
|
* A function that helps to interpret OData V4 annotations. It knows about the syntax
|
|
462
462
|
* of the path value used by the following dynamic expressions:
|
|
463
463
|
* <ul>
|
|
464
|
-
* <li> "14.
|
|
465
|
-
* <li> "14.5
|
|
466
|
-
* <li> "14.
|
|
467
|
-
* <li> "14.
|
|
464
|
+
* <li> "14.4.1.3 Expression edm:AnnotationPath"
|
|
465
|
+
* <li> "14.4.1.5 Expression edm:NavigationPropertyPath"
|
|
466
|
+
* <li> "14.4.1.7 Expression edm:Path"
|
|
467
|
+
* <li> "14.4.1.6 Expression edm:PropertyPath"
|
|
468
468
|
* </ul>
|
|
469
469
|
* It returns the information whether the given path ends with "$count" or with a
|
|
470
470
|
* multi-valued structural or navigation property. Term casts and annotations on
|
|
@@ -657,35 +657,35 @@ sap.ui.define([
|
|
|
657
657
|
*
|
|
658
658
|
* <h3>Supported Expressions</h3>
|
|
659
659
|
* <ul>
|
|
660
|
-
* <li> "14.
|
|
660
|
+
* <li> "14.3 Constant Expressions" for "edm:Bool", "edm:Date", "edm:DateTimeOffset",
|
|
661
661
|
* "edm:Decimal", "edm:Float", "edm:Guid", "edm:Int", "edm:TimeOfDay".
|
|
662
|
-
* <li> constant "14.
|
|
662
|
+
* <li> constant "14.3.11 Expression edm:String": This is turned into a fixed text
|
|
663
663
|
* (for example <code>"Width"</code>). String constants that contain a simple
|
|
664
664
|
* binding <code>"{@i18n>...}"</code> to the hard-coded model name "@i18n" with
|
|
665
665
|
* arbitrary path are not turned into a fixed text, but kept as a data binding
|
|
666
666
|
* expression; this allows local annotation files to refer to a resource bundle for
|
|
667
667
|
* internationalization.
|
|
668
|
-
* <li> dynamic "14.
|
|
668
|
+
* <li> dynamic "14.4.2 Comparison and Logical Operators": These are turned into
|
|
669
669
|
* expression bindings to perform the operations at runtime.
|
|
670
|
-
* <li> dynamic "14.
|
|
670
|
+
* <li> dynamic "14.4.4 Expression edm:Apply":
|
|
671
671
|
* <ul>
|
|
672
|
-
* <li> "14.
|
|
673
|
-
* expression.
|
|
674
|
-
* <li> "14.
|
|
672
|
+
* <li> "odata.concat" from "14.4.4.1 Canonical Functions": This is turned into a
|
|
673
|
+
* data binding expression.
|
|
674
|
+
* <li> "14.4.4.2 Function odata.fillUriTemplate": This is turned into an
|
|
675
675
|
* expression binding to fill the template at runtime.
|
|
676
|
-
* <li> "14.
|
|
676
|
+
* <li> "14.4.4.4 Function odata.uriEncode": This is turned into an expression
|
|
677
677
|
* binding to encode the parameter at runtime.
|
|
678
678
|
* <li> Apply functions may be nested arbitrarily.
|
|
679
679
|
* </ul>
|
|
680
|
-
* <li> dynamic "14.
|
|
680
|
+
* <li> dynamic "14.4.6 Expression edm:Collection": This is turned into an expression
|
|
681
681
|
* binding to be evaluated at runtime. Elements can be conditionally added to the
|
|
682
|
-
* collection when using dynamic "14.
|
|
683
|
-
* <li> dynamic "14.
|
|
682
|
+
* collection when using dynamic "14.4.7 Expression edm:If" as a direct child.
|
|
683
|
+
* <li> dynamic "14.4.7 Expression edm:If": This is turned into an expression
|
|
684
684
|
* binding to be evaluated at runtime. The expression is a conditional expression
|
|
685
685
|
* like <code>"{=condition ? expression1 : expression2}"</code>.
|
|
686
|
-
* <li> dynamic "14.
|
|
686
|
+
* <li> dynamic "14.4.11 Expression edm:Null": This is turned into a
|
|
687
687
|
* <code>null</code> value. It is ignored in <code>odata.concat</code>.
|
|
688
|
-
* <li> dynamic "14.
|
|
688
|
+
* <li> dynamic "14.4.1.7 Expression edm:Path" and "14.4.1.6 Expression
|
|
689
689
|
* edm:PropertyPath": These are turned into simple data bindings, for example
|
|
690
690
|
* <code>"{Name}"</code>. Since 1.78.0, both are also supported if
|
|
691
691
|
* <code>vRawValue</code> is the path itself, and not the object wrapping it.
|
|
@@ -693,8 +693,8 @@ sap.ui.define([
|
|
|
693
693
|
*
|
|
694
694
|
* <h3>Annotations on an Operation or a Parameter</h3>
|
|
695
695
|
* Since 1.71.0, for annotations on an operation or a parameter, the binding parameter's
|
|
696
|
-
* name is stripped off any dynamic "14.
|
|
697
|
-
* "14.
|
|
696
|
+
* name is stripped off any dynamic "14.4.1.7 Expression edm:Path" and
|
|
697
|
+
* "14.4.1.6 Expression edm:PropertyPath" where it might be used as a first segment.
|
|
698
698
|
* Since 1.76.0, this does not apply to annotations on a parameter.
|
|
699
699
|
* In the former case, we assume that the resulting data binding is
|
|
700
700
|
* relative to the parent context of the operation binding, that is, to the context
|
|
@@ -731,7 +731,7 @@ sap.ui.define([
|
|
|
731
731
|
*
|
|
732
732
|
* <h3>Operation Parameters</h3>
|
|
733
733
|
* Since 1.73.0, this function can be used on action or function parameters and results
|
|
734
|
-
* in a relative data binding, just like a "14.
|
|
734
|
+
* in a relative data binding, just like a "14.4.1.7 Expression edm:Path".
|
|
735
735
|
*
|
|
736
736
|
* Assume we have the following metadata for an unbound action "AcChangeTeamBudgetByID":
|
|
737
737
|
* <pre>
|
|
@@ -762,7 +762,7 @@ sap.ui.define([
|
|
|
762
762
|
*
|
|
763
763
|
* <h3>Structural Properties</h3>
|
|
764
764
|
* Since 1.78.0, this function can be used on a structural property and results in a
|
|
765
|
-
* relative data binding, just like a "14.
|
|
765
|
+
* relative data binding, just like a "14.4.1.7 Expression edm:Path". The usage
|
|
766
766
|
* <pre>
|
|
767
767
|
* <Input value="{meta>/Department/Name@@sap.ui.model.odata.v4.AnnotationHelper.value}"/>
|
|
768
768
|
* </pre>
|
|
@@ -784,12 +784,12 @@ sap.ui.define([
|
|
|
784
784
|
* @param {object} [oDetails.overload]
|
|
785
785
|
* The single operation overload that was targeted by annotations on an operation or
|
|
786
786
|
* a parameter; needed to strip off the binding parameter's name from any dynamic
|
|
787
|
-
* "14.
|
|
787
|
+
* "14.4.1.7 Expression edm:Path" and "14.4.1.6 Expression edm:PropertyPath" where it
|
|
788
788
|
* might be used as a first segment (since 1.72.0). This does not apply to annotations
|
|
789
789
|
* on a parameter (since 1.76.0).
|
|
790
790
|
* @param {string} [oDetails.prefix=""]
|
|
791
|
-
* Optional prefix to be added to each dynamic "14.
|
|
792
|
-
* "14.
|
|
791
|
+
* Optional prefix to be added to each dynamic "14.4.1.7 Expression edm:Path" and
|
|
792
|
+
* "14.4.1.6 Expression edm:PropertyPath"; is either an empty string or a path ending
|
|
793
793
|
* with a "/" (since 1.141.0)
|
|
794
794
|
* @returns {string}
|
|
795
795
|
* A data binding or a fixed text or a sequence thereof
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @hideconstructor
|
|
43
43
|
* @public
|
|
44
44
|
* @since 1.39.0
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.142.0
|
|
46
46
|
*/
|
|
47
47
|
Context = BaseContext.extend("sap.ui.model.odata.v4.Context", {
|
|
48
48
|
constructor : constructor
|
|
@@ -874,11 +874,12 @@ sap.ui.define([
|
|
|
874
874
|
|
|
875
875
|
/**
|
|
876
876
|
* Returns the "canonical path" of the entity for this context. According to <a href=
|
|
877
|
-
* "https://docs.oasis-open.org/odata/odata/v4.
|
|
878
|
-
* >"4.3.1 Canonical URL"</a> of the specification
|
|
879
|
-
* this is the "name of the entity set associated
|
|
880
|
-
*
|
|
881
|
-
* {@link sap.ui.core.Element#bindElement} to create an element
|
|
877
|
+
* "https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#_Toc31360932"
|
|
878
|
+
* >"4.3.1 Canonical URL"</a> of the specification
|
|
879
|
+
* "OData Version 4.01. Part 2: URL Conventions", this is the "name of the entity set associated
|
|
880
|
+
* with the entity followed by the key predicate identifying the entity within the collection".
|
|
881
|
+
* Use the canonical path in {@link sap.ui.core.Element#bindElement} to create an element
|
|
882
|
+
* binding.
|
|
882
883
|
*
|
|
883
884
|
* Note: For a transient context (see {@link #isTransient}) a wrong path is returned unless all
|
|
884
885
|
* key properties are available within the initial data.
|
|
@@ -1028,8 +1029,8 @@ sap.ui.define([
|
|
|
1028
1029
|
* Returns the value for the given path relative to this context. The function allows access to
|
|
1029
1030
|
* the complete data the context points to (if <code>sPath</code> is "") or any part thereof.
|
|
1030
1031
|
* The data is a JSON structure as described in
|
|
1031
|
-
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.
|
|
1032
|
-
* "OData JSON Format Version 4.
|
|
1032
|
+
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.01/">
|
|
1033
|
+
* "OData JSON Format Version 4.01"</a>.
|
|
1033
1034
|
* Note that the function clones the result. Modify values via
|
|
1034
1035
|
* {@link sap.ui.model.odata.v4.ODataPropertyBinding#setValue}.
|
|
1035
1036
|
*
|
|
@@ -1187,8 +1188,8 @@ sap.ui.define([
|
|
|
1187
1188
|
* Returns the value for the given path. The function allows access to the complete data the
|
|
1188
1189
|
* context points to (if <code>sPath</code> is "") or any part thereof. The data is a JSON
|
|
1189
1190
|
* structure as described in
|
|
1190
|
-
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.
|
|
1191
|
-
* "OData JSON Format Version 4.
|
|
1191
|
+
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.01/">
|
|
1192
|
+
* "OData JSON Format Version 4.01"</a>.
|
|
1192
1193
|
* Note that the function returns the cache instance. Do not modify the result, use
|
|
1193
1194
|
* {@link sap.ui.model.odata.v4.ODataPropertyBinding#setValue} instead.
|
|
1194
1195
|
*
|
|
@@ -1583,18 +1584,27 @@ sap.ui.define([
|
|
|
1583
1584
|
* the context from the list binding's collection because the entity does not match the
|
|
1584
1585
|
* binding's filter anymore, see {@link sap.ui.model.odata.v4.ODataListBinding#filter};
|
|
1585
1586
|
* a removed context is destroyed, see {@link #destroy}. If the context belongs to a context
|
|
1586
|
-
* binding, the parameter must not be used.
|
|
1587
|
+
* binding or to a list binding with "$$aggregation", the parameter must not be used.
|
|
1587
1588
|
* Supported since 1.55.0
|
|
1588
1589
|
*
|
|
1589
1590
|
* Since 1.84.0, if this context is {@link #isKeepAlive kept alive}, it is only destroyed if
|
|
1590
1591
|
* the corresponding entity does no longer exist in the back end. In this case, the
|
|
1591
1592
|
* <code>fnOnBeforeDestroy</code> callback passed with {@link #setKeepAlive}) is called.
|
|
1592
|
-
* @throws {Error}
|
|
1593
|
-
*
|
|
1594
|
-
*
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1593
|
+
* @throws {Error} If
|
|
1594
|
+
* <ul>
|
|
1595
|
+
* <li> the group ID is not valid,
|
|
1596
|
+
* <li> this context
|
|
1597
|
+
* <ul>
|
|
1598
|
+
* <li> {@link #isInactive is inactive},
|
|
1599
|
+
* <li> {@link #hasPendingChanges has pending changes},
|
|
1600
|
+
* <li> does not represent a single entity (see
|
|
1601
|
+
* {@link sap.ui.model.odata.v4.ODataListBinding#getHeaderContext}),
|
|
1602
|
+
* </ul>
|
|
1603
|
+
* <li> the binding is a list binding with data aggregation,
|
|
1604
|
+
* <li> the binding's root binding is suspended,
|
|
1605
|
+
* <li> the <code>bAllowRemoval</code> parameter is set for a context belonging to a context
|
|
1606
|
+
* binding or to a list binding with "$$aggregation".
|
|
1607
|
+
* </ul>
|
|
1598
1608
|
*
|
|
1599
1609
|
* @public
|
|
1600
1610
|
* @since 1.53.0
|
|
@@ -1679,11 +1689,12 @@ sap.ui.define([
|
|
|
1679
1689
|
/**
|
|
1680
1690
|
* Returns a promise for the "canonical path" of the entity for this context. According to
|
|
1681
1691
|
* <a href=
|
|
1682
|
-
* "https://docs.oasis-open.org/odata/odata/v4.
|
|
1683
|
-
* >"4.3.1 Canonical URL"</a> of the specification
|
|
1684
|
-
* this is the "name of the entity set associated
|
|
1685
|
-
*
|
|
1686
|
-
* {@link sap.ui.core.Element#bindElement} to create an element
|
|
1692
|
+
* "https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#_Toc31360932"
|
|
1693
|
+
* >"4.3.1 Canonical URL"</a> of the specification
|
|
1694
|
+
* "OData Version 4.01. Part 2: URL Conventions", this is the "name of the entity set associated
|
|
1695
|
+
* with the entity followed by the key predicate identifying the entity within the collection".
|
|
1696
|
+
* Use the canonical path in {@link sap.ui.core.Element#bindElement} to create an element
|
|
1697
|
+
* binding.
|
|
1687
1698
|
*
|
|
1688
1699
|
* Note: For a transient context (see {@link #isTransient}) a wrong path is returned unless all
|
|
1689
1700
|
* key properties are available within the initial data.
|
|
@@ -1704,8 +1715,8 @@ sap.ui.define([
|
|
|
1704
1715
|
* Returns a promise on the value for the given path relative to this context. The function
|
|
1705
1716
|
* allows access to the complete data the context points to (if <code>sPath</code> is "") or
|
|
1706
1717
|
* any part thereof. The data is a JSON structure as described in
|
|
1707
|
-
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.
|
|
1708
|
-
* "OData JSON Format Version 4.
|
|
1718
|
+
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.01/">
|
|
1719
|
+
* "OData JSON Format Version 4.01"</a>.
|
|
1709
1720
|
* Note that the function clones the result. Modify values via {@link #setProperty}.
|
|
1710
1721
|
*
|
|
1711
1722
|
* The header context of a list binding only delivers <code>$count</code> and
|
|
@@ -1830,7 +1841,7 @@ sap.ui.define([
|
|
|
1830
1841
|
var oPromise;
|
|
1831
1842
|
|
|
1832
1843
|
_Helper.checkGroupId(sGroupId);
|
|
1833
|
-
if (this.oBinding.mParameters
|
|
1844
|
+
if (_Helper.isDataAggregation(this.oBinding.mParameters)) {
|
|
1834
1845
|
throw new Error("Cannot refresh " + this + " when using data aggregation");
|
|
1835
1846
|
}
|
|
1836
1847
|
this.oBinding.checkSuspended();
|
|
@@ -1839,8 +1850,7 @@ sap.ui.define([
|
|
|
1839
1850
|
}
|
|
1840
1851
|
|
|
1841
1852
|
if (this.oBinding.refreshSingle) {
|
|
1842
|
-
oPromise = this.oBinding.refreshSingle(this,
|
|
1843
|
-
bAllowRemoval);
|
|
1853
|
+
oPromise = this.oBinding.refreshSingle(this, sGroupId, true, bAllowRemoval);
|
|
1844
1854
|
} else {
|
|
1845
1855
|
if (arguments.length > 1) {
|
|
1846
1856
|
throw new Error("Unsupported parameter bAllowRemoval: " + bAllowRemoval);
|
|
@@ -1886,7 +1896,7 @@ sap.ui.define([
|
|
|
1886
1896
|
|
|
1887
1897
|
/**
|
|
1888
1898
|
* Loads side effects for this context using the given
|
|
1889
|
-
* "14.5
|
|
1899
|
+
* "14.4.1.5 Expression edm:NavigationPropertyPath" or "14.4.1.6 Expression edm:PropertyPath"
|
|
1890
1900
|
* objects. Use this method to explicitly load side effects in case implicit loading is switched
|
|
1891
1901
|
* off via the binding-specific parameter <code>$$patchWithoutSideEffects</code>. The method
|
|
1892
1902
|
* can be called on
|
|
@@ -1928,8 +1938,8 @@ sap.ui.define([
|
|
|
1928
1938
|
* </ul>
|
|
1929
1939
|
*
|
|
1930
1940
|
* @param {Array<sap.ui.model.odata.v4.ts.NavigationPropertyPathExpression|sap.ui.model.odata.v4.ts.PropertyPathExpression|string>} aPathExpressions
|
|
1931
|
-
* The "14.5
|
|
1932
|
-
* "14.
|
|
1941
|
+
* The "14.4.1.5 Expression edm:NavigationPropertyPath" or
|
|
1942
|
+
* "14.4.1.6 Expression edm:PropertyPath" objects describing which properties need to be
|
|
1933
1943
|
* loaded because they may have changed due to side effects of a previous update, for example
|
|
1934
1944
|
* <code>[{$PropertyPath : "TEAM_ID"}, {$NavigationPropertyPath : "EMPLOYEE_2_MANAGER"},
|
|
1935
1945
|
* {$PropertyPath : "EMPLOYEE_2_TEAM/Team_Id"}]</code>. An empty navigation property path
|
|
@@ -1942,7 +1952,7 @@ sap.ui.define([
|
|
|
1942
1952
|
* Since 1.82.0, absolute paths are supported. Absolute paths must start with the entity
|
|
1943
1953
|
* container (example "/com.sap.gateway.default.iwbep.tea_busi.v0001.Container/TEAMS") of the
|
|
1944
1954
|
* service. All (navigation) properties in the complete model matching such an absolute path
|
|
1945
|
-
* are updated. Since 1.85.0, "14.
|
|
1955
|
+
* are updated. Since 1.85.0, "14.3.11 Expression edm:String" is accepted as well.
|
|
1946
1956
|
*
|
|
1947
1957
|
* Since 1.108.8, a property path matching the "com.sap.vocabularies.Common.v1.Messages"
|
|
1948
1958
|
* annotation of a list binding's entity type is treated specially for a row context of a list
|
|
@@ -1968,8 +1978,8 @@ sap.ui.define([
|
|
|
1968
1978
|
* <ul>
|
|
1969
1979
|
* <li> metadata has not yet been loaded
|
|
1970
1980
|
* <li> <code>aPathExpressions</code> contains objects other than
|
|
1971
|
-
* "14.
|
|
1972
|
-
* "14.
|
|
1981
|
+
* "14.3.11 Expression edm:String", "14.4.1.5 Expression edm:NavigationPropertyPath" or
|
|
1982
|
+
* "14.4.1.6 Expression edm:PropertyPath"
|
|
1973
1983
|
* <li> a path contains a "*", except for a property path as its sole or last segment
|
|
1974
1984
|
* <li> this context is not supported
|
|
1975
1985
|
* <li> the root binding of this context's binding is suspended (see {@link #getBinding} and
|
|
@@ -1576,9 +1576,9 @@ sap.ui.define([
|
|
|
1576
1576
|
* @param {string} sGroupId
|
|
1577
1577
|
* The group ID to be used for requesting side effects
|
|
1578
1578
|
* @param {string[]} aPaths
|
|
1579
|
-
* The "14.5
|
|
1580
|
-
* "14.
|
|
1581
|
-
* because they may have changed due to side effects of a previous update
|
|
1579
|
+
* The "14.4.1.5 Expression edm:NavigationPropertyPath" or
|
|
1580
|
+
* "14.4.1.6 Expression edm:PropertyPath" strings describing which properties need to be
|
|
1581
|
+
* loaded because they may have changed due to side effects of a previous update
|
|
1582
1582
|
* @param {sap.ui.model.odata.v4.Context} [oContext]
|
|
1583
1583
|
* The context for which to request side effects; if missing, the whole binding is affected
|
|
1584
1584
|
* @param {Promise[]} aPromises
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @mixes sap.ui.model.odata.v4.ODataParentBinding
|
|
75
75
|
* @public
|
|
76
76
|
* @since 1.37.0
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.142.0
|
|
78
78
|
*
|
|
79
79
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getGroupId as #getGroupId
|
|
80
80
|
* @borrows sap.ui.model.odata.v4.ODataBinding#getRootBinding as #getRootBinding
|
|
@@ -1215,7 +1215,7 @@ sap.ui.define([
|
|
|
1215
1215
|
* 1. Operation is bound.
|
|
1216
1216
|
* 2. Operation has single entity return value. Note: existence of EntitySetPath
|
|
1217
1217
|
* implies the return value is an entity or a collection thereof;
|
|
1218
|
-
* see OData
|
|
1218
|
+
* see [OData-CSDL-XML-v4.01], 12.6. It thus ensures the "entity" in this condition.
|
|
1219
1219
|
* 3. EntitySetPath of operation is the binding parameter.
|
|
1220
1220
|
* 4. Operation binding has
|
|
1221
1221
|
* (a) a V4 parent context which
|
|
@@ -1454,7 +1454,7 @@ sap.ui.define([
|
|
|
1454
1454
|
* 1. Operation is bound.
|
|
1455
1455
|
* 2. Operation has single entity return value. Note: existence of EntitySetPath
|
|
1456
1456
|
* implies the return value is an entity or a collection thereof;
|
|
1457
|
-
* see OData
|
|
1457
|
+
* see [OData-CSDL-XML-v4.01], 12.6. It thus ensures the "entity" in this condition.
|
|
1458
1458
|
* 3. EntitySetPath of operation is the binding parameter.
|
|
1459
1459
|
* 4. Operation binding has
|
|
1460
1460
|
* (a) a V4 parent context.
|
|
@@ -1633,7 +1633,7 @@ sap.ui.define([
|
|
|
1633
1633
|
*
|
|
1634
1634
|
* @param {sap.ui.model.odata.v4.Context} oContext
|
|
1635
1635
|
* The context to refresh
|
|
1636
|
-
* @param {string} sGroupId
|
|
1636
|
+
* @param {string} [sGroupId]
|
|
1637
1637
|
* The group ID for the refresh
|
|
1638
1638
|
* @param {boolean} [bKeepCacheOnError]
|
|
1639
1639
|
* If <code>true</code>, the binding data remains unchanged if the refresh fails
|
|
@@ -1685,8 +1685,8 @@ sap.ui.define([
|
|
|
1685
1685
|
* Returns a promise on the value for the given path relative to this binding. The function
|
|
1686
1686
|
* allows access to the complete data the binding points to (if <code>sPath</code> is "") or
|
|
1687
1687
|
* any part thereof. The data is a JSON structure as described in
|
|
1688
|
-
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.
|
|
1689
|
-
* "OData JSON Format Version 4.
|
|
1688
|
+
* <a href="https://docs.oasis-open.org/odata/odata-json-format/v4.01/">
|
|
1689
|
+
* "OData JSON Format Version 4.01"</a>.
|
|
1690
1690
|
* Note that the function clones the result. Modify values via
|
|
1691
1691
|
* {@link sap.ui.model.odata.v4.Context#setProperty}.
|
|
1692
1692
|
*
|