@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/.eslintrc.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
// "multiline" doesn't match our style
|
|
56
56
|
"object-curly-newline": ["error", {"consistent": true}],
|
|
57
57
|
"object-curly-spacing": "error",
|
|
58
|
-
"one-var": "error",
|
|
58
|
+
"one-var": ["error", {"const" : "never", "let": "never", "var": "always"}],
|
|
59
59
|
"one-var-declaration-per-line": ["error", "initializations"],
|
|
60
60
|
"operator-assignment": "error",
|
|
61
61
|
"operator-linebreak": ["error", "before"],
|
|
@@ -128,27 +128,6 @@
|
|
|
128
128
|
"rules": {
|
|
129
129
|
"max-len": "off"
|
|
130
130
|
}
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"files": [
|
|
134
|
-
"test/sap/ui/core/loader/fixture/make.js",
|
|
135
|
-
"test/sap/ui/core/qunit/test/starter/find/*.js",
|
|
136
|
-
"test/sap/ui/core/qunit/testdata/libraries/make.js"
|
|
137
|
-
],
|
|
138
|
-
"parserOptions": {
|
|
139
|
-
"ecmaVersion": 6
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"files": [
|
|
144
|
-
"src/ui5loader.js"
|
|
145
|
-
],
|
|
146
|
-
"env": {
|
|
147
|
-
"es2022": true
|
|
148
|
-
},
|
|
149
|
-
"parserOptions": {
|
|
150
|
-
"ecmaVersion": 2022
|
|
151
|
-
}
|
|
152
131
|
}
|
|
153
132
|
]
|
|
154
133
|
}
|
package/package.json
CHANGED
package/src/jquery.sap.global.js
CHANGED
|
@@ -67,7 +67,7 @@ sap.ui.define(['jquery.sap.global', 'sap/base/util/Properties'],
|
|
|
67
67
|
* {@link #setProperty} to store or change a value for a key and {@link #getKeys}
|
|
68
68
|
* can be used to retrieve an array of all keys that are currently stored in the collection.
|
|
69
69
|
*
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.117.1
|
|
71
71
|
* @since 0.9.0
|
|
72
72
|
* @name jQuery.sap.util.Properties
|
|
73
73
|
* @public
|
package/src/jquery.sap.script.js
CHANGED
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
* Use {@link jQuery.sap.getUriParameters} to create an instance of jQuery.sap.util.UriParameters.
|
|
268
268
|
*
|
|
269
269
|
* @author SAP SE
|
|
270
|
-
* @version 1.
|
|
270
|
+
* @version 1.117.1
|
|
271
271
|
* @since 0.9.0
|
|
272
272
|
* @name jQuery.sap.util.UriParameters
|
|
273
273
|
* @public
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @param {string} [sIdPrefix] Prefix used for the Ids. If not set a default prefix is used.
|
|
38
38
|
* @returns {jQuery.sap.storage.Storage}
|
|
39
39
|
*
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.117.1
|
|
41
41
|
* @since 0.11.0
|
|
42
42
|
* @namespace
|
|
43
43
|
* @public
|
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
* should be deleted the method {@link #removeAll} should be used.
|
|
98
98
|
*
|
|
99
99
|
* @author SAP SE
|
|
100
|
-
* @version 1.
|
|
100
|
+
* @version 1.117.1
|
|
101
101
|
* @since 0.11.0
|
|
102
102
|
* @public
|
|
103
103
|
* @name jQuery.sap.storage.Storage
|
|
@@ -201,7 +201,7 @@ sap.ui.define([
|
|
|
201
201
|
* Enumeration of the storage types supported by {@link jQuery.sap.storage.Storage}
|
|
202
202
|
* @enum {string}
|
|
203
203
|
* @public
|
|
204
|
-
* @version 1.
|
|
204
|
+
* @version 1.117.1
|
|
205
205
|
* @since 0.11.0
|
|
206
206
|
*/
|
|
207
207
|
jQuery.sap.storage.Type = Storage.Type;
|
package/src/sap/base/Event.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
|
-
// Provides class sap
|
|
6
|
+
// Provides class module:sap/base/Event
|
|
7
7
|
sap.ui.define(["sap/base/assert"],
|
|
8
8
|
function(assert) {
|
|
9
9
|
"use strict";
|
|
@@ -15,11 +15,11 @@ sap.ui.define(["sap/base/assert"],
|
|
|
15
15
|
* @class Creates an event with the given <code>sType</code>, linked to the provided <code>oTarget</code> and enriched with the <code>oParameters</code>.
|
|
16
16
|
*
|
|
17
17
|
* @param {string} sType The type of the event
|
|
18
|
-
* @param {sap
|
|
18
|
+
* @param {module:sap/base/Eventing} oTarget Target of the event
|
|
19
19
|
* @param {object} oParameters Parameters for this event. The parameters will be accessible as properties of the Event instance.
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.117.1
|
|
23
23
|
* @alias module:sap/base/Event
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.core
|
|
@@ -93,7 +93,7 @@ sap.ui.define(["sap/base/assert"],
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Returns the event parameters as map
|
|
96
|
-
* @param {sap
|
|
96
|
+
* @param {module:sap/base/Event} oEvent The event object to retrieve the parameters
|
|
97
97
|
* @returns {object} Map of event parameters
|
|
98
98
|
* @private
|
|
99
99
|
* @ui5-restricted sap/base/i18n sap.ui.core
|
package/src/sap/base/Eventing.js
CHANGED
|
@@ -18,8 +18,8 @@ sap.ui.define([
|
|
|
18
18
|
* Eventing mixin
|
|
19
19
|
*
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
22
|
-
* @param {sap
|
|
21
|
+
* @version 1.117.1
|
|
22
|
+
* @param {module:sap/base/Event} fnEventClass The Event class
|
|
23
23
|
* @mixin module:sap/base/Eventing
|
|
24
24
|
* @private
|
|
25
25
|
* @ui5-restricted sap.ui.core sap/base/i18n sap/ui/base/EventProvider
|
|
@@ -241,7 +241,7 @@ sap.ui.define([
|
|
|
241
241
|
* As the callers are limited and known and for performance reasons the internal event registry
|
|
242
242
|
* is returned. It contains more information than necessary, but needs no expensive conversion.
|
|
243
243
|
*
|
|
244
|
-
* @param {sap
|
|
244
|
+
* @param {module:sap/base/Eventing} oEventing The event provider to get the registered events for
|
|
245
245
|
* @return {object} the list of events currently having listeners attached
|
|
246
246
|
* @name module:sap/base/Eventing.getEventList
|
|
247
247
|
* @function
|
|
@@ -258,7 +258,7 @@ sap.ui.define([
|
|
|
258
258
|
* Returns true if function and listener object both match the corresponding parameters of
|
|
259
259
|
* at least one listener registered for the named event.
|
|
260
260
|
*
|
|
261
|
-
* @param {sap
|
|
261
|
+
* @param {module:sap/base/Eventing}
|
|
262
262
|
* oEventing The event provider to get the registered events for
|
|
263
263
|
* @param {string}
|
|
264
264
|
* sType The type of the event to check listeners for
|
|
@@ -293,7 +293,7 @@ sap.ui.define([
|
|
|
293
293
|
* structured, this can be overwritten to make the object hierarchy visible to the Eventing and
|
|
294
294
|
* enables the use of event bubbling within this object hierarchy.
|
|
295
295
|
*
|
|
296
|
-
* @return {sap
|
|
296
|
+
* @return {module:sap/base/Eventing|null} The parent event provider
|
|
297
297
|
* @name module:sap/base/Eventing#getEventingParent
|
|
298
298
|
* @function
|
|
299
299
|
* @protected
|
|
@@ -307,7 +307,6 @@ sap.ui.define([
|
|
|
307
307
|
*
|
|
308
308
|
* The object must not be used anymore after destroy was called.
|
|
309
309
|
*
|
|
310
|
-
* @see sap.base.Object#destroy
|
|
311
310
|
* @name module:sap/base/Eventing#destroy
|
|
312
311
|
* @function
|
|
313
312
|
* @public
|
|
@@ -3,11 +3,20 @@
|
|
|
3
3
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
|
-
sap.ui.define([
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/base/util/uid"
|
|
8
|
+
], function(
|
|
9
|
+
uid
|
|
10
|
+
) {
|
|
7
11
|
"use strict";
|
|
8
12
|
|
|
9
13
|
var MemoryConfigurationProvider = function() {
|
|
10
14
|
this.oConfig = Object.create(null);
|
|
15
|
+
this.id = uid();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
MemoryConfigurationProvider.prototype.getId = function() {
|
|
19
|
+
return this.id;
|
|
11
20
|
};
|
|
12
21
|
|
|
13
22
|
MemoryConfigurationProvider.prototype.get = function(sName) {
|
package/src/sap/base/config.js
CHANGED
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* The base Configuration.
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.117.1
|
|
20
20
|
* @private
|
|
21
21
|
* @alias module:sap/base/config
|
|
22
22
|
* @namespace
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Returns a writable base configuration instance
|
|
29
|
-
* @returns {sap
|
|
29
|
+
* @returns {module:sap/base/config} The writable base configuration
|
|
30
30
|
*/
|
|
31
31
|
_Configuration.getWritableInstance = function() {
|
|
32
32
|
var oProvider = new MemoryConfigurationProvider();
|
|
@@ -36,6 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
var rValidKey = /^[a-z][A-Za-z0-9]*$/;
|
|
37
37
|
if (rValidKey.test(sName)) {
|
|
38
38
|
oProvider.set(sName, vValue);
|
|
39
|
+
_Configuration._.invalidate();
|
|
39
40
|
} else {
|
|
40
41
|
throw new TypeError(
|
|
41
42
|
"Invalid configuration key '" + sName + "'!"
|
|
@@ -76,8 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
* or, throws an error for non BCP-47 compliant languages.
|
|
77
77
|
*
|
|
78
78
|
* @param {string} sLanguageTag A BCP-47 compliant language tag
|
|
79
|
-
* @
|
|
80
|
-
* @throws {TypeError} Throws a TypeError for unknown languages
|
|
79
|
+
* @returns {module:sap/base/i18n/LanguageTag} The resulting LanguageTag
|
|
81
80
|
* @private
|
|
82
81
|
*/
|
|
83
82
|
function createLanguageTag(sLanguageTag) {
|
|
@@ -121,7 +120,7 @@ sap.ui.define([
|
|
|
121
120
|
|
|
122
121
|
/**
|
|
123
122
|
* Attaches the <code>fnFunction</code> event handler to the {@link #event:change change} event
|
|
124
|
-
* of <code>sap
|
|
123
|
+
* of <code>module:sap/base/i18n/Formatting</code>.
|
|
125
124
|
*
|
|
126
125
|
* @param {function} fnFunction
|
|
127
126
|
* The function to be called when the event occurs
|
|
@@ -134,7 +133,7 @@ sap.ui.define([
|
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
135
|
* Detaches event handler <code>fnFunction</code> from the {@link #event:change change} event of
|
|
137
|
-
* this <code>sap
|
|
136
|
+
* this <code>module:sap/base/i18n/Formatting</code>.
|
|
138
137
|
*
|
|
139
138
|
* @param {function} fnFunction Function to be called when the event occurs
|
|
140
139
|
* @private
|
|
@@ -155,7 +154,7 @@ sap.ui.define([
|
|
|
155
154
|
* is added to the LanguageTag, indicating to the framework that these user preferences
|
|
156
155
|
* should be applied.
|
|
157
156
|
*
|
|
158
|
-
* @
|
|
157
|
+
* @returns {module:sap/base/i18n/LanguageTag} the format LanguageTag
|
|
159
158
|
* @public
|
|
160
159
|
*/
|
|
161
160
|
getLanguageTag : function() {
|
|
@@ -177,7 +176,7 @@ sap.ui.define([
|
|
|
177
176
|
return oWritableConfig.get({
|
|
178
177
|
name: "sapUiFormatLocale",
|
|
179
178
|
type: function(sFormatLocale) {return new LanguageTag(sFormatLocale);},
|
|
180
|
-
defaultValue: fallback(this),
|
|
179
|
+
defaultValue: fallback.bind(Formatting, this),
|
|
181
180
|
external: true
|
|
182
181
|
});
|
|
183
182
|
},
|
|
@@ -207,7 +206,7 @@ sap.ui.define([
|
|
|
207
206
|
* @param {string|null} sLanguageTag the new BCP47 compliant language tag;
|
|
208
207
|
* case doesn't matter and underscores can be used instead of dashes to separate
|
|
209
208
|
* components (compatibility with Java Locale IDs)
|
|
210
|
-
* @
|
|
209
|
+
* @returns {this} <code>this</code> to allow method chaining
|
|
211
210
|
* @public
|
|
212
211
|
* @throws {Error} When <code>sLanguageTag</code> is given, but is not a valid BCP47 language
|
|
213
212
|
* tag or Java locale identifier
|
|
@@ -231,6 +230,7 @@ sap.ui.define([
|
|
|
231
230
|
},
|
|
232
231
|
|
|
233
232
|
_set : function(sKey, oValue) {
|
|
233
|
+
BaseConfig._.invalidate();
|
|
234
234
|
var oOldValue = mSettings[sKey];
|
|
235
235
|
if ( oValue != null ) {
|
|
236
236
|
mSettings[sKey] = oValue;
|
|
@@ -251,7 +251,7 @@ sap.ui.define([
|
|
|
251
251
|
/**
|
|
252
252
|
* Retrieves the custom units.
|
|
253
253
|
* These custom units are set by {@link #setCustomUnits} and {@link #addCustomUnits}
|
|
254
|
-
* @
|
|
254
|
+
* @returns {object} custom units object
|
|
255
255
|
* @see #setCustomUnits
|
|
256
256
|
* @see #addCustomUnits
|
|
257
257
|
*/
|
|
@@ -378,8 +378,8 @@ sap.ui.define([
|
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* Returns the currently set date pattern or undefined if no pattern has been defined.
|
|
381
|
-
* @param {
|
|
382
|
-
* @
|
|
381
|
+
* @param {"short"|"medium"|"long"|"full"} sStyle The date style (short, medium, long or full)
|
|
382
|
+
* @returns {string} The resulting date pattern
|
|
383
383
|
* @public
|
|
384
384
|
*/
|
|
385
385
|
getDatePattern : function(sStyle) {
|
|
@@ -400,7 +400,7 @@ sap.ui.define([
|
|
|
400
400
|
* specific parts of the UI. See the documentation of {@link module:sap/base/i18n/Localization.getLanguage Localization.getLanguage()}
|
|
401
401
|
* for details and restrictions.
|
|
402
402
|
*
|
|
403
|
-
* @param {
|
|
403
|
+
* @param {"short"|"medium"|"long"|"full"} sStyle must be one of short, medium, long or full.
|
|
404
404
|
* @param {string} sPattern the format pattern to be used in LDML syntax.
|
|
405
405
|
* @returns {this} Returns <code>this</code> to allow method chaining
|
|
406
406
|
* @public
|
|
@@ -413,8 +413,8 @@ sap.ui.define([
|
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* Returns the currently set time pattern or undefined if no pattern has been defined.
|
|
416
|
-
* @param {
|
|
417
|
-
* @
|
|
416
|
+
* @param {"short"|"medium"|"long"|"full"} sStyle The time style (short, medium, long or full)
|
|
417
|
+
* @returns {string} The resulting time pattern
|
|
418
418
|
* @public
|
|
419
419
|
*/
|
|
420
420
|
getTimePattern : function(sStyle) {
|
|
@@ -436,7 +436,7 @@ sap.ui.define([
|
|
|
436
436
|
* {@link module:sap/base/i18n/Localization.getLanguage Localization.getLanguage()}
|
|
437
437
|
* for details and restrictions.
|
|
438
438
|
*
|
|
439
|
-
* @param {
|
|
439
|
+
* @param {"short"|"medium"|"long"|"full"} sStyle must be one of short, medium, long or full.
|
|
440
440
|
* @param {string} sPattern the format pattern to be used in LDML syntax.
|
|
441
441
|
* @returns {this} Returns <code>this</code> to allow method chaining
|
|
442
442
|
* @public
|
|
@@ -451,7 +451,7 @@ sap.ui.define([
|
|
|
451
451
|
* Returns the currently set number symbol of the given type or undefined if no symbol has been defined.
|
|
452
452
|
*
|
|
453
453
|
* @param {"group"|"decimal"|"plusSign"|"minusSign"} sType the type of symbol
|
|
454
|
-
* @
|
|
454
|
+
* @returns {string} A non-numerical symbol used as part of a number for the given type,
|
|
455
455
|
* e.g. for locale de_DE:
|
|
456
456
|
* <ul>
|
|
457
457
|
* <li>"group": "." (grouping separator)</li>
|
|
@@ -586,7 +586,7 @@ sap.ui.define([
|
|
|
586
586
|
/**
|
|
587
587
|
* Returns the currently set legacy ABAP date format (its id) or undefined if none has been set.
|
|
588
588
|
*
|
|
589
|
-
* @
|
|
589
|
+
* @returns {"1"|"2"|"3"|"4"|"5"|"6"|"7"|"8"|"9"|"A"|"B"|"C"|undefined} ID of the ABAP date format,
|
|
590
590
|
* if not set or set to <code>""</code>, <code>undefined</code> will be returned
|
|
591
591
|
* @public
|
|
592
592
|
*/
|
|
@@ -594,7 +594,6 @@ sap.ui.define([
|
|
|
594
594
|
var sLegacyDateFormat = oWritableConfig.get({
|
|
595
595
|
name: "sapUiLegacyDateFormat",
|
|
596
596
|
type: BaseConfig.Type.String,
|
|
597
|
-
defaultValue: undefined,
|
|
598
597
|
external: true
|
|
599
598
|
});
|
|
600
599
|
return sLegacyDateFormat ? sLegacyDateFormat.toUpperCase() : undefined;
|
|
@@ -638,7 +637,7 @@ sap.ui.define([
|
|
|
638
637
|
/**
|
|
639
638
|
* Returns the currently set legacy ABAP time format (its id) or undefined if none has been set.
|
|
640
639
|
*
|
|
641
|
-
* @
|
|
640
|
+
* @returns {"0"|"1"|"2"|"3"|"4"|undefined} ID of the ABAP date format,
|
|
642
641
|
* if not set or set to <code>""</code>, <code>undefined</code> will be returned
|
|
643
642
|
* @public
|
|
644
643
|
*/
|
|
@@ -646,7 +645,6 @@ sap.ui.define([
|
|
|
646
645
|
var sLegacyTimeFormat = oWritableConfig.get({
|
|
647
646
|
name: "sapUiLegacyTimeFormat",
|
|
648
647
|
type: BaseConfig.Type.String,
|
|
649
|
-
defaultValue: undefined,
|
|
650
648
|
external: true
|
|
651
649
|
});
|
|
652
650
|
return sLegacyTimeFormat ? sLegacyTimeFormat.toUpperCase() : undefined;
|
|
@@ -692,7 +690,7 @@ sap.ui.define([
|
|
|
692
690
|
/**
|
|
693
691
|
* Returns the currently set legacy ABAP number format (its id) or undefined if none has been set.
|
|
694
692
|
*
|
|
695
|
-
* @
|
|
693
|
+
* @returns {" "|"X"|"Y"|undefined} ID of the ABAP number format,
|
|
696
694
|
* if not set or set to <code>""</code>, <code>undefined</code> will be returned
|
|
697
695
|
* @public
|
|
698
696
|
*/
|
|
@@ -700,7 +698,6 @@ sap.ui.define([
|
|
|
700
698
|
var sLegacyNumberFormat = oWritableConfig.get({
|
|
701
699
|
name: "sapUiLegacyNumberFormat",
|
|
702
700
|
type: BaseConfig.Type.String,
|
|
703
|
-
defaultValue: undefined,
|
|
704
701
|
external: true
|
|
705
702
|
});
|
|
706
703
|
return sLegacyNumberFormat ? sLegacyNumberFormat.toUpperCase() : undefined;
|
|
@@ -765,7 +762,7 @@ sap.ui.define([
|
|
|
765
762
|
/**
|
|
766
763
|
* Returns the currently set customizing data for Islamic calendar support
|
|
767
764
|
*
|
|
768
|
-
* @
|
|
765
|
+
* @returns {object[]} Returns an array contains the customizing data. Each element in the array has properties: dateFormat, islamicMonthStart, gregDate. For details, please see {@link #setLegacyDateCalendarCustomizing}
|
|
769
766
|
* @public
|
|
770
767
|
*/
|
|
771
768
|
getLegacyDateCalendarCustomizing : function() {
|
|
@@ -818,7 +815,7 @@ sap.ui.define([
|
|
|
818
815
|
* Returns a live object with the current settings
|
|
819
816
|
* TODO this method is part of the facade to be accessible from LocaleData, but it shouldn't be
|
|
820
817
|
*
|
|
821
|
-
* @
|
|
818
|
+
* @returns {mSettings} The custom LocaleData settings object
|
|
822
819
|
* @private
|
|
823
820
|
*/
|
|
824
821
|
getCustomLocaleData : function() {
|
|
@@ -827,9 +824,9 @@ sap.ui.define([
|
|
|
827
824
|
|
|
828
825
|
/**
|
|
829
826
|
* Returns the calendar week numbering algorithm used to determine the first day of the week
|
|
830
|
-
* and the first calendar week of the year, see {@link sap
|
|
827
|
+
* and the first calendar week of the year, see {@link module:sap/base/i18n/data/CalendarWeekNumbering}.
|
|
831
828
|
*
|
|
832
|
-
* @returns {sap
|
|
829
|
+
* @returns {module:sap/base/i18n/date/CalendarWeekNumbering} The calendar week numbering algorithm
|
|
833
830
|
*
|
|
834
831
|
* @public
|
|
835
832
|
* @since 1.113.0
|
|
@@ -852,15 +849,15 @@ sap.ui.define([
|
|
|
852
849
|
|
|
853
850
|
/**
|
|
854
851
|
* Sets the calendar week numbering algorithm which is used to determine the first day of the week
|
|
855
|
-
* and the first calendar week of the year, see {@link sap
|
|
852
|
+
* and the first calendar week of the year, see {@link module:sap/base/i18n/date/CalendarWeekNumbering}.
|
|
856
853
|
*
|
|
857
|
-
* @param {sap
|
|
854
|
+
* @param {module:sap/base/i18n/date/CalendarWeekNumbering} sCalendarWeekNumbering
|
|
858
855
|
* The calendar week numbering algorithm
|
|
859
856
|
* @returns {this}
|
|
860
857
|
* <code>this</code> to allow method chaining
|
|
861
858
|
* @throws {Error}
|
|
862
859
|
* If <code>sCalendarWeekNumbering</code> is not a valid calendar week numbering algorithm,
|
|
863
|
-
* defined in {@link sap
|
|
860
|
+
* defined in {@link module:sap/base/i18n/date/CalendarWeekNumbering}
|
|
864
861
|
*
|
|
865
862
|
* @public
|
|
866
863
|
* @since 1.113.0
|
|
@@ -891,7 +888,7 @@ sap.ui.define([
|
|
|
891
888
|
* When it's explicitly set by calling <code>setCalendar</code>, the set calendar type is returned.
|
|
892
889
|
* Otherwise, the calendar type is determined by checking the format settings and current locale.
|
|
893
890
|
*
|
|
894
|
-
* @
|
|
891
|
+
* @returns {module:sap/base/i18n/date/CalendarType} the current calendar type, e.g. <code>Gregorian</code>
|
|
895
892
|
* @since 1.28.6
|
|
896
893
|
*/
|
|
897
894
|
getCalendarType: function() {
|
|
@@ -899,10 +896,11 @@ sap.ui.define([
|
|
|
899
896
|
sCalendarType = oWritableConfig.get({
|
|
900
897
|
name: "sapUiCalendarType",
|
|
901
898
|
type: BaseConfig.Type.String,
|
|
902
|
-
defaultValue: null,
|
|
903
899
|
external: true
|
|
904
900
|
});
|
|
905
901
|
|
|
902
|
+
sCalendarType = sCalendarType || null;
|
|
903
|
+
|
|
906
904
|
if (sCalendarType) {
|
|
907
905
|
for (sName in CalendarType) {
|
|
908
906
|
if (sName.toLowerCase() === sCalendarType.toLowerCase()) {
|
|
@@ -940,9 +938,9 @@ sap.ui.define([
|
|
|
940
938
|
* Sets the new calendar type to be used from now on in locale dependent functionality (for example,
|
|
941
939
|
* formatting, translation texts, etc.).
|
|
942
940
|
*
|
|
943
|
-
* @param {sap
|
|
941
|
+
* @param {module:sap/base/i18n/date/CalendarType|null} sCalendarType the new calendar type. Set it with null to clear the calendar type
|
|
944
942
|
* and the calendar type is calculated based on the format settings and current locale.
|
|
945
|
-
* @
|
|
943
|
+
* @returns {this} <code>this</code> to allow method chaining
|
|
946
944
|
* @public
|
|
947
945
|
* @since 1.28.6
|
|
948
946
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
//Provides the LanguageTag object sap
|
|
7
|
+
//Provides the LanguageTag object module:sap/base/i18n/LanguageTag
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
], function(
|
|
10
10
|
) {
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @param {string} sLanguageTag the language tag identifier, in format en-US or en_US.
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.117.1
|
|
39
39
|
* @private
|
|
40
40
|
* @ui5-restricted sap.ui.core sap/base/i18n
|
|
41
41
|
* @alias module:sap/base/i18n/LanguageTag
|