@openui5/sap.ui.core 1.116.0 → 1.117.1
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 +1 -22
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +4 -4
- package/src/sap/base/Eventing.js +5 -6
- package/src/sap/base/config/MemoryConfigurationProvider.js +10 -1
- package/src/sap/base/config.js +3 -2
- package/src/sap/base/i18n/Formatting.js +30 -32
- package/src/sap/base/i18n/LanguageTag.js +2 -2
- package/src/sap/base/i18n/Localization.js +19 -20
- package/src/sap/base/i18n/date/CalendarType.js +1 -1
- package/src/sap/base/i18n/date/CalendarWeekNumbering.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/JSTokenizer.js +1 -1
- package/src/sap/base/util/fetch.js +4 -4
- package/src/sap/base/util/mixedFetch.js +2 -2
- 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 +2 -2
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +6 -4
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +2 -4
- package/src/sap/ui/base/ManagedObjectMetadata.js +4 -6
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +2 -2
- package/src/sap/ui/core/AnimationMode.js +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +1 -1
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/ConfigTest.js +17 -0
- package/src/sap/ui/core/Configuration.js +2 -14
- package/src/sap/ui/core/Control.js +4 -1
- package/src/sap/ui/core/ControlBehavior.js +2 -2
- package/src/sap/ui/core/Core.js +3 -1
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +2 -4
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IconPool.js +1 -2
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +17 -16
- 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 +5 -2
- package/src/sap/ui/core/LocaleData.js +12 -4
- package/src/sap/ui/core/Manifest.js +5 -5
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +37 -50
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/Rendering.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Shortcut.js +11 -9
- package/src/sap/ui/core/StaticArea.js +1 -1
- package/src/sap/ui/core/Theming.js +16 -9
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +27 -5
- package/src/sap/ui/core/_IconRegistry.js +82 -11
- package/src/sap/ui/core/boot/_bootConfig.js +137 -0
- package/src/sap/ui/core/boot/_runBoot.js +16 -0
- package/src/sap/ui/core/boot/initDOM.js +96 -0
- package/src/sap/ui/core/boot/loadCalendar.js +50 -0
- package/src/sap/ui/core/boot/loadManifest.js +55 -0
- package/src/sap/ui/core/boot/loadModules.js +80 -0
- package/src/sap/ui/core/boot/manifest.json +11 -0
- package/src/sap/ui/core/boot/onInit.js +44 -0
- package/src/sap/ui/core/boot.js +107 -0
- package/src/sap/ui/core/date/UI5Date.js +9 -3
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/DateFormat.js +13 -12
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +32 -6
- 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/MessageMixin.js +6 -5
- 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_ar.properties +57 -55
- package/src/sap/ui/core/messagebundle_bg.properties +57 -55
- package/src/sap/ui/core/messagebundle_ca.properties +30 -28
- package/src/sap/ui/core/messagebundle_cs.properties +43 -41
- package/src/sap/ui/core/messagebundle_cy.properties +58 -56
- package/src/sap/ui/core/messagebundle_da.properties +56 -54
- package/src/sap/ui/core/messagebundle_de.properties +58 -56
- package/src/sap/ui/core/messagebundle_el.properties +47 -45
- package/src/sap/ui/core/messagebundle_en.properties +58 -56
- package/src/sap/ui/core/messagebundle_en_GB.properties +58 -56
- package/src/sap/ui/core/messagebundle_en_US_sappsd.properties +2 -0
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/core/messagebundle_en_US_saptrc.properties +3 -0
- package/src/sap/ui/core/messagebundle_es.properties +47 -45
- package/src/sap/ui/core/messagebundle_es_MX.properties +57 -55
- package/src/sap/ui/core/messagebundle_et.properties +54 -52
- package/src/sap/ui/core/messagebundle_fi.properties +51 -49
- package/src/sap/ui/core/messagebundle_fr.properties +36 -34
- package/src/sap/ui/core/messagebundle_fr_CA.properties +21 -19
- package/src/sap/ui/core/messagebundle_hi.properties +42 -40
- package/src/sap/ui/core/messagebundle_hr.properties +57 -55
- package/src/sap/ui/core/messagebundle_hu.properties +58 -56
- package/src/sap/ui/core/messagebundle_id.properties +58 -56
- package/src/sap/ui/core/messagebundle_it.properties +59 -57
- package/src/sap/ui/core/messagebundle_iw.properties +58 -56
- package/src/sap/ui/core/messagebundle_ja.properties +50 -48
- package/src/sap/ui/core/messagebundle_kk.properties +43 -41
- package/src/sap/ui/core/messagebundle_ko.properties +19 -17
- package/src/sap/ui/core/messagebundle_lt.properties +58 -56
- package/src/sap/ui/core/messagebundle_lv.properties +58 -56
- package/src/sap/ui/core/messagebundle_ms.properties +58 -56
- package/src/sap/ui/core/messagebundle_nl.properties +57 -55
- package/src/sap/ui/core/messagebundle_no.properties +55 -53
- package/src/sap/ui/core/messagebundle_pl.properties +55 -53
- package/src/sap/ui/core/messagebundle_pt.properties +57 -55
- package/src/sap/ui/core/messagebundle_pt_PT.properties +57 -55
- package/src/sap/ui/core/messagebundle_ro.properties +58 -56
- package/src/sap/ui/core/messagebundle_ru.properties +57 -55
- package/src/sap/ui/core/messagebundle_sh.properties +58 -56
- package/src/sap/ui/core/messagebundle_sk.properties +57 -55
- package/src/sap/ui/core/messagebundle_sl.properties +58 -56
- package/src/sap/ui/core/messagebundle_sv.properties +54 -52
- package/src/sap/ui/core/messagebundle_th.properties +17 -15
- package/src/sap/ui/core/messagebundle_tr.properties +58 -56
- package/src/sap/ui/core/messagebundle_uk.properties +58 -56
- package/src/sap/ui/core/messagebundle_vi.properties +58 -56
- package/src/sap/ui/core/messagebundle_zh_CN.properties +58 -56
- package/src/sap/ui/core/messagebundle_zh_TW.properties +58 -56
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +14 -2
- 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/rules/Misc.support.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +7 -4
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/Icon.less +2 -2
- package/src/sap/ui/core/theming/Parameters.js +0 -5
- package/src/sap/ui/core/theming/ThemeManager.js +3 -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 +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +4 -5
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/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 +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +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/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +166 -79
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +4 -3
- package/src/sap/ui/model/analytics/BatchResponseCollector.js +2 -2
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +14 -27
- package/src/sap/ui/model/analytics/odata4analytics.js +6 -12
- package/src/sap/ui/model/base/ManagedObjectModel.js +2 -1
- package/src/sap/ui/model/json/JSONModel.js +6 -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 +191 -5
- package/src/sap/ui/model/odata/ODataMetadata.js +38 -4
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +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/ODataModel.js +2 -2
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +4 -4
- package/src/sap/ui/model/odata/v4/Context.js +33 -30
- package/src/sap/ui/model/odata/v4/ODataBinding.js +18 -14
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +12 -12
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +110 -43
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +20 -28
- package/src/sap/ui/model/odata/v4/ODataModel.js +40 -31
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +8 -6
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +14 -14
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +93 -9
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +25 -27
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +58 -195
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +157 -0
- package/src/sap/ui/model/odata/v4/lib/_MetadataRequestor.js +14 -5
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +27 -15
- 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/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/TestUtils.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/generic/_EnforceSemanticRendering.js +1 -3
- package/src/sap/ui/test/matchers/_Visitor.js +6 -1
- package/src/sap/ui/test/starter/_setupAndStart.js +2 -5
- package/src/sap/ui/thirdparty/qunit-2.js +9 -3
- package/src/sap/ui/util/Mobile.js +10 -6
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap-ui-boot.js +23 -6
- package/src/ui5-boot.js +50 -0
- package/src/ui5loader-autoconfig.js +147 -75
- package/src/ui5loader.js +320 -360
- package/test/sap/ui/core/Device.js +1 -1
- package/test/sap/ui/core/demokit/sample/OpaAction/applicationUnderTest/view/Main.view.xml +1 -0
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Template.controller.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v2/AutoExpand/AutoExpand.view.xml +24 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/Ancestry/Main.view.xml +24 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/DataAggregation.view.xml +20 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Draft/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FieldGroups/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.view.xml +4 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/FlexibleColumnLayout/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/GridTable/GridTable.view.xml +12 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Main.controller.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.OptimisticBatch.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBinding/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Products/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +26 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/data/metadata.xml +4 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/pages/Main.js +18 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/tests/Create.js +10 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersRTATest/manifest.json +18 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/pages/Main.js +4 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/Sticky/Opa.qunit.js +2 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/controller/App.controller.js +1 -6
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/controller/App.controller.js +3 -8
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/controller/App.controller.js +3 -8
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/localService/mockserver.js +1 -0
- package/test/sap/ui/core/qunit/IconPool.qunit.js +53 -4
- package/test/sap/ui/core/qunit/ManagedObjectModel.qunit.js +43 -5
- package/test/sap/ui/core/qunit/Theming.qunit.js +19 -1
- package/test/sap/ui/core/qunit/analytics/AnalyticalBinding.qunit.js +510 -185
- package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +80 -10
- package/test/sap/ui/core/qunit/analytics/odata4analytics.qunit.js +20 -29
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +18 -1
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +15 -13
- package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +35 -12
- package/test/sap/ui/core/qunit/bootstrap/Configuration.main.qunit.js +11 -0
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.html +4 -3
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +71 -35
- package/test/sap/ui/core/qunit/bootstrap/_checkCoreAndLibraryBooted.qunit.js +1 -1
- package/test/sap/ui/core/qunit/component/Models.qunit.js +5 -2
- package/test/sap/ui/core/qunit/generic/EnforceSemanticRendering.qunit.js +2 -2
- package/test/sap/ui/core/qunit/generic/SettersContextReturn.qunit.js +2 -2
- package/test/sap/ui/core/qunit/generic/legacy/SettersContextReturn.qunit.js +2 -2
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +48 -13
- package/test/sap/ui/core/qunit/i18n/UI5Date.qunit.js +16 -4
- package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +73 -103
- package/test/sap/ui/core/qunit/i18n/UniversalDateUtils.qunit.js +34 -39
- package/test/sap/ui/core/qunit/internal/BeforePush.ODataV4.js +28 -0
- package/test/sap/ui/core/qunit/internal/BeforePush.html +1 -0
- package/test/sap/ui/core/qunit/internal/BeforePush.js +15 -0
- package/test/sap/ui/core/qunit/internal/performance/ExpressionParser.performance.qunit.js +1 -0
- package/test/sap/ui/core/qunit/loader/asyncMode.qunit.js +2 -2
- package/test/sap/ui/core/qunit/loader/asyncMode_unavoidablySync.qunit.js +1 -1
- package/test/sap/ui/core/qunit/loader/testsuite.loader.qunit.js +0 -3
- package/test/sap/ui/core/qunit/model/FAR_CUSTOMER_LINE_ITEMS.metadata.xml +2 -0
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +51 -0
- package/test/sap/ui/core/qunit/mvc/testdata/Async.view.xml +1 -1
- package/test/sap/ui/core/qunit/mvc/testdata/AsyncTypedView.js +5 -1
- package/test/sap/ui/core/qunit/odata/ODataMetadataNoFakeService.qunit.js +68 -4
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +232 -37
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModel.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +10 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +33 -1
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +5 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +186 -65
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +17 -66
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +528 -60
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +48 -8
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.realOData.qunit.js +0 -3
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.json +2 -1
- package/test/sap/ui/core/qunit/odata/v4/data/metadata.xml +4 -0
- package/test/sap/ui/core/qunit/odata/v4/data/metadata_special_cases.xml +2 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +148 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +24 -11
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +196 -404
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +201 -2
- package/test/sap/ui/core/qunit/odata/v4/lib/_MetadataRequestor.qunit.js +7 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +21 -4
- package/test/sap/ui/core/qunit/opa/matchers/LabelFor.qunit.js +4 -2
- package/test/sap/ui/core/qunit/opa/matchers/_Busy.qunit.js +129 -2
- package/test/sap/ui/core/qunit/opa/matchers/_Editable.qunit.js +5 -1
- package/test/sap/ui/core/qunit/routing/fixture/Async1.view.xml +1 -1
- package/test/sap/ui/core/qunit/testdata/xml-require/helper/Formatter.js +7 -4
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_in_html.view.xml +36 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +2 -2
- package/test/sap/ui/core/qunit/types/DateFormatTimezones.qunit.js +1222 -1201
- package/test/sap/ui/core/qunit/util/Popup.qunit.js +7 -11
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +3 -1
- package/test/sap/ui/core/qunit/util/jQuery.sap.Version.qunit.js +3 -0
- package/test/sap/ui/core/qunit/util/reflection/BaseTreeModifier.qunit.js +1 -1
- package/test/sap/ui/core/relnotes/changes-1.116.json +1 -12
- package/test/sap/ui/core/relnotes/changes-1.117.json +127 -0
- package/test/sap/ui/core/visual/images/HyphenationPlayground/windows/1600x1200/chrome/horizon/ltr/cozy/19_thirdParty_language_sl.ref.lnk +1 -1
- package/ui5.yaml +165 -0
- package/src/sap/ui/core/util/MockServerAnnotationsHandler.js +0 -45
- /package/test/sap/ui/core/qunit/bootstrap/{GlobalConfigurationSettings.js → Configuration.beforeBootstrap.qunit.js} +0 -0
|
@@ -28,10 +28,13 @@ sap.ui.define([
|
|
|
28
28
|
* A map of query parameters as described in
|
|
29
29
|
* {@link sap.ui.model.odata.v4.lib._Helper.buildQuery}. Note that "sap-context-token"
|
|
30
30
|
* is deleted(!) after the first <code>read</code> for a metadata document.
|
|
31
|
+
* @param {boolean} [bWithCredentials]
|
|
32
|
+
* Whether the XHR should be called with <code>withCredentials</code>
|
|
31
33
|
* @returns {object}
|
|
32
34
|
* A new MetadataRequestor object
|
|
33
35
|
*/
|
|
34
|
-
create : function (mHeaders, sODataVersion, bIgnoreAnnotationsFromMetadata, mQueryParams
|
|
36
|
+
create : function (mHeaders, sODataVersion, bIgnoreAnnotationsFromMetadata, mQueryParams,
|
|
37
|
+
bWithCredentials) {
|
|
35
38
|
var mUrl2Promise = {},
|
|
36
39
|
sQuery = _Helper.buildQuery(mQueryParams);
|
|
37
40
|
|
|
@@ -83,10 +86,16 @@ sap.ui.define([
|
|
|
83
86
|
delete mUrl2Promise[sUrl];
|
|
84
87
|
} else {
|
|
85
88
|
oPromise = new Promise(function (fnResolve, fnReject) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
const oAjaxSettings = {
|
|
90
|
+
method : "GET",
|
|
91
|
+
headers : mHeaders
|
|
92
|
+
};
|
|
93
|
+
if (bWithCredentials) {
|
|
94
|
+
oAjaxSettings.xhrFields = {withCredentials : true};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
jQuery.ajax(bAnnotations ? sUrl : sUrl + sQuery, oAjaxSettings)
|
|
98
|
+
.then(function (oData, _sTextStatus, jqXHR) {
|
|
90
99
|
var sDate = jqXHR.getResponseHeader("Date"),
|
|
91
100
|
sETag = jqXHR.getResponseHeader("ETag"),
|
|
92
101
|
oJSON = {$XML : oData},
|
|
@@ -76,12 +76,14 @@ sap.ui.define([
|
|
|
76
76
|
* {@link sap.ui.model.odata.v4.lib._Helper.buildQuery}; used only to request the CSRF token
|
|
77
77
|
* @param {object} oModelInterface
|
|
78
78
|
* An interface allowing to call back to the owning model (see {@link .create})
|
|
79
|
+
* @param {boolean} [bWithCredentials]
|
|
80
|
+
* Whether the XHR should be called with <code>withCredentials</code>
|
|
79
81
|
*
|
|
80
82
|
* @alias sap.ui.model.odata.v4.lib._Requestor
|
|
81
83
|
* @constructor
|
|
82
84
|
* @private
|
|
83
85
|
*/
|
|
84
|
-
function _Requestor(sServiceUrl, mHeaders, mQueryParams, oModelInterface) {
|
|
86
|
+
function _Requestor(sServiceUrl, mHeaders, mQueryParams, oModelInterface, bWithCredentials) {
|
|
85
87
|
this.mBatchQueue = {};
|
|
86
88
|
this.bBatchSent = false;
|
|
87
89
|
this.mHeaders = mHeaders || {};
|
|
@@ -94,6 +96,7 @@ sap.ui.define([
|
|
|
94
96
|
this.iSerialNumber = 0;
|
|
95
97
|
this.sServiceUrl = sServiceUrl;
|
|
96
98
|
this.vStatistics = mQueryParams && mQueryParams["sap-statistics"];
|
|
99
|
+
this.bWithCredentials = bWithCredentials;
|
|
97
100
|
this.processSecurityTokenHandlers(); // sets this.oSecurityTokenPromise
|
|
98
101
|
}
|
|
99
102
|
|
|
@@ -1546,8 +1549,9 @@ sap.ui.define([
|
|
|
1546
1549
|
* @param {string} [sOldSecurityToken]
|
|
1547
1550
|
* Security token that caused a 403. A new token is only fetched if the old one is still
|
|
1548
1551
|
* current.
|
|
1549
|
-
* @returns {Promise}
|
|
1550
|
-
* A promise
|
|
1552
|
+
* @returns {Promise<void>}
|
|
1553
|
+
* A promise which is resolved without a defined result once the CSRF token has been
|
|
1554
|
+
* refreshed.
|
|
1551
1555
|
*
|
|
1552
1556
|
* @public
|
|
1553
1557
|
*/
|
|
@@ -1961,18 +1965,23 @@ sap.ui.define([
|
|
|
1961
1965
|
|
|
1962
1966
|
return new Promise(function (fnResolve, fnReject) {
|
|
1963
1967
|
function send(bIsFreshToken) {
|
|
1968
|
+
const oAjaxSettings = {
|
|
1969
|
+
contentType : mHeaders && mHeaders["Content-Type"],
|
|
1970
|
+
data : sPayload,
|
|
1971
|
+
headers : Object.assign({},
|
|
1972
|
+
that.mPredefinedRequestHeaders,
|
|
1973
|
+
that.mHeaders,
|
|
1974
|
+
_Helper.resolveIfMatchHeader(mHeaders,
|
|
1975
|
+
that.oModelInterface.isIgnoreETag())),
|
|
1976
|
+
method : sMethod
|
|
1977
|
+
};
|
|
1964
1978
|
var sOldCsrfToken = that.mHeaders["X-CSRF-Token"];
|
|
1965
1979
|
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
that.mHeaders,
|
|
1972
|
-
_Helper.resolveIfMatchHeader(mHeaders,
|
|
1973
|
-
that.oModelInterface.isIgnoreETag())),
|
|
1974
|
-
method : sMethod
|
|
1975
|
-
}).then(function (/*{object|string}*/vResponse, _sTextStatus, jqXHR) {
|
|
1980
|
+
if (that.bWithCredentials) {
|
|
1981
|
+
oAjaxSettings.xhrFields = {withCredentials : true};
|
|
1982
|
+
}
|
|
1983
|
+
return jQuery.ajax(sRequestUrl, oAjaxSettings)
|
|
1984
|
+
.then(function (/*{object|string}*/vResponse, _sTextStatus, jqXHR) {
|
|
1976
1985
|
var sETag = jqXHR.getResponseHeader("ETag"),
|
|
1977
1986
|
sCsrfToken = jqXHR.getResponseHeader("X-CSRF-Token");
|
|
1978
1987
|
|
|
@@ -2279,12 +2288,15 @@ sap.ui.define([
|
|
|
2279
2288
|
* token
|
|
2280
2289
|
* @param {string} [sODataVersion="4.0"]
|
|
2281
2290
|
* The version of the OData service. Supported values are "2.0" and "4.0".
|
|
2291
|
+
* @param {boolean} [bWithCredentials]
|
|
2292
|
+
* Whether the XHR should be called with <code>withCredentials</code>
|
|
2282
2293
|
* @returns {object}
|
|
2283
2294
|
* A new <code>_Requestor</code> instance
|
|
2284
2295
|
*/
|
|
2285
2296
|
_Requestor.create = function (sServiceUrl, oModelInterface, mHeaders, mQueryParams,
|
|
2286
|
-
sODataVersion) {
|
|
2287
|
-
var oRequestor = new _Requestor(sServiceUrl, mHeaders, mQueryParams, oModelInterface
|
|
2297
|
+
sODataVersion, bWithCredentials) {
|
|
2298
|
+
var oRequestor = new _Requestor(sServiceUrl, mHeaders, mQueryParams, oModelInterface,
|
|
2299
|
+
bWithCredentials);
|
|
2288
2300
|
|
|
2289
2301
|
if (sODataVersion === "2.0") {
|
|
2290
2302
|
asV2Requestor(oRequestor);
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
*
|
|
228
228
|
* @extends sap.ui.model.Model
|
|
229
229
|
* @public
|
|
230
|
-
* @version 1.
|
|
230
|
+
* @version 1.117.1
|
|
231
231
|
*/
|
|
232
232
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
233
233
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.model.SimpleType
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.117.1
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.117.1
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.117.1
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.117.1
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.117.1
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -1055,7 +1055,7 @@ sap.ui.define([
|
|
|
1055
1055
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Creates and returns a spy for <code>XMLHttpRequest.prototype.open</code> which is
|
|
1058
|
-
* used in {@link sap
|
|
1058
|
+
* used in {@link module:sap/base/util/fetch}.
|
|
1059
1059
|
*
|
|
1060
1060
|
* @param {object} oSandbox
|
|
1061
1061
|
* a Sinon sandbox as created using <code>sinon.sandbox.create()</code>
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
sap.ui.define(["sap/ui/core/Lib"], function(Library) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
|
-
var Object_hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
12
|
-
|
|
13
11
|
/**
|
|
14
12
|
* @namespace
|
|
15
13
|
* @private
|
|
@@ -47,7 +45,7 @@ sap.ui.define(["sap/ui/core/Lib"], function(Library) {
|
|
|
47
45
|
var oRenderer = ControlClass.getMetadata().getRenderer();
|
|
48
46
|
|
|
49
47
|
if (oRenderer) {
|
|
50
|
-
oInfo.version =
|
|
48
|
+
oInfo.version = Object.hasOwn(oRenderer, "apiVersion") ? oRenderer.apiVersion : 1;
|
|
51
49
|
|
|
52
50
|
if (aExcludes.includes(sClass)) {
|
|
53
51
|
if (oInfo.version == 1) {
|
|
@@ -19,6 +19,10 @@ sap.ui.define([
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
var oAppWindow = this._getApplicationWindow(),
|
|
23
|
+
oAppWindowJQuery = oAppWindow.jQuery,
|
|
24
|
+
oStaticArea = oAppWindow.sap.ui.require("sap/ui/core/Core").getStaticAreaRef();
|
|
25
|
+
|
|
22
26
|
var oParent = oControl.getParent();
|
|
23
27
|
if (bDirect) {
|
|
24
28
|
return fnMatch(oParent);
|
|
@@ -28,7 +32,8 @@ sap.ui.define([
|
|
|
28
32
|
if (fnMatch(oParent)) {
|
|
29
33
|
return true;
|
|
30
34
|
}
|
|
31
|
-
oParent = oParent.
|
|
35
|
+
oParent = (oParent.isA("sap.ui.core.UIComponent") && !oAppWindowJQuery.contains(oStaticArea, oControl.getDomRef()))
|
|
36
|
+
? oParent.oContainer : oParent.getParent();
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
return false;
|
|
@@ -18,9 +18,6 @@ sap.ui.define([
|
|
|
18
18
|
], function(UriParameters, fetch, utils) {
|
|
19
19
|
"use strict";
|
|
20
20
|
|
|
21
|
-
// shortcut for Object.prototype.hasOwnProperty.call(obj, prop)
|
|
22
|
-
var Object_hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
23
|
-
|
|
24
21
|
function makeArray(arg) {
|
|
25
22
|
return Array.isArray(arg) ? arg : [arg];
|
|
26
23
|
}
|
|
@@ -36,7 +33,7 @@ sap.ui.define([
|
|
|
36
33
|
function copyFiltered(target, source, filter) {
|
|
37
34
|
if ( source ) {
|
|
38
35
|
for ( var key in source ) {
|
|
39
|
-
if (
|
|
36
|
+
if ( Object.hasOwn(filter, key) ) {
|
|
40
37
|
target[key] = source[key];
|
|
41
38
|
}
|
|
42
39
|
}
|
|
@@ -126,7 +123,7 @@ sap.ui.define([
|
|
|
126
123
|
var version = componentConfig.version || null;
|
|
127
124
|
|
|
128
125
|
while ( typeof version !== "object" ) {
|
|
129
|
-
if ( !
|
|
126
|
+
if ( !Object.hasOwn(versionsMap, version) ) {
|
|
130
127
|
throw new TypeError("unsupported " + componentName + " version " + componentConfig.version);
|
|
131
128
|
}
|
|
132
129
|
version = versionsMap[version];
|
|
@@ -241,11 +241,17 @@
|
|
|
241
241
|
case "Function":
|
|
242
242
|
case "Symbol":
|
|
243
243
|
return type.toLowerCase();
|
|
244
|
+
// ### BEGIN MODIFIED BY SAP
|
|
245
|
+
default:
|
|
246
|
+
return _typeof(obj);
|
|
247
|
+
// ### END MODIFIED BY SAP
|
|
244
248
|
}
|
|
245
249
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
250
|
+
// ### BEGIN MODIFIED BY SAP
|
|
251
|
+
//if ((typeof obj === "undefined" ? "undefined" : _typeof(obj)) === "object") {
|
|
252
|
+
// return "object";
|
|
253
|
+
//}
|
|
254
|
+
// ### BEGIN MODIFIED BY SAP
|
|
249
255
|
}
|
|
250
256
|
|
|
251
257
|
// Safe object type checking
|
|
@@ -108,6 +108,8 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', 'sap/base/util/extend', 'sap/ui/
|
|
|
108
108
|
mobileWebAppCapable: "default"
|
|
109
109
|
}, options);
|
|
110
110
|
|
|
111
|
+
var bAppleMobileDevice = Device.os.ios || (Device.os.macintosh && Device.browser.mobile);
|
|
112
|
+
|
|
111
113
|
// en-/disable automatic link generation for phone numbers
|
|
112
114
|
if (options.preventPhoneNumberDetection) {
|
|
113
115
|
// iOS specific meta tag
|
|
@@ -129,15 +131,17 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', 'sap/base/util/extend', 'sap/ui/
|
|
|
129
131
|
// UI) and auto zoom (browser zooms in the UI automatically under some circumtances, for example when an
|
|
130
132
|
// input gets the focus and the font-size of the input is less than 16px on iOS) functionalities on the
|
|
131
133
|
// mobile platform, but there's some difference between the mobile platforms:
|
|
132
|
-
// *
|
|
133
|
-
//
|
|
134
|
-
//
|
|
134
|
+
// * Apple mobile device: This does not disable manual zoom in Safari and it only disables the auto
|
|
135
|
+
// zoom function. In Chrome browser on iOS, it does disable the manual zoom but since Chrome on iOS
|
|
136
|
+
// isn't in the support matrix, we can ignore this. The "Request Desktop Website" is turned on by
|
|
137
|
+
// default on iPad, therefore we need to check the (macintosh + touch) combination to detect the iPad
|
|
138
|
+
// with "Request Desktop Website" turned on to disable the auto zoom.
|
|
135
139
|
// * other mobile platform: it does disable the manual zoom option but there's no auto zoom function.
|
|
136
|
-
//
|
|
140
|
+
// So we need to remove the maximum-scale=1.0:
|
|
137
141
|
//
|
|
138
142
|
// Therefore we need to add the additional settings (maximum-scale and user-scalable) only for iOS
|
|
139
143
|
// platform
|
|
140
|
-
if (
|
|
144
|
+
if (bAppleMobileDevice) {
|
|
141
145
|
sMeta += ", maximum-scale=1.0, user-scalable=no";
|
|
142
146
|
}
|
|
143
147
|
|
|
@@ -158,7 +162,7 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', 'sap/base/util/extend', 'sap/ui/
|
|
|
158
162
|
});
|
|
159
163
|
}
|
|
160
164
|
|
|
161
|
-
if (options.preventScroll &&
|
|
165
|
+
if (options.preventScroll && bAppleMobileDevice) {
|
|
162
166
|
_ready().then(function() {
|
|
163
167
|
document.documentElement.style.position = "fixed";
|
|
164
168
|
document.documentElement.style.overflow = "hidden";
|
package/src/sap-ui-boot.js
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* IMPORTANT: This is a private module, its API must not be used and is
|
|
9
|
-
*
|
|
7
|
+
/**
|
|
8
|
+
* IMPORTANT: This is a private module, its API must not be used in production and is
|
|
9
|
+
* subject to change.
|
|
10
|
+
*
|
|
11
|
+
* It may be used to experiment with an alternative bootstrap of a UI5 application.
|
|
12
|
+
*
|
|
13
|
+
* Currently, it does not fully recreate the environment of the regular UI5 bootstrap
|
|
14
|
+
* (<code>sap-ui-core.js</code>), but only a subset as required by UI5 Controls
|
|
15
|
+
* (<code>sap.m</code>) or UI5 Web Components.
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
* @experimental
|
|
10
19
|
*/
|
|
11
20
|
|
|
12
21
|
/*global document, sap */
|
|
@@ -65,11 +74,19 @@
|
|
|
65
74
|
], function() {
|
|
66
75
|
// cascade 2: the loader configuration script
|
|
67
76
|
sap.ui.loader.config({
|
|
68
|
-
async:true
|
|
77
|
+
async: true
|
|
69
78
|
});
|
|
70
79
|
loadScripts([
|
|
71
|
-
"
|
|
72
|
-
])
|
|
80
|
+
"sap/ui/core/boot/_bootConfig.js"
|
|
81
|
+
], function() {
|
|
82
|
+
// cascade 3: load autoconfig
|
|
83
|
+
loadScripts([
|
|
84
|
+
"ui5loader-autoconfig.js"
|
|
85
|
+
], function() {
|
|
86
|
+
// cascade 4: the boot script
|
|
87
|
+
loadScripts(["sap/ui/core/boot/_runBoot.js"]);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
73
90
|
});
|
|
74
91
|
|
|
75
92
|
}());
|
package/src/ui5-boot.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
(function(aScriptIncludes) {
|
|
7
|
+
"use strict";
|
|
8
|
+
//extract base URL from script tag
|
|
9
|
+
var aScripts, i, sSrc, mMatch, sBaseUrl, oScriptTag,
|
|
10
|
+
bCoreRequired = false;
|
|
11
|
+
oScriptTag = document.getElementById("sap-ui-bootstrap");
|
|
12
|
+
if (oScriptTag) {
|
|
13
|
+
sSrc = oScriptTag.getAttribute("src");
|
|
14
|
+
mMatch = sSrc.match(/^(?:[^?#]*\/)?resources\//i);
|
|
15
|
+
if (mMatch) {
|
|
16
|
+
sBaseUrl = mMatch[0];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (sBaseUrl == null) {
|
|
20
|
+
aScripts = document.getElementsByTagName("script");
|
|
21
|
+
for (i = 0; i < aScripts.length; i++) {
|
|
22
|
+
sSrc = aScripts[i].getAttribute("src");
|
|
23
|
+
if (sSrc) {
|
|
24
|
+
mMatch = sSrc.match(/^([^?#]*\/)sap-ui-core\.js(?:[?#]|$)/i);
|
|
25
|
+
if (mMatch) {
|
|
26
|
+
sBaseUrl = mMatch[1];
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (sBaseUrl == null) {
|
|
33
|
+
throw new Error("sap-ui-core.js: could not identify script tag!");
|
|
34
|
+
}
|
|
35
|
+
for (i = 0; i < aScriptIncludes.length; i++) {
|
|
36
|
+
sSrc = aScriptIncludes[i];
|
|
37
|
+
if ( sSrc.indexOf("raw:") === 0 ) {
|
|
38
|
+
sSrc = sBaseUrl + sSrc.slice(4);
|
|
39
|
+
document.write("<script src=\"" + sSrc + "\"></script>");
|
|
40
|
+
} else if ( sSrc.indexOf("require:") === 0 ) {
|
|
41
|
+
sSrc = sSrc.slice(8);
|
|
42
|
+
bCoreRequired = bCoreRequired || sSrc === "sap/ui/core/Core";
|
|
43
|
+
document.write("<script>sap.ui.require([\"" + sSrc + "\"]);</script>"); // legacy-relevant
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}([
|
|
47
|
+
"raw:ui5loader.js",
|
|
48
|
+
"raw:ui5loader-autoconfig.js",
|
|
49
|
+
"raw:sap/ui/core/boot/_runBoot.js"
|
|
50
|
+
]));
|