@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 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.2
|
|
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) {
|
|
@@ -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([
|
|
8
8
|
"sap/ui/model/odata/ODataMetadata",
|
|
9
9
|
"sap/ui/model/odata/ODataUtils",
|
|
@@ -84,7 +84,7 @@ var sClassName = "sap.ui.model.odata.ODataMessageParser",
|
|
|
84
84
|
* @extends sap.ui.core.message.MessageParser
|
|
85
85
|
*
|
|
86
86
|
* @author SAP SE
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.96.2
|
|
88
88
|
* @public
|
|
89
89
|
* @alias sap.ui.model.odata.ODataMessageParser
|
|
90
90
|
*/
|
|
@@ -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([
|
|
8
8
|
"./_ODataMetaModelUtils",
|
|
9
9
|
"sap/base/Log",
|
|
@@ -89,6 +89,8 @@ sap.ui.define([
|
|
|
89
89
|
* as a foundation and merges V4 annotations from the existing
|
|
90
90
|
* {@link sap.ui.model.odata.ODataAnnotations} directly into the corresponding model element.
|
|
91
91
|
*
|
|
92
|
+
* This model is not prepared to be inherited from.
|
|
93
|
+
*
|
|
92
94
|
* Also, annotations from the "http://www.sap.com/Protocols/SAPData" namespace are lifted up
|
|
93
95
|
* from the <code>extensions</code> array and transformed from objects into simple properties
|
|
94
96
|
* with an "sap:" prefix for their name. Note that this happens in addition, thus the
|
|
@@ -206,7 +208,7 @@ sap.ui.define([
|
|
|
206
208
|
* {@link #loaded loaded} has been resolved!
|
|
207
209
|
*
|
|
208
210
|
* @author SAP SE
|
|
209
|
-
* @version 1.
|
|
211
|
+
* @version 1.96.2
|
|
210
212
|
* @alias sap.ui.model.odata.ODataMetaModel
|
|
211
213
|
* @extends sap.ui.model.MetaModel
|
|
212
214
|
* @public
|
|
@@ -589,7 +591,7 @@ sap.ui.define([
|
|
|
589
591
|
oCodeListModel.read("/" + sCollectionPath, {
|
|
590
592
|
error : fnReject,
|
|
591
593
|
success : fnResolve,
|
|
592
|
-
urlParameters : {$skip : 0, $top : 5000} // avoid server
|
|
594
|
+
urlParameters : {$skip : 0, $top : 5000} // avoid server-driven paging
|
|
593
595
|
});
|
|
594
596
|
});
|
|
595
597
|
oMappingPromise = new SyncPromise(function (fnResolve, fnReject) {
|
|
@@ -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
|
|
|
9
9
|
// Provides class sap.ui.model.odata.ODataMetadata
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* Implementation to access OData metadata
|
|
45
45
|
*
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.96.2
|
|
48
48
|
*
|
|
49
49
|
* @public
|
|
50
50
|
* @alias sap.ui.model.odata.ODataMetadata
|
|
@@ -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
|
* OData-based DataBinding
|
|
9
9
|
*
|
|
@@ -34,13 +34,14 @@ sap.ui.define([
|
|
|
34
34
|
"sap/ui/model/Context",
|
|
35
35
|
"sap/ui/model/FilterProcessor",
|
|
36
36
|
"sap/ui/model/Model",
|
|
37
|
+
"sap/ui/model/odata/ODataAnnotations",
|
|
37
38
|
"sap/ui/model/odata/ODataMetaModel",
|
|
38
39
|
"sap/ui/thirdparty/datajs",
|
|
39
40
|
"sap/ui/thirdparty/URI"
|
|
40
41
|
], function(CountMode, ODataContextBinding, ODataListBinding, ODataMetadata, ODataPropertyBinding,
|
|
41
42
|
ODataTreeBinding, ODataUtils, assert, Log, encodeURL, each, extend, isEmptyObject,
|
|
42
|
-
isPlainObject, merge, uid, BindingMode, Context, FilterProcessor, Model,
|
|
43
|
-
OData, URI) {
|
|
43
|
+
isPlainObject, merge, uid, BindingMode, Context, FilterProcessor, Model, ODataAnnotations,
|
|
44
|
+
ODataMetaModel, OData, URI) {
|
|
44
45
|
"use strict";
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -75,7 +76,7 @@ sap.ui.define([
|
|
|
75
76
|
*
|
|
76
77
|
*
|
|
77
78
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
79
|
+
* @version 1.96.2
|
|
79
80
|
*
|
|
80
81
|
* @public
|
|
81
82
|
* @deprecated As of version 1.48, please use {@link sap.ui.model.odata.v2.ODataModel} instead.
|
|
@@ -3441,13 +3442,13 @@ sap.ui.define([
|
|
|
3441
3442
|
};
|
|
3442
3443
|
|
|
3443
3444
|
/**
|
|
3444
|
-
*
|
|
3445
|
+
* Get or create the annotation parser instance.
|
|
3446
|
+
* @param {object} mAnnotationData The annotation data
|
|
3445
3447
|
*
|
|
3446
|
-
* @return {sap.ui.model.odata.
|
|
3448
|
+
* @return {sap.ui.model.odata.ODataAnnotations} The annotation parser instance
|
|
3447
3449
|
*/
|
|
3448
3450
|
ODataModel.prototype._getAnnotationParser = function(mAnnotationData) {
|
|
3449
3451
|
if (!this.oAnnotations) {
|
|
3450
|
-
var ODataAnnotations = sap.ui.requireSync("sap/ui/model/odata/ODataAnnotations");
|
|
3451
3452
|
this.oAnnotations = new ODataAnnotations({
|
|
3452
3453
|
annotationData: mAnnotationData,
|
|
3453
3454
|
url: null,
|
|
@@ -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.ODataPropertyBinding
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'./ODataMetaModel',
|
|
@@ -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 OData model implementation of a tree binding
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./CountMode",
|
|
@@ -60,11 +60,13 @@ sap.ui.define([
|
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Return root contexts for the tree
|
|
64
|
-
*
|
|
65
|
-
* @param {int}
|
|
66
|
-
* @param {int}
|
|
67
|
-
* @
|
|
63
|
+
* Return root contexts for the tree.
|
|
64
|
+
*
|
|
65
|
+
* @param {int} iStartIndex The start index of the requested contexts
|
|
66
|
+
* @param {int} iLength The requested amount of contexts
|
|
67
|
+
* @param {int} [iThreshold] Unused
|
|
68
|
+
*
|
|
69
|
+
* @return {Array} The contexts array
|
|
68
70
|
* @protected
|
|
69
71
|
*/
|
|
70
72
|
ODataTreeBinding.prototype.getRootContexts = function(iStartIndex, iLength, iThreshold) {
|
|
@@ -87,7 +89,7 @@ sap.ui.define([
|
|
|
87
89
|
|
|
88
90
|
if (mRequestParameters.numberOfExpandedLevels > 0) {
|
|
89
91
|
var sAbsPath = sNodeId;
|
|
90
|
-
for (var i = 0; i < mRequestParameters.numberOfExpandedLevels;i++) {
|
|
92
|
+
for (var i = 0; i < mRequestParameters.numberOfExpandedLevels; i++) {
|
|
91
93
|
var sNewNavPath = this._getNavPath(sAbsPath);
|
|
92
94
|
mRequestParameters.navPath += "/" + sNewNavPath;
|
|
93
95
|
sAbsPath += "/" + sNewNavPath;
|
|
@@ -133,11 +135,13 @@ sap.ui.define([
|
|
|
133
135
|
};
|
|
134
136
|
|
|
135
137
|
/**
|
|
136
|
-
* Return node contexts for the tree
|
|
138
|
+
* Return node contexts for the tree.
|
|
139
|
+
*
|
|
137
140
|
* @param {sap.ui.model.Context} oContext the context for which the child nodes should be retrieved
|
|
138
141
|
* @param {int} iStartIndex the start index of the requested contexts
|
|
139
142
|
* @param {int} iLength the requested amount of contexts
|
|
140
|
-
* @param {int} iThreshold
|
|
143
|
+
* @param {int} [iThreshold] Unused
|
|
144
|
+
*
|
|
141
145
|
* @return {sap.ui.model.Context[]} the contexts array
|
|
142
146
|
* @protected
|
|
143
147
|
*/
|
|
@@ -225,11 +229,12 @@ sap.ui.define([
|
|
|
225
229
|
/**
|
|
226
230
|
* Gets or loads all contexts for a specified node id (dependent on mode)
|
|
227
231
|
*
|
|
228
|
-
* @param {string} sNodeId
|
|
229
|
-
* @param {int} iStartIndex
|
|
230
|
-
* @param {int} iLength
|
|
231
|
-
* @param {int} iThreshold
|
|
232
|
-
* @param {object} mParameters
|
|
232
|
+
* @param {string} sNodeId The absolute path to be loaded
|
|
233
|
+
* @param {int} [iStartIndex=0] The first node to get the context of
|
|
234
|
+
* @param {int} [iLength=iSizeLimit] The number of nodes to get the context of
|
|
235
|
+
* @param {int} [iThreshold=0] Unused
|
|
236
|
+
* @param {object} mParameters Additional parameters for this function
|
|
237
|
+
*
|
|
233
238
|
* @return {array} Array of contexts
|
|
234
239
|
*
|
|
235
240
|
* @private
|
|
@@ -290,10 +295,8 @@ sap.ui.define([
|
|
|
290
295
|
} else {
|
|
291
296
|
aParams.push("$filter=" + this.oTreeProperties["hierarchy-level-for"] + " eq '0" + mParameters.level + "' and " + this.oTreeProperties["hierarchy-parent-node-for"] + " eq '" + sNodeId + "'");
|
|
292
297
|
}
|
|
293
|
-
} else {
|
|
294
|
-
|
|
295
|
-
aParams.push("$expand=" + mParameters.navPath);
|
|
296
|
-
}
|
|
298
|
+
} else if (mParameters.navPath) {
|
|
299
|
+
aParams.push("$expand=" + mParameters.navPath);
|
|
297
300
|
}
|
|
298
301
|
this._loadSubNodes(sNodeId, iStartIndex, iLength, iThreshold, aParams, mParameters);
|
|
299
302
|
}
|
|
@@ -343,7 +346,14 @@ sap.ui.define([
|
|
|
343
346
|
};
|
|
344
347
|
|
|
345
348
|
/**
|
|
346
|
-
* Load list data from the server
|
|
349
|
+
* Load list data from the server.
|
|
350
|
+
*
|
|
351
|
+
* @param {string} sNodeId The id of the node which sub nodes should be loaded
|
|
352
|
+
* @param {number} iStartIndex The index of the first node to load
|
|
353
|
+
* @param {number} iLength The number of nodes to load
|
|
354
|
+
* @param {number} iThreshold Unused
|
|
355
|
+
* @param {string[]} aParams A list containing additional query parameters
|
|
356
|
+
* @param {object} mParameters An object containing a <code>navPath</code>
|
|
347
357
|
*/
|
|
348
358
|
ODataTreeBinding.prototype._loadSubNodes = function(sNodeId, iStartIndex, iLength, iThreshold, aParams, mParameters) {
|
|
349
359
|
var that = this,
|
|
@@ -359,6 +369,7 @@ sap.ui.define([
|
|
|
359
369
|
}
|
|
360
370
|
|
|
361
371
|
function fnSuccess(oData) {
|
|
372
|
+
var oEntry, i;
|
|
362
373
|
|
|
363
374
|
// Collecting contexts
|
|
364
375
|
if (oData.results) {
|
|
@@ -368,15 +379,13 @@ sap.ui.define([
|
|
|
368
379
|
if (bInlineCountRequested && oData.__count) {
|
|
369
380
|
that.oLengths[sNodeId] = parseInt(oData.__count);
|
|
370
381
|
that.oFinalLengths[sNodeId] = true;
|
|
371
|
-
} else {
|
|
372
|
-
|
|
373
|
-
that._getCountForNodeId(sNodeId);
|
|
374
|
-
}
|
|
382
|
+
} else if (that.oModel.isCountSupported()) {
|
|
383
|
+
that._getCountForNodeId(sNodeId);
|
|
375
384
|
}
|
|
376
385
|
|
|
377
386
|
that.oKeys[sNodeId] = [];
|
|
378
|
-
for (
|
|
379
|
-
|
|
387
|
+
for (i = 0; i < oData.results.length; i++) {
|
|
388
|
+
oEntry = oData.results[i];
|
|
380
389
|
var sKey = that.oModel._getKey(oEntry);
|
|
381
390
|
that._processODataObject(oEntry, "/" + sKey, mParameters.navPath);
|
|
382
391
|
that.oKeys[sNodeId][i + iStartIndex] = sKey;
|
|
@@ -384,8 +393,8 @@ sap.ui.define([
|
|
|
384
393
|
} else {
|
|
385
394
|
var mLastNodeIdIndices = {};
|
|
386
395
|
|
|
387
|
-
for (
|
|
388
|
-
|
|
396
|
+
for (i = 0; i < oData.results.length; i++) {
|
|
397
|
+
oEntry = oData.results[i];
|
|
389
398
|
|
|
390
399
|
sNodeId = oEntry[that.oTreeProperties["hierarchy-parent-node-for"]];
|
|
391
400
|
|
|
@@ -448,7 +457,9 @@ sap.ui.define([
|
|
|
448
457
|
};
|
|
449
458
|
|
|
450
459
|
/**
|
|
451
|
-
* Resets the current list data and length
|
|
460
|
+
* Resets the current list data and length.
|
|
461
|
+
*
|
|
462
|
+
* @param {sap.ui.model.Context} [oContext] Only reset specific content matching the context
|
|
452
463
|
*
|
|
453
464
|
* @private
|
|
454
465
|
*/
|
|
@@ -469,14 +480,17 @@ sap.ui.define([
|
|
|
469
480
|
};
|
|
470
481
|
|
|
471
482
|
/**
|
|
472
|
-
* Refreshes the binding,
|
|
483
|
+
* Refreshes the binding, checks whether the model data has been changed and fires change event
|
|
473
484
|
* if this is the case. For server side models this should refetch the data from the server.
|
|
474
485
|
* To update a control, even if no data has been changed, e.g. to reset a control after failed
|
|
475
486
|
* validation, use the parameter <code>bForceUpdate</code>.
|
|
476
487
|
*
|
|
477
|
-
* @param {boolean} [bForceUpdate]
|
|
488
|
+
* @param {boolean} [bForceUpdate]
|
|
489
|
+
* Update the bound control even if no data has been changed
|
|
478
490
|
* @param {object} [mChangedEntities]
|
|
491
|
+
* A map of changed entities
|
|
479
492
|
* @param {string} [mEntityTypes]
|
|
493
|
+
* Entity types; if this models entity type is contained, a change event will be fired
|
|
480
494
|
*
|
|
481
495
|
* @public
|
|
482
496
|
*/
|
|
@@ -497,10 +511,14 @@ sap.ui.define([
|
|
|
497
511
|
bChangeDetected = true;
|
|
498
512
|
return false;
|
|
499
513
|
}
|
|
514
|
+
|
|
515
|
+
return true;
|
|
500
516
|
});
|
|
501
517
|
if (bChangeDetected) {
|
|
502
518
|
return false;
|
|
503
519
|
}
|
|
520
|
+
|
|
521
|
+
return true;
|
|
504
522
|
});
|
|
505
523
|
}
|
|
506
524
|
if (!mChangedEntities && !mEntityTypes) { // default
|
|
@@ -516,8 +534,11 @@ sap.ui.define([
|
|
|
516
534
|
};
|
|
517
535
|
|
|
518
536
|
/**
|
|
519
|
-
*
|
|
520
|
-
*
|
|
537
|
+
* Not functional.
|
|
538
|
+
*
|
|
539
|
+
* @param {sap.ui.model.Filter[]|sap.ui.model.Filter} aFilters Unused
|
|
540
|
+
*
|
|
541
|
+
* @returns {this} A reference to itself to allow chaining
|
|
521
542
|
* @public
|
|
522
543
|
*/
|
|
523
544
|
ODataTreeBinding.prototype.filter = function(aFilters){
|
|
@@ -530,6 +551,9 @@ sap.ui.define([
|
|
|
530
551
|
* inform interested parties about this.
|
|
531
552
|
*
|
|
532
553
|
* @param {boolean} bForceUpdate
|
|
554
|
+
* Whether a change event should be fired regardles of this bindings state
|
|
555
|
+
* @param {object} [mChangedEntities]
|
|
556
|
+
* A map of changed entities to check if an update is necessary.
|
|
533
557
|
*
|
|
534
558
|
*/
|
|
535
559
|
ODataTreeBinding.prototype.checkUpdate = function(bForceUpdate, mChangedEntities){
|
|
@@ -544,10 +568,14 @@ sap.ui.define([
|
|
|
544
568
|
bChangeDetected = true;
|
|
545
569
|
return false;
|
|
546
570
|
}
|
|
571
|
+
|
|
572
|
+
return true;
|
|
547
573
|
});
|
|
548
574
|
if (bChangeDetected) {
|
|
549
575
|
return false;
|
|
550
576
|
}
|
|
577
|
+
|
|
578
|
+
return true;
|
|
551
579
|
});
|
|
552
580
|
}
|
|
553
581
|
}
|
|
@@ -562,7 +590,7 @@ sap.ui.define([
|
|
|
562
590
|
var sAbsolutePath = this.oModel.resolve(sPath, this.getContext());
|
|
563
591
|
|
|
564
592
|
if (!sAbsolutePath) {
|
|
565
|
-
return;
|
|
593
|
+
return undefined;
|
|
566
594
|
}
|
|
567
595
|
|
|
568
596
|
var aPathParts = sAbsolutePath.split("/"),
|
|
@@ -641,6 +669,8 @@ sap.ui.define([
|
|
|
641
669
|
that.oTreeProperties[sName] = oProperty.name;
|
|
642
670
|
}
|
|
643
671
|
});
|
|
672
|
+
|
|
673
|
+
return true;
|
|
644
674
|
});
|
|
645
675
|
|
|
646
676
|
var bMissing = false;
|
|
@@ -649,6 +679,8 @@ sap.ui.define([
|
|
|
649
679
|
bMissing = true;
|
|
650
680
|
return false;
|
|
651
681
|
}
|
|
682
|
+
|
|
683
|
+
return true;
|
|
652
684
|
});
|
|
653
685
|
|
|
654
686
|
return !bMissing;
|
|
@@ -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.ODataTreeBindingAdapter
|
|
8
8
|
sap.ui.define(['sap/ui/model/TreeBinding', './v2/ODataTreeBinding', 'sap/ui/model/TreeBindingAdapter', 'sap/ui/model/TreeAutoExpandMode', 'sap/ui/model/ChangeReason', './OperationMode', 'sap/base/assert', 'sap/ui/model/Filter', 'sap/ui/model/odata/ODataUtils'],
|
|
9
9
|
function(TreeBinding, ODataTreeBinding, TreeBindingAdapter, TreeAutoExpandMode, ChangeReason, OperationMode, assert, Filter, ODataUtils) {
|
|
@@ -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.ODataTreeBindingFlat
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/assert",
|
|
@@ -3902,7 +3902,7 @@ sap.ui.define([
|
|
|
3902
3902
|
if (oContext) {
|
|
3903
3903
|
// set unique node ID if the context was created and we did not assign an ID yet
|
|
3904
3904
|
var sNewlyGeneratedID = oContext.getProperty(this.oTreeProperties["hierarchy-node-for"]);
|
|
3905
|
-
if (oContext.
|
|
3905
|
+
if (oContext.isTransient() && !sNewlyGeneratedID) {
|
|
3906
3906
|
this.oModel.setProperty(this.oTreeProperties["hierarchy-node-for"], uid(), oContext);
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
@@ -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
|
* OData-based DataBinding Utility Class
|
|
9
9
|
*
|
|
@@ -107,7 +107,8 @@ sap.ui.define([
|
|
|
107
107
|
* same path are ORed and filters on different paths are ANDed with each other
|
|
108
108
|
* @see ODataUtils._createFilterParams
|
|
109
109
|
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilter the root filter or filter array
|
|
110
|
-
* @param {object}
|
|
110
|
+
* @param {object} oMetadata the entity metadata object
|
|
111
|
+
* @param {object} oEntityType the entity type object
|
|
111
112
|
* @return {string} the URL encoded filter parameters
|
|
112
113
|
* @private
|
|
113
114
|
*/
|
|
@@ -130,7 +131,8 @@ sap.ui.define([
|
|
|
130
131
|
* Creates a string of logically (or/and) linked filter options,
|
|
131
132
|
* which will be used as URL query parameters for filtering.
|
|
132
133
|
* @param {sap.ui.model.Filter|sap.ui.model.Filter[]} vFilter the root filter or filter array
|
|
133
|
-
* @param {object}
|
|
134
|
+
* @param {object} oMetadata the entity metadata object
|
|
135
|
+
* @param {object} oEntityType the entity type object
|
|
134
136
|
* @return {string} the URL encoded filter parameters
|
|
135
137
|
* @private
|
|
136
138
|
*/
|
|
@@ -189,7 +191,7 @@ sap.ui.define([
|
|
|
189
191
|
* If vParams is an object map, it will be also encoded properly.
|
|
190
192
|
*
|
|
191
193
|
* @private
|
|
192
|
-
* @param {string|object|array} vParams
|
|
194
|
+
* @param {string|object|array} vParams parameters
|
|
193
195
|
*/
|
|
194
196
|
ODataUtils._createUrlParamsArray = function(vParams) {
|
|
195
197
|
var aUrlParams, sType = typeof vParams, sParams;
|
|
@@ -369,9 +371,9 @@ sap.ui.define([
|
|
|
369
371
|
sFinalAnnotationURL = sAnnotationWithOrigin + sAnnotationUrlRest;
|
|
370
372
|
}
|
|
371
373
|
} else if (iHanaXsSegmentIndex >= 0) {
|
|
372
|
-
// Hana XS case: the Hana XS engine can provide static Annotation files for its
|
|
373
|
-
// The services can be
|
|
374
|
-
// the Annotation URLs need also adaption.
|
|
374
|
+
// Hana XS case: the Hana XS engine can provide static Annotation files for its
|
|
375
|
+
// services. The services can be identified by their URL segment ".xsodata"; if such a
|
|
376
|
+
// service uses the origin feature the Annotation URLs need also adaption.
|
|
375
377
|
sFinalAnnotationURL = ODataUtils.setOrigin(sAnnotationURL, vParameters);
|
|
376
378
|
|
|
377
379
|
} else {
|
|
@@ -489,10 +491,10 @@ sap.ui.define([
|
|
|
489
491
|
* <a href="http://www.odata.org/documentation/odata-version-2-0/overview#AbstractTypeSystem">
|
|
490
492
|
* EDM type</a>.
|
|
491
493
|
*
|
|
492
|
-
* @param {any} vValue
|
|
493
|
-
* @param {string} sType
|
|
494
|
-
* @param {boolean} bCaseSensitive
|
|
495
|
-
* @return {string}
|
|
494
|
+
* @param {any} vValue The value to format
|
|
495
|
+
* @param {string} sType The EDM type (e.g. Edm.Decimal)
|
|
496
|
+
* @param {boolean} bCaseSensitive Whether strings gets compared case sensitive or not
|
|
497
|
+
* @return {string} The formatted value
|
|
496
498
|
* @public
|
|
497
499
|
*/
|
|
498
500
|
ODataUtils.formatValue = function(vValue, sType, bCaseSensitive) {
|
|
@@ -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 enumeration sap.ui.model.OperationMode
|
|
8
8
|
sap.ui.define(function() {
|
|
9
9
|
"use strict";
|
|
@@ -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
|
// This module provides internal functions for dynamic expressions in OData V4 annotations. It is a
|
|
8
8
|
// helper module for sap.ui.model.odata.AnnotationHelper.
|
|
9
9
|
sap.ui.define([
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* @extends sap.ui.model.type.Currency
|
|
62
62
|
* @public
|
|
63
63
|
* @since 1.63.0
|
|
64
|
-
* @version 1.
|
|
64
|
+
* @version 1.96.2
|
|
65
65
|
*/
|
|
66
66
|
var Currency = BaseCurrency.extend("sap.ui.model.odata.type.Currency", {
|
|
67
67
|
constructor : function (oFormatOptions, oConstraints) {
|
|
@@ -132,7 +132,7 @@ sap.ui.define([
|
|
|
132
132
|
* @extends sap.ui.model.odata.type.ODataType
|
|
133
133
|
* @public
|
|
134
134
|
* @since 1.27.0
|
|
135
|
-
* @version 1.
|
|
135
|
+
* @version 1.96.2
|
|
136
136
|
*/
|
|
137
137
|
var DateTimeBase = ODataType.extend("sap.ui.model.odata.type.DateTimeBase", {
|
|
138
138
|
constructor : function (oFormatOptions, oConstraints) {
|