@openui5/sap.ui.core 1.115.1 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dtsgenrc +18 -0
- package/.eslintrc.json +11 -0
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- 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.sjax.js +2 -2
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +106 -0
- package/src/sap/base/Eventing.js +320 -0
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/i18n/Formatting.js +991 -0
- package/src/sap/base/i18n/LanguageTag.js +189 -0
- package/src/sap/base/i18n/Localization.js +711 -0
- package/src/sap/base/i18n/ResourceBundle.js +5 -20
- package/src/sap/base/i18n/date/CalendarType.js +54 -0
- package/src/sap/base/i18n/date/CalendarWeekNumbering.js +105 -0
- package/src/sap/base/i18n/date/TimezoneUtils.js +287 -0
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +4 -12
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +8 -12
- package/src/sap/ui/base/ManagedObjectMetadata.js +30 -7
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/SyncPromise.js +10 -5
- package/src/sap/ui/core/.library +2 -2
- package/src/sap/ui/core/AccessKeysEnablement.js +10 -5
- package/src/sap/ui/core/AnimationMode.js +49 -0
- package/src/sap/ui/core/BusyIndicator.js +33 -42
- package/src/sap/ui/core/CalendarType.js +11 -37
- package/src/sap/ui/core/Component.js +4 -5
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +2 -2
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +409 -1270
- package/src/sap/ui/core/Control.js +4 -12
- package/src/sap/ui/core/ControlBehavior.js +157 -0
- package/src/sap/ui/core/Core.js +124 -132
- 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 +14 -3
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/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/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +5 -7
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +12 -12
- 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 +109 -22
- 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 +151 -430
- package/src/sap/ui/core/LocaleData.js +39 -11
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.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/StaticArea.js +31 -17
- package/src/sap/ui/core/Theming.js +451 -0
- 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 +1 -0
- package/src/sap/ui/core/_IconRegistry.js +7 -1
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +12 -83
- package/src/sap/ui/core/date/UI5Date.js +2 -2
- package/src/sap/ui/core/delegate/ItemNavigation.js +8 -10
- package/src/sap/ui/core/delegate/ScrollEnablement.js +5 -5
- 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 +20 -15
- package/src/sap/ui/core/format/TimezoneUtil.js +15 -273
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_cs.properties +1 -1
- package/src/sap/ui/core/messagebundle_cy.properties +1 -1
- package/src/sap/ui/core/messagebundle_da.properties +1 -1
- package/src/sap/ui/core/messagebundle_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +1 -1
- package/src/sap/ui/core/messagebundle_en.properties +1 -1
- package/src/sap/ui/core/messagebundle_en_GB.properties +1 -1
- package/src/sap/ui/core/messagebundle_es.properties +1 -1
- package/src/sap/ui/core/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/core/messagebundle_et.properties +1 -1
- package/src/sap/ui/core/messagebundle_id.properties +1 -1
- package/src/sap/ui/core/messagebundle_it.properties +49 -49
- package/src/sap/ui/core/messagebundle_iw.properties +1 -1
- package/src/sap/ui/core/messagebundle_kk.properties +1 -1
- package/src/sap/ui/core/messagebundle_ko.properties +1 -1
- package/src/sap/ui/core/messagebundle_lt.properties +1 -1
- package/src/sap/ui/core/messagebundle_lv.properties +1 -1
- package/src/sap/ui/core/messagebundle_ms.properties +8 -8
- package/src/sap/ui/core/messagebundle_nl.properties +1 -1
- package/src/sap/ui/core/messagebundle_no.properties +1 -1
- package/src/sap/ui/core/messagebundle_pl.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt.properties +1 -1
- package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/core/messagebundle_ro.properties +1 -1
- package/src/sap/ui/core/messagebundle_sh.properties +1 -1
- package/src/sap/ui/core/messagebundle_sv.properties +1 -1
- package/src/sap/ui/core/messagebundle_th.properties +1 -1
- package/src/sap/ui/core/messagebundle_uk.properties +21 -21
- package/src/sap/ui/core/messagebundle_vi.properties +1 -1
- 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 +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +14 -16
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/HashChanger.js +1 -0
- package/src/sap/ui/core/routing/Route.js +1 -0
- package/src/sap/ui/core/routing/Router.js +3 -1
- package/src/sap/ui/core/rules/Config.support.js +2 -2
- package/src/sap/ui/core/rules/Model.support.js +3 -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 +1 -1
- package/src/sap/ui/core/support/controls/TimelineOverview.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +2 -2
- 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/LocalBusyIndicator.less +4 -4
- package/src/sap/ui/core/themes/base/base.less +41 -20
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +6 -5
- package/src/sap/ui/core/theming/ThemeManager.js +310 -447
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +5 -10
- 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 +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +3 -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/events/PseudoEvents.js +17 -9
- package/src/sap/ui/model/Binding.js +19 -15
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeBinding.js +57 -19
- 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/ListBinding.js +42 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +5 -4
- package/src/sap/ui/model/PropertyBinding.js +10 -0
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +4 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/base/ManagedObjectModel.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- 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 +8 -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 +3 -3
- 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 +3 -2
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +14 -3
- package/src/sap/ui/model/odata/v2/ODataModel.js +45 -31
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +7 -3
- package/src/sap/ui/model/odata/v4/ODataBinding.js +68 -39
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +12 -8
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +30 -8
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +11 -9
- package/src/sap/ui/model/odata/v4/ODataModel.js +10 -14
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +64 -31
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +21 -16
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +2 -0
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +37 -14
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +11 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +7 -4
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +4 -4
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/Opa5.js +1 -1
- package/src/sap/ui/test/autowaiter/_autoWaiter.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/simpleGherkinParser.js +10 -5
- package/src/sap/ui/test/matchers/LabelFor.js +1 -0
- package/src/sap/ui/thirdparty/caja-html-sanitizer.js +111 -96
- package/src/sap/ui/util/ActivityDetection.js +7 -1
- package/src/sap/ui/util/Mobile.js +11 -8
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +5 -2
- package/src/ui5loader.js +169 -185
- package/test/sap/ui/core/FormatHelper.js +3 -2
- package/test/sap/ui/core/demokit/docuindex.json +6 -0
- package/test/sap/ui/core/demokit/sample/OpaBusyIndicator/OpaBusyIndicator.js +1 -1
- package/test/sap/ui/core/demokit/sample/OpaMatchers/OpaMatchers.js +2 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/MIT.ODataTypes.html +9 -14
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/Opa.qunit.js +7 -0
- package/test/sap/ui/core/demokit/sample/common/pages/Any.js +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/tests/filter.js +2 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Component.js +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.controller.js +43 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ListReport.view.xml +47 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.controller.js +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Main.view.xml +7 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/NotFound.view.xml +8 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.controller.js +123 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/ObjectPage.view.xml +92 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.html +27 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/Opa.qunit.js +69 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/README.html +55 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/SandboxModel.js +56 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/POST-SalesOrderList.json +66 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000')-SO_2_SOITEM.json +57 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000000').json +20 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000001').json +9 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList('0500000007')-SO_2_BP.json +12 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/SalesOrderList.json +62 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.json +85 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_CurrencyCode.xml +185 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.json +93 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/VH_ProductID.xml +262 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/data/metadata.xml +1779 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/manifest.json +134 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/DeepCreate/pages/Main.js +119 -0
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/pages/Main.js +0 -41
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V2/manifest.json +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrderTP100_V4/manifest.json +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.controller.js +5 -17
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Main.view.xml +3 -3
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/webapp/test/integration/arrangements/Startup.js +1 -1
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/webapp/test/integration/arrangements/Startup.js +1 -1
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +25 -7
- package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +86 -2
- package/test/sap/ui/core/qunit/DataState.qunit.js +2 -7
- package/test/sap/ui/core/qunit/HTML.qunit.js +31 -31
- package/test/sap/ui/core/qunit/Lib.qunit.js +55 -2
- package/test/sap/ui/core/qunit/LocalBusyIndicator.qunit.js +22 -15
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +5 -3
- package/test/sap/ui/core/qunit/Object.qunit.js +4 -1
- package/test/sap/ui/core/qunit/ThemeManager.qunit.js +2 -2
- package/test/sap/ui/core/qunit/ThemeParameters.qunit.js +9 -3
- package/test/sap/ui/core/qunit/Theming.beforeBootstrap.qunit.js +13 -0
- package/test/sap/ui/core/qunit/Theming.qunit.js +229 -0
- package/test/sap/ui/core/qunit/analytics/AnalyticalTreeBindingAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.html +24 -0
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +275 -0
- package/test/sap/ui/core/qunit/base/i18n/Localization.qunit.js +259 -0
- package/test/sap/ui/core/qunit/base/i18n/ResourceBundle.qunit.js +5 -6
- package/test/sap/ui/core/qunit/base/security/sanitizeHTML.qunit.js +17 -0
- package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload.qunit.js +1 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithCustomBootTask.beforeBootstrap.qunit.js +13 -12
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +388 -254
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.qunit.js +19 -30
- package/test/sap/ui/core/qunit/component/Models.qunit.js +7 -28
- package/test/sap/ui/core/qunit/component/Models_unavoidablySync.qunit.js +8 -26
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib2/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib3/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library-preload.json +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/lib4/library.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/manifestcomp/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/mycomp/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component-preload.js +1 -1
- package/test/sap/ui/core/qunit/component/testdata/async/mysubcomp/Component.js +2 -3
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/Component.js +0 -4
- package/test/sap/ui/core/qunit/component/testdata/customizing/customer/ext/sync/Component.js +2 -6
- package/test/sap/ui/core/qunit/component/testdata/customizing/customersub/Component.js +0 -4
- package/test/sap/ui/core/qunit/component/testdata/inherit/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/inherit/parent/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentA/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsync/parentB/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentA/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/inheritAsyncError/parentB/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/other/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/terminologies/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component1/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component2/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component3/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/component5/Component.js +2 -2
- package/test/sap/ui/core/qunit/component/testdata/terminologies/reuse/Component.js +2 -3
- package/test/sap/ui/core/qunit/component/testdata/v1/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v1empty/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v1inline/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v1missing/Component.js +2 -7
- package/test/sap/ui/core/qunit/component/testdata/v2/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2asyncRootView/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2empty/Component.js +2 -9
- package/test/sap/ui/core/qunit/component/testdata/v2inline/Component.js +2 -5
- package/test/sap/ui/core/qunit/component/testdata/v2missing/Component.js +2 -9
- package/test/sap/ui/core/qunit/component/testdata/v2version/Component.js +2 -2
- package/test/sap/ui/core/qunit/dnd/DragDropInfo.qunit.js +1 -2
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +2 -0
- package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +2 -0
- package/test/sap/ui/core/qunit/gherkin/dataTableUtils.qunit.js +2 -2
- package/test/sap/ui/core/qunit/i18n/Locale.qunit.js +0 -52
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +1 -1
- package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +14 -24
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +18 -0
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +1 -0
- package/test/sap/ui/core/qunit/json/JSONListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/json/JSONPropertyBinding.qunit.js +7 -12
- package/test/sap/ui/core/qunit/json/JSONTwoWay.qunit.js +3 -8
- package/test/sap/ui/core/qunit/loader/fixture/amd-with-export-true/module1.js +2 -2
- package/test/sap/ui/core/qunit/messages/MessageMixin.qunit.js +2 -7
- package/test/sap/ui/core/qunit/messages/messagesUsage.qunit.js +1 -1
- package/test/sap/ui/core/qunit/model/Binding.qunit.js +36 -11
- package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/CompositeDataState.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/Context.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/ContextBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/ListBinding.qunit.js +63 -6
- package/test/sap/ui/core/qunit/model/Model.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +40 -0
- package/test/sap/ui/core/qunit/model/TreeBinding.qunit.js +2 -7
- package/test/sap/ui/core/qunit/model/TreeBindingAdapter.qunit.js +2 -7
- package/test/sap/ui/core/qunit/mvc/XMLView.qunit.js +9 -8
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +4 -4
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +4 -4
- package/test/sap/ui/core/qunit/odata/AnnotationParserNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/ODataMessageParser.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/ODataMessageParserNoFakeService.qunit.js +2 -8
- package/test/sap/ui/core/qunit/odata/ODataMetadataNoFakeService.qunit.js +1 -6
- package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +24 -0
- package/test/sap/ui/core/qunit/odata/v2/Context.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataContextBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +31 -17
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +28 -19
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +70 -15
- package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingFlatNoFakeService.qunit.js +4 -9
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v2/_CreatedContextsCache.qunit.js +2 -7
- package/test/sap/ui/core/qunit/odata/v4/AnnotationHelper.qunit.js +1 -1
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +45 -17
- package/test/sap/ui/core/qunit/odata/v4/ODataBinding.qunit.js +152 -151
- package/test/sap/ui/core/qunit/odata/v4/ODataContextBinding.qunit.js +55 -27
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +119 -4
- package/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +754 -195
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +42 -53
- package/test/sap/ui/core/qunit/odata/v4/ODataParentBinding.qunit.js +283 -170
- package/test/sap/ui/core/qunit/odata/v4/ODataPropertyBinding.qunit.js +103 -78
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +3 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +87 -58
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +3 -1
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +124 -22
- package/test/sap/ui/core/qunit/odata/v4/testsuite.odatav4.qunit.js +4 -0
- package/test/sap/ui/core/qunit/opa/_LogCollector.qunit.js +1 -1
- package/test/sap/ui/core/qunit/performance/trace/FESR.qunit.js +5 -0
- package/test/sap/ui/core/qunit/resource/ResourceModel.qunit.js +17 -37
- package/test/sap/ui/core/qunit/routing/HashChanger.qunit.js +1 -6
- package/test/sap/ui/core/qunit/routing/RouterHashChanger.qunit.js +1 -10
- package/test/sap/ui/core/qunit/routing/async/Router.qunit.js +1 -22
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +1 -4
- package/test/sap/ui/core/qunit/rule/model/modelSupport.qunit.js +34 -1
- package/test/sap/ui/core/qunit/testdata/fastnavigation/view/FastNavigation.view.xml +2 -2
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/i18n.properties +1 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/library.js +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib1/manifest.json +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/library.js +10 -0
- package/test/sap/ui/core/qunit/testdata/libraries/resourcebundle/lib2/messagebundle.properties +1 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.databinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.theming.qunit.js +29 -0
- package/test/sap/ui/core/qunit/types/DateFormatTimezones.qunit.js +397 -607
- package/test/sap/ui/core/qunit/types/SimpleType.qunit.js +16 -2
- package/test/sap/ui/core/qunit/types/Types.qunit.js +2 -37
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +1 -1
- package/test/sap/ui/core/qunit/util/SyncPromise.qunit.js +4 -1
- package/test/sap/ui/core/qunit/util/jQuery.sap.measure.qunit.js +16 -11
- package/test/sap/ui/core/qunit/xml/XMLListBinding.qunit.js +1 -3
- package/test/sap/ui/core/qunit/xml/XMLModel.qunit.js +4 -14
- package/test/sap/ui/core/qunit/xml/XMLPropertyBinding.qunit.js +7 -11
- package/test/sap/ui/core/qunit/xml/XMLTreeBinding.qunit.js +1 -1
- package/test/sap/ui/core/qunit/xml/XMLTwoWay.qunit.js +3 -7
- package/test/sap/ui/core/relnotes/changes-1.115.json +1 -37
- package/test/sap/ui/core/relnotes/changes-1.116.json +82 -0
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/firstItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/initial.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/lastItem-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/leftDownBtn-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/myButtonSample-contextMenu.ref.lnk +1 -1
- package/test/sap/ui/core/visual/images/ContextMenuSupport/windows/1600x1200/chrome/horizon/ltr/cozy/rightDownBtn-contextMenu.ref.lnk +1 -1
- package/test/testsuite/js/samples.js +2 -0
- package/ui5.yaml +1 -1
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* copyright
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* global globalThis */
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/base/assert",
|
|
8
|
+
"sap/base/config",
|
|
9
|
+
"sap/base/Event",
|
|
10
|
+
"sap/base/Eventing",
|
|
11
|
+
"sap/base/Log",
|
|
12
|
+
"sap/base/i18n/Localization",
|
|
13
|
+
"sap/base/util/deepEqual"
|
|
14
|
+
], function(
|
|
15
|
+
assert,
|
|
16
|
+
BaseConfig,
|
|
17
|
+
BaseEvent,
|
|
18
|
+
Eventing,
|
|
19
|
+
Log,
|
|
20
|
+
Localization,
|
|
21
|
+
deepEqual
|
|
22
|
+
) {
|
|
23
|
+
"use strict";
|
|
24
|
+
|
|
25
|
+
var oWritableConfig = BaseConfig.getWritableInstance();
|
|
26
|
+
var mChanges;
|
|
27
|
+
var oThemeManager;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Provides theming related API
|
|
31
|
+
*
|
|
32
|
+
* @alias module:sap/ui/core/Theming
|
|
33
|
+
* @namespace
|
|
34
|
+
* @private
|
|
35
|
+
* @ui5-restricted sap.ui.core
|
|
36
|
+
*/
|
|
37
|
+
var Theming = {
|
|
38
|
+
/**
|
|
39
|
+
* Returns the theme name
|
|
40
|
+
* @return {string} the theme name
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
getTheme: function() {
|
|
44
|
+
// analyze theme parameter
|
|
45
|
+
var sTheme = oWritableConfig.get({
|
|
46
|
+
name: "sapTheme",
|
|
47
|
+
type: oWritableConfig.Type.String,
|
|
48
|
+
defaultValue: oWritableConfig.get({
|
|
49
|
+
name: "sapUiTheme",
|
|
50
|
+
type: oWritableConfig.Type.String,
|
|
51
|
+
defaultValue: "base",
|
|
52
|
+
external: true
|
|
53
|
+
}),
|
|
54
|
+
external: true
|
|
55
|
+
});
|
|
56
|
+
// It's only possible to provide a themeroot via theme parameter using
|
|
57
|
+
// the initial config provider such as Global-, Bootstrap-, Meta- and
|
|
58
|
+
// URLConfigurationProvider. The themeroot is also only validated against
|
|
59
|
+
// allowedThemeOrigin in this case.
|
|
60
|
+
var iIndex = sTheme.indexOf("@");
|
|
61
|
+
if (iIndex >= 0) {
|
|
62
|
+
var sThemeRoot = validateThemeRoot(sTheme.slice(iIndex + 1));
|
|
63
|
+
sTheme = iIndex > 0 ? sTheme.slice(0, iIndex) : sTheme;
|
|
64
|
+
if (sThemeRoot !== Theming.getThemeRoot(sTheme)) {
|
|
65
|
+
Theming.setThemeRoot(sTheme, sThemeRoot);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return normalizeTheme(sTheme, Theming.getThemeRoot(sTheme));
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Allows setting the theme name
|
|
73
|
+
* @param {string} sTheme the theme name
|
|
74
|
+
* @return {this} <code>this</code> to allow method chaining
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
setTheme: function(sTheme) {
|
|
78
|
+
if (sTheme) {
|
|
79
|
+
if (sTheme.indexOf("@") !== -1) {
|
|
80
|
+
throw new TypeError("Providing a theme root as part of the theme parameter is not allowed.");
|
|
81
|
+
}
|
|
82
|
+
var bFireChange = !mChanges;
|
|
83
|
+
mChanges = mChanges || {};
|
|
84
|
+
var sOldTheme = Theming.getTheme();
|
|
85
|
+
oWritableConfig.set("sapTheme", sTheme);
|
|
86
|
+
var sNewTheme = Theming.getTheme();
|
|
87
|
+
var bThemeChanged = sOldTheme !== sNewTheme;
|
|
88
|
+
if (bThemeChanged) {
|
|
89
|
+
mChanges.theme = {
|
|
90
|
+
"new": sNewTheme,
|
|
91
|
+
"old": sOldTheme
|
|
92
|
+
};
|
|
93
|
+
} else {
|
|
94
|
+
mChanges = undefined;
|
|
95
|
+
}
|
|
96
|
+
if (bFireChange) {
|
|
97
|
+
fireChange(mChanges);
|
|
98
|
+
}
|
|
99
|
+
if (!oThemeManager && bThemeChanged) {
|
|
100
|
+
fireApplied({theme: sNewTheme});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return this;
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Returns true, if the styles of the current theme are already applied, false otherwise.
|
|
108
|
+
*
|
|
109
|
+
* If the styles are not yet applied a theme changed event will follow when the styles will be applied.
|
|
110
|
+
*
|
|
111
|
+
* @return {boolean} whether the styles of the current theme are already applied
|
|
112
|
+
* @private
|
|
113
|
+
* @ui5-restricted sap.ui.core.Core
|
|
114
|
+
*/
|
|
115
|
+
isApplied: function() {
|
|
116
|
+
return !oThemeManager || oThemeManager.themeLoaded;
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @param {string} sTheme The Theme
|
|
122
|
+
* @param {string} [sLib] An optional library name
|
|
123
|
+
* @private
|
|
124
|
+
* @ui5-restricted sap.ui.core.theming.ThemeManager
|
|
125
|
+
* @returns {string} The themeRoot if configured
|
|
126
|
+
*/
|
|
127
|
+
getThemeRoot: function(sTheme, sLib) {
|
|
128
|
+
var oThemeRoots = oWritableConfig.get({
|
|
129
|
+
name: "sapUiThemeRoots",
|
|
130
|
+
type: oWritableConfig.Type.Object
|
|
131
|
+
});
|
|
132
|
+
var sThemeRoot;
|
|
133
|
+
|
|
134
|
+
sTheme = sTheme || Theming.getTheme();
|
|
135
|
+
|
|
136
|
+
if (oThemeRoots[sTheme] && typeof oThemeRoots[sTheme] === "string") {
|
|
137
|
+
sThemeRoot = oThemeRoots[sTheme];
|
|
138
|
+
} else if (oThemeRoots[sTheme] && typeof oThemeRoots[sTheme] === "object") {
|
|
139
|
+
sThemeRoot = oThemeRoots[sTheme][sLib] || oThemeRoots[sTheme][""];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return sThemeRoot;
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Defines the root directory from below which UI5 should load the theme with the given name.
|
|
147
|
+
* Optionally allows restricting the setting to parts of a theme covering specific control libraries.
|
|
148
|
+
*
|
|
149
|
+
* Example:
|
|
150
|
+
* <pre>
|
|
151
|
+
* sap.ui.getCore().setThemeRoot("my_theme", "https://mythemeserver.com/allThemes");
|
|
152
|
+
* sap.ui.getCore().applyTheme("my_theme");
|
|
153
|
+
* </pre>
|
|
154
|
+
*
|
|
155
|
+
* will cause the following file to be loaded (assuming that the bootstrap is configured to load
|
|
156
|
+
* libraries <code>sap.m</code> and <code>sap.ui.layout</code>):
|
|
157
|
+
* <pre>
|
|
158
|
+
* https://mythemeserver.com/allThemes/sap/ui/core/themes/my_theme/library.css
|
|
159
|
+
* https://mythemeserver.com/allThemes/sap/ui/layout/themes/my_theme/library.css
|
|
160
|
+
* https://mythemeserver.com/allThemes/sap/m/themes/my_theme/library.css
|
|
161
|
+
* </pre>
|
|
162
|
+
*
|
|
163
|
+
* If parts of the theme are at different locations (e.g. because you provide a standard theme
|
|
164
|
+
* like "sap_belize" for a custom control library and this self-made part of the standard theme is at a
|
|
165
|
+
* different location than the UI5 resources), you can also specify for which control libraries the setting
|
|
166
|
+
* should be used, by giving an array with the names of the respective control libraries as second parameter:
|
|
167
|
+
* <pre>
|
|
168
|
+
* sap.ui.getCore().setThemeRoot("sap_belize", ["my.own.library"], "https://mythemeserver.com/allThemes");
|
|
169
|
+
* </pre>
|
|
170
|
+
*
|
|
171
|
+
* This will cause the Belize theme to be loaded from the UI5 location for all standard libraries.
|
|
172
|
+
* Resources for styling the <code>my.own.library</code> controls will be loaded from the configured
|
|
173
|
+
* location:
|
|
174
|
+
* <pre>
|
|
175
|
+
* https://openui5.hana.ondemand.com/resources/sap/ui/core/themes/sap_belize/library.css
|
|
176
|
+
* https://openui5.hana.ondemand.com/resources/sap/ui/layout/themes/sap_belize/library.css
|
|
177
|
+
* https://openui5.hana.ondemand.com/resources/sap/m/themes/sap_belize/library.css
|
|
178
|
+
* https://mythemeserver.com/allThemes/my/own/library/themes/sap_belize/library.css
|
|
179
|
+
* </pre>
|
|
180
|
+
*
|
|
181
|
+
* If the custom theme should be loaded initially (via bootstrap attribute), the <code>themeRoots</code>
|
|
182
|
+
* property of the <code>window["sap-ui-config"]</code> object must be used instead of calling
|
|
183
|
+
* <code>sap.ui.getCore().setThemeRoot(...)</code> in order to configure the theme location early enough.
|
|
184
|
+
*
|
|
185
|
+
* @param {string} sThemeName Name of the theme for which to configure the location
|
|
186
|
+
* @param {string} sThemeBaseUrl Base URL below which the CSS file(s) will be loaded from
|
|
187
|
+
* @param {string[]} [aLibraryNames] Optional library names to which the configuration should be restricted
|
|
188
|
+
* @param {boolean} [bForceUpdate=false] Force updating URLs of currently loaded theme
|
|
189
|
+
* @private
|
|
190
|
+
* @ui5-restricted sap.ui.core.Core
|
|
191
|
+
*/
|
|
192
|
+
setThemeRoot: function(sThemeName, sThemeBaseUrl, aLibraryNames, bForceUpdate) {
|
|
193
|
+
assert(typeof sThemeName === "string", "sThemeName must be a string");
|
|
194
|
+
assert(typeof sThemeBaseUrl === "string", "sThemeBaseUrl must be a string");
|
|
195
|
+
|
|
196
|
+
var bFireChange = !mChanges;
|
|
197
|
+
mChanges = mChanges || {};
|
|
198
|
+
|
|
199
|
+
var oThemeRootConfigParam = {
|
|
200
|
+
name: "sapUiThemeRoots",
|
|
201
|
+
type: oWritableConfig.Type.Object,
|
|
202
|
+
defaultValue: {}
|
|
203
|
+
};
|
|
204
|
+
// Use get twice, for a deep copy of themeRoots object
|
|
205
|
+
var mOldThemeRoots = oWritableConfig.get(oThemeRootConfigParam);
|
|
206
|
+
var mNewThemeRoots = oWritableConfig.get(oThemeRootConfigParam);
|
|
207
|
+
|
|
208
|
+
// normalize parameters
|
|
209
|
+
if (typeof aLibraryNames === "boolean") {
|
|
210
|
+
bForceUpdate = aLibraryNames;
|
|
211
|
+
aLibraryNames = undefined;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
mNewThemeRoots[sThemeName] = mNewThemeRoots[sThemeName] || {};
|
|
215
|
+
|
|
216
|
+
// Normalize theme-roots to an object in case it was initially given as a string.
|
|
217
|
+
// We only check newThemeRoots, since both old and new are identical at this point.
|
|
218
|
+
if (typeof mNewThemeRoots[sThemeName] === "string") {
|
|
219
|
+
mNewThemeRoots[sThemeName] = { "": mNewThemeRoots[sThemeName]};
|
|
220
|
+
mOldThemeRoots[sThemeName] = { "": mOldThemeRoots[sThemeName]};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (aLibraryNames) {
|
|
224
|
+
// registration of URL for several libraries
|
|
225
|
+
for (var i = 0; i < aLibraryNames.length; i++) {
|
|
226
|
+
var lib = aLibraryNames[i];
|
|
227
|
+
mNewThemeRoots[sThemeName][lib] = sThemeBaseUrl;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
} else {
|
|
231
|
+
// registration of theme default base URL
|
|
232
|
+
mNewThemeRoots[sThemeName][""] = sThemeBaseUrl;
|
|
233
|
+
}
|
|
234
|
+
if (!deepEqual(mOldThemeRoots, mNewThemeRoots)) {
|
|
235
|
+
oWritableConfig.set("sapUiThemeRoots", mNewThemeRoots);
|
|
236
|
+
if (aLibraryNames) {
|
|
237
|
+
mChanges.themeRoots = {
|
|
238
|
+
"new": Object.assign({}, mNewThemeRoots[sThemeName]),
|
|
239
|
+
"old": Object.assign({}, mOldThemeRoots[sThemeName])
|
|
240
|
+
};
|
|
241
|
+
} else {
|
|
242
|
+
mChanges.themeRoots = {
|
|
243
|
+
"new": sThemeBaseUrl,
|
|
244
|
+
"old": mOldThemeRoots[sThemeName] && mOldThemeRoots[sThemeName][""]
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
mChanges.themeRoots.forceUpdate = bForceUpdate && sThemeName === Theming.getTheme();
|
|
248
|
+
} else {
|
|
249
|
+
mChanges = undefined;
|
|
250
|
+
}
|
|
251
|
+
if (bFireChange) {
|
|
252
|
+
fireChange();
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Fired after a theme has been applied.
|
|
258
|
+
*
|
|
259
|
+
* More precisely, this event is fired when any of the following conditions is met:
|
|
260
|
+
* <ul>
|
|
261
|
+
* <li>the initially configured theme has been applied after core init</li>
|
|
262
|
+
* <li>the theme has been changed and is now applied (see {@link #applyTheme})</li>
|
|
263
|
+
* <li>a library has been loaded dynamically after core init (e.g. with
|
|
264
|
+
* <code>sap.ui.core.Lib.load(...)</code> and the current theme
|
|
265
|
+
* has been applied for it</li>
|
|
266
|
+
* </ul>
|
|
267
|
+
*
|
|
268
|
+
* @name sap.ui.core.Theming#applied
|
|
269
|
+
* @event
|
|
270
|
+
* @param {sap.base.Event} oEvent
|
|
271
|
+
* @param {sap.ui.base.EventProvider} oEvent.target
|
|
272
|
+
* @param {string} oEvent.theme Theme name
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Attaches event handler <code>fnFunction</code> to the {@link #event:applied applied} event
|
|
278
|
+
*
|
|
279
|
+
* @param {function} fnFunction The function to be called, when the event occurs
|
|
280
|
+
* @private
|
|
281
|
+
* @ui5-restricted sap.ui.core.Core
|
|
282
|
+
*/
|
|
283
|
+
attachAppliedOnce: function(fnFunction) {
|
|
284
|
+
var sId = "applied";
|
|
285
|
+
if (oThemeManager) {
|
|
286
|
+
Theming.attachEventOnce(sId, fnFunction);
|
|
287
|
+
} else {
|
|
288
|
+
fnFunction.call(Theming, new BaseEvent(sId, Theming, {theme: Theming.getTheme()}));
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Attaches event handler <code>fnFunction</code> to the {@link #event:applied applied} event
|
|
294
|
+
*
|
|
295
|
+
* @param {function} fnFunction The function to be called, when the event occurs
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
attachApplied: function(fnFunction) {
|
|
299
|
+
var sId = "applied";
|
|
300
|
+
Theming.attachEvent(sId, fnFunction);
|
|
301
|
+
if (!oThemeManager) {
|
|
302
|
+
fnFunction.call(Theming, new BaseEvent(sId, Theming, {theme: Theming.getTheme()}));
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
* Detaches event handler <code>fnFunction</code> from the {@link #event:applied applied} event
|
|
307
|
+
*
|
|
308
|
+
* The passed function must match the one used for event registration.
|
|
309
|
+
*
|
|
310
|
+
* @param {function} fnFunction The function to be called, when the event occurs
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
detachApplied: function(fnFunction) {
|
|
314
|
+
Theming.detachEvent("applied", fnFunction);
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The <code>change</code> event is fired, when the configuration options are changed.
|
|
319
|
+
*
|
|
320
|
+
* @name module:sap/ui/core/Theming.change
|
|
321
|
+
* @event
|
|
322
|
+
* @param {sap.base.Event} oEvent
|
|
323
|
+
* @param {sap.ui.base.EventProvider} oEvent.target
|
|
324
|
+
* @param {object} oEvent.theme theme object
|
|
325
|
+
* @param {object} oEvent.theme.new new theme name
|
|
326
|
+
* @param {object} oEvent.theme.old old theme name
|
|
327
|
+
* @param {object} oEvent.themeroots themeroots object
|
|
328
|
+
* @param {object} oEvent.themeroots.new new themeroots
|
|
329
|
+
* @param {object} oEvent.themeroots.old old themeroots
|
|
330
|
+
* @private
|
|
331
|
+
* @ui5-restricted sap.ui.core.theming.ThemeManager
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Attaches the <code>fnFunction</code> event handler to the {@link #event:change change} event
|
|
336
|
+
* of <code>sap.ui.core.Theming</code>.
|
|
337
|
+
*
|
|
338
|
+
* @param {function} fnFunction The function to be called when the event occurs
|
|
339
|
+
* @private
|
|
340
|
+
* @ui5-restricted sap.ui.core.theming.ThemeManager
|
|
341
|
+
*/
|
|
342
|
+
attachChange: function(fnFunction) {
|
|
343
|
+
Theming.attachEvent("change", fnFunction);
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Detaches event handler <code>fnFunction</code> from the {@link #event:change change} event of
|
|
347
|
+
* this <code>sap.ui.core.Theming</code>.
|
|
348
|
+
*
|
|
349
|
+
* @param {function} fnFunction Function to be called when the event occurs
|
|
350
|
+
* @private
|
|
351
|
+
* @ui5-restricted sap.ui.core.theming.ThemeManager
|
|
352
|
+
*/
|
|
353
|
+
detachChange: function(fnFunction) {
|
|
354
|
+
Theming.detachEvent("change", fnFunction);
|
|
355
|
+
},
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Notify content density changes
|
|
360
|
+
*
|
|
361
|
+
* @private
|
|
362
|
+
* @ui5-restricted sap.ui.core.Core
|
|
363
|
+
*/
|
|
364
|
+
notifyContentDensityChanged: function() {
|
|
365
|
+
fireApplied({theme: Theming.getTheme()});
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
/** Register a ThemeManager instance
|
|
369
|
+
* @param {sap.ui.core.theming.ThemeManager} oManager The ThemeManager to register.
|
|
370
|
+
* @private
|
|
371
|
+
* @ui5-restricted sap.ui.core.theming.ThemeManager
|
|
372
|
+
*/
|
|
373
|
+
registerThemeManager: function(oManager) {
|
|
374
|
+
oThemeManager = oManager;
|
|
375
|
+
oThemeManager.attachEvent("ThemeChanged", function(oEvent) {
|
|
376
|
+
fireApplied(BaseEvent.getParameters(oEvent));
|
|
377
|
+
});
|
|
378
|
+
// handle RTL changes
|
|
379
|
+
Localization.attachChange(function(oEvent){
|
|
380
|
+
var bRTL = oEvent.rtl;
|
|
381
|
+
if (bRTL !== undefined) {
|
|
382
|
+
oThemeManager._updateThemeUrls(Theming.getTheme());
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
function fireChange() {
|
|
389
|
+
if (mChanges) {
|
|
390
|
+
Theming.fireEvent("change", mChanges);
|
|
391
|
+
mChanges = undefined;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function fireApplied(oTheme) {
|
|
396
|
+
Theming.fireEvent("applied", oTheme);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function validateThemeOrigin(sOrigin, bNoProtocol) {
|
|
400
|
+
var sAllowedOrigins = oWritableConfig.get({name: "sapAllowedThemeOrigins", type: oWritableConfig.Type.String});
|
|
401
|
+
return !!sAllowedOrigins && sAllowedOrigins.split(",").some(function(sAllowedOrigin) {
|
|
402
|
+
try {
|
|
403
|
+
sAllowedOrigin = bNoProtocol && !sAllowedOrigin.startsWith("//") ? "//" + sAllowedOrigin : sAllowedOrigin;
|
|
404
|
+
return sAllowedOrigin === "*" || sOrigin === new URL(sAllowedOrigin.trim(), globalThis.location.href).origin;
|
|
405
|
+
} catch (error) {
|
|
406
|
+
Log.error("sapAllowedThemeOrigin provides invalid theme origin: " + sAllowedOrigin);
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function validateThemeRoot(sThemeRoot) {
|
|
413
|
+
var bNoProtocol = sThemeRoot.startsWith("//"),
|
|
414
|
+
oThemeRoot,
|
|
415
|
+
sPath;
|
|
416
|
+
|
|
417
|
+
try {
|
|
418
|
+
// Remove search query as they are not supported for themeRoots/resourceRoots
|
|
419
|
+
oThemeRoot = new URL(sThemeRoot, globalThis.location.href);
|
|
420
|
+
oThemeRoot.search = "";
|
|
421
|
+
|
|
422
|
+
// If the URL is absolute, validate the origin
|
|
423
|
+
if (oThemeRoot.origin && validateThemeOrigin(oThemeRoot.origin, bNoProtocol)) {
|
|
424
|
+
sPath = oThemeRoot.toString();
|
|
425
|
+
} else {
|
|
426
|
+
// For relative URLs or not allowed origins
|
|
427
|
+
// ensure same origin and resolve relative paths based on origin
|
|
428
|
+
oThemeRoot = new URL(oThemeRoot.pathname, globalThis.location.href);
|
|
429
|
+
sPath = oThemeRoot.toString();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// legacy compatibility: support for "protocol-less" urls (previously handled by URI.js)
|
|
433
|
+
if (bNoProtocol) {
|
|
434
|
+
sPath = sPath.replace(oThemeRoot.protocol, "");
|
|
435
|
+
}
|
|
436
|
+
return sPath + (sPath.endsWith('/') ? '' : '/') + "UI5/";
|
|
437
|
+
} catch (e) {
|
|
438
|
+
// malformed URL are also not accepted
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function normalizeTheme(sTheme, sThemeBaseUrl) {
|
|
443
|
+
if ( sTheme && sThemeBaseUrl == null && sTheme.match(/^sap_corbu$/i) ) {
|
|
444
|
+
return "sap_fiori_3";
|
|
445
|
+
}
|
|
446
|
+
return sTheme;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
Eventing.apply(Theming);
|
|
450
|
+
return Theming;
|
|
451
|
+
});
|
package/src/sap/ui/core/Title.js
CHANGED
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class
|
|
31
31
|
* Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.116.0
|
|
34
34
|
*
|
|
35
35
|
* @public
|
|
36
36
|
* @alias sap.ui.core.TooltipBase
|
|
@@ -170,7 +170,7 @@ sap.ui.define([
|
|
|
170
170
|
*
|
|
171
171
|
* @extends sap.ui.base.ManagedObject
|
|
172
172
|
* @author SAP SE
|
|
173
|
-
* @version 1.
|
|
173
|
+
* @version 1.116.0
|
|
174
174
|
* @param {object} [oRootNode] reference to the DOM element that should be 'hosting' the UI Area.
|
|
175
175
|
* @public
|
|
176
176
|
* @alias sap.ui.core.UIArea
|
|
@@ -18,7 +18,7 @@ sap.ui.define(['./ComponentMetadata', 'sap/ui/core/mvc/ViewType'],
|
|
|
18
18
|
* @experimental Since 1.15.1. The Component concept is still under construction, so some implementation details can be changed in future.
|
|
19
19
|
* @class
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.116.0
|
|
22
22
|
* @since 1.15.1
|
|
23
23
|
* @alias sap.ui.core.UIComponentMetadata
|
|
24
24
|
* @extends sap.ui.core.ComponentMetadata
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['./LayoutData', './library'],
|
|
|
20
20
|
* @class
|
|
21
21
|
* Allows to add multiple LayoutData to one control in case that an easy switch of layouts (e.g. in a Form) is needed.
|
|
22
22
|
* @extends sap.ui.core.LayoutData
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.116.0
|
|
24
24
|
*
|
|
25
25
|
* @public
|
|
26
26
|
* @since 1.9.2
|
|
@@ -146,7 +146,7 @@ sap.ui.define([
|
|
|
146
146
|
* @extends sap.ui.core.Control
|
|
147
147
|
*
|
|
148
148
|
* @author SAP SE
|
|
149
|
-
* @version 1.
|
|
149
|
+
* @version 1.116.0
|
|
150
150
|
* @since 1.56.0
|
|
151
151
|
* @alias sap.ui.core.XMLComposite
|
|
152
152
|
* @see {@link topic:b83a4dcb7d0e46969027345b8d32fd44 XML Composite Controls}
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @param {object} oClassInfo static info to construct the metadata from
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.116.0
|
|
34
34
|
* @since 1.50.0
|
|
35
35
|
* @alias sap.ui.core.XMLCompositeMetadata
|
|
36
36
|
* @extends sap.ui.core.ElementMetadata
|
|
@@ -730,6 +730,9 @@ sap.ui.define([
|
|
|
730
730
|
'non-binary': 0xe29d,
|
|
731
731
|
'female': 0xe29e,
|
|
732
732
|
'male': 0x1e29f,
|
|
733
|
+
'bell-2': 0xe2a0,
|
|
734
|
+
'accessibility': 0xe2a1,
|
|
735
|
+
'high-priority': 0xe2a2,
|
|
733
736
|
'gender-male-and-female': 0x1e300,
|
|
734
737
|
'rotate': 0xe301,
|
|
735
738
|
'locate-me-2': 0xe302,
|
|
@@ -741,7 +744,10 @@ sap.ui.define([
|
|
|
741
744
|
'people-connected': 0xe308,
|
|
742
745
|
'light-mode': 0xe309,
|
|
743
746
|
'dark-mode': 0xe30a,
|
|
744
|
-
'select-appointments': 0x1e30b
|
|
747
|
+
'select-appointments': 0x1e30b,
|
|
748
|
+
'time-off': 0xe30c,
|
|
749
|
+
'add-calendar': 0xe30d,
|
|
750
|
+
'currency': 0xe30e
|
|
745
751
|
}
|
|
746
752
|
};
|
|
747
753
|
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides type sap.ui.core.date.CalendarWeekNumbering.
|
|
8
|
-
sap.ui.define([
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/base/i18n/date/CalendarWeekNumbering"
|
|
10
|
+
], function(
|
|
11
|
+
CalendarWeekNumbering
|
|
12
|
+
) {
|
|
9
13
|
"use strict";
|
|
10
14
|
|
|
11
15
|
/**
|
|
@@ -19,87 +23,12 @@ sap.ui.define([], function() {
|
|
|
19
23
|
* @enum {string}
|
|
20
24
|
* @public
|
|
21
25
|
* @since 1.108.0
|
|
22
|
-
* @
|
|
26
|
+
* @name sap.ui.core.date.CalendarWeekNumbering
|
|
27
|
+
* @borrows module:sap/base/i18n/date/CalendarWeekNumbering.Default as Default
|
|
28
|
+
* @borrows module:sap/base/i18n/date/CalendarWeekNumbering.ISO_8601 as ISO_8601
|
|
29
|
+
* @borrows module:sap/base/i18n/date/CalendarWeekNumbering.MiddleEastern as MiddleEastern
|
|
30
|
+
* @borrows module:sap/base/i18n/date/CalendarWeekNumbering.WesternTraditional as WesternTraditional
|
|
31
|
+
* @borrows module:sap/base/i18n/date/CalendarWeekNumbering.getWeekConfigurationValues as getWeekConfigurationValues
|
|
23
32
|
*/
|
|
24
|
-
var CalendarWeekNumbering = {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The default calendar week numbering:
|
|
28
|
-
*
|
|
29
|
-
* The framework determines the week numbering scheme; currently it is derived from the
|
|
30
|
-
* active format locale. Future versions of UI5 might select a different week numbering
|
|
31
|
-
* scheme.
|
|
32
|
-
*
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
Default : "Default",
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Official calendar week numbering in most of Europe (ISO 8601 standard):
|
|
39
|
-
* <ul>
|
|
40
|
-
* <li>Monday is first day of the week,
|
|
41
|
-
* <li>the week containing January 4th is first week of the year.
|
|
42
|
-
* </ul>
|
|
43
|
-
*
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
ISO_8601 : "ISO_8601",
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Official calendar week numbering in much of the Middle East (Middle Eastern calendar):
|
|
50
|
-
* <ul>
|
|
51
|
-
* <li>Saturday is first day of the week,
|
|
52
|
-
* <li>the week containing January 1st is first week of the year.
|
|
53
|
-
* </ul>
|
|
54
|
-
*
|
|
55
|
-
* @public
|
|
56
|
-
*/
|
|
57
|
-
MiddleEastern : "MiddleEastern",
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Official calendar week numbering in the United States, Canada, Brazil, Israel, Japan, and
|
|
61
|
-
* other countries (Western traditional calendar):
|
|
62
|
-
* <ul>
|
|
63
|
-
* <li>Sunday is first day of the week,
|
|
64
|
-
* <li>the week containing January 1st is first week of the year.
|
|
65
|
-
* </ul>
|
|
66
|
-
*
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
WesternTraditional : "WesternTraditional"
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Returns an object containing the week configuration values for the given calendar week
|
|
74
|
-
* numbering algorithm.
|
|
75
|
-
*
|
|
76
|
-
* @param {sap.ui.core.date.CalendarWeekNumbering} [sCalendarWeekNumbering=Default]
|
|
77
|
-
* The calendar week numbering algorithm
|
|
78
|
-
* @returns {{firstDayOfWeek: int, minimalDaysInFirstWeek: int}|undefined}
|
|
79
|
-
* The week configuration values or <code>undefined</code> if the given calendar week
|
|
80
|
-
* numbering algorithm is "Default"
|
|
81
|
-
*
|
|
82
|
-
* @function
|
|
83
|
-
* @name sap.ui.core.date.CalendarWeekNumbering.getWeekConfigurationValues
|
|
84
|
-
* @private
|
|
85
|
-
*/
|
|
86
|
-
Object.defineProperty(CalendarWeekNumbering, "getWeekConfigurationValues", {
|
|
87
|
-
// configurable : false,
|
|
88
|
-
// enumerable : false,
|
|
89
|
-
value : function (sCalendarWeekNumbering) {
|
|
90
|
-
switch (sCalendarWeekNumbering) {
|
|
91
|
-
case CalendarWeekNumbering.ISO_8601 :
|
|
92
|
-
return {firstDayOfWeek : 1, minimalDaysInFirstWeek : 4};
|
|
93
|
-
case CalendarWeekNumbering.MiddleEastern :
|
|
94
|
-
return {firstDayOfWeek : 6, minimalDaysInFirstWeek : 1};
|
|
95
|
-
case CalendarWeekNumbering.WesternTraditional :
|
|
96
|
-
return {firstDayOfWeek : 0, minimalDaysInFirstWeek : 1};
|
|
97
|
-
default:
|
|
98
|
-
return undefined;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// writable : false
|
|
102
|
-
});
|
|
103
|
-
|
|
104
33
|
return CalendarWeekNumbering;
|
|
105
|
-
}, /* bExport= */ true);
|
|
34
|
+
}, /* bExport= */ true);
|