@openui5/sap.ui.core 1.101.0 → 1.102.2
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 +26 -5
- package/THIRDPARTY.txt +1 -1
- 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/assert.js +1 -1
- package/src/sap/base/strings/whitespaceReplacer.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +2 -2
- 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 +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- 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 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/CommandExecution.js +15 -12
- package/src/sap/ui/core/Component.js +31 -12
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +27 -12
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +22 -8
- package/src/sap/ui/core/Control.js +2 -3
- package/src/sap/ui/core/Core.js +95 -27
- 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 +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/ExtensionPoint.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +2 -3
- 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 +2 -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/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +119 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +12 -14
- 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 +21 -15
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHintsMixin.js +2 -4
- 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 +3 -5
- 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 +512 -387
- package/src/sap/ui/core/cache/CacheManager.js +27 -0
- package/src/sap/ui/core/cache/CacheManagerNOP.js +3 -0
- package/src/sap/ui/core/cache/LRUPersistentCache.js +74 -3
- package/src/sap/ui/core/cldr/ar.json +469 -1
- package/src/sap/ui/core/cldr/ar_EG.json +469 -1
- package/src/sap/ui/core/cldr/ar_SA.json +469 -1
- package/src/sap/ui/core/cldr/bg.json +469 -1
- package/src/sap/ui/core/cldr/ca.json +469 -1
- package/src/sap/ui/core/cldr/cs.json +469 -1
- package/src/sap/ui/core/cldr/cy.json +469 -1
- package/src/sap/ui/core/cldr/da.json +469 -1
- package/src/sap/ui/core/cldr/de.json +469 -1
- package/src/sap/ui/core/cldr/de_AT.json +469 -1
- package/src/sap/ui/core/cldr/de_CH.json +469 -1
- package/src/sap/ui/core/cldr/el.json +469 -1
- package/src/sap/ui/core/cldr/el_CY.json +469 -1
- package/src/sap/ui/core/cldr/en.json +469 -1
- package/src/sap/ui/core/cldr/en_AU.json +469 -1
- package/src/sap/ui/core/cldr/en_GB.json +469 -1
- package/src/sap/ui/core/cldr/en_HK.json +469 -1
- package/src/sap/ui/core/cldr/en_IE.json +469 -1
- package/src/sap/ui/core/cldr/en_IN.json +469 -1
- package/src/sap/ui/core/cldr/en_NZ.json +469 -1
- package/src/sap/ui/core/cldr/en_PG.json +469 -1
- package/src/sap/ui/core/cldr/en_SG.json +469 -1
- package/src/sap/ui/core/cldr/en_ZA.json +469 -1
- package/src/sap/ui/core/cldr/es.json +469 -1
- package/src/sap/ui/core/cldr/es_AR.json +469 -1
- package/src/sap/ui/core/cldr/es_BO.json +469 -1
- package/src/sap/ui/core/cldr/es_CL.json +469 -1
- package/src/sap/ui/core/cldr/es_CO.json +469 -1
- package/src/sap/ui/core/cldr/es_MX.json +469 -1
- package/src/sap/ui/core/cldr/es_PE.json +469 -1
- package/src/sap/ui/core/cldr/es_UY.json +469 -1
- package/src/sap/ui/core/cldr/es_VE.json +469 -1
- package/src/sap/ui/core/cldr/et.json +469 -1
- package/src/sap/ui/core/cldr/fa.json +469 -1
- package/src/sap/ui/core/cldr/fi.json +469 -1
- package/src/sap/ui/core/cldr/fr.json +469 -1
- package/src/sap/ui/core/cldr/fr_BE.json +469 -1
- package/src/sap/ui/core/cldr/fr_CA.json +469 -1
- package/src/sap/ui/core/cldr/fr_CH.json +469 -1
- package/src/sap/ui/core/cldr/fr_LU.json +469 -1
- package/src/sap/ui/core/cldr/he.json +469 -1
- package/src/sap/ui/core/cldr/hi.json +469 -1
- package/src/sap/ui/core/cldr/hr.json +469 -1
- package/src/sap/ui/core/cldr/hu.json +469 -1
- package/src/sap/ui/core/cldr/id.json +469 -1
- package/src/sap/ui/core/cldr/it.json +469 -1
- package/src/sap/ui/core/cldr/it_CH.json +469 -1
- package/src/sap/ui/core/cldr/ja.json +469 -1
- package/src/sap/ui/core/cldr/kk.json +469 -1
- package/src/sap/ui/core/cldr/ko.json +469 -1
- package/src/sap/ui/core/cldr/lt.json +469 -1
- package/src/sap/ui/core/cldr/lv.json +469 -1
- package/src/sap/ui/core/cldr/ms.json +469 -1
- package/src/sap/ui/core/cldr/nb.json +469 -1
- package/src/sap/ui/core/cldr/nl.json +469 -1
- package/src/sap/ui/core/cldr/nl_BE.json +469 -1
- package/src/sap/ui/core/cldr/pl.json +469 -1
- package/src/sap/ui/core/cldr/pt.json +469 -1
- package/src/sap/ui/core/cldr/pt_PT.json +469 -1
- package/src/sap/ui/core/cldr/ro.json +469 -1
- package/src/sap/ui/core/cldr/ru.json +469 -1
- package/src/sap/ui/core/cldr/ru_UA.json +469 -1
- package/src/sap/ui/core/cldr/sk.json +469 -1
- package/src/sap/ui/core/cldr/sl.json +469 -1
- package/src/sap/ui/core/cldr/sr.json +469 -1
- package/src/sap/ui/core/cldr/sr_Latn.json +469 -1
- package/src/sap/ui/core/cldr/sv.json +469 -1
- package/src/sap/ui/core/cldr/th.json +469 -1
- package/src/sap/ui/core/cldr/tr.json +469 -1
- package/src/sap/ui/core/cldr/uk.json +469 -1
- package/src/sap/ui/core/cldr/vi.json +469 -1
- package/src/sap/ui/core/cldr/zh_CN.json +470 -2
- package/src/sap/ui/core/cldr/zh_HK.json +470 -2
- package/src/sap/ui/core/cldr/zh_SG.json +470 -2
- package/src/sap/ui/core/cldr/zh_TW.json +469 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +13 -14
- package/src/sap/ui/core/delegate/ScrollEnablement.js +11 -7
- package/src/sap/ui/core/dnd/DragAndDrop.js +2 -2
- 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 +41 -26
- package/src/sap/ui/core/format/NumberFormat.js +119 -53
- package/src/sap/ui/core/format/TimezoneUtil.js +48 -16
- 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/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +2 -2
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +2 -1
- package/src/sap/ui/core/mvc/XMLView.js +12 -20
- package/src/sap/ui/core/mvc/XMLViewRenderer.js +81 -62
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +3 -3
- 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/Router.js +1 -1
- package/src/sap/ui/core/rules/App.support.js +8 -8
- package/src/sap/ui/core/rules/Config.support.js +12 -12
- package/src/sap/ui/core/rules/Model.support.js +8 -8
- package/src/sap/ui/core/rules/Rendering.support.js +1 -1
- package/src/sap/ui/core/rules/Theming.support.js +4 -4
- package/src/sap/ui/core/rules/View.support.js +9 -9
- 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 +2 -2
- package/src/sap/ui/core/support/plugins/ControlTree.js +7 -3
- 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 +8 -22
- package/src/sap/ui/core/support/support.html +1 -1
- package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +15 -1
- package/src/sap/ui/core/themes/base/base.less +4 -4
- package/src/sap/ui/core/themes/base/global.less +2 -0
- package/src/sap/ui/core/themes/sap_hcb/global.less +2 -0
- 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 +2 -2
- 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 +7 -8
- 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/ClientListBinding.js +127 -21
- 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/ListBinding.js +32 -13
- 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/_Helper.js +3 -1
- package/src/sap/ui/model/json/JSONListBinding.js +0 -58
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageListBinding.js +0 -42
- 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/OperationMode.js +6 -0
- 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 -2
- 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/type/UnitMixin.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +13 -4
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +107 -34
- package/src/sap/ui/model/odata/v2/ODataModel.js +70 -22
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +8 -4
- package/src/sap/ui/model/odata/v4/Context.js +25 -1
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +55 -26
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +13 -6
- package/src/sap/ui/model/odata/v4/ODataModel.js +111 -5
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +74 -74
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +109 -39
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +60 -29
- 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/XMLListBinding.js +0 -53
- 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/actions/Action.js +3 -3
- package/src/sap/ui/test/actions/Press.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/ui5.yaml +1 -1
|
@@ -8,10 +8,10 @@ sap.ui.define([], function() {
|
|
|
8
8
|
"use strict";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Static collection of utility functions to handle
|
|
11
|
+
* Static collection of utility functions to handle time zone related conversions
|
|
12
12
|
*
|
|
13
13
|
* @author SAP SE
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.102.2
|
|
15
15
|
* @namespace
|
|
16
16
|
* @alias sap.ui.core.format.TimezoneUtil
|
|
17
17
|
* @private
|
|
@@ -19,8 +19,20 @@ sap.ui.define([], function() {
|
|
|
19
19
|
*/
|
|
20
20
|
var TimezoneUtil = {};
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Cache for the (browser's) local IANA timezone ID
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
*/
|
|
22
27
|
var sLocalTimezone = "";
|
|
23
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Cache for valid time zones provided by <code>Intl.supportedValuesOf("timeZone")</code>
|
|
31
|
+
*
|
|
32
|
+
* @type {Array}
|
|
33
|
+
*/
|
|
34
|
+
var aSupportedTimezoneIDs;
|
|
35
|
+
|
|
24
36
|
/**
|
|
25
37
|
* Cache for Intl.DateTimeFormat instances
|
|
26
38
|
*/
|
|
@@ -68,11 +80,17 @@ sap.ui.define([], function() {
|
|
|
68
80
|
};
|
|
69
81
|
|
|
70
82
|
/**
|
|
71
|
-
* Uses the <code>Intl.
|
|
72
|
-
* IANA timezone ID.
|
|
83
|
+
* Uses the <code>Intl.supportedValuesOf('timeZone')</code> and <code>Intl.DateTimeFormat</code>
|
|
84
|
+
* API to check if the browser can handle the given IANA timezone ID.
|
|
85
|
+
* <code>Intl.supportedValuesOf('timeZone')</code> offers direct access to the list of supported
|
|
86
|
+
* time zones. It is not yet supported by all browsers but if it is supported and the given time
|
|
87
|
+
* zone is in the list it is faster than probing.
|
|
88
|
+
*
|
|
89
|
+
* <code>Intl.supportedValuesOf('timeZone')</code> does not return all IANA timezone IDs which
|
|
90
|
+
* the <code>Intl.DateTimeFormat</code> can handle, e.g. "Japan", "Etc/UTC".
|
|
73
91
|
*
|
|
74
92
|
* @param {string} sTimezone The IANA timezone ID which is checked, e.g <code>"Europe/Berlin"</code>
|
|
75
|
-
* @returns {boolean} Whether the
|
|
93
|
+
* @returns {boolean} Whether the time zone is a valid IANA timezone ID
|
|
76
94
|
* @private
|
|
77
95
|
* @ui5-restricted sap.ui.core.Configuration, sap.ui.core.format.DateFormat
|
|
78
96
|
*/
|
|
@@ -81,6 +99,19 @@ sap.ui.define([], function() {
|
|
|
81
99
|
return false;
|
|
82
100
|
}
|
|
83
101
|
|
|
102
|
+
if (Intl.supportedValuesOf) {
|
|
103
|
+
try {
|
|
104
|
+
aSupportedTimezoneIDs = aSupportedTimezoneIDs || Intl.supportedValuesOf('timeZone');
|
|
105
|
+
if (aSupportedTimezoneIDs.includes(sTimezone)) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
// although not contained in the supportedValues it still can be valid, therefore continue
|
|
109
|
+
} catch (oError) {
|
|
110
|
+
// ignore error
|
|
111
|
+
aSupportedTimezoneIDs = [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
84
115
|
try {
|
|
85
116
|
oIntlDateTimeFormatCache.get(sTimezone);
|
|
86
117
|
return true;
|
|
@@ -90,19 +121,19 @@ sap.ui.define([], function() {
|
|
|
90
121
|
};
|
|
91
122
|
|
|
92
123
|
/**
|
|
93
|
-
* Converts a date to a specific
|
|
94
|
-
* The resulting date reflects the given
|
|
95
|
-
* can be used, e.g. Date#getUTCHours() to display the hours in the given
|
|
124
|
+
* Converts a date to a specific time zone.
|
|
125
|
+
* The resulting date reflects the given time zone such that the "UTC" Date methods
|
|
126
|
+
* can be used, e.g. Date#getUTCHours() to display the hours in the given time zone.
|
|
96
127
|
*
|
|
97
128
|
* @example
|
|
98
129
|
* var oDate = new Date("2021-10-13T15:22:33Z"); // UTC
|
|
99
|
-
* //
|
|
130
|
+
* // time zone difference UTC-4 (DST)
|
|
100
131
|
* TimezoneUtil.convertToTimezone(oDate, "America/New_York");
|
|
101
132
|
* // 2021-10-13 11:22:33 in America/New_York
|
|
102
133
|
*
|
|
103
134
|
* @param {Date} oDate The date which should be converted.
|
|
104
135
|
* @param {string} sTargetTimezone The target IANA timezone ID, e.g <code>"Europe/Berlin"</code>
|
|
105
|
-
* @returns {Date} The new date in the target
|
|
136
|
+
* @returns {Date} The new date in the target time zone.
|
|
106
137
|
* @private
|
|
107
138
|
* @ui5-restricted sap.ui.core.format.DateFormat, sap.ui.unified, sap.m
|
|
108
139
|
*/
|
|
@@ -112,7 +143,7 @@ sap.ui.define([], function() {
|
|
|
112
143
|
};
|
|
113
144
|
|
|
114
145
|
/**
|
|
115
|
-
* Uses the <code>Intl.DateTimeFormat</code> API to convert a date to a specific
|
|
146
|
+
* Uses the <code>Intl.DateTimeFormat</code> API to convert a date to a specific time zone.
|
|
116
147
|
*
|
|
117
148
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts
|
|
118
149
|
* @param {Date} oDate The date which should be converted.
|
|
@@ -127,7 +158,7 @@ sap.ui.define([], function() {
|
|
|
127
158
|
* era: string,
|
|
128
159
|
* fractionalSecond: string,
|
|
129
160
|
* timeZoneName: string
|
|
130
|
-
* }} An object containing the date and time fields considering the target
|
|
161
|
+
* }} An object containing the date and time fields considering the target time zone.
|
|
131
162
|
* @private
|
|
132
163
|
*/
|
|
133
164
|
TimezoneUtil._getParts = function(oDate, sTargetTimezone) {
|
|
@@ -186,7 +217,7 @@ sap.ui.define([], function() {
|
|
|
186
217
|
};
|
|
187
218
|
|
|
188
219
|
/**
|
|
189
|
-
* Gets the offset to UTC in seconds for a given date in the
|
|
220
|
+
* Gets the offset to UTC in seconds for a given date in the time zone specified.
|
|
190
221
|
*
|
|
191
222
|
* For non-unique points in time, the daylight saving time takes precedence over the standard
|
|
192
223
|
* time shortly after the switch back (e.g. clock gets set back 1 hour, duplicate hour).
|
|
@@ -200,7 +231,7 @@ sap.ui.define([], function() {
|
|
|
200
231
|
* // => -7200 seconds (-2 * 60 * 60 seconds)
|
|
201
232
|
*
|
|
202
233
|
* // daylight saving time (2018 Sun, 25 Mar, 02:00 CET → CEST +1 hour (DST start) UTC+2h)
|
|
203
|
-
* // the given date is taken as it is in the
|
|
234
|
+
* // the given date is taken as it is in the time zone
|
|
204
235
|
* TimezoneUtil.calculateOffset(new Date("2018-03-25T00:00:00Z"), "Europe/Berlin");
|
|
205
236
|
* // => -3600 seconds (-1 * 60 * 60 seconds), interpreted as: 2018-03-25 00:00:00 (CET)
|
|
206
237
|
*
|
|
@@ -211,9 +242,9 @@ sap.ui.define([], function() {
|
|
|
211
242
|
* TimezoneUtil.calculateOffset(oHistoricalDate, "Europe/Berlin");
|
|
212
243
|
* // => -3208 seconds (-3208 seconds)
|
|
213
244
|
*
|
|
214
|
-
* @param {Date} oDate The date in the
|
|
245
|
+
* @param {Date} oDate The date in the time zone used to calculate the offset to UTC.
|
|
215
246
|
* @param {string} sTimezoneSource The source IANA timezone ID, e.g <code>"Europe/Berlin"</code>
|
|
216
|
-
* @returns {number} The difference to UTC between the date in the
|
|
247
|
+
* @returns {number} The difference to UTC between the date in the time zone.
|
|
217
248
|
* @private
|
|
218
249
|
* @ui5-restricted sap.ui.core.format.DateFormat
|
|
219
250
|
*/
|
|
@@ -244,5 +275,6 @@ sap.ui.define([], function() {
|
|
|
244
275
|
return sLocalTimezone;
|
|
245
276
|
};
|
|
246
277
|
|
|
278
|
+
|
|
247
279
|
return TimezoneUtil;
|
|
248
280
|
});
|
|
@@ -398,7 +398,7 @@ sap.ui.define([
|
|
|
398
398
|
* @see {@link topic:6322164936f047de941ec522b95d7b70 Hyphenation for Text Controls}
|
|
399
399
|
* @extends sap.ui.base.ManagedObject
|
|
400
400
|
* @author SAP SE
|
|
401
|
-
* @version 1.
|
|
401
|
+
* @version 1.102.2
|
|
402
402
|
* @hideconstructor
|
|
403
403
|
* @public
|
|
404
404
|
* @since 1.60
|
|
@@ -25,13 +25,13 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.core
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.102.2
|
|
29
29
|
* @since 0.8
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
32
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
33
33
|
name : "sap.ui.core",
|
|
34
|
-
version: "1.
|
|
34
|
+
version: "1.102.2",
|
|
35
35
|
designtime: "sap/ui/core/designtime/library.designtime",
|
|
36
36
|
types: [
|
|
37
37
|
|
|
@@ -1509,7 +1509,7 @@ sap.ui.define([
|
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Sort order of a column.
|
|
1511
1511
|
*
|
|
1512
|
-
* @version 1.
|
|
1512
|
+
* @version 1.102.2
|
|
1513
1513
|
* @enum {string}
|
|
1514
1514
|
* @public
|
|
1515
1515
|
* @since 1.61.0
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.base.Object
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.102.2
|
|
39
39
|
*
|
|
40
40
|
* @param {object} [mParameters] a map which contains the following parameter properties:
|
|
41
41
|
* @param {string} [mParameters.id] The message id: will be generated if no id is set
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] initial settings for the new control
|
|
28
28
|
*
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.102.2
|
|
31
31
|
* @deprecated Since 1.90. Instead use {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed Views}
|
|
32
32
|
* by defining the view class with {@link sap.ui.core.mvc.View.extend View.extend} and
|
|
33
33
|
* creating the view instances with {@link sap.ui.core.mvc.View.create View.create}.
|
|
@@ -206,7 +206,7 @@ sap.ui.define([
|
|
|
206
206
|
Log.warning(
|
|
207
207
|
"Do not use deprecated sap.ui.core.mvc.JSView: (View: " + (mSettings.id || mSettings.viewName) + "). " +
|
|
208
208
|
"Use typed views defined by 'sap.ui.core.mvc.View.extend()' and created by 'sap.ui.core.mvc.View.create()'. " +
|
|
209
|
-
"For further information, have a look at https://
|
|
209
|
+
"For further information, have a look at https://openui5.hana.ondemand.com/topic/e6bb33d076dc4f23be50c082c271b9f0.",
|
|
210
210
|
"sap.ui.core.mvc.JSView",
|
|
211
211
|
null,
|
|
212
212
|
function () {
|
|
@@ -29,7 +29,7 @@ function(View, TemplateViewRenderer, ViewType, Log) {
|
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.102.2
|
|
33
33
|
*
|
|
34
34
|
* @public
|
|
35
35
|
* @deprecated Since version 1.56.0, use {@link sap.ui.core.mvc.XMLView} in combination with
|
|
@@ -145,7 +145,7 @@ sap.ui.define([
|
|
|
145
145
|
* The default implementation of this method returns <code>false</code>.
|
|
146
146
|
*
|
|
147
147
|
* @extends sap.ui.core.Control
|
|
148
|
-
* @version 1.
|
|
148
|
+
* @version 1.102.2
|
|
149
149
|
*
|
|
150
150
|
* @public
|
|
151
151
|
* @alias sap.ui.core.mvc.View
|
|
@@ -183,6 +183,7 @@ sap.ui.define([
|
|
|
183
183
|
*/
|
|
184
184
|
displayBlock : {type : "boolean", group : "Appearance", defaultValue : false}
|
|
185
185
|
},
|
|
186
|
+
defaultAggregation: "content",
|
|
186
187
|
aggregations : {
|
|
187
188
|
|
|
188
189
|
/**
|
|
@@ -95,11 +95,6 @@ sap.ui.define([
|
|
|
95
95
|
* destroy</code> method. All functions can be called but may not work properly or lead to unexpected side effects.
|
|
96
96
|
*
|
|
97
97
|
* <strong>Note:</strong><br>
|
|
98
|
-
* On root level, you can only define content for the default aggregation, e.g. without adding the <code><content></code> tag. If
|
|
99
|
-
* you want to specify content for another aggregation of a view like <code>dependents</code>, place it in a child
|
|
100
|
-
* control's dependents aggregation or add it by using {@link sap.ui.core.mvc.XMLView#addDependent}.
|
|
101
|
-
*
|
|
102
|
-
* <strong>Note:</strong><br>
|
|
103
98
|
* The XML view offers special handling for context binding and style classes.
|
|
104
99
|
* You can specify them via the <code>binding</code> and <code>class</code> attributes on a control's XML node.
|
|
105
100
|
* Please be aware that these attributes are not properties of the respective controls and thus
|
|
@@ -107,8 +102,12 @@ sap.ui.define([
|
|
|
107
102
|
* For more information, see {@link topic:91f05e8b6f4d1014b6dd926db0e91070 Context Binding (Element Binding)}
|
|
108
103
|
* and {@link topic:b564935324f449209354c7e2f9903f22 Using CSS Style Sheets in XML Views}.
|
|
109
104
|
*
|
|
105
|
+
* <strong>Note:</strong><br>
|
|
106
|
+
* When the content aggregation of this control is bound, no HTML markup is allowed in the binding template of the
|
|
107
|
+
* bound content aggregation. An error will be thrown when the above combination is detected.
|
|
108
|
+
*
|
|
110
109
|
* @extends sap.ui.core.mvc.View
|
|
111
|
-
* @version 1.
|
|
110
|
+
* @version 1.102.2
|
|
112
111
|
*
|
|
113
112
|
* @public
|
|
114
113
|
* @alias sap.ui.core.mvc.XMLView
|
|
@@ -527,18 +526,11 @@ sap.ui.define([
|
|
|
527
526
|
}
|
|
528
527
|
|
|
529
528
|
// extract the properties of the view from the XML element
|
|
530
|
-
if (
|
|
531
|
-
//
|
|
532
|
-
|
|
533
|
-
//
|
|
534
|
-
XMLTemplateProcessor.parseViewAttributes(xContent, that
|
|
535
|
-
if (!mSettings.async) {
|
|
536
|
-
// extend mSettings which get applied implicitly during view constructor
|
|
537
|
-
Object.assign(mSettings, mSettingsFromXML);
|
|
538
|
-
} else {
|
|
539
|
-
// apply the settings from the loaded view source via an explicit call
|
|
540
|
-
that.applySettings(mSettingsFromXML);
|
|
541
|
-
}
|
|
529
|
+
if (!that.isSubView()) {
|
|
530
|
+
// extract the internal settings from the XML and set on the view. The standard properties, event
|
|
531
|
+
// handler, aggregation and association will be extracted during parsing the content and applied to the
|
|
532
|
+
// view instance by calling "applySettings"
|
|
533
|
+
XMLTemplateProcessor.parseViewAttributes(xContent, that);
|
|
542
534
|
} else {
|
|
543
535
|
// when used as fragment: prevent connection to controller, only top level XMLView must connect
|
|
544
536
|
delete mSettings.controller;
|
|
@@ -679,7 +671,7 @@ sap.ui.define([
|
|
|
679
671
|
View.prototype.exit.apply(this, arguments);
|
|
680
672
|
};
|
|
681
673
|
|
|
682
|
-
XMLView.prototype.onControllerConnected = function(oController) {
|
|
674
|
+
XMLView.prototype.onControllerConnected = function(oController, mSettings) {
|
|
683
675
|
var that = this;
|
|
684
676
|
// unset any preprocessors (e.g. from an enclosing JSON view)
|
|
685
677
|
|
|
@@ -694,7 +686,7 @@ sap.ui.define([
|
|
|
694
686
|
|
|
695
687
|
// parse the XML tree
|
|
696
688
|
if (!this.oAsyncState) {
|
|
697
|
-
this._aParsedContent = fnRunWithPreprocessor(XMLTemplateProcessor.parseTemplate.bind(null, this._xContent, this));
|
|
689
|
+
this._aParsedContent = fnRunWithPreprocessor(XMLTemplateProcessor.parseTemplate.bind(null, this._xContent, this, mSettings));
|
|
698
690
|
} else {
|
|
699
691
|
var fnDone = Interaction.notifyAsyncStep("VIEW PROCESSING");
|
|
700
692
|
return XMLTemplateProcessor.parseTemplatePromise(this._xContent, this, true, {
|
|
@@ -63,7 +63,6 @@ sap.ui.define([
|
|
|
63
63
|
apiVersion: 2
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
|
|
67
66
|
/**
|
|
68
67
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
69
68
|
*
|
|
@@ -71,79 +70,99 @@ sap.ui.define([
|
|
|
71
70
|
* @param {sap.ui.core.mvc.XMLView} oControl an object representation of the control that should be rendered
|
|
72
71
|
*/
|
|
73
72
|
XMLViewRenderer.render = function(rm, oControl) {
|
|
73
|
+
function writeRootOpenTag(bPreserve) {
|
|
74
|
+
rm.openStart("div", oControl);
|
|
75
|
+
rm.class("sapUiView");
|
|
76
|
+
rm.class("sapUiXMLView");
|
|
77
|
+
ViewRenderer.addDisplayClass(rm, oControl);
|
|
78
|
+
if (bPreserve) {
|
|
79
|
+
rm.attr("data-sap-ui-preserve", oControl.getId());
|
|
80
|
+
}
|
|
81
|
+
rm.style("width", oControl.getWidth());
|
|
82
|
+
rm.style("height", oControl.getHeight());
|
|
83
|
+
rm.openEnd();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function writeRootCloseTag() {
|
|
87
|
+
rm.close("div");
|
|
88
|
+
}
|
|
89
|
+
|
|
74
90
|
// write the HTML into the render manager
|
|
75
|
-
var aParsedContent = oControl._aParsedContent;
|
|
76
|
-
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
rm.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
var aParsedContent = oControl._aParsedContent, i;
|
|
92
|
+
|
|
93
|
+
if (oControl.isBound("content")) {
|
|
94
|
+
writeRootOpenTag();
|
|
95
|
+
|
|
96
|
+
var aContent = oControl.getContent();
|
|
97
|
+
for (i = 0; i < aContent.length; i++) {
|
|
98
|
+
rm.renderControl(aContent[i]);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
writeRootCloseTag();
|
|
102
|
+
} else {
|
|
103
|
+
var $oldContent = oControl._$oldContent = RenderManager.findPreservedContent(oControl.getId());
|
|
104
|
+
if ($oldContent.length === 0) {
|
|
105
|
+
// Log.debug("rendering " + oControl + " anew");
|
|
106
|
+
var bSubView = oControl.isSubView();
|
|
107
|
+
if (!bSubView) {
|
|
86
108
|
// do not preserve when rendering initially in async mode
|
|
87
|
-
|
|
109
|
+
writeRootOpenTag(!oControl.oAsyncState || !oControl.oAsyncState.suppressPreserve /* bPreserve */);
|
|
88
110
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
rm.class("sapUiHidden");
|
|
108
|
-
rm.openEnd();
|
|
109
|
-
rm.close("div");
|
|
111
|
+
if (aParsedContent) {
|
|
112
|
+
for (i = 0; i < aParsedContent.length; i++) {
|
|
113
|
+
var vRmInfo = aParsedContent[i];
|
|
114
|
+
// apply RenderManagerAPI calls which might have been recorded during XML processing for all encountered HTML elements in an XMLView
|
|
115
|
+
if (Array.isArray(vRmInfo)) {
|
|
116
|
+
rm[vRmInfo[0]].apply(rm, vRmInfo[1]);
|
|
117
|
+
} else if (!vRmInfo._isExtensionPoint) {
|
|
118
|
+
// XMLView ExtensionPoint placeholder
|
|
119
|
+
// we need to ignore these placeholders during rendering, they will be resolved asynchronously later by the flexibility provider
|
|
120
|
+
// plain UI5 Control
|
|
121
|
+
rm.renderControl(vRmInfo);
|
|
122
|
+
// when the child control did not render anything, we add a placeholder to know where to render the child later
|
|
123
|
+
if ( !vRmInfo.bOutput ) {
|
|
124
|
+
rm.openStart("div", PREFIX_DUMMY + vRmInfo.getId());
|
|
125
|
+
rm.class("sapUiHidden");
|
|
126
|
+
rm.openEnd();
|
|
127
|
+
rm.close("div");
|
|
128
|
+
}
|
|
110
129
|
}
|
|
111
130
|
}
|
|
112
131
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
132
|
+
if (!bSubView) {
|
|
133
|
+
writeRootCloseTag();
|
|
134
|
+
}
|
|
117
135
|
|
|
118
|
-
|
|
136
|
+
} else {
|
|
119
137
|
|
|
120
|
-
|
|
121
|
-
|
|
138
|
+
// render dummy control for early after rendering notification
|
|
139
|
+
rm.renderControl(oControl.oAfterRenderingNotifier);
|
|
122
140
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
// preserve mode: render a temporary element and all child controls
|
|
142
|
+
rm.openStart("div", PREFIX_TEMPORARY + oControl.getId());
|
|
143
|
+
rm.class("sapUiHidden");
|
|
144
|
+
rm.openEnd();
|
|
145
|
+
for (i = 0; i < aParsedContent.length; i++) {
|
|
146
|
+
var vFragment = aParsedContent[i];
|
|
147
|
+
// if the parsed content does not have a corresponding _renderManagerAPICall, it's a control
|
|
148
|
+
if (!Array.isArray(vFragment) && !vFragment._isExtensionPoint) {
|
|
149
|
+
// render DOM string for child control
|
|
150
|
+
rm.renderControl(vFragment);
|
|
151
|
+
|
|
152
|
+
// replace any old DOM (or invisible placeholder) for a child control with a dummy placeholder
|
|
153
|
+
var sFragmentId = vFragment.getId(),
|
|
154
|
+
$fragment = jQuery(document.getElementById(sFragmentId));
|
|
155
|
+
if ($fragment.length == 0) {
|
|
156
|
+
$fragment = jQuery(document.getElementById(PREFIX_INVISIBLE + sFragmentId));
|
|
157
|
+
}
|
|
158
|
+
if ( !RenderManager.isPreservedContent($fragment[0]) ) {
|
|
159
|
+
$fragment.replaceWith('<div id="' + PREFIX_DUMMY + sFragmentId + '" class="sapUiHidden"></div>');
|
|
160
|
+
}
|
|
142
161
|
}
|
|
143
162
|
}
|
|
144
|
-
|
|
145
|
-
rm.close("div");
|
|
163
|
+
rm.close("div");
|
|
146
164
|
|
|
165
|
+
}
|
|
147
166
|
}
|
|
148
167
|
};
|
|
149
168
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* feature - DO NOT USE IN PRODUCTIVE SCENARIOS!!
|
|
38
38
|
*
|
|
39
39
|
* @author Peter Muessig
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.102.2
|
|
41
41
|
* @private
|
|
42
42
|
* @alias sap.ui.core.plugin.LessSupport
|
|
43
43
|
*/
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
this.bActive = true;
|
|
103
103
|
|
|
104
104
|
// overwrite the includeLibraryTheme/applyTheme function to inject LESS
|
|
105
|
-
this.oCore.includeLibraryTheme =
|
|
106
|
-
this.oCore.applyTheme =
|
|
105
|
+
this.oCore.includeLibraryTheme = this.includeLibraryTheme.bind(this);
|
|
106
|
+
this.oCore.applyTheme = this.applyTheme.bind(this);
|
|
107
107
|
|
|
108
108
|
// update the themes (only when LESS files are newer than the CSS files)
|
|
109
109
|
var that = this, bUseLess = false;
|
|
@@ -295,7 +295,7 @@ sap.ui.define([
|
|
|
295
295
|
that.addRoute(oRouteConfig);
|
|
296
296
|
});
|
|
297
297
|
|
|
298
|
-
this._oRouter.bypassed.add(
|
|
298
|
+
this._oRouter.bypassed.add(this._onBypassed.bind(this));
|
|
299
299
|
|
|
300
300
|
if (!oRouterHashChanger) {
|
|
301
301
|
oRouterHashChanger = HashChanger.getInstance().createRouterHashChanger();
|