@openui5/sap.ui.core 1.105.1 → 1.107.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/.reuse/dep5 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +1 -1
- package/src/jquery.sap.dom.js +10 -10
- package/src/jquery.sap.global.js +24 -216
- package/src/jquery.sap.history.js +1 -1
- package/src/jquery.sap.properties.js +2 -2
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +4 -4
- package/src/jquery.sap.ui.js +5 -7
- package/src/sap/base/i18n/ResourceBundle.js +7 -11
- package/src/sap/base/util/LoaderExtensions.js +6 -6
- package/src/sap/base/util/ObjectPath.js +1 -1
- package/src/sap/base/util/Properties.js +1 -1
- package/src/sap/base/util/fetch.js +8 -10
- package/src/sap/base/util/mixedFetch.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/base/util/syncFetch.js +9 -16
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +7 -14
- package/src/sap/ui/VersionInfo.js +57 -54
- package/src/sap/ui/base/BindingInfo.js +198 -0
- package/src/sap/ui/base/DataType.js +5 -5
- package/src/sap/ui/base/Event.js +2 -2
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +209 -979
- package/src/sap/ui/base/ManagedObjectMetadata.js +6 -6
- package/src/sap/ui/base/ManagedObjectRegistry.js +4 -3
- 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 +13 -9
- package/src/sap/ui/core/AppCacheBuster.js +3 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/BusyIndicatorUtils.js +5 -6
- package/src/sap/ui/core/CalendarType.js +0 -1
- package/src/sap/ui/core/Component.js +16 -14
- package/src/sap/ui/core/ComponentContainer.js +6 -5
- package/src/sap/ui/core/ComponentMetadata.js +5 -12
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +525 -336
- package/src/sap/ui/core/Control.js +7 -7
- package/src/sap/ui/core/Core.js +102 -422
- 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 +65 -9
- 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/FocusHandler.js +79 -9
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -2
- package/src/sap/ui/core/IconPool.js +8 -8
- package/src/sap/ui/core/IndicationColorSupport.js +2 -2
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -2
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +5 -5
- package/src/sap/ui/core/Item.js +1 -2
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -2
- package/src/sap/ui/core/ListItem.js +1 -2
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -2
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +15 -13
- package/src/sap/ui/core/Manifest.js +8 -6
- package/src/sap/ui/core/Message.js +4 -6
- package/src/sap/ui/core/Popup.js +63 -6
- package/src/sap/ui/core/RenderManager.js +13 -5
- package/src/sap/ui/core/Renderer.js +5 -4
- package/src/sap/ui/core/Rendering.js +251 -0
- package/src/sap/ui/core/ResizeHandler.js +7 -7
- package/src/sap/ui/core/ScrollBar.js +6 -9
- package/src/sap/ui/core/ScrollBarRenderer.js +3 -3
- package/src/sap/ui/core/SeparatorItem.js +1 -2
- package/src/sap/ui/core/Title.js +1 -2
- package/src/sap/ui/core/TooltipBase.js +12 -14
- package/src/sap/ui/core/UIArea.js +396 -129
- package/src/sap/ui/core/UIComponent.js +3 -4
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +2 -2
- package/src/sap/ui/core/VariantLayoutData.js +1 -2
- package/src/sap/ui/core/XMLComposite.js +2 -2
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +12 -10
- package/src/sap/ui/core/_ConfigurationProvider.js +187 -0
- package/src/sap/ui/core/cache/CacheManager.js +9 -8
- package/src/sap/ui/core/cache/LRUPersistentCache.js +4 -4
- package/src/sap/ui/core/cldr/es_BO.json +3 -3
- package/src/sap/ui/core/cldr/es_CL.json +3 -3
- package/src/sap/ui/core/cldr/es_MX.json +3 -3
- package/src/sap/ui/core/cldr/es_PE.json +3 -3
- package/src/sap/ui/core/cldr/es_UY.json +3 -3
- package/src/sap/ui/core/cldr/es_VE.json +2 -2
- package/src/sap/ui/core/date/Islamic.js +4 -4
- package/src/sap/ui/core/date/UniversalDate.js +8 -8
- package/src/sap/ui/core/date/UniversalDateUtils.js +3 -3
- package/src/sap/ui/core/delegate/ItemNavigation.js +5 -5
- package/src/sap/ui/core/delegate/ScrollEnablement.js +7 -6
- package/src/sap/ui/core/dnd/DragAndDrop.js +14 -9
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -2
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -2
- package/src/sap/ui/core/dnd/DragInfo.js +1 -2
- package/src/sap/ui/core/dnd/DropInfo.js +1 -2
- package/src/sap/ui/core/format/DateFormat.js +14 -7
- package/src/sap/ui/core/format/DateFormatTimezoneDisplay.js +0 -1
- package/src/sap/ui/core/format/FileSizeFormat.js +4 -3
- package/src/sap/ui/core/format/ListFormat.js +4 -3
- package/src/sap/ui/core/format/NumberFormat.js +7 -6
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +7 -6
- package/src/sap/ui/core/library.js +3 -55
- 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 -23
- 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_fr.properties +1 -1
- package/src/sap/ui/core/mvc/Controller.js +8 -3
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +5 -3
- package/src/sap/ui/core/mvc/HTMLView.js +1 -2
- package/src/sap/ui/core/mvc/JSONView.js +1 -2
- package/src/sap/ui/core/mvc/JSView.js +2 -3
- package/src/sap/ui/core/mvc/TemplateView.js +1 -2
- package/src/sap/ui/core/mvc/View.js +21 -20
- package/src/sap/ui/core/mvc/ViewType.js +0 -1
- package/src/sap/ui/core/mvc/XMLView.js +18 -18
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/Router.js +1 -1
- package/src/sap/ui/core/routing/async/Target.js +4 -3
- package/src/sap/ui/core/rules/App.support.js +11 -13
- package/src/sap/ui/core/rules/Config.support.js +19 -17
- package/src/sap/ui/core/rules/CoreHelper.support.js +4 -4
- package/src/sap/ui/core/rules/Model.support.js +8 -8
- package/src/sap/ui/core/rules/Rendering.support.js +1 -1
- package/src/sap/ui/core/rules/Theming.support.js +8 -8
- package/src/sap/ui/core/rules/View.support.js +9 -9
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -2
- package/src/sap/ui/core/search/SearchProvider.js +1 -3
- 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/Hotkeys.js +2 -3
- 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/ToolsAPI.js +11 -13
- package/src/sap/ui/core/support/plugins/ControlTree.js +4 -4
- package/src/sap/ui/core/support/plugins/Debugging.js +3 -3
- 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 +2 -2
- package/src/sap/ui/core/support/support.html +1 -1
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +10 -8
- package/src/sap/ui/core/theming/Parameters.js +8 -15
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -2
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -4
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +6 -5
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -2
- 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 +48 -72
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +4 -3
- package/src/sap/ui/core/util/XMLPreprocessor.js +2 -2
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.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 +4 -4
- 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 +3 -3
- package/src/sap/ui/debug/DebugEnv.js +4 -4
- package/src/sap/ui/debug/PropertyList.css +1 -31
- package/src/sap/ui/debug/PropertyList.js +6 -250
- package/src/sap/ui/dom/getScrollbarSize.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -0
- package/src/sap/ui/events/jquery/EventSimulation.js +4 -4
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +3 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/Context.js +3 -0
- package/src/sap/ui/model/ContextBinding.js +1 -1
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/ListBinding.js +2 -2
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +871 -0
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +16 -5
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +2 -2
- package/src/sap/ui/model/Sorter.js +24 -19
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/TreeBindingAdapter.js +3 -7
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +5 -7
- package/src/sap/ui/model/json/JSONModel.js +9 -7
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/AnnotationHelper.js +4 -4
- package/src/sap/ui/model/odata/ODataAnnotations.js +5 -3
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +10 -10
- package/src/sap/ui/model/odata/ODataMetadata.js +5 -4
- package/src/sap/ui/model/odata/ODataModel.js +6 -5
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +0 -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 +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 +5 -5
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +4 -3
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +25 -16
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +46 -28
- package/src/sap/ui/model/odata/v2/ODataModel.js +97 -39
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +5 -5
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +3 -3
- package/src/sap/ui/model/odata/v4/Context.js +109 -71
- package/src/sap/ui/model/odata/v4/ODataBinding.js +50 -7
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +88 -68
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +116 -81
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +23 -20
- package/src/sap/ui/model/odata/v4/ODataModel.js +350 -88
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +35 -9
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +15 -9
- package/src/sap/ui/model/odata/v4/ODataUtils.js +8 -5
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +45 -33
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +40 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +135 -81
- package/src/sap/ui/model/odata/v4/lib/_ConcatHelper.js +2 -3
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +179 -36
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +2 -3
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +26 -7
- package/src/sap/ui/model/resource/ResourceModel.js +8 -7
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +2 -2
- 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 +2 -2
- 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 +5 -4
- package/src/sap/ui/model/xml/XMLModel.js +8 -6
- package/src/sap/ui/performance/trace/Interaction.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/Opa.js +7 -5
- package/src/sap/ui/test/Opa5.js +9 -15
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/RecorderHotkeyListener.js +1 -1
- package/src/sap/ui/test/TestUtils.js +83 -1
- package/src/sap/ui/test/autowaiter/_autoWaiter.js +9 -0
- package/src/sap/ui/test/autowaiter/_cssAnimationWaiter.js +114 -0
- package/src/sap/ui/test/autowaiter/_cssTransitionWaiter.js +99 -0
- package/src/sap/ui/test/autowaiter/_jsAnimationWaiter.js +70 -0
- package/src/sap/ui/test/autowaiter/_resourceWaiter.js +3 -12
- package/src/sap/ui/test/autowaiter/_utils.js +13 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/matchers/Ancestor.js +1 -0
- package/src/sap/ui/test/matchers/Descendant.js +1 -0
- package/src/sap/ui/test/matchers/Sibling.js +1 -0
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -67,7 +67,7 @@ sap.ui.define(['jquery.sap.global', 'sap/base/util/Properties'],
|
|
|
67
67
|
* {@link #setProperty} to store or change a value for a key and {@link #getKeys}
|
|
68
68
|
* can be used to retrieve an array of all keys that are currently stored in the collection.
|
|
69
69
|
*
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.107.0
|
|
71
71
|
* @since 0.9.0
|
|
72
72
|
* @name jQuery.sap.util.Properties
|
|
73
73
|
* @public
|
|
@@ -83,7 +83,7 @@ sap.ui.define(['jquery.sap.global', 'sap/base/util/Properties'],
|
|
|
83
83
|
* @param {string} sKey Key to return the value for
|
|
84
84
|
* @param {string} [sDefaultValue=null] Optional, a default value that will be returned
|
|
85
85
|
* if the requested key is not in the collection
|
|
86
|
-
* @returns {string} Value for the given key or the default value or <code>null</code>
|
|
86
|
+
* @returns {string|null} Value for the given key or the default value or <code>null</code>
|
|
87
87
|
* if no default value or a falsy default value was given
|
|
88
88
|
* @public
|
|
89
89
|
*
|
package/src/jquery.sap.script.js
CHANGED
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
* Use {@link jQuery.sap.getUriParameters} to create an instance of jQuery.sap.util.UriParameters.
|
|
268
268
|
*
|
|
269
269
|
* @author SAP SE
|
|
270
|
-
* @version 1.
|
|
270
|
+
* @version 1.107.0
|
|
271
271
|
* @since 0.9.0
|
|
272
272
|
* @name jQuery.sap.util.UriParameters
|
|
273
273
|
* @public
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @param {string} [sIdPrefix] Prefix used for the Ids. If not set a default prefix is used.
|
|
38
38
|
* @returns {jQuery.sap.storage.Storage}
|
|
39
39
|
*
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.107.0
|
|
41
41
|
* @since 0.11.0
|
|
42
42
|
* @namespace
|
|
43
43
|
* @public
|
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
* should be deleted the method {@link #removeAll} should be used.
|
|
98
98
|
*
|
|
99
99
|
* @author SAP SE
|
|
100
|
-
* @version 1.
|
|
100
|
+
* @version 1.107.0
|
|
101
101
|
* @since 0.11.0
|
|
102
102
|
* @public
|
|
103
103
|
* @name jQuery.sap.storage.Storage
|
|
@@ -134,7 +134,7 @@ sap.ui.define([
|
|
|
134
134
|
* sStorageKeyPrefix is the id prefix defined for the storage instance (@see jQuery.sap#storage)
|
|
135
135
|
*
|
|
136
136
|
* @param {string} sId Id for the state to retrieve
|
|
137
|
-
* @return {string} the string from the storage, if the retrieval
|
|
137
|
+
* @return {string|null} the string from the storage, if the retrieval
|
|
138
138
|
* was successful, and null otherwise
|
|
139
139
|
* @public
|
|
140
140
|
* @name jQuery.sap.storage.Storage#get
|
|
@@ -201,7 +201,7 @@ sap.ui.define([
|
|
|
201
201
|
* Enumeration of the storage types supported by {@link jQuery.sap.storage.Storage}
|
|
202
202
|
* @enum {string}
|
|
203
203
|
* @public
|
|
204
|
-
* @version 1.
|
|
204
|
+
* @version 1.107.0
|
|
205
205
|
* @since 0.11.0
|
|
206
206
|
*/
|
|
207
207
|
jQuery.sap.storage.Type = Storage.Type;
|
package/src/jquery.sap.ui.js
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'jquery.sap.global',
|
|
10
10
|
'sap/base/util/ObjectPath',
|
|
11
|
+
'sap/ui/core/UIArea',
|
|
11
12
|
'sap/ui/dom/jquery/control'
|
|
12
13
|
/* cyclic: 'sap/ui/core/Core' */
|
|
13
|
-
], function(jQuery, ObjectPath /* jQueryControl */) {
|
|
14
|
+
], function(jQuery, ObjectPath, UIArea /* jQueryControl */) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
function fgetUIAreaOfCtrl(oCtrl){
|
|
@@ -18,13 +19,11 @@ sap.ui.define([
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
function fUIAreaFilter(){
|
|
21
|
-
|
|
22
|
-
return sap.ui.getCore().getUIArea(this.id) != null;
|
|
22
|
+
return UIArea.registry.get(this.id) != null;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function fgetUIArea(){
|
|
26
|
-
|
|
27
|
-
return sap.ui.getCore().getUIArea(this.id);
|
|
26
|
+
return UIArea.registry.get(this.id).getInterface();
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
@@ -59,8 +58,7 @@ sap.ui.define([
|
|
|
59
58
|
|
|
60
59
|
// create UIAreas
|
|
61
60
|
this.each(function(){
|
|
62
|
-
|
|
63
|
-
sap.ui.getCore().createUIArea(this);
|
|
61
|
+
UIArea.create(this);
|
|
64
62
|
});
|
|
65
63
|
return this;
|
|
66
64
|
};
|
|
@@ -320,9 +320,6 @@ sap.ui.define([
|
|
|
320
320
|
*
|
|
321
321
|
* @param {module:sap/base/i18n/ResourceBundle} oCustomBundle an instance of a <code>sap/base/i18n/ResourceBundle</code>
|
|
322
322
|
* @private
|
|
323
|
-
*
|
|
324
|
-
* @function
|
|
325
|
-
* @name module:sap/base/i18n/ResourceBundle.prototype._enhance
|
|
326
323
|
*/
|
|
327
324
|
ResourceBundle.prototype._enhance = function(oCustomBundle) {
|
|
328
325
|
if (oCustomBundle instanceof ResourceBundle) {
|
|
@@ -350,9 +347,8 @@ sap.ui.define([
|
|
|
350
347
|
* whenever <code>aArgs</code> is given, no matter whether the text contains placeholders or not
|
|
351
348
|
* and no matter whether <code>aArgs</code> contains a value for <i>n</i> or not.
|
|
352
349
|
* @param {boolean} [bIgnoreKeyFallback=false] If set, <code>undefined</code> is returned instead of the key string, when the key is not found in any bundle or fallback bundle.
|
|
353
|
-
* @returns {string} The value belonging to the key, if found; otherwise the key itself or <code>undefined</code> depending on <code>bIgnoreKeyFallback</code>.
|
|
350
|
+
* @returns {string|undefined} The value belonging to the key, if found; otherwise the key itself or <code>undefined</code> depending on <code>bIgnoreKeyFallback</code>.
|
|
354
351
|
*
|
|
355
|
-
* @function
|
|
356
352
|
* @public
|
|
357
353
|
*/
|
|
358
354
|
ResourceBundle.prototype.getText = function(sKey, aArgs, bIgnoreKeyFallback){
|
|
@@ -383,7 +379,7 @@ sap.ui.define([
|
|
|
383
379
|
* @param {string} sValue the given input value
|
|
384
380
|
* @param {string} sKey the key within the bundle
|
|
385
381
|
* @param {array} [aArgs] arguments to format the message
|
|
386
|
-
* @returns {string} formatted string, <code>null</code> if sValue is not a string
|
|
382
|
+
* @returns {string|null} formatted string, <code>null</code> if sValue is not a string
|
|
387
383
|
* @private
|
|
388
384
|
*/
|
|
389
385
|
ResourceBundle.prototype._formatValue = function(sValue, sKey, aArgs){
|
|
@@ -412,7 +408,7 @@ sap.ui.define([
|
|
|
412
408
|
* The custom bundles are checked first in reverse order.
|
|
413
409
|
* @param {string} sKey the key within the bundle
|
|
414
410
|
* @param {array} [aArgs] arguments to format the message
|
|
415
|
-
* @returns {string} the formatted value if found, <code>null</code> otherwise
|
|
411
|
+
* @returns {string|null} the formatted value if found, <code>null</code> otherwise
|
|
416
412
|
* @private
|
|
417
413
|
*/
|
|
418
414
|
ResourceBundle.prototype._getTextFromFallback = function(sKey, aArgs){
|
|
@@ -451,7 +447,7 @@ sap.ui.define([
|
|
|
451
447
|
* The custom bundles are checked first in reverse order.
|
|
452
448
|
* @param {string} sKey the key within the bundle
|
|
453
449
|
* @param {array} [aArgs] arguments to format the message
|
|
454
|
-
* @returns {string} the formatted value if found, <code>null</code> otherwise
|
|
450
|
+
* @returns {string|null} the formatted value if found, <code>null</code> otherwise
|
|
455
451
|
* @private
|
|
456
452
|
*/
|
|
457
453
|
ResourceBundle.prototype._getTextFromProperties = function(sKey, aArgs){
|
|
@@ -491,9 +487,8 @@ sap.ui.define([
|
|
|
491
487
|
* used after the resource bundle has been loaded.
|
|
492
488
|
*
|
|
493
489
|
* @param {string} sKey Key to check
|
|
494
|
-
* @returns {boolean}
|
|
490
|
+
* @returns {boolean} Whether the text has been found in the concrete bundle
|
|
495
491
|
*
|
|
496
|
-
* @function
|
|
497
492
|
* @public
|
|
498
493
|
*/
|
|
499
494
|
ResourceBundle.prototype.hasText = function(sKey) {
|
|
@@ -537,7 +532,8 @@ sap.ui.define([
|
|
|
537
532
|
*
|
|
538
533
|
* @param {module:sap/base/i18n/ResourceBundle} oBundle ResourceBundle to extend
|
|
539
534
|
* @param {boolean} [bAsync=false] Whether the resource should be loaded asynchronously
|
|
540
|
-
* @returns
|
|
535
|
+
* @returns {module:sap/base/util/Properties|null|Promise<module:sap/base/util/Properties|null>}
|
|
536
|
+
* The newly loaded properties (sync mode) or a Promise on the properties (async mode);
|
|
541
537
|
* value / Promise fulfillment will be <code>null</code> when the properties for the
|
|
542
538
|
* next fallback locale should not be loaded or when loading failed or when there
|
|
543
539
|
* was no more fallback locale
|
|
@@ -251,10 +251,6 @@ sap.ui.define([
|
|
|
251
251
|
fnDone = function() {},
|
|
252
252
|
iSyncCallBehavior;
|
|
253
253
|
|
|
254
|
-
if (LoaderExtensions.notifyResourceLoading) {
|
|
255
|
-
fnDone = LoaderExtensions.notifyResourceLoading();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
254
|
if (typeof sResourceName === "string") {
|
|
259
255
|
mOptions = mOptions || {};
|
|
260
256
|
} else {
|
|
@@ -272,14 +268,14 @@ sap.ui.define([
|
|
|
272
268
|
assert(/^(xml|html|json|text)$/.test(sType), "type must be one of xml, html, json or text");
|
|
273
269
|
|
|
274
270
|
function convertData(d) {
|
|
275
|
-
|
|
271
|
+
switch (sType) {
|
|
276
272
|
case "json":
|
|
277
273
|
return JSON.parse(d);
|
|
278
274
|
case "xml":
|
|
279
275
|
return XMLHelper.parse(d);
|
|
280
276
|
default:
|
|
281
277
|
return d;
|
|
282
|
-
|
|
278
|
+
}
|
|
283
279
|
}
|
|
284
280
|
|
|
285
281
|
oData = sap.ui.loader._.getModuleContent(sResourceName, mOptions.url);
|
|
@@ -311,6 +307,10 @@ sap.ui.define([
|
|
|
311
307
|
|
|
312
308
|
sUrl = mOptions.url || sap.ui.loader._.getResourcePath(sResourceName);
|
|
313
309
|
|
|
310
|
+
if (LoaderExtensions.notifyResourceLoading) {
|
|
311
|
+
fnDone = LoaderExtensions.notifyResourceLoading();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
314
|
var pResponse = mixedFetch(sUrl, {
|
|
315
315
|
headers: Object.assign(oHeaders, mOptions.headers)
|
|
316
316
|
}, !mOptions.async)
|
|
@@ -89,7 +89,7 @@ sap.ui.define([], function() {
|
|
|
89
89
|
* @static
|
|
90
90
|
* @param {string|string[]} vObjectPath Path as string where each name is separated by '.'. Can also be an array of names.
|
|
91
91
|
* @param {Object} [oRootContext=window] Root context where the path starts
|
|
92
|
-
* @returns {any} Returns the value located in the provided path, or <code>undefined</code> if the path does not exist completely.
|
|
92
|
+
* @returns {any|undefined} Returns the value located in the provided path, or <code>undefined</code> if the path does not exist completely.
|
|
93
93
|
* @example
|
|
94
94
|
* ObjectPath.get("my.test.module", root) === root.my.test.module
|
|
95
95
|
* ObjectPath.get(["my", "test", "otherModule"], root) === root.my.test.otherModule
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['sap/base/util/LoaderExtensions'], function(LoaderExtensions) {
|
|
|
39
39
|
* @param {string} sKey Key to return the value for
|
|
40
40
|
* @param {string} [sDefaultValue=null] Optional, a default value that will be returned
|
|
41
41
|
* if the requested key is not in the collection
|
|
42
|
-
* @returns {string} Value for the given key or the default value or <code>null</code>
|
|
42
|
+
* @returns {string|null} Value for the given key or the default value or <code>null</code>
|
|
43
43
|
* if no default value or a falsy default value was given
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
@@ -53,30 +53,28 @@ sap.ui.define([], function () {
|
|
|
53
53
|
* @ui5-restricted SAPUI5 Dist
|
|
54
54
|
*/
|
|
55
55
|
function SimpleResponse(xhr, PromiseImpl) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var headers = parseHeaders(this.xhr.getAllResponseHeaders());
|
|
56
|
+
var headers = parseHeaders(xhr.getAllResponseHeaders());
|
|
59
57
|
Object.defineProperties(this, {
|
|
60
58
|
headers: {
|
|
61
59
|
value: headers
|
|
62
60
|
},
|
|
63
61
|
ok: {
|
|
64
|
-
value:
|
|
62
|
+
value: xhr.status >= 200 && xhr.status < 300
|
|
65
63
|
},
|
|
66
64
|
status: {
|
|
67
|
-
value:
|
|
65
|
+
value: xhr.status
|
|
68
66
|
},
|
|
69
67
|
statusText: {
|
|
70
|
-
value:
|
|
68
|
+
value: xhr.statusText
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
71
|
|
|
74
72
|
this.json = function() {
|
|
75
|
-
if (
|
|
76
|
-
return PromiseImpl.resolve(
|
|
73
|
+
if (xhr.responseType === "json") {
|
|
74
|
+
return PromiseImpl.resolve(xhr.response);
|
|
77
75
|
} else {
|
|
78
76
|
try {
|
|
79
|
-
var oData = JSON.parse(
|
|
77
|
+
var oData = JSON.parse(xhr.responseText);
|
|
80
78
|
return PromiseImpl.resolve(oData);
|
|
81
79
|
} catch (err) {
|
|
82
80
|
return PromiseImpl.reject(err);
|
|
@@ -85,7 +83,7 @@ sap.ui.define([], function () {
|
|
|
85
83
|
};
|
|
86
84
|
|
|
87
85
|
this.text = function() {
|
|
88
|
-
return PromiseImpl.resolve(
|
|
86
|
+
return PromiseImpl.resolve(xhr.responseText);
|
|
89
87
|
};
|
|
90
88
|
}
|
|
91
89
|
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
* Allows to perform an synchronous or asynchronous XMLHttpRequest (XHR) with the provided resource URL and request settings.
|
|
14
14
|
* It returns a Promise resolving with an <code>sap.base.util.SimpleResponse</code> object, which is
|
|
15
15
|
* a simplified implementation of the global Response interface, representing the response of the XHR.
|
|
16
|
-
* It returns a <code>sap.ui.base.SyncPromise</code>, if the
|
|
16
|
+
* It returns a <code>sap.ui.base.SyncPromise</code>, if the parameter <code>bSync</code> is set to 'true'.
|
|
17
17
|
*
|
|
18
18
|
* If the request encounters network failures, the returned promise will be rejected with a <code>TypeError</code>.
|
|
19
19
|
* In case of an HTTP error status (e.g. error status 404), the returned promise will resolve instead. The properties
|