@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
package/src/sap/ui/core/Item.js
CHANGED
|
@@ -136,7 +136,7 @@ sap.ui.define(['../base/ManagedObject', "sap/base/assert"],
|
|
|
136
136
|
* @see sap.ui.core.LabelEnablement#enrich
|
|
137
137
|
*
|
|
138
138
|
* @author SAP SE
|
|
139
|
-
* @version 1.
|
|
139
|
+
* @version 1.117.1
|
|
140
140
|
* @protected
|
|
141
141
|
* @alias sap.ui.core.LabelEnablement
|
|
142
142
|
* @namespace
|
package/src/sap/ui/core/Lib.js
CHANGED
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* The file will be loaded, when a lazy dependency to the library is encountered.
|
|
73
73
|
* @private
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
var oLibraryWithBundleInfo = new Set([
|
|
76
76
|
"sap.suite.ui.generic.template",
|
|
77
77
|
"sap.ui.comp",
|
|
78
78
|
"sap.ui.layout",
|
|
@@ -111,7 +111,7 @@ sap.ui.define([
|
|
|
111
111
|
* @param {string} sURL URL from which the bundle has been loaded
|
|
112
112
|
*
|
|
113
113
|
* @private
|
|
114
|
-
|
|
114
|
+
*/
|
|
115
115
|
function registerPreloadedModules(oData, sURL) {
|
|
116
116
|
var modules = oData.modules,
|
|
117
117
|
fnUI5ToRJS = function(sName) {
|
|
@@ -215,7 +215,7 @@ sap.ui.define([
|
|
|
215
215
|
if (oObject && typeof oObject === 'object' && !Object.isFrozen(oObject)) {
|
|
216
216
|
Object.freeze(oObject);
|
|
217
217
|
for (var sKey in oObject) {
|
|
218
|
-
if (
|
|
218
|
+
if (Object.hasOwn(oObject, sKey)) {
|
|
219
219
|
deepFreeze(oObject[sKey]);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -259,7 +259,7 @@ sap.ui.define([
|
|
|
259
259
|
return aPreloadLibCSS;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
/**
|
|
263
263
|
* Create an instance that represents a library with the given name.
|
|
264
264
|
*
|
|
265
265
|
* <h3>Note</h3>
|
|
@@ -284,10 +284,10 @@ sap.ui.define([
|
|
|
284
284
|
* @param {string} mSettings.name Name of the library; when given it must match the name by which the library has been loaded
|
|
285
285
|
* @class
|
|
286
286
|
* @alias sap.ui.core.Lib
|
|
287
|
-
* @extends sap.ui.base.
|
|
287
|
+
* @extends sap.ui.base.Object
|
|
288
288
|
* @since 1.110
|
|
289
|
-
* @private
|
|
290
289
|
* @hideconstructor
|
|
290
|
+
* @private
|
|
291
291
|
* @ui5-restricted sap.ui.core
|
|
292
292
|
*/
|
|
293
293
|
var Library = BaseObject.extend("sap.ui.core.Lib", /** @lends sap.ui.core.Lib.prototype */ {
|
|
@@ -380,8 +380,9 @@ sap.ui.define([
|
|
|
380
380
|
* controls); names are in dot notation (e.g. "sap.ui.core.Item")
|
|
381
381
|
* @param {boolean} [mSettings.noLibraryCSS=false] Indicates whether the library doesn't provide/use theming.
|
|
382
382
|
* When set to true, no library.css will be loaded for this library
|
|
383
|
-
* @param {
|
|
384
|
-
* the UI5 core framework.
|
|
383
|
+
* @param {Object<string,any>} [mSettings.extensions] A map of potential extensions of the library metadata; structure not defined by
|
|
384
|
+
* the UI5 core framework. Keys should be qualified names derived from the namespace of the code that introduces the feature, e.g.
|
|
385
|
+
* <code>""sap.ui.support"</code> is used for the support rule metadata of a library.
|
|
385
386
|
* @returns {sap.ui.core.Lib} The library instance
|
|
386
387
|
* @private
|
|
387
388
|
*/
|
|
@@ -1073,7 +1074,7 @@ sap.ui.define([
|
|
|
1073
1074
|
* library, {@link #.load} can be used directly without calling this method in advance.
|
|
1074
1075
|
*
|
|
1075
1076
|
* @param {string} sName The name of the library
|
|
1076
|
-
* @returns {Promise<
|
|
1077
|
+
* @returns {Promise<sap.ui.core.Lib>|undefined} Either an instance of the library or <code>undefined</code>
|
|
1077
1078
|
* @public
|
|
1078
1079
|
*/
|
|
1079
1080
|
Library.get = function(sName) {
|
|
@@ -1090,7 +1091,7 @@ sap.ui.define([
|
|
|
1090
1091
|
* @param {string} sName The name of the library
|
|
1091
1092
|
* @param {boolean} bCreate Whether to create an instance for the library when there's no instance saved in the
|
|
1092
1093
|
* cache under the given <code>sName</code>
|
|
1093
|
-
* @returns {Promise<
|
|
1094
|
+
* @returns {Promise<sap.ui.core.Lib>|undefined} Either an instance of the library or <code>undefined</code>
|
|
1094
1095
|
* @private
|
|
1095
1096
|
*/
|
|
1096
1097
|
Library._get = function(sName, bCreate) {
|
|
@@ -1433,7 +1434,7 @@ sap.ui.define([
|
|
|
1433
1434
|
* @param {object} mOptions The options object that contains the following properties
|
|
1434
1435
|
* @param {string} mOptions.name The name of the library
|
|
1435
1436
|
* @param {string} [mOptions.url] URL to load the library from
|
|
1436
|
-
* @returns {Promise<
|
|
1437
|
+
* @returns {Promise<sap.ui.core.Lib>} A promise that resolves with the library instance after the loading of
|
|
1437
1438
|
* the library is finished
|
|
1438
1439
|
* @public
|
|
1439
1440
|
*/
|
|
@@ -1467,14 +1468,14 @@ sap.ui.define([
|
|
|
1467
1468
|
*
|
|
1468
1469
|
* @param {object[]|object} vLibConfigs An array of objects for libraries or a single object for one library
|
|
1469
1470
|
* which contain the following properties
|
|
1470
|
-
* @param {string}
|
|
1471
|
-
* @param {string} [
|
|
1472
|
-
* @param {boolean} [
|
|
1471
|
+
* @param {string} vLibConfigs.name The name of the library
|
|
1472
|
+
* @param {string} [vLibConfigs.url] URL to load the library from
|
|
1473
|
+
* @param {boolean} [vLibConfigs.json] Whether to load the library's preload bundle in JSON format
|
|
1473
1474
|
* @param {object} [mOptions] The options object that contains the following properties
|
|
1474
1475
|
* @param {boolean} [mOptions.sync] Whether to load the preload bundle(s) in sync mode
|
|
1475
1476
|
* @param {boolean} [mOptions.preloadOnly] Whether to skip executing the entry module(s) after preloading the
|
|
1476
1477
|
* library/libraries
|
|
1477
|
-
* @return {Promise<Array<
|
|
1478
|
+
* @return {Promise<Array<sap.ui.core.Lib>>|Array<sap.ui.core.Lib>} A promise that resolves with an
|
|
1478
1479
|
* array of library instances in async mode or an array of library instances in sync mode
|
|
1479
1480
|
* @private
|
|
1480
1481
|
*/
|
|
@@ -1678,7 +1679,7 @@ sap.ui.define([
|
|
|
1678
1679
|
* Guesses if the given bundleUrl is pointing to a library's ResourceBundle and adapts the given bundle definition accordingly
|
|
1679
1680
|
* based on the inferred library's manifest.
|
|
1680
1681
|
*
|
|
1681
|
-
* @param {module:sap/base/i18n/ResourceBundle.Configuration} mParams Map containing the arguments of the
|
|
1682
|
+
* @param {module:sap/base/i18n/ResourceBundle.Configuration} mParams Map containing the arguments of the <code>ResourceBundle.create</code> call
|
|
1682
1683
|
* @returns {module:sap/base/i18n/ResourceBundle.Configuration} mParams The enriched config object
|
|
1683
1684
|
* @private
|
|
1684
1685
|
*/
|
|
@@ -9,6 +9,8 @@ sap.ui.define(['sap/base/assert', 'sap/ui/base/Object', "sap/base/i18n/Localizat
|
|
|
9
9
|
function(assert, BaseObject, Localization, LanguageTag) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
+
var mCache = Object.create(null);
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Creates an instance of the Locale.
|
|
14
16
|
*
|
|
@@ -18,7 +20,7 @@ sap.ui.define(['sap/base/assert', 'sap/ui/base/Object', "sap/base/i18n/Localizat
|
|
|
18
20
|
*
|
|
19
21
|
* @extends sap.ui.base.Object
|
|
20
22
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
23
|
+
* @version 1.117.1
|
|
22
24
|
* @public
|
|
23
25
|
* @alias sap.ui.core.Locale
|
|
24
26
|
*/
|
|
@@ -199,7 +201,8 @@ sap.ui.define(['sap/base/assert', 'sap/ui/base/Object', "sap/base/i18n/Localizat
|
|
|
199
201
|
|
|
200
202
|
Locale._getCoreLocale = function(oLocale) {
|
|
201
203
|
if (oLocale instanceof LanguageTag) {
|
|
202
|
-
oLocale = new Locale(oLocale);
|
|
204
|
+
oLocale = mCache[oLocale.toString()] || new Locale(oLocale);
|
|
205
|
+
mCache[oLocale.toString()] = oLocale;
|
|
203
206
|
}
|
|
204
207
|
return oLocale;
|
|
205
208
|
};
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
*
|
|
48
48
|
* @extends sap.ui.base.Object
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.117.1
|
|
51
51
|
* @public
|
|
52
52
|
* @alias sap.ui.core.LocaleData
|
|
53
53
|
*/
|
|
@@ -529,11 +529,16 @@ sap.ui.define([
|
|
|
529
529
|
* @private
|
|
530
530
|
*/
|
|
531
531
|
getTimezoneTranslations: function() {
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
var sLocale = this.oLocale.toString();
|
|
533
|
+
var mTranslations = LocaleData._mTimezoneTranslations[sLocale];
|
|
534
|
+
|
|
535
|
+
if (!mTranslations) {
|
|
536
|
+
LocaleData._mTimezoneTranslations[sLocale] = mTranslations =
|
|
537
|
+
_resolveTimezoneTranslationStructure(this._get("timezoneNames"));
|
|
538
|
+
}
|
|
534
539
|
|
|
535
540
|
// retrieve a copy such that the original object won't be modified.
|
|
536
|
-
return Object.assign({},
|
|
541
|
+
return Object.assign({}, mTranslations);
|
|
537
542
|
},
|
|
538
543
|
|
|
539
544
|
/**
|
|
@@ -2597,6 +2602,9 @@ sap.ui.define([
|
|
|
2597
2602
|
};
|
|
2598
2603
|
|
|
2599
2604
|
LocaleData._cldrLocales = _cldrLocales;
|
|
2605
|
+
// maps a locale to a map of time zone translations, which maps an IANA time zone ID to the translated time zone
|
|
2606
|
+
// name
|
|
2607
|
+
LocaleData._mTimezoneTranslations = {};
|
|
2600
2608
|
|
|
2601
2609
|
return LocaleData;
|
|
2602
2610
|
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
sPathSegment = aPaths[i];
|
|
73
73
|
|
|
74
74
|
// Prevent access to native properties
|
|
75
|
-
oObject =
|
|
75
|
+
oObject = Object.hasOwn(oObject, sPathSegment) ? oObject[sPathSegment] : undefined;
|
|
76
76
|
|
|
77
77
|
// Only continue with lookup if the value is an object.
|
|
78
78
|
// Accessing properties of other types is not allowed!
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
if (oObject && typeof oObject === 'object' && !Object.isFrozen(oObject)) {
|
|
108
108
|
Object.freeze(oObject);
|
|
109
109
|
for (var sKey in oObject) {
|
|
110
|
-
if (
|
|
110
|
+
if (Object.hasOwn(oObject, sKey)) {
|
|
111
111
|
deepFreeze(oObject[sKey]);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -145,7 +145,7 @@ sap.ui.define([
|
|
|
145
145
|
* @class The Manifest class.
|
|
146
146
|
* @extends sap.ui.base.Object
|
|
147
147
|
* @author SAP SE
|
|
148
|
-
* @version 1.
|
|
148
|
+
* @version 1.117.1
|
|
149
149
|
* @alias sap.ui.core.Manifest
|
|
150
150
|
* @since 1.33.0
|
|
151
151
|
*/
|
|
@@ -796,7 +796,7 @@ sap.ui.define([
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
if (!oManifestUrl.hasQuery("sap-client")) {
|
|
799
|
-
var sValue = BaseConfig.get({name: "sapClient", type:BaseConfig.Type.String});
|
|
799
|
+
var sValue = BaseConfig.get({name: "sapClient", type:BaseConfig.Type.String, external: true});
|
|
800
800
|
if (sValue) {
|
|
801
801
|
oManifestUrl.addQuery("sap-client", sValue);
|
|
802
802
|
}
|
|
@@ -861,7 +861,7 @@ sap.ui.define([
|
|
|
861
861
|
*/
|
|
862
862
|
Manifest.processObject = function (oObject, fnCallback) {
|
|
863
863
|
for (var sKey in oObject) {
|
|
864
|
-
if (!
|
|
864
|
+
if (!Object.hasOwn(oObject, sKey)) {
|
|
865
865
|
continue;
|
|
866
866
|
}
|
|
867
867
|
var vValue = oObject[sKey];
|
package/src/sap/ui/core/Popup.js
CHANGED
|
@@ -15,6 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
'sap/ui/base/ObjectPool',
|
|
16
16
|
'./Control',
|
|
17
17
|
'./Element',
|
|
18
|
+
'./EventBus',
|
|
18
19
|
'./FocusHandler',
|
|
19
20
|
'./IntervalTrigger',
|
|
20
21
|
'./RenderManager',
|
|
@@ -23,16 +24,17 @@ sap.ui.define([
|
|
|
23
24
|
'./StaticArea',
|
|
24
25
|
"sap/base/assert",
|
|
25
26
|
"sap/base/Log",
|
|
27
|
+
"sap/base/i18n/Localization",
|
|
26
28
|
"sap/base/util/Version",
|
|
27
29
|
"sap/base/util/uid",
|
|
28
30
|
"sap/base/util/extend",
|
|
29
31
|
"sap/base/util/each",
|
|
30
32
|
"sap/base/util/deepExtend",
|
|
31
|
-
"sap/ui/thirdparty/jquery",
|
|
32
33
|
"sap/ui/events/F6Navigation",
|
|
33
34
|
"sap/ui/events/isMouseEventDelayed",
|
|
34
35
|
"sap/ui/base/EventProvider",
|
|
35
|
-
"sap/ui/
|
|
36
|
+
"sap/ui/thirdparty/jquery",
|
|
37
|
+
"sap/ui/thirdparty/jqueryui/jquery-ui-position",
|
|
36
38
|
"sap/ui/dom/jquery/control", // jQuery Plugin "control"
|
|
37
39
|
"sap/ui/dom/jquery/Focusable", // jQuery Plugin "firstFocusableDomRef"
|
|
38
40
|
"sap/ui/dom/jquery/rect" // jQuery Plugin "rect"
|
|
@@ -44,6 +46,7 @@ sap.ui.define([
|
|
|
44
46
|
ObjectPool,
|
|
45
47
|
Control,
|
|
46
48
|
Element,
|
|
49
|
+
EventBus,
|
|
47
50
|
FocusHandler,
|
|
48
51
|
IntervalTrigger,
|
|
49
52
|
RenderManager,
|
|
@@ -52,16 +55,17 @@ sap.ui.define([
|
|
|
52
55
|
StaticArea,
|
|
53
56
|
assert,
|
|
54
57
|
Log,
|
|
58
|
+
Localization,
|
|
55
59
|
Version,
|
|
56
60
|
uid,
|
|
57
61
|
extend,
|
|
58
62
|
each,
|
|
59
63
|
deepExtend,
|
|
60
|
-
jQuery,
|
|
61
64
|
F6Navigation,
|
|
62
65
|
isMouseEventDelayed,
|
|
63
66
|
EventProvider,
|
|
64
|
-
|
|
67
|
+
jQuery
|
|
68
|
+
//jquery-ui-position
|
|
65
69
|
//control
|
|
66
70
|
//Focusable
|
|
67
71
|
//rect
|
|
@@ -84,6 +88,8 @@ sap.ui.define([
|
|
|
84
88
|
var oResizeObserver;
|
|
85
89
|
var sResizeHandlerIdAttribute = "sapUiPopupResize";
|
|
86
90
|
|
|
91
|
+
var oEventBus = new EventBus();
|
|
92
|
+
|
|
87
93
|
if (window.ResizeObserver) {
|
|
88
94
|
oResizeObserver = new window.ResizeObserver(function(aEntries){
|
|
89
95
|
adaptSizeAndPosition(jQuery("#sap-ui-blocklayer-popup"), aEntries[0].target);
|
|
@@ -218,20 +224,6 @@ sap.ui.define([
|
|
|
218
224
|
* TinyMCE uses this method to be able to focus the popups of the TinyMCE if the <code>RichTextEditor</code> runs
|
|
219
225
|
* within a <code>Popup</code>/<code>Dialog</code> etc.
|
|
220
226
|
*
|
|
221
|
-
* To provide an additional DOM element that can get the focus the following should be done:
|
|
222
|
-
* <pre>
|
|
223
|
-
* // create an object with the corresponding DOM-ID
|
|
224
|
-
* var oObject = {
|
|
225
|
-
* id : "this_is_the_most_valuable_id_of_the_DOM_element"
|
|
226
|
-
* };
|
|
227
|
-
*
|
|
228
|
-
* // add the event prefix for adding an element to the ID of the corresponding Popup
|
|
229
|
-
* var sEventId = "sap.ui.core.Popup.addFocusableContent-" + oPopup.getId();
|
|
230
|
-
*
|
|
231
|
-
* // fire the event with the created event-ID and the object with the DOM-ID
|
|
232
|
-
* sap.ui.getCore().getEventBus().publish("sap.ui", sEventId, oObject);
|
|
233
|
-
* </pre>
|
|
234
|
-
*
|
|
235
227
|
* <strong>Since 1.75</strong>, DOM elements which have the attribute
|
|
236
228
|
* <code>data-sap-ui-integration-popup-content</code> are considered to be part of all opened popups. Those DOM
|
|
237
229
|
* elements can get the focus without causing the autoclose popup to be closed or the modal popup to take the focus
|
|
@@ -550,7 +542,7 @@ sap.ui.define([
|
|
|
550
542
|
var Layer = BaseObject.extend("sap.ui.core.Popup.Layer", {
|
|
551
543
|
constructor: function() {
|
|
552
544
|
var sDomString = this.getDomString();
|
|
553
|
-
this._$Ref = jQuery(sDomString).appendTo(
|
|
545
|
+
this._$Ref = jQuery(sDomString).appendTo(StaticArea.getDomRef());
|
|
554
546
|
}
|
|
555
547
|
});
|
|
556
548
|
|
|
@@ -625,7 +617,7 @@ sap.ui.define([
|
|
|
625
617
|
this._$Ref[0].style.display = "none";
|
|
626
618
|
this._$Ref[0].style.visibility = "hidden";
|
|
627
619
|
|
|
628
|
-
this._$Ref.appendTo(
|
|
620
|
+
this._$Ref.appendTo(StaticArea.getDomRef());
|
|
629
621
|
}
|
|
630
622
|
};
|
|
631
623
|
|
|
@@ -918,7 +910,7 @@ sap.ui.define([
|
|
|
918
910
|
|
|
919
911
|
this._iZIndex = this._iZIndex === this.getLastZIndex() ? this._iZIndex : this.getNextZIndex();
|
|
920
912
|
|
|
921
|
-
var oStaticArea =
|
|
913
|
+
var oStaticArea = StaticArea.getDomRef();
|
|
922
914
|
$Ref.css({
|
|
923
915
|
"position" : "absolute",
|
|
924
916
|
"visibility" : "hidden"
|
|
@@ -966,7 +958,7 @@ sap.ui.define([
|
|
|
966
958
|
|
|
967
959
|
if (this._shouldGetFocusAfterOpen()) {
|
|
968
960
|
if (this._sInitialFocusId) {
|
|
969
|
-
oControl =
|
|
961
|
+
oControl = Element.registry.get(this._sInitialFocusId);
|
|
970
962
|
|
|
971
963
|
if (oControl) {
|
|
972
964
|
oDomRefToFocus = oControl.getFocusDomRef();
|
|
@@ -1048,7 +1040,7 @@ sap.ui.define([
|
|
|
1048
1040
|
*/
|
|
1049
1041
|
Popup.prototype._duringOpen = function(bOpenAnimated) {
|
|
1050
1042
|
var $Ref = this._$(/* bForceReRender */false, /* bGetOnly */true),
|
|
1051
|
-
oStaticArea =
|
|
1043
|
+
oStaticArea = StaticArea.getDomRef(),
|
|
1052
1044
|
oFirstFocusableInStaticArea = document.getElementById(oStaticArea.id + "-firstfe");
|
|
1053
1045
|
|
|
1054
1046
|
Popup._clearSelection();
|
|
@@ -1159,7 +1151,7 @@ sap.ui.define([
|
|
|
1159
1151
|
var oData = {
|
|
1160
1152
|
domRef: oDomRef
|
|
1161
1153
|
};
|
|
1162
|
-
|
|
1154
|
+
oEventBus.publish("sap.ui", sEventId, oData);
|
|
1163
1155
|
|
|
1164
1156
|
bContains = oData.contains;
|
|
1165
1157
|
}
|
|
@@ -1266,7 +1258,7 @@ sap.ui.define([
|
|
|
1266
1258
|
// Parent popup can check whether the current focused element is inside the parent popup. If it's still inside the
|
|
1267
1259
|
// parent popup, it keeps open, otherwise parent popup is also closed.
|
|
1268
1260
|
var sEventId = "sap.ui.core.Popup.onFocusEvent-" + sParentPopupId;
|
|
1269
|
-
|
|
1261
|
+
oEventBus.publish("sap.ui", sEventId, oEvent);
|
|
1270
1262
|
}
|
|
1271
1263
|
}
|
|
1272
1264
|
}.bind(this), iDuration);
|
|
@@ -1336,7 +1328,7 @@ sap.ui.define([
|
|
|
1336
1328
|
// Assumption: application did not move the content in the meantime!
|
|
1337
1329
|
if (this._bContentAddedToStatic ) {
|
|
1338
1330
|
//Fix for RTE in PopUp
|
|
1339
|
-
|
|
1331
|
+
oEventBus.publish("sap.ui","__beforePopupClose", { domNode : this._$().get(0) });
|
|
1340
1332
|
var oStatic = StaticArea.getUIArea();
|
|
1341
1333
|
oStatic.removeContent(oStatic.indexOfContent(this.oContent), true);
|
|
1342
1334
|
} else if (this._bUIAreaPatched) { // if the getUIArea function is patched, delete it
|
|
@@ -1518,22 +1510,17 @@ sap.ui.define([
|
|
|
1518
1510
|
*/
|
|
1519
1511
|
Popup.getCurrentFocusInfo = function() {
|
|
1520
1512
|
var _oPreviousFocus = null;
|
|
1521
|
-
var
|
|
1522
|
-
if (
|
|
1523
|
-
// an SAPUI5 control was focused before
|
|
1524
|
-
var oFocusedControl = sap.ui.getCore().byId(focusedControlId);
|
|
1513
|
+
var oActiveElement = Element.closestTo(document.activeElement);
|
|
1514
|
+
if (oActiveElement) {
|
|
1525
1515
|
_oPreviousFocus = {
|
|
1526
|
-
'sFocusId' :
|
|
1527
|
-
|
|
1528
|
-
'oFocusInfo' : oFocusedControl ? oFocusedControl.getFocusInfo() : {}
|
|
1516
|
+
'sFocusId' : oActiveElement.getId(),
|
|
1517
|
+
'oFocusInfo' : oActiveElement.getFocusInfo()
|
|
1529
1518
|
};
|
|
1530
1519
|
} else {
|
|
1531
1520
|
// not an SAPUI5 control... but if something has focus, save as much information about it as available
|
|
1532
|
-
var oElement = document.activeElement;
|
|
1533
|
-
|
|
1534
1521
|
_oPreviousFocus = {
|
|
1535
|
-
'sFocusId' :
|
|
1536
|
-
'oFocusedElement' :
|
|
1522
|
+
'sFocusId' : document.activeElement.id,
|
|
1523
|
+
'oFocusedElement' : document.activeElement,
|
|
1537
1524
|
// add empty oFocusInfo to avoid the need for all recipients to check
|
|
1538
1525
|
'oFocusInfo': {}
|
|
1539
1526
|
};
|
|
@@ -1568,7 +1555,7 @@ sap.ui.define([
|
|
|
1568
1555
|
};
|
|
1569
1556
|
|
|
1570
1557
|
if (oPreviousFocus) {
|
|
1571
|
-
var oFocusedControl =
|
|
1558
|
+
var oFocusedControl = Element.registry.get(oPreviousFocus.sFocusId);
|
|
1572
1559
|
if (oFocusedControl) {
|
|
1573
1560
|
|
|
1574
1561
|
// if an SAPUI5 control had been focused, just re-focus it
|
|
@@ -1761,7 +1748,7 @@ sap.ui.define([
|
|
|
1761
1748
|
* @private
|
|
1762
1749
|
*/
|
|
1763
1750
|
Popup.prototype._applyPosition = function(oPosition) {
|
|
1764
|
-
var bRtl =
|
|
1751
|
+
var bRtl = Localization.getRTL();
|
|
1765
1752
|
var $Ref = this._$();
|
|
1766
1753
|
|
|
1767
1754
|
if ($Ref.length) {
|
|
@@ -2521,7 +2508,7 @@ sap.ui.define([
|
|
|
2521
2508
|
var that = this;
|
|
2522
2509
|
|
|
2523
2510
|
each(that._mEvents, function(sEventId, fnListener) {
|
|
2524
|
-
|
|
2511
|
+
oEventBus.subscribe("sap.ui", sEventId, fnListener, that);
|
|
2525
2512
|
});
|
|
2526
2513
|
|
|
2527
2514
|
this._bEventBusEventsRegistered = true;
|
|
@@ -2536,7 +2523,7 @@ sap.ui.define([
|
|
|
2536
2523
|
var that = this;
|
|
2537
2524
|
|
|
2538
2525
|
each(that._mEvents, function(sEventId, fnListener) {
|
|
2539
|
-
|
|
2526
|
+
oEventBus.unsubscribe("sap.ui", sEventId, fnListener, that);
|
|
2540
2527
|
});
|
|
2541
2528
|
|
|
2542
2529
|
delete this._bEventBusEventsRegistered;
|
|
@@ -2632,7 +2619,7 @@ sap.ui.define([
|
|
|
2632
2619
|
if ($ContentRef.length > 0) {
|
|
2633
2620
|
RenderManager.preserveContent($ContentRef[0], /* bPreserveRoot */ true, /* bPreserveNodesWithId */ false);
|
|
2634
2621
|
}
|
|
2635
|
-
|
|
2622
|
+
new RenderManager().render(this.oContent, StaticArea.getDomRef());
|
|
2636
2623
|
$ContentRef = this.oContent.$();
|
|
2637
2624
|
}
|
|
2638
2625
|
} else if (this.oContent instanceof Element) {
|
|
@@ -2771,7 +2758,7 @@ sap.ui.define([
|
|
|
2771
2758
|
var aChildPopups = this.getChildPopups();
|
|
2772
2759
|
bExtended = aChildPopups.some(function(sChildID) {
|
|
2773
2760
|
var sEventId = sEventPrefix + sChildID;
|
|
2774
|
-
|
|
2761
|
+
oEventBus.publish("sap.ui", sEventId, oData);
|
|
2775
2762
|
|
|
2776
2763
|
return oData.extended;
|
|
2777
2764
|
});
|
|
@@ -2795,7 +2782,7 @@ sap.ui.define([
|
|
|
2795
2782
|
|
|
2796
2783
|
if ($BlockRef.length === 0) {
|
|
2797
2784
|
$BlockRef = jQuery('<div id="sap-ui-blocklayer-popup" tabindex="0" class="' + sClassName + '"></div>');
|
|
2798
|
-
$BlockRef.appendTo(
|
|
2785
|
+
$BlockRef.appendTo(StaticArea.getDomRef());
|
|
2799
2786
|
} else {
|
|
2800
2787
|
$BlockRef.removeClass().addClass(sClassName);
|
|
2801
2788
|
}
|
|
@@ -3180,7 +3167,7 @@ sap.ui.define([
|
|
|
3180
3167
|
*/
|
|
3181
3168
|
Popup.prototype.addChildToPopup = function(sParentPopupId, sChildPopupId) {
|
|
3182
3169
|
var sEventId = "sap.ui.core.Popup.addFocusableContent-" + sParentPopupId;
|
|
3183
|
-
|
|
3170
|
+
oEventBus.publish("sap.ui", sEventId, {
|
|
3184
3171
|
id : sChildPopupId
|
|
3185
3172
|
});
|
|
3186
3173
|
};
|
|
@@ -3197,7 +3184,7 @@ sap.ui.define([
|
|
|
3197
3184
|
*/
|
|
3198
3185
|
Popup.prototype.removeChildFromPopup = function(sParentPopupId, sChildPopupId) {
|
|
3199
3186
|
var sEventId = "sap.ui.core.Popup.removeFocusableContent-" + sParentPopupId;
|
|
3200
|
-
|
|
3187
|
+
oEventBus.publish("sap.ui", sEventId, {
|
|
3201
3188
|
id : sChildPopupId
|
|
3202
3189
|
});
|
|
3203
3190
|
};
|
|
@@ -3210,7 +3197,7 @@ sap.ui.define([
|
|
|
3210
3197
|
*/
|
|
3211
3198
|
Popup.prototype.closePopup = function(sPopupId) {
|
|
3212
3199
|
var sEventId = "sap.ui.core.Popup.closePopup-" + sPopupId;
|
|
3213
|
-
|
|
3200
|
+
oEventBus.publish("sap.ui", sEventId);
|
|
3214
3201
|
};
|
|
3215
3202
|
|
|
3216
3203
|
/**
|
|
@@ -3224,7 +3211,7 @@ sap.ui.define([
|
|
|
3224
3211
|
*/
|
|
3225
3212
|
Popup.prototype.increaseZIndex = function(sPopupId, bIsParent) {
|
|
3226
3213
|
var sEventId = "sap.ui.core.Popup.increaseZIndex-" + sPopupId;
|
|
3227
|
-
|
|
3214
|
+
oEventBus.publish("sap.ui", sEventId, {
|
|
3228
3215
|
isFromParentPopup : bIsParent ? bIsParent : false
|
|
3229
3216
|
});
|
|
3230
3217
|
};
|
|
@@ -3242,7 +3229,7 @@ sap.ui.define([
|
|
|
3242
3229
|
* @param {object}
|
|
3243
3230
|
* mParameters contain all necessary parameters
|
|
3244
3231
|
* @param {object}
|
|
3245
|
-
*
|
|
3232
|
+
* mParameters.that is the control that calls this function.
|
|
3246
3233
|
* Needed for debug logging info
|
|
3247
3234
|
* @param {object}
|
|
3248
3235
|
* mParameters.event is the event that is being forwarded
|
|
@@ -3306,7 +3293,7 @@ sap.ui.define([
|
|
|
3306
3293
|
// if the element is a control the focus should be called
|
|
3307
3294
|
// via the control
|
|
3308
3295
|
// especially if the control has an individual focus DOM-ref
|
|
3309
|
-
var oControl =
|
|
3296
|
+
var oControl = Element.registry.get(oFocusDomRef.id);
|
|
3310
3297
|
if (oControl instanceof Control) {
|
|
3311
3298
|
Log.debug("Focus will be handled by " + oControl.getMetadata().getName(), "", sName);
|
|
3312
3299
|
} else {
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* The ScrollBar control can be used for virtual scrolling of a certain area.
|
|
45
45
|
* This means: to simulate a very large scrollable area when technically the area is small and the control takes care of displaying the respective part only. E.g. a Table control can take care of only rendering the currently visible rows and use this ScrollBar control to make the user think he actually scrolls through a long list.
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.117.1
|
|
48
48
|
*
|
|
49
49
|
* @public
|
|
50
50
|
* @deprecated as of version 1.56
|