@openui5/sap.ui.core 1.102.2 → 1.104.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 +17 -0
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +35 -2
- package/package.json +1 -1
- package/src/jquery.sap.global.js +2 -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/sap/base/i18n/ResourceBundle.js +2 -2
- package/src/sap/base/util/LoaderExtensions.js +69 -61
- package/src/sap/base/util/fetch.js +230 -0
- package/src/sap/base/util/mixedFetch.js +69 -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/base/util/syncFetch.js +73 -0
- package/src/sap/ui/Device.js +9 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/VersionInfo.js +12 -6
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/ExpressionParser.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +10 -8
- package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
- 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/base/SyncPromise.js +2 -0
- package/src/sap/ui/core/.library +17 -90
- package/src/sap/ui/core/AppCacheBuster.js +69 -55
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +51 -24
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +2 -2
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +45 -22
- package/src/sap/ui/core/Control.js +2 -2
- package/src/sap/ui/core/Core.js +56 -68
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +10 -9
- package/src/sap/ui/core/Element.js +20 -11
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +4 -2
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +58 -35
- package/src/sap/ui/core/Fragment.js +17 -14
- package/src/sap/ui/core/HTML.js +2 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +6 -6
- package/src/sap/ui/core/IconPool.js +1 -3
- 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 +4 -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 +28 -4
- package/src/sap/ui/core/LocaleData.js +3 -45
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +4 -2
- package/src/sap/ui/core/RenderManager.js +11 -21
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +22 -43
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ThemeCheck.js +7 -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 +8 -5
- package/src/sap/ui/core/UIComponent.js +2 -2
- package/src/sap/ui/core/UIComponentMetadata.js +2 -2
- 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/XMLTemplateProcessor.js +3 -5
- package/src/sap/ui/core/_IconRegistry.js +66 -55
- package/src/sap/ui/core/cache/CacheManager.js +18 -14
- package/src/sap/ui/core/cache/CacheManagerNOP.js +5 -2
- package/src/sap/ui/core/cache/LRUPersistentCache.js +17 -9
- package/src/sap/ui/core/cldr/en.json +0 -1
- package/src/sap/ui/core/date/Buddhist.js +15 -13
- package/src/sap/ui/core/date/Japanese.js +0 -6
- 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/DragAndDrop.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/DateFormat.js +2 -2
- package/src/sap/ui/core/format/NumberFormat.js +3 -3
- package/src/sap/ui/core/format/TimezoneUtil.js +2 -2
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +2 -2
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_ar.properties +54 -53
- package/src/sap/ui/core/messagebundle_bg.properties +54 -53
- package/src/sap/ui/core/messagebundle_ca.properties +28 -27
- package/src/sap/ui/core/messagebundle_cs.properties +37 -36
- package/src/sap/ui/core/messagebundle_cy.properties +56 -55
- package/src/sap/ui/core/messagebundle_da.properties +53 -52
- package/src/sap/ui/core/messagebundle_de.properties +54 -53
- package/src/sap/ui/core/messagebundle_el.properties +47 -46
- package/src/sap/ui/core/messagebundle_en_US_sappsd.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_saptrc.properties +1 -0
- package/src/sap/ui/core/messagebundle_es.properties +42 -41
- package/src/sap/ui/core/messagebundle_es_MX.properties +54 -53
- package/src/sap/ui/core/messagebundle_et.properties +51 -50
- package/src/sap/ui/core/messagebundle_fi.properties +48 -47
- package/src/sap/ui/core/messagebundle_fr.properties +36 -35
- package/src/sap/ui/core/messagebundle_fr_CA.properties +21 -20
- package/src/sap/ui/core/messagebundle_hi.properties +41 -40
- package/src/sap/ui/core/messagebundle_hr.properties +55 -54
- package/src/sap/ui/core/messagebundle_hu.properties +55 -54
- package/src/sap/ui/core/messagebundle_id.properties +55 -54
- package/src/sap/ui/core/messagebundle_it.properties +58 -57
- package/src/sap/ui/core/messagebundle_iw.properties +55 -54
- package/src/sap/ui/core/messagebundle_ja.properties +48 -47
- package/src/sap/ui/core/messagebundle_kk.properties +41 -40
- package/src/sap/ui/core/messagebundle_ko.properties +17 -16
- package/src/sap/ui/core/messagebundle_lt.properties +55 -54
- package/src/sap/ui/core/messagebundle_lv.properties +55 -54
- package/src/sap/ui/core/messagebundle_ms.properties +52 -51
- package/src/sap/ui/core/messagebundle_nl.properties +53 -52
- package/src/sap/ui/core/messagebundle_no.properties +53 -52
- package/src/sap/ui/core/messagebundle_pl.properties +52 -51
- package/src/sap/ui/core/messagebundle_pt.properties +54 -53
- package/src/sap/ui/core/messagebundle_pt_PT.properties +55 -54
- package/src/sap/ui/core/messagebundle_ro.properties +56 -55
- package/src/sap/ui/core/messagebundle_ru.properties +52 -51
- package/src/sap/ui/core/messagebundle_sh.properties +56 -55
- package/src/sap/ui/core/messagebundle_sk.properties +54 -53
- package/src/sap/ui/core/messagebundle_sl.properties +56 -55
- package/src/sap/ui/core/messagebundle_sv.properties +52 -51
- package/src/sap/ui/core/messagebundle_th.properties +25 -24
- package/src/sap/ui/core/messagebundle_tr.properties +56 -55
- package/src/sap/ui/core/messagebundle_uk.properties +55 -54
- package/src/sap/ui/core/messagebundle_vi.properties +55 -54
- package/src/sap/ui/core/messagebundle_zh_CN.properties +55 -54
- package/src/sap/ui/core/messagebundle_zh_TW.properties +55 -54
- package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +12 -12
- 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 -2
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +16 -14
- package/src/sap/ui/core/plugin/TemplatingSupport.js +2 -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 +5 -3
- package/src/sap/ui/core/routing/Router.js +4 -2
- package/src/sap/ui/core/routing/Targets.js +2 -2
- package/src/sap/ui/core/routing/async/TargetCache.js +4 -0
- package/src/sap/ui/core/rules/Config.support.js +1 -1
- package/src/sap/ui/core/rules/View.support.js +11 -4
- package/src/sap/ui/core/search/OpenSearchProvider.js +24 -11
- 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/RuleEngineOpaExtension.js +1 -1
- package/src/sap/ui/core/support/Support.js +2 -2
- package/src/sap/ui/core/support/ToolsAPI.js +4 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +3 -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 +46 -33
- 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/LocalBusyIndicator.less +1 -1
- package/src/sap/ui/core/themes/base/base.less +26 -26
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +46 -40
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +5 -5
- package/src/sap/ui/core/tmpl/TemplateControl.js +2 -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 +61 -42
- 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/ResponsivePaddingsEnablement.js +2 -2
- package/src/sap/ui/core/util/XMLPreprocessor.js +2 -2
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +19 -9
- package/src/sap/ui/dom/_ready.js +34 -0
- package/src/sap/ui/dom/containsOrEquals.js +2 -2
- package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
- package/src/sap/ui/dom/jquery/Focusable.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -1
- package/src/sap/ui/events/jquery/EventExtension.js +1 -1
- package/src/sap/ui/events/jquery/EventSimulation.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 +2 -2
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- 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/TreeBindingAdapter.js +134 -0
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +2 -2
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- 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 +6 -3
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +6 -0
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +407 -91
- 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 +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +4 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +112 -104
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +50 -5
- package/src/sap/ui/model/odata/v4/Context.js +9 -10
- package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +30 -2
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -5
- package/src/sap/ui/model/odata/v4/ODataModel.js +66 -3
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +203 -30
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +52 -3
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -7
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
- 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/sinon-qunit-bridge.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/security/FrameOptions.js +4 -2
- package/src/sap/ui/test/Opa5.js +1 -1
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/OpaPlugin.js +3 -3
- package/src/sap/ui/test/TestUtils.js +35 -2
- package/src/sap/ui/test/_ControlFinder.js +5 -4
- package/src/sap/ui/test/actions/Drag.js +2 -2
- package/src/sap/ui/test/actions/Drop.js +2 -2
- package/src/sap/ui/test/actions/EnterText.js +8 -8
- package/src/sap/ui/test/actions/Press.js +5 -5
- package/src/sap/ui/test/actions/Scroll.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/matchers/Matcher.js +9 -11
- package/src/sap/ui/test/opaQunit.js +4 -3
- package/src/sap/ui/thirdparty/IPv6.js +1 -1
- package/src/sap/ui/thirdparty/SecondLevelDomains.js +1 -1
- package/src/sap/ui/thirdparty/URI.js +8 -2
- package/src/sap/ui/thirdparty/URITemplate.js +1 -1
- package/src/sap/ui/util/Mobile.js +59 -33
- package/src/sap/ui/util/Storage.js +2 -2
- package/src/sap/ui/util/XMLHelper.js +1 -1
- package/src/sap/ui/util/openWindow.js +1 -1
- package/src/ui5loader.js +3 -3
- package/ui5.yaml +71 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// /**
|
|
2
|
-
// * Copyright (c) 2012-
|
|
2
|
+
// * Copyright (c) 2012-2022 SAP SE or an SAP affiliate company and Theming Base Content contributors. Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
3
3
|
// * Theming Engine 1.69.2
|
|
4
|
-
// * data:{"sModified":"2022-
|
|
4
|
+
// * data:{"sModified":"2022-05-24T07:19:31Z"}
|
|
5
5
|
// */
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
/******************* FILE /Base/baseLib/baseTheme/base.less (Version 11.1.
|
|
8
|
+
/******************* FILE /Base/baseLib/baseTheme/base.less (Version 11.1.40) *******************/
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
// [Label "Brand Color"]
|
|
@@ -3885,28 +3885,28 @@
|
|
|
3885
3885
|
// font-family: '72';
|
|
3886
3886
|
// font-style: normal;
|
|
3887
3887
|
// font-weight: 300;
|
|
3888
|
-
// src:
|
|
3888
|
+
// src: @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff'), local('72-Light');
|
|
3889
3889
|
// }
|
|
3890
3890
|
|
|
3891
3891
|
// @font-face {
|
|
3892
3892
|
// font-family: '72';
|
|
3893
3893
|
// font-style: normal;
|
|
3894
3894
|
// font-weight: 400;
|
|
3895
|
-
// src:
|
|
3895
|
+
// src: @sapFontUrl_72_Regular_woff2 format('woff2'), @sapFontUrl_72_Regular_woff format('woff'), local('72');
|
|
3896
3896
|
// }
|
|
3897
3897
|
|
|
3898
3898
|
// @font-face {
|
|
3899
3899
|
// font-family: '72';
|
|
3900
3900
|
// font-style: normal;
|
|
3901
3901
|
// font-weight: 600;
|
|
3902
|
-
// src:
|
|
3902
|
+
// src: @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff'), local('72-Semibold');
|
|
3903
3903
|
// }
|
|
3904
3904
|
|
|
3905
3905
|
// @font-face {
|
|
3906
3906
|
// font-family: '72';
|
|
3907
3907
|
// font-style: normal;
|
|
3908
3908
|
// font-weight: 700;
|
|
3909
|
-
// src:
|
|
3909
|
+
// src: @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff'), local('72-Bold');
|
|
3910
3910
|
// }
|
|
3911
3911
|
|
|
3912
3912
|
// @font-face {
|
|
@@ -3941,14 +3941,14 @@
|
|
|
3941
3941
|
// font-family: '72';
|
|
3942
3942
|
// font-style: normal;
|
|
3943
3943
|
// font-weight: 900;
|
|
3944
|
-
// src:
|
|
3944
|
+
// src: @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff'), local('72Black');
|
|
3945
3945
|
// }
|
|
3946
3946
|
|
|
3947
3947
|
// @font-face {
|
|
3948
3948
|
// font-family: '72';
|
|
3949
3949
|
// font-style: italic;
|
|
3950
3950
|
// font-weight: 700;
|
|
3951
|
-
// src:
|
|
3951
|
+
// src: @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff'), local('72-BoldItalic');
|
|
3952
3952
|
// }
|
|
3953
3953
|
|
|
3954
3954
|
// @font-face {
|
|
@@ -3956,7 +3956,7 @@
|
|
|
3956
3956
|
// font-style: normal;
|
|
3957
3957
|
// font-weight: 400;
|
|
3958
3958
|
// font-stretch: condensed;
|
|
3959
|
-
// src:
|
|
3959
|
+
// src: @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff'), local('72-Condensed');
|
|
3960
3960
|
// }
|
|
3961
3961
|
|
|
3962
3962
|
// @font-face {
|
|
@@ -3964,19 +3964,19 @@
|
|
|
3964
3964
|
// font-style: normal;
|
|
3965
3965
|
// font-weight: 700;
|
|
3966
3966
|
// font-stretch: condensed;
|
|
3967
|
-
// src:
|
|
3967
|
+
// src: @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff'), local('72-CondensedBold');
|
|
3968
3968
|
// }
|
|
3969
3969
|
|
|
3970
3970
|
// @font-face {
|
|
3971
3971
|
// font-family: '72';
|
|
3972
3972
|
// font-style: italic;
|
|
3973
3973
|
// font-weight: 400;
|
|
3974
|
-
// src:
|
|
3974
|
+
// src: @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff'), local('72-Italic');
|
|
3975
3975
|
// }
|
|
3976
3976
|
|
|
3977
3977
|
// @font-face {
|
|
3978
3978
|
// font-family: '72-Light';
|
|
3979
|
-
// src:
|
|
3979
|
+
// src: @sapFontUrl_72_Light_woff2 format('woff2'), @sapFontUrl_72_Light_woff format('woff'), local('72-Light');
|
|
3980
3980
|
// }
|
|
3981
3981
|
|
|
3982
3982
|
// @font-face {
|
|
@@ -3986,7 +3986,7 @@
|
|
|
3986
3986
|
|
|
3987
3987
|
// @font-face {
|
|
3988
3988
|
// font-family: '72-Bold';
|
|
3989
|
-
// src:
|
|
3989
|
+
// src: @sapFontUrl_72_Bold_woff2 format('woff2'), @sapFontUrl_72_Bold_woff format('woff'), local('72-Bold');
|
|
3990
3990
|
// }
|
|
3991
3991
|
|
|
3992
3992
|
// @font-face {
|
|
@@ -3996,7 +3996,7 @@
|
|
|
3996
3996
|
|
|
3997
3997
|
// @font-face {
|
|
3998
3998
|
// font-family: '72-Semibold';
|
|
3999
|
-
// src:
|
|
3999
|
+
// src: @sapFontUrl_72_Semibold_woff2 format('woff2'), @sapFontUrl_72_Semibold_woff format('woff'), local('72-Semibold');
|
|
4000
4000
|
// }
|
|
4001
4001
|
|
|
4002
4002
|
// @font-face {
|
|
@@ -4006,7 +4006,7 @@
|
|
|
4006
4006
|
|
|
4007
4007
|
// @font-face {
|
|
4008
4008
|
// font-family: '72-SemiboldDuplex';
|
|
4009
|
-
// src:
|
|
4009
|
+
// src: @sapFontUrl_72_SemiboldDuplex_woff2 format('woff2'), @sapFontUrl_72_SemiboldDuplex_woff format('woff'), local('72-SemiboldDuplex');
|
|
4010
4010
|
// }
|
|
4011
4011
|
|
|
4012
4012
|
// @font-face {
|
|
@@ -4016,32 +4016,32 @@
|
|
|
4016
4016
|
|
|
4017
4017
|
// @font-face {
|
|
4018
4018
|
// font-family: '72Black';
|
|
4019
|
-
// src:
|
|
4019
|
+
// src: @sapFontUrl_72_Black_woff2 format('woff2'), @sapFontUrl_72_Black_woff format('woff'), local('72Black');
|
|
4020
4020
|
// }
|
|
4021
4021
|
|
|
4022
4022
|
// @font-face {
|
|
4023
4023
|
// font-family: '72-BoldItalic';
|
|
4024
|
-
// src:
|
|
4024
|
+
// src: @sapFontUrl_72_BoldItalic_woff2 format('woff2'), @sapFontUrl_72_BoldItalic_woff format('woff'), local('72-BoldItalic');
|
|
4025
4025
|
// }
|
|
4026
4026
|
|
|
4027
4027
|
// @font-face {
|
|
4028
4028
|
// font-family: '72-Condensed';
|
|
4029
|
-
// src:
|
|
4029
|
+
// src: @sapFontUrl_72_Condensed_woff2 format('woff2'), @sapFontUrl_72_Condensed_woff format('woff'), local('72-Condensed');
|
|
4030
4030
|
// }
|
|
4031
4031
|
|
|
4032
4032
|
// @font-face {
|
|
4033
4033
|
// font-family: '72-CondensedBold';
|
|
4034
|
-
// src:
|
|
4034
|
+
// src: @sapFontUrl_72_CondensedBold_woff2 format('woff2'), @sapFontUrl_72_CondensedBold_woff format('woff'), local('72-CondensedBold');
|
|
4035
4035
|
// }
|
|
4036
4036
|
|
|
4037
4037
|
// @font-face {
|
|
4038
4038
|
// font-family: '72-Italic';
|
|
4039
|
-
// src:
|
|
4039
|
+
// src: @sapFontUrl_72_Italic_woff2 format('woff2'), @sapFontUrl_72_Italic_woff format('woff'), local('72-Italic');
|
|
4040
4040
|
// }
|
|
4041
4041
|
|
|
4042
4042
|
// @font-face {
|
|
4043
4043
|
// font-family: '72Mono';
|
|
4044
|
-
// src:
|
|
4044
|
+
// src: @sapFontUrl_72Mono_Regular_woff2 format('woff2'), @sapFontUrl_72Mono_Regular_woff format('woff'), local('72Mono');
|
|
4045
4045
|
// }
|
|
4046
4046
|
|
|
4047
4047
|
// @font-face {
|
|
@@ -4051,7 +4051,7 @@
|
|
|
4051
4051
|
|
|
4052
4052
|
// @font-face {
|
|
4053
4053
|
// font-family: '72Mono-Bold';
|
|
4054
|
-
// src:
|
|
4054
|
+
// src: @sapFontUrl_72Mono_Bold_woff2 format('woff2'), @sapFontUrl_72Mono_Bold_woff format('woff'), local('72Mono-Bold');
|
|
4055
4055
|
// }
|
|
4056
4056
|
|
|
4057
4057
|
// @font-face {
|
|
@@ -4076,13 +4076,13 @@
|
|
|
4076
4076
|
// }
|
|
4077
4077
|
|
|
4078
4078
|
// /**
|
|
4079
|
-
// * Copyright (c) 2012-
|
|
4079
|
+
// * Copyright (c) 2012-2022 SAP SE or an SAP affiliate company and Theming Base Content contributors. Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
4080
4080
|
// * Theming Engine 1.69.2
|
|
4081
|
-
// * data:{"sModified":"2022-
|
|
4081
|
+
// * data:{"sModified":"2022-05-24T07:19:31Z"}
|
|
4082
4082
|
// */
|
|
4083
4083
|
|
|
4084
4084
|
|
|
4085
|
-
/******************* FILE /Base/baseLib/sap_belize_hcw/base.less (Version 11.1.
|
|
4085
|
+
/******************* FILE /Base/baseLib/sap_belize_hcw/base.less (Version 11.1.40) *******************/
|
|
4086
4086
|
|
|
4087
4087
|
|
|
4088
4088
|
// [Tags "SapInternal", "Base", "Dimension", "Protected"]
|
|
Binary file
|
|
@@ -16,11 +16,11 @@ sap.ui.define([
|
|
|
16
16
|
'sap/base/util/UriParameters',
|
|
17
17
|
'sap/base/Log',
|
|
18
18
|
'sap/base/util/extend',
|
|
19
|
+
'sap/base/util/syncFetch',
|
|
19
20
|
'sap/ui/core/ThemeCheck',
|
|
20
|
-
'sap/ui/thirdparty/jquery',
|
|
21
21
|
'./ThemeHelper'
|
|
22
22
|
],
|
|
23
|
-
function(URI, Element, UriParameters, Log, extend,
|
|
23
|
+
function(URI, Element, UriParameters, Log, extend, syncFetch, ThemeCheck, ThemeHelper) {
|
|
24
24
|
"use strict";
|
|
25
25
|
|
|
26
26
|
var oCfgData = window["sap-ui-config"] || {};
|
|
@@ -118,8 +118,8 @@ sap.ui.define([
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
function forEachStyleSheet(fnCallback) {
|
|
121
|
-
|
|
122
|
-
fnCallback(
|
|
121
|
+
document.querySelectorAll("link[id^=sap-ui-theme-]").forEach(function(linkNode) {
|
|
122
|
+
fnCallback(linkNode.getAttribute("id"));
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -135,8 +135,8 @@ sap.ui.define([
|
|
|
135
135
|
// In some browsers (e.g. Safari) it might happen that after switching the theme or adopting the <link>'s href,
|
|
136
136
|
// the parameters from the previous stylesheet are taken. This can be prevented by checking whether the theme is applied.
|
|
137
137
|
if (bThemeApplied && bUseInlineParameters) {
|
|
138
|
-
var
|
|
139
|
-
var sDataUri =
|
|
138
|
+
var oLink = document.getElementById(sId);
|
|
139
|
+
var sDataUri = window.getComputedStyle(oLink).getPropertyValue("background-image");
|
|
140
140
|
var aParams = /\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(sDataUri);
|
|
141
141
|
if (aParams && aParams.length >= 2) {
|
|
142
142
|
var sParams = aParams[1];
|
|
@@ -233,27 +233,46 @@ sap.ui.define([
|
|
|
233
233
|
* @param {boolean[]} aWithCredentials probing values for requesting with or without credentials
|
|
234
234
|
*/
|
|
235
235
|
function loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials) {
|
|
236
|
-
var
|
|
236
|
+
var oHeaders = {
|
|
237
|
+
Accept: syncFetch.ContentTypes.JSON
|
|
238
|
+
};
|
|
237
239
|
|
|
238
|
-
var
|
|
240
|
+
var bCurrentWithCredentials = aWithCredentials.shift();
|
|
241
|
+
if (bCurrentWithCredentials) {
|
|
239
242
|
// the X-Requested-With Header is essential for the Theming-Service to determine if a GET request will be handled
|
|
240
243
|
// This forces a preflight request which should give us valid Allow headers:
|
|
241
244
|
// Access-Control-Allow-Origin: ... fully qualified requestor origin ...
|
|
242
245
|
// Access-Control-Allow-Credentials: true
|
|
243
|
-
"X-Requested-With"
|
|
244
|
-
}
|
|
246
|
+
oHeaders["X-Requested-With"] = "XMLHttpRequest";
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function fnErrorCallback(error) {
|
|
250
|
+
// ignore failure at least temporarily as long as there are libraries built using outdated tools which produce no json file
|
|
251
|
+
Log.error("Could not load theme parameters from: " + sUrl, error); // could be an error as well, but let's avoid more CSN messages...
|
|
252
|
+
|
|
253
|
+
if (aWithCredentials.length > 0) {
|
|
254
|
+
// In a CORS scenario, IF we have sent credentials on the first try AND the request failed,
|
|
255
|
+
// we expect that a service could have answered with the following Allow header:
|
|
256
|
+
// Access-Control-Allow-Origin: *
|
|
257
|
+
// In this case we must not send credentials, otherwise the service would have answered with:
|
|
258
|
+
// Access-Control-Allow-Origin: https://...
|
|
259
|
+
// Access-Control-Allow-Credentials: true
|
|
260
|
+
// Due to security constraints, the browser does not hand out any more information in a CORS scenario,
|
|
261
|
+
// so now we try again without credentials.
|
|
262
|
+
Log.warning("Initial library-parameters.json request failed ('withCredentials=" + bCurrentWithCredentials + "'; sUrl: '" + sUrl + "').\n" +
|
|
263
|
+
"Retrying with 'withCredentials=" + !bCurrentWithCredentials + "'.", "sap.ui.core.theming.Parameters");
|
|
264
|
+
loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
245
267
|
|
|
246
268
|
// load and evaluate parameter file
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
headers: mHeaders,
|
|
256
|
-
success: function(data, textStatus, xhr) {
|
|
269
|
+
try {
|
|
270
|
+
var response = syncFetch(sUrl, {
|
|
271
|
+
credentials: bCurrentWithCredentials ? "include" : "omit",
|
|
272
|
+
headers: oHeaders
|
|
273
|
+
});
|
|
274
|
+
if (response.ok) {
|
|
275
|
+
var data = response.json();
|
|
257
276
|
// Once we have a successful request we track the credentials setting for this origin
|
|
258
277
|
var sThemeOrigin = new URI(sThemeBaseUrl).origin();
|
|
259
278
|
mOriginsNeedingCredentials[sThemeOrigin] = bCurrentWithCredentials;
|
|
@@ -267,26 +286,13 @@ sap.ui.define([
|
|
|
267
286
|
} else {
|
|
268
287
|
mergeParameters(data, sThemeBaseUrl);
|
|
269
288
|
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
// ignore failure at least temporarily as long as there are libraries built using outdated tools which produce no json file
|
|
273
|
-
Log.error("Could not load theme parameters from: " + sUrl, error); // could be an error as well, but let's avoid more CSN messages...
|
|
274
|
-
|
|
275
|
-
if (aWithCredentials.length > 0) {
|
|
276
|
-
// In a CORS scenario, IF we have sent credentials on the first try AND the request failed,
|
|
277
|
-
// we expect that a service could have answered with the following Allow header:
|
|
278
|
-
// Access-Control-Allow-Origin: *
|
|
279
|
-
// In this case we must not send credentials, otherwise the service would have answered with:
|
|
280
|
-
// Access-Control-Allow-Origin: https://...
|
|
281
|
-
// Access-Control-Allow-Credentials: true
|
|
282
|
-
// Due to security constraints, the browser does not hand out any more information in a CORS scenario,
|
|
283
|
-
// so now we try again without credentials.
|
|
284
|
-
Log.warning("Initial library-parameters.json request failed ('withCredentials=" + bCurrentWithCredentials + "'; sUrl: '" + sUrl + "').\n" +
|
|
285
|
-
"Retrying with 'withCredentials=" + !bCurrentWithCredentials + "'.", "sap.ui.core.theming.Parameters");
|
|
286
|
-
loadParametersJSON(sUrl, sThemeBaseUrl, aWithCredentials);
|
|
287
|
-
}
|
|
289
|
+
} else {
|
|
290
|
+
throw new Error(response.statusText || response.status);
|
|
288
291
|
}
|
|
289
|
-
|
|
292
|
+
|
|
293
|
+
} catch (error) {
|
|
294
|
+
fnErrorCallback(error);
|
|
295
|
+
}
|
|
290
296
|
}
|
|
291
297
|
|
|
292
298
|
/**
|
|
@@ -368,7 +374,7 @@ sap.ui.define([
|
|
|
368
374
|
* @param {boolean} mOptions.loadPendingParameters If set to "true" and no parameter value is found,
|
|
369
375
|
* all pending parameters will be loaded (see Parameters._addLibraryTheme)
|
|
370
376
|
* @param {boolean} mOptions.async whether the parameter value should be retrieved asynchronous
|
|
371
|
-
* @returns {string} parameter value or undefined
|
|
377
|
+
* @returns {string|undefined} parameter value or undefined
|
|
372
378
|
* @private
|
|
373
379
|
*/
|
|
374
380
|
function getParam(mOptions) {
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* Represents a DOM element. It allows to use databinding for the properties and nested DOM attributes.
|
|
29
29
|
* @extends sap.ui.core.Control
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.104.0
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @since 1.15
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
// handle custom attributes if not already defined in settings
|
|
85
85
|
if (!mSettings["attributes"]) {
|
|
86
86
|
var aAttributes = mSettings["attributes"] = [];
|
|
87
|
-
jQuery.each(mSettings, function(sKey, oValue) {
|
|
87
|
+
jQuery.each(mSettings, function(sKey, oValue) { // @legacy-relevant: jQuery usage in deprecated code
|
|
88
88
|
if (sKey !== "id" && !mJSONKeys[sKey] && typeof oValue === "string") {
|
|
89
89
|
// add custom settings as DOM attributes
|
|
90
90
|
aAttributes.push(new DOMAttribute({
|
|
@@ -52,10 +52,10 @@ function(
|
|
|
52
52
|
* @extends sap.ui.base.ManagedObject
|
|
53
53
|
* @abstract
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.104.0
|
|
56
56
|
* @alias sap.ui.core.tmpl.Template
|
|
57
57
|
* @since 1.15
|
|
58
|
-
* @deprecated since 1.56, use an {@link sap.ui.core.mvc.XMLView XMLView} or {@link
|
|
58
|
+
* @deprecated since 1.56, use an {@link sap.ui.core.mvc.XMLView XMLView} or a {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed View} instead.
|
|
59
59
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
60
60
|
*/
|
|
61
61
|
var Template = ManagedObject.extend("sap.ui.core.tmpl.Template", /** @lends sap.ui.core.tmpl.Template.prototype */
|
|
@@ -451,7 +451,7 @@ function(
|
|
|
451
451
|
|
|
452
452
|
// lookup all kind of DOM elements for having a type which is supported
|
|
453
453
|
var aTemplates = [];
|
|
454
|
-
jQuery.each(Template._mSupportedTypes, function(sType, sClass) {
|
|
454
|
+
jQuery.each(Template._mSupportedTypes, function(sType, sClass) { // @legacy-relevant: jQuery usage in deprecated code
|
|
455
455
|
jQuery("script[type='" + sType + "'], [data-type='" + sType + "']").each(function(iIndex, oElement) {
|
|
456
456
|
aTemplates.push(sap.ui.template({
|
|
457
457
|
id: oElement.id,
|
|
@@ -479,7 +479,7 @@ function(
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
// apply the default values
|
|
482
|
-
oTemplate = jQuery.extend({
|
|
482
|
+
oTemplate = jQuery.extend({ // @legacy-relevant: jQuery usage in deprecated code
|
|
483
483
|
type: Template.DEFAULT_TEMPLATE
|
|
484
484
|
}, oTemplate);
|
|
485
485
|
|
|
@@ -493,7 +493,7 @@ function(
|
|
|
493
493
|
if (bLoadTemplate) {
|
|
494
494
|
|
|
495
495
|
// load the template from the specified URL
|
|
496
|
-
jQuery.ajax({
|
|
496
|
+
jQuery.ajax({ // @legacy-relevant: jQuery usage in deprecated code
|
|
497
497
|
url: oTemplate.src,
|
|
498
498
|
dataType: "text",
|
|
499
499
|
async: false,
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @class
|
|
44
44
|
* This is the base class for all template controls. Template controls are declared based on templates.
|
|
45
45
|
* @extends sap.ui.core.Control
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.104.0
|
|
47
47
|
*
|
|
48
48
|
* @public
|
|
49
49
|
* @since 1.15
|
|
@@ -383,7 +383,7 @@ sap.ui.define([
|
|
|
383
383
|
// sap.ui.core.Element.create doesn't work because there is no type
|
|
384
384
|
// conversion for the values done (would be the better approach)
|
|
385
385
|
var mHTMLSettings = {};
|
|
386
|
-
jQuery.each(mSettings, function(sKey, oValue) {
|
|
386
|
+
jQuery.each(mSettings, function(sKey, oValue) { // @legacy-relevant: jQuery usage in deprecated code
|
|
387
387
|
mHTMLSettings["data-" + hyphenate(sKey)] = oValue;
|
|
388
388
|
});
|
|
389
389
|
var $control = jQuery("<div></div>", mHTMLSettings);
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/ui/base/Object',
|
|
10
10
|
"sap/base/Log",
|
|
11
|
+
"sap/base/util/fetch",
|
|
11
12
|
"sap/base/util/Version",
|
|
12
13
|
"sap/ui/thirdparty/jquery"
|
|
13
14
|
],
|
|
14
|
-
function(BaseObject, Log, Version, jQuery) {
|
|
15
|
+
function(BaseObject, Log, fetch, Version, jQuery) {
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -20,7 +21,7 @@ sap.ui.define([
|
|
|
20
21
|
*
|
|
21
22
|
* @extends sap.ui.base.Object
|
|
22
23
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
24
|
+
* @version 1.104.0
|
|
24
25
|
* @private
|
|
25
26
|
* @alias sap.ui.core.util.LibraryInfo
|
|
26
27
|
*/
|
|
@@ -67,19 +68,28 @@ sap.ui.define([
|
|
|
67
68
|
|
|
68
69
|
sRequestUrl = typeof that.getResourceUrl === "function" ? that.getResourceUrl(sUrl) : sUrl;
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
that._oLibInfos[sLibraryName] = {name: sLibraryName, data: oData, url: sUrl};
|
|
80
|
-
fnCallback(that._oLibInfos[sLibraryName]);
|
|
71
|
+
function fnErrorCallback(error) {
|
|
72
|
+
Log.error("failed to load library details from '" + sUrl + sLibraryType + ": " + error.message + ", " + error);
|
|
73
|
+
that._oLibInfos[sLibraryName] = {name: sLibraryName, data: null, url: sUrl};
|
|
74
|
+
fnCallback(that._oLibInfos[sLibraryName]);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
fetch(sRequestUrl + sLibraryType, {
|
|
78
|
+
headers: {
|
|
79
|
+
Accept: fetch.ContentTypes.XML
|
|
81
80
|
}
|
|
82
|
-
})
|
|
81
|
+
}).then(function(response) {
|
|
82
|
+
if (response.ok) {
|
|
83
|
+
return response.text().then(function(responseText) {
|
|
84
|
+
var parser = new DOMParser();
|
|
85
|
+
var oData = parser.parseFromString(responseText, "text/xml");
|
|
86
|
+
that._oLibInfos[sLibraryName] = {name: sLibraryName, data: oData, url: sUrl};
|
|
87
|
+
fnCallback(that._oLibInfos[sLibraryName]);
|
|
88
|
+
});
|
|
89
|
+
} else {
|
|
90
|
+
throw new Error(response.statusText || response.status);
|
|
91
|
+
}
|
|
92
|
+
}).catch(fnErrorCallback);
|
|
83
93
|
};
|
|
84
94
|
|
|
85
95
|
|
|
@@ -158,18 +168,23 @@ sap.ui.define([
|
|
|
158
168
|
sUrl = that.getResourceUrl(sUrl);
|
|
159
169
|
}
|
|
160
170
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
fetch(sUrl, {
|
|
172
|
+
headers: {
|
|
173
|
+
Accept: fetch.ContentTypes.JSON
|
|
174
|
+
}
|
|
175
|
+
}).then(function(response) {
|
|
176
|
+
if (response.ok) {
|
|
177
|
+
response.json().then(function(oData) {
|
|
178
|
+
oData.library = lib;
|
|
179
|
+
oData.libraryUrl = libUrl;
|
|
180
|
+
fnCallback(oData);
|
|
181
|
+
});
|
|
182
|
+
} else {
|
|
183
|
+
throw new Error(response.statusText || response.status);
|
|
172
184
|
}
|
|
185
|
+
}).catch(function(error) {
|
|
186
|
+
Log.error("failed to load library docu from '" + sUrl + "': " + error.message + ", " + error);
|
|
187
|
+
fnCallback(result);
|
|
173
188
|
});
|
|
174
189
|
});
|
|
175
190
|
};
|
|
@@ -236,25 +251,29 @@ sap.ui.define([
|
|
|
236
251
|
sUrl = that.getResourceUrl(sUrl);
|
|
237
252
|
}
|
|
238
253
|
|
|
239
|
-
// load the changelog
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
// of the specific version instead of the full data of the release notes file.
|
|
254
|
-
fnCallback(oData, sVersion);
|
|
254
|
+
// load the changelog
|
|
255
|
+
fetch(sUrl, {
|
|
256
|
+
headers: {
|
|
257
|
+
Accept: fetch.ContentTypes.JSON
|
|
258
|
+
}
|
|
259
|
+
}).then(function(response) {
|
|
260
|
+
if (response.ok) {
|
|
261
|
+
return response.json().then(function(oData) {
|
|
262
|
+
// in case of a version is specified we return only the content
|
|
263
|
+
// of the specific version instead of the full data of the release notes file.
|
|
264
|
+
fnCallback(oData, sVersion);
|
|
265
|
+
});
|
|
266
|
+
} else {
|
|
267
|
+
throw new Error(response.statusText || response.status);
|
|
255
268
|
}
|
|
269
|
+
}).catch(function(error) {
|
|
270
|
+
if (error.name === "SyntaxError") {
|
|
271
|
+
Log.error("failed to parse release notes for library '" + sLibraryName + ", " + error);
|
|
272
|
+
} else {
|
|
273
|
+
Log.warning("failed to load release notes for library '" + sLibraryName + ", " + error);
|
|
274
|
+
}
|
|
275
|
+
fnCallback({});
|
|
256
276
|
});
|
|
257
|
-
|
|
258
277
|
});
|
|
259
278
|
};
|
|
260
279
|
|