@openui5/sap.ui.core 1.98.0 → 1.101.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/.eslintrc.json +33 -1
- package/THIRDPARTY.txt +6 -6
- package/package.json +1 -1
- package/src/jquery.sap.global.js +6 -3
- package/src/jquery.sap.mobile.js +29 -11
- 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/Log.js +1 -1
- package/src/sap/base/strings/whitespaceReplacer.js +1 -1
- package/src/sap/base/util/LoaderExtensions.js +1 -10
- package/src/sap/base/util/UriParameters.js +2 -2
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/VersionInfo.js +13 -10
- package/src/sap/ui/base/BindingParser.js +34 -7
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/ExpressionParser.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +32 -22
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/ManagedObjectObserver.js +2 -0
- package/src/sap/ui/base/ManagedObjectRegistry.js +10 -5
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +24 -20
- 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 +80 -11
- package/src/sap/ui/core/Control.js +2 -1
- package/src/sap/ui/core/Core.js +29 -12
- 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 +4 -7
- 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 +6 -1
- package/src/sap/ui/core/FocusHandler.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/HTMLRenderer.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +17 -3
- package/src/sap/ui/core/IconRenderer.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 +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 +9 -2
- 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/LocalBusyIndicatorRenderer.js +2 -2
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +73 -6
- package/src/sap/ui/core/Manifest.js +5 -3
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Patcher.js +6 -4
- package/src/sap/ui/core/Popup.js +11 -8
- 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/ScrollBarRenderer.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +27 -26
- package/src/sap/ui/core/_IconRegistry.js +13 -3
- package/src/sap/ui/core/cache/CacheManager.js +1 -1
- package/src/sap/ui/core/cache/LRUPersistentCache.js +2 -1
- package/src/sap/ui/core/cldr/en_AU.json +1 -1
- package/src/sap/ui/core/date/Buddhist.js +3 -3
- package/src/sap/ui/core/date/Japanese.js +4 -4
- package/src/sap/ui/core/date/UniversalDate.js +10 -0
- package/src/sap/ui/core/date/UniversalDateUtils.js +49 -49
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +9 -6
- package/src/sap/ui/core/dnd/DragAndDrop.js +27 -22
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -2
- 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 +3 -3
- package/src/sap/ui/core/format/DateFormat.js +670 -199
- package/src/sap/ui/core/format/DateFormatTimezoneDisplay.js +47 -0
- package/src/sap/ui/core/format/ListFormat.js +2 -2
- package/src/sap/ui/core/format/NumberFormat.js +502 -216
- package/src/sap/ui/core/format/TimezoneUtil.js +248 -0
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +220 -189
- 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.properties +2 -0
- package/src/sap/ui/core/messagebundle_ar.properties +1 -0
- package/src/sap/ui/core/messagebundle_bg.properties +6 -5
- package/src/sap/ui/core/messagebundle_ca.properties +1 -0
- package/src/sap/ui/core/messagebundle_cs.properties +1 -0
- package/src/sap/ui/core/messagebundle_cy.properties +1 -0
- package/src/sap/ui/core/messagebundle_da.properties +1 -0
- package/src/sap/ui/core/messagebundle_de.properties +2 -1
- package/src/sap/ui/core/messagebundle_el.properties +1 -0
- package/src/sap/ui/core/messagebundle_en.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_GB.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_sappsd.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +1 -0
- package/src/sap/ui/core/messagebundle_en_US_saptrc.properties +1 -0
- package/src/sap/ui/core/messagebundle_es.properties +1 -0
- package/src/sap/ui/core/messagebundle_es_MX.properties +1 -0
- package/src/sap/ui/core/messagebundle_et.properties +1 -0
- package/src/sap/ui/core/messagebundle_fi.properties +1 -0
- package/src/sap/ui/core/messagebundle_fr.properties +1 -0
- package/src/sap/ui/core/messagebundle_fr_CA.properties +1 -0
- package/src/sap/ui/core/messagebundle_hi.properties +1 -0
- package/src/sap/ui/core/messagebundle_hr.properties +1 -0
- package/src/sap/ui/core/messagebundle_hu.properties +1 -0
- package/src/sap/ui/core/messagebundle_id.properties +3 -2
- package/src/sap/ui/core/messagebundle_it.properties +1 -0
- package/src/sap/ui/core/messagebundle_iw.properties +1 -0
- package/src/sap/ui/core/messagebundle_ja.properties +1 -0
- package/src/sap/ui/core/messagebundle_kk.properties +1 -0
- package/src/sap/ui/core/messagebundle_ko.properties +2 -1
- package/src/sap/ui/core/messagebundle_lt.properties +1 -0
- package/src/sap/ui/core/messagebundle_lv.properties +2 -1
- package/src/sap/ui/core/messagebundle_ms.properties +1 -0
- package/src/sap/ui/core/messagebundle_nl.properties +1 -0
- package/src/sap/ui/core/messagebundle_no.properties +1 -0
- package/src/sap/ui/core/messagebundle_pl.properties +1 -0
- package/src/sap/ui/core/messagebundle_pt.properties +1 -0
- package/src/sap/ui/core/messagebundle_pt_PT.properties +1 -0
- package/src/sap/ui/core/messagebundle_ro.properties +1 -0
- package/src/sap/ui/core/messagebundle_ru.properties +1 -0
- package/src/sap/ui/core/messagebundle_sh.properties +1 -0
- package/src/sap/ui/core/messagebundle_sk.properties +1 -0
- package/src/sap/ui/core/messagebundle_sl.properties +1 -0
- package/src/sap/ui/core/messagebundle_sv.properties +1 -0
- package/src/sap/ui/core/messagebundle_th.properties +1 -0
- package/src/sap/ui/core/messagebundle_tr.properties +1 -0
- package/src/sap/ui/core/messagebundle_uk.properties +1 -0
- package/src/sap/ui/core/messagebundle_vi.properties +1 -0
- package/src/sap/ui/core/messagebundle_zh_CN.properties +1 -0
- package/src/sap/ui/core/messagebundle_zh_TW.properties +1 -0
- package/src/sap/ui/core/mvc/Controller.js +1 -1
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/HTMLViewRenderer.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSONViewRenderer.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/JSViewRenderer.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateViewRenderer.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/ViewRenderer.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +16 -4
- package/src/sap/ui/core/mvc/XMLViewRenderer.js +5 -2
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/Router.js +1 -1
- package/src/sap/ui/core/rules/App.support.js +6 -1
- package/src/sap/ui/core/rules/Misc.support.js +8 -3
- 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 +29 -1
- package/src/sap/ui/core/support/Support.js +3 -3
- package/src/sap/ui/core/support/controls/InteractionSlider.js +395 -407
- package/src/sap/ui/core/support/plugins/Breakpoint.js +5 -5
- package/src/sap/ui/core/support/plugins/ControlTree.js +434 -347
- package/src/sap/ui/core/support/plugins/Debugging.js +153 -129
- package/src/sap/ui/core/support/plugins/Interaction.js +71 -85
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +10 -13
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +5 -3
- package/src/sap/ui/core/support/plugins/Trace.js +7 -7
- package/src/sap/ui/core/support/plugins/ViewInfo.js +84 -22
- package/src/sap/ui/core/support/support.css +23 -23
- package/src/sap/ui/core/support/support.html +4 -6
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +1 -1
- package/src/sap/ui/core/themes/base/CommandShortcutHints.less +1 -1
- package/src/sap/ui/core/themes/base/DragAndDrop.less +3 -3
- package/src/sap/ui/core/themes/base/base.less +1524 -54
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/themes/base/global.less +169 -13
- package/src/sap/ui/core/themes/base/shared.less +1 -0
- package/src/sap/ui/core/themes/sap_hcb/global.less +164 -7
- package/src/sap/ui/core/theming/Parameters.js +1 -1
- 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 +20 -17
- package/src/sap/ui/core/util/PasteHelper.js +5 -5
- package/src/sap/ui/core/util/XMLPreprocessor.js +17 -4
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/LogViewer.js +2 -2
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/dom/includeStylesheet.js +8 -3
- package/src/sap/ui/events/jquery/EventExtension.js +1 -1
- package/src/sap/ui/model/Binding.js +4 -3
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +1 -1
- package/src/sap/ui/model/CompositeBinding.js +4 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +13 -1
- package/src/sap/ui/model/ContextBinding.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -2
- package/src/sap/ui/model/Model.js +10 -7
- 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 +24 -0
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +30 -15
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +2 -1
- package/src/sap/ui/model/base/ManagedObjectModel.js +9 -7
- package/src/sap/ui/model/json/JSONListBinding.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +15 -8
- package/src/sap/ui/model/json/JSONPropertyBinding.js +1 -1
- package/src/sap/ui/model/message/MessageListBinding.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/message/MessagePropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataListBinding.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 +3 -3
- package/src/sap/ui/model/odata/ODataModel.js +2 -2
- package/src/sap/ui/model/odata/ODataPropertyBinding.js +3 -1
- package/src/sap/ui/model/odata/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +5 -4
- package/src/sap/ui/model/odata/ODataUtils.js +7 -9
- 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 +349 -0
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +69 -5
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +8 -4
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +215 -78
- package/src/sap/ui/model/odata/v2/ODataModel.js +283 -80
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +6 -4
- package/src/sap/ui/model/odata/v4/AnnotationHelper.js +16 -17
- package/src/sap/ui/model/odata/v4/Context.js +117 -76
- package/src/sap/ui/model/odata/v4/ODataBinding.js +62 -37
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +157 -169
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +451 -262
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +91 -63
- package/src/sap/ui/model/odata/v4/ODataModel.js +478 -250
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +74 -83
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +65 -61
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +61 -6
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +15 -0
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +336 -86
- package/src/sap/ui/model/odata/v4/lib/_ConcatHelper.js +5 -13
- package/src/sap/ui/model/odata/v4/lib/_GroupLock.js +16 -0
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +13 -6
- package/src/sap/ui/model/odata/v4/lib/_MetadataConverter.js +2 -2
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +233 -26
- 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/resource/ResourcePropertyBinding.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 +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/model/xml/XMLPropertyBinding.js +1 -1
- package/src/sap/ui/performance/trace/FESR.js +1 -1
- package/src/sap/ui/performance/trace/FESRHelper.js +72 -0
- package/src/sap/ui/performance/trace/Interaction.js +6 -2
- package/src/sap/ui/performance/trace/Passport.js +3 -3
- package/src/sap/ui/qunit/qunit-2-css.js +4 -4
- package/src/sap/ui/qunit/qunit-css.js +4 -4
- 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/BranchTracking.js +1 -0
- package/src/sap/ui/test/Opa5.js +10 -6
- package/src/sap/ui/test/OpaBuilder.js +7 -7
- package/src/sap/ui/test/TestUtils.js +11 -0
- package/src/sap/ui/test/_UsageReport.js +1 -1
- package/src/sap/ui/test/generic/GenericTestCollection.js +176 -0
- package/src/sap/ui/test/generic/TestBase.js +151 -0
- package/src/sap/ui/test/generic/Utils.js +284 -0
- package/src/sap/ui/test/gherkin/opa5TestHarness.js +14 -5
- package/src/sap/ui/test/opaQunit.js +11 -10
- package/src/sap/ui/test/selectors/_ControlSelectorGenerator.js +9 -8
- package/src/sap/ui/test/selectors/_ControlSelectorValidator.js +1 -1
- package/src/sap/ui/test/starter/_setupAndStart.js +4 -0
- package/src/sap/ui/thirdparty/IPv6.js +1 -1
- package/src/sap/ui/thirdparty/SecondLevelDomains.js +1 -1
- package/src/sap/ui/thirdparty/URI.js +7 -3
- package/src/sap/ui/thirdparty/URITemplate.js +1 -1
- package/src/sap/ui/thirdparty/jqueryui/jquery-ui-datepicker.js +143 -3
- package/src/sap/ui/thirdparty/jqueryui/jquery-ui-position.js +8 -1
- package/src/sap/ui/thirdparty/jszip.js +17 -7
- package/src/sap/ui/thirdparty/mobify-carousel.js +1 -1
- package/src/sap/ui/util/Mobile.js +17 -0
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader.js +9 -5
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* With this plugIn the performance measurements are displayed
|
|
39
39
|
*
|
|
40
40
|
* @extends sap.ui.core.support.Plugin
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.101.0
|
|
42
42
|
* @private
|
|
43
43
|
* @alias sap.ui.core.support.plugins.Interaction
|
|
44
44
|
*/
|
|
@@ -104,93 +104,81 @@ sap.ui.define([
|
|
|
104
104
|
function initInTools(oSupportStub) {
|
|
105
105
|
|
|
106
106
|
var rm = sap.ui.getCore().createRenderManager();
|
|
107
|
-
rm.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
rm.
|
|
120
|
-
|
|
121
|
-
rm.
|
|
122
|
-
rm.
|
|
123
|
-
|
|
124
|
-
rm.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
107
|
+
rm.openStart("div").class("sapUiSupportToolbar").openEnd();
|
|
108
|
+
rm.openStart("button", this.getId() + "-record").class("sapUiSupportIntToggleRecordingBtn").openEnd().close("button");
|
|
109
|
+
rm.openStart("label").class("sapUiSupportIntODataLbl").openEnd();
|
|
110
|
+
rm.voidStart("input", this.getId() + "-odata").attr("type", "checkbox").voidEnd();
|
|
111
|
+
rm.text("Enable OData Statistics");
|
|
112
|
+
rm.close("label");
|
|
113
|
+
rm.openStart("div").class("sapUiSupportIntFupInputMask").openEnd();
|
|
114
|
+
rm.voidStart("input", this.getId() + "-fileImport").attr("tabindex", "-1").attr("size", "1").attr("accept", "application/zip").attr("type", "file").voidEnd();
|
|
115
|
+
rm.close("div");
|
|
116
|
+
rm.openStart("button", this.getId() + "-import").class("sapUiSupportIntImportExportBtn").class("sapUiSupportIntImportBtn").class("sapUiSupportRoundedButton").openEnd().text("Import").close("button");
|
|
117
|
+
rm.openStart("button", this.getId() + "-export").class("sapUiSupportIntImportExportBtn").class("sapUiSupportIntExportBtn").class("sapUiSupportRoundedButton").class("sapUiSupportIntHidden").openEnd().text("Export").close("button");
|
|
118
|
+
rm.openStart("span", this.getId() + "-info").class("sapUiSupportIntRecordingInfo").openEnd().close("span");
|
|
119
|
+
rm.close("div");
|
|
120
|
+
|
|
121
|
+
rm.openStart("div").class("sapUiSupportInteractionCntnt").openEnd();
|
|
122
|
+
rm.close("div");
|
|
123
|
+
|
|
124
|
+
rm.openStart("div").class("sapUiPerformanceStatsDiv").class("sapUiSupportIntHidden").openEnd();
|
|
125
|
+
rm.openStart("div").class("sapUiPerformanceTimeline").openEnd().close("div");
|
|
126
|
+
rm.openStart("div").class("sapUiPerformanceTop").openEnd();
|
|
127
|
+
rm.close("div");
|
|
128
|
+
|
|
129
|
+
rm.openStart("div").class("sapUiPerformanceBottom").openEnd();
|
|
130
|
+
rm.close("div");
|
|
131
|
+
|
|
132
|
+
rm.close("div");
|
|
133
|
+
|
|
134
|
+
rm.flush(this.dom());
|
|
130
135
|
rm.destroy();
|
|
131
136
|
|
|
132
137
|
// render timeline
|
|
133
138
|
rm = sap.ui.getCore().createRenderManager();
|
|
134
139
|
this._oTimelineOverview.render(rm);
|
|
135
|
-
rm.flush(this
|
|
140
|
+
rm.flush(this.dom('.sapUiPerformanceStatsDiv .sapUiPerformanceTimeline'));
|
|
136
141
|
rm.destroy();
|
|
137
142
|
|
|
138
143
|
// render interaction slider
|
|
139
144
|
rm = sap.ui.getCore().createRenderManager();
|
|
140
145
|
this._oInteractionSlider.render(rm);
|
|
141
|
-
rm.flush(this
|
|
146
|
+
rm.flush(this.dom('.sapUiPerformanceStatsDiv .sapUiPerformanceTop'));
|
|
142
147
|
rm.destroy();
|
|
143
148
|
this._oInteractionSlider._registerEventListeners();
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
that._oInteractionTree.setRange(arg1, arg2);
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
this.$("refresh").on("click", jQuery.proxy(function(oEvent) {
|
|
151
|
-
this._oStub.sendEvent(this.getId() + "Refresh");
|
|
152
|
-
}, this));
|
|
153
|
-
this.$("clear").on("click", jQuery.proxy(function(oEvent) {
|
|
154
|
-
this._oStub.sendEvent(this.getId() + "Clear");
|
|
155
|
-
}, this));
|
|
149
|
+
this.$().find(".sapUiPerformanceTop").on("InteractionSliderChange", {}, function( event, arg1, arg2 ) {
|
|
150
|
+
this._oInteractionTree.setRange(arg1, arg2);
|
|
151
|
+
}.bind(this));
|
|
156
152
|
|
|
157
|
-
this
|
|
153
|
+
this.dom("export").addEventListener("click", function(oEvent) {
|
|
158
154
|
//this._oStub.sendEvent(this.getId() + "Export");
|
|
159
155
|
this.onsapUiSupportInteractionExport();
|
|
160
|
-
}
|
|
161
|
-
this
|
|
156
|
+
}.bind(this));
|
|
157
|
+
this.dom("fileImport").addEventListener("change", function(oEvent) {
|
|
162
158
|
this.onsapUiSupportInteractionImport();
|
|
163
159
|
//this._oStub.sendEvent(this.getId() + "Import");
|
|
164
|
-
}
|
|
165
|
-
this
|
|
166
|
-
|
|
167
|
-
if (this.$("active").prop("checked")) {
|
|
168
|
-
bActive = true;
|
|
169
|
-
}
|
|
170
|
-
this._oStub.sendEvent(this.getId() + "Activate", {"active": bActive});
|
|
171
|
-
}, this));
|
|
172
|
-
this.$("odata").attr('checked',this._bODATA_Stats_On).on("click", jQuery.proxy(function(oEvent) {
|
|
160
|
+
}.bind(this));
|
|
161
|
+
this.dom("odata").checked = this._bODATA_Stats_On;
|
|
162
|
+
this.dom("odata").addEventListener("click", function(oEvent) {
|
|
173
163
|
jQuery.sap.statistics(!jQuery.sap.statistics());
|
|
174
|
-
}
|
|
175
|
-
|
|
164
|
+
});
|
|
176
165
|
|
|
177
|
-
this.$('record').attr('data-state', (!this._bFesrActive) ? 'Start recording' : 'Stop recording');
|
|
178
166
|
|
|
179
|
-
this
|
|
180
|
-
|
|
167
|
+
this.dom('record').dataset.state = (!this._bFesrActive) ? 'Start recording' : 'Stop recording';
|
|
168
|
+
this.dom('record').addEventListener("click", function(oEvent) {
|
|
169
|
+
var oRecordButton = this.dom('record');
|
|
170
|
+
if (oRecordButton.dataset.state === 'Stop recording') {
|
|
181
171
|
this._oStub.sendEvent(this.getId() + "Refresh");
|
|
182
172
|
this._oStub.sendEvent(this.getId() + "Activate", {"active": false});
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
jQuery(".sapUiPerformanceStatsDiv").addClass("sapUiSupportIntHidden");
|
|
188
|
-
jQuery(".sapUiSupportIntExportBtn").addClass("sapUiSupportIntHidden");
|
|
173
|
+
oRecordButton.dataset.state = 'Start recording';
|
|
174
|
+
this._showPerfData();
|
|
175
|
+
} else if (this.dom('record').dataset.state === 'Start recording') {
|
|
176
|
+
this._hidePerfData();
|
|
189
177
|
this._oStub.sendEvent(this.getId() + "Clear");
|
|
190
178
|
this._oStub.sendEvent(this.getId() + "Activate", {"active": true});
|
|
191
|
-
|
|
179
|
+
oRecordButton.dataset.state = 'Stop recording';
|
|
192
180
|
}
|
|
193
|
-
}
|
|
181
|
+
}.bind(this));
|
|
194
182
|
|
|
195
183
|
}
|
|
196
184
|
|
|
@@ -246,7 +234,7 @@ sap.ui.define([
|
|
|
246
234
|
|
|
247
235
|
}
|
|
248
236
|
|
|
249
|
-
//this._oStub
|
|
237
|
+
//this._oStub.dom('record').dataset.state = (bActive) ? 'Stop recording' : 'Start recording';
|
|
250
238
|
this._oStub.sendEvent(this.getId() + "SetMeasurements", { "measurements": aMeasurements });
|
|
251
239
|
this._oStub.sendEvent(this.getId() + "SetActive", {"active": bActive});
|
|
252
240
|
}
|
|
@@ -262,8 +250,8 @@ sap.ui.define([
|
|
|
262
250
|
var oParam = oEvent.getParameter("queryString");
|
|
263
251
|
this._bFesrActive = oParam.bFesrActive;
|
|
264
252
|
this._bODATA_Stats_On = oParam.bODATA_Stats_On;
|
|
265
|
-
this
|
|
266
|
-
this
|
|
253
|
+
this.dom("odata").checked = this._bODATA_Stats_On;
|
|
254
|
+
this.dom('record').dataset.state = (!this._bFesrActive) ? 'Start recording' : 'Stop recording';
|
|
267
255
|
};
|
|
268
256
|
|
|
269
257
|
|
|
@@ -286,15 +274,6 @@ sap.ui.define([
|
|
|
286
274
|
*/
|
|
287
275
|
Interaction.prototype.onsapUiSupportInteractionSetActive = function(oEvent) {
|
|
288
276
|
|
|
289
|
-
var bActive = oEvent.getParameter("active");
|
|
290
|
-
var oCheckBox = this.$("active");
|
|
291
|
-
|
|
292
|
-
if (bActive) {
|
|
293
|
-
oCheckBox.attr("checked", "checked");
|
|
294
|
-
} else {
|
|
295
|
-
oCheckBox.removeAttr("checked");
|
|
296
|
-
}
|
|
297
|
-
|
|
298
277
|
};
|
|
299
278
|
|
|
300
279
|
/**
|
|
@@ -330,7 +309,7 @@ sap.ui.define([
|
|
|
330
309
|
*/
|
|
331
310
|
Interaction.prototype.onsapUiSupportInteractionStart = function(oEvent) {
|
|
332
311
|
|
|
333
|
-
Measurement.start(this.getId() + "-perf","Measurement by support tool");
|
|
312
|
+
Measurement.start(this.getId() + "-perf", "Measurement by support tool");
|
|
334
313
|
|
|
335
314
|
};
|
|
336
315
|
|
|
@@ -390,7 +369,7 @@ sap.ui.define([
|
|
|
390
369
|
* @private
|
|
391
370
|
*/
|
|
392
371
|
Interaction.prototype.onsapUiSupportInteractionImport = function(oEvent) {
|
|
393
|
-
var aFiles = this
|
|
372
|
+
var aFiles = this.dom("fileImport").files;
|
|
394
373
|
|
|
395
374
|
if (aFiles.length === 0) {
|
|
396
375
|
MessageToast.show('Select a file for import first!', {
|
|
@@ -506,16 +485,14 @@ sap.ui.define([
|
|
|
506
485
|
}
|
|
507
486
|
|
|
508
487
|
if (aMeasurements.length > 0) {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
this.$('info').text("Total " + requestsCount + " Requests in " + aMeasurements.length + " Interactions");
|
|
488
|
+
this._showPerfData();
|
|
489
|
+
this.dom('info').textContent = "Total " + requestsCount + " Requests in " + aMeasurements.length + " Interactions";
|
|
512
490
|
} else {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
this.$('info').text("");
|
|
491
|
+
this._hidePerfData();
|
|
492
|
+
this.dom('info').textContent = "";
|
|
516
493
|
}
|
|
517
494
|
|
|
518
|
-
var oTimelineDiv = this
|
|
495
|
+
var oTimelineDiv = this.dom('.sapUiPerformanceStatsDiv .sapUiPerformanceTimeline');
|
|
519
496
|
var rm = sap.ui.getCore().createRenderManager();
|
|
520
497
|
this._oTimelineOverview.setInteractions(aMeasurements);
|
|
521
498
|
this._oTimelineOverview.render(rm);
|
|
@@ -525,11 +502,20 @@ sap.ui.define([
|
|
|
525
502
|
this._oInteractionSlider._initSlider();
|
|
526
503
|
this._oInteractionSlider.setDuration(aMeasurements);
|
|
527
504
|
//
|
|
528
|
-
var oStatsDiv = this
|
|
505
|
+
var oStatsDiv = this.dom('.sapUiPerformanceStatsDiv .sapUiPerformanceBottom');
|
|
529
506
|
this._oInteractionTree.setInteractions(aMeasurements);
|
|
530
507
|
this._oInteractionTree.renderAt(oStatsDiv);
|
|
531
508
|
};
|
|
532
509
|
|
|
510
|
+
Interaction.prototype._showPerfData = function() {
|
|
511
|
+
this.dom(".sapUiPerformanceStatsDiv").classList.remove("sapUiSupportIntHidden");
|
|
512
|
+
this.dom("export").classList.remove("sapUiSupportIntHidden");
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
Interaction.prototype._hidePerfData = function() {
|
|
516
|
+
this.dom(".sapUiPerformanceStatsDiv").classList.add("sapUiSupportIntHidden");
|
|
517
|
+
this.dom("export").classList.add("sapUiSupportIntHidden");
|
|
518
|
+
};
|
|
533
519
|
|
|
534
520
|
return Interaction;
|
|
535
521
|
|
|
@@ -15,7 +15,7 @@ sap.ui.define(['sap/ui/core/support/Plugin', "sap/base/Log"],
|
|
|
15
15
|
* @class This class represents the LocalStorage plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
16
16
|
*
|
|
17
17
|
* @extends sap.ui.core.support.Plugin
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.101.0
|
|
19
19
|
* @private
|
|
20
20
|
* @alias sap.ui.core.support.plugins.LocalStorage
|
|
21
21
|
*/
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* With this plugIn the performance measurements are displayed
|
|
57
57
|
*
|
|
58
58
|
* @extends sap.ui.core.support.Plugin
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.101.0
|
|
60
60
|
* @private
|
|
61
61
|
* @alias sap.ui.core.support.plugins.Performance
|
|
62
62
|
*/
|
|
@@ -99,13 +99,7 @@ sap.ui.define([
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
function initInTools(oSupportStub) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
//create the initial html for the performance tool
|
|
105
|
-
rm.write(_getPerformanceToolHTML());
|
|
106
|
-
rm.flush(this.$().get(0));
|
|
107
|
-
rm.destroy();
|
|
108
|
-
|
|
102
|
+
this.$().get(0).innerHTML = _getPerformanceToolHTML();
|
|
109
103
|
//create all event listeners
|
|
110
104
|
_registerEventListeners();
|
|
111
105
|
}
|
|
@@ -349,13 +343,14 @@ sap.ui.define([
|
|
|
349
343
|
}, false);
|
|
350
344
|
|
|
351
345
|
window.addEventListener('keydown', _onArrowMove);
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
document.getElementById("slideHandle").addEventListener('dblclick', _initSlider);
|
|
347
|
+
document.getElementById("sapUiSupportPerfToggleRecordingBtn").addEventListener("click", _handlerTogglePlayButton);
|
|
348
|
+
document.getElementById("sapUiSupportPerfToggleRecordingBtn").dataset.state = 'Start recording';
|
|
354
349
|
}
|
|
355
350
|
|
|
356
351
|
/* =============================================================================================================
|
|
357
352
|
* Timeline overview
|
|
358
|
-
|
|
353
|
+
========1===================================================================================================== */
|
|
359
354
|
|
|
360
355
|
function _getTimelineOverViewBarTitle(duration, time) {
|
|
361
356
|
return 'Duration: ' + duration.toFixed(2) + ' ms.\nTime: ' + time.toFixed(2) + ' ms.';
|
|
@@ -681,8 +676,7 @@ sap.ui.define([
|
|
|
681
676
|
className = 'renderingType';
|
|
682
677
|
}
|
|
683
678
|
|
|
684
|
-
|
|
685
|
-
return encodeXML(className);
|
|
679
|
+
return className;
|
|
686
680
|
}
|
|
687
681
|
|
|
688
682
|
function _getBarColor(time) {
|
|
@@ -954,6 +948,9 @@ sap.ui.define([
|
|
|
954
948
|
}
|
|
955
949
|
|
|
956
950
|
function _calculateSliderSize() {
|
|
951
|
+
if (_sliderVars.nodes.handle == null || _sliderVars.nodes.slider == null) {
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
957
954
|
var handleComputedWidth = window.getComputedStyle(_sliderVars.nodes.handle).width;
|
|
958
955
|
var oldSliderWidth = _sliderVars.sizes.width;
|
|
959
956
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @class This class represents the selector plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
21
21
|
*
|
|
22
22
|
* @extends sap.ui.core.support.Plugin
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.101.0
|
|
24
24
|
* @private
|
|
25
25
|
* @alias sap.ui.core.support.plugins.Selector
|
|
26
26
|
*/
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides class sap.ui.core.support.plugins.TechInfo (TechInfo support plugin)
|
|
8
8
|
sap.ui.define([
|
|
9
|
+
'jquery.sap.global',
|
|
9
10
|
'sap/base/Log',
|
|
11
|
+
'sap/base/util/each',
|
|
10
12
|
'sap/base/util/isEmptyObject',
|
|
11
13
|
'sap/base/util/isPlainObject',
|
|
12
14
|
'../Plugin',
|
|
@@ -14,7 +16,7 @@ sap.ui.define([
|
|
|
14
16
|
'../ToolsAPI',
|
|
15
17
|
'sap/base/security/encodeXML'
|
|
16
18
|
],
|
|
17
|
-
function(Log, isEmptyObject, isPlainObject, Plugin, Support, ToolsAPI, encodeXML) {
|
|
19
|
+
function(jQuery, Log, each, isEmptyObject, isPlainObject, Plugin, Support, ToolsAPI, encodeXML) {
|
|
18
20
|
"use strict";
|
|
19
21
|
|
|
20
22
|
|
|
@@ -23,7 +25,7 @@ sap.ui.define([
|
|
|
23
25
|
* @class This class represents the technical info plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
24
26
|
*
|
|
25
27
|
* @extends sap.ui.core.support.Plugin
|
|
26
|
-
* @version 1.
|
|
28
|
+
* @version 1.101.0
|
|
27
29
|
* @private
|
|
28
30
|
* @alias sap.ui.core.support.plugins.TechInfo
|
|
29
31
|
*/
|
|
@@ -116,7 +118,7 @@ sap.ui.define([
|
|
|
116
118
|
}
|
|
117
119
|
multiline(html, true, true, "Loaded Libraries", oData.loadedLibraries);
|
|
118
120
|
line(html, true, true, "Loaded Modules", function(buffer){
|
|
119
|
-
|
|
121
|
+
each(oData.modules, function(i,v){
|
|
120
122
|
if (v.indexOf("sap.ui.core.support") < 0) {
|
|
121
123
|
buffer.push("<span>", encode(v), "</span>");
|
|
122
124
|
if (i < oData.modules.length - 1) {
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @class This class represents the trace plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
20
20
|
*
|
|
21
21
|
* @extends sap.ui.core.support.Plugin
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.101.0
|
|
23
23
|
* @private
|
|
24
24
|
* @alias sap.ui.core.support.plugins.Trace
|
|
25
25
|
*/
|
|
@@ -208,18 +208,18 @@ sap.ui.define([
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
function log(oPlugin, oEntry){
|
|
211
|
-
var
|
|
211
|
+
var oContentRef = oPlugin.$()[0].querySelector(".sapUiSupportTraceCntnt");
|
|
212
212
|
if (!oEntry) {
|
|
213
|
-
|
|
213
|
+
oContentRef.textContent = "";
|
|
214
214
|
oPlugin._aLogEntries = [];
|
|
215
215
|
} else if (typeof (oEntry) === "string") {
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
oContentRef.textContent = encodeXML(oEntry);
|
|
217
|
+
oContentRef.scrollTop = oContentRef.scrollHeight;
|
|
218
218
|
} else {
|
|
219
219
|
oEntry._levelInfo = getLevel(oEntry.level);
|
|
220
220
|
if (applyFilter(oPlugin._filter, oPlugin._iLogLevel, oEntry)) {
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
oContentRef.insertAdjacentHTML("beforeend", getEntryHTML(oPlugin, oEntry));
|
|
222
|
+
oContentRef.scrollTop = oContentRef.scrollHeight;
|
|
223
223
|
}
|
|
224
224
|
oPlugin._aLogEntries.push(oEntry);
|
|
225
225
|
}
|
|
@@ -10,17 +10,17 @@ sap.ui.define([
|
|
|
10
10
|
'sap/ui/core/support/controls/TreeViewer',
|
|
11
11
|
'sap/ui/core/support/controls/ObjectViewer',
|
|
12
12
|
'sap/ui/Device',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
'sap/base/Log',
|
|
14
|
+
'sap/base/security/encodeXML',
|
|
15
|
+
'sap/ui/thirdparty/jquery'
|
|
16
|
+
], function(Plugin, TreeViewer, ObjectViewer, Device, Log, encodeXML, $) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
18
|
-
var $ = jQuery;
|
|
19
19
|
/**
|
|
20
20
|
* Creates an instance of sap.ui.core.support.plugins.ViewInfo.
|
|
21
21
|
* @class This class represents the ViewInfo plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
22
22
|
* @extends sap.ui.core.support.Plugin
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.101.0
|
|
24
24
|
* @private
|
|
25
25
|
* @alias sap.ui.core.support.plugins.ViewInfo
|
|
26
26
|
*/
|
|
@@ -42,7 +42,6 @@ sap.ui.define([
|
|
|
42
42
|
that.oCore = undefined;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
});
|
|
@@ -67,7 +66,7 @@ sap.ui.define([
|
|
|
67
66
|
this.$().get(0).innerHTML =
|
|
68
67
|
"<div class='sapUISupportLabel'>" +
|
|
69
68
|
"View Info Support Tool is only available in <b>Support Mode.</b>" +
|
|
70
|
-
"<br>Turn it on by adding '<b>sap-ui-support=true</b>' to the
|
|
69
|
+
"<br>Turn it on by adding '<b>sap-ui-support=true</b>' to the URL of your application." +
|
|
71
70
|
"</div>";
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
@@ -83,7 +82,7 @@ sap.ui.define([
|
|
|
83
82
|
this.$().get(0).innerHTML = "View Info Support Tool did not record any information on the current page.<br>" +
|
|
84
83
|
"Possible reasons:<br>" +
|
|
85
84
|
"There are no XML Views defined in the current app.<br>" +
|
|
86
|
-
"Views where not loaded before the
|
|
85
|
+
"Views where not loaded before the Diagnostics tool was started.";
|
|
87
86
|
}
|
|
88
87
|
if (this.runsAsToolPlugin()) {
|
|
89
88
|
initInTools.call(this, oSupportStub);
|
|
@@ -210,7 +209,11 @@ sap.ui.define([
|
|
|
210
209
|
this.aDataTrees = [];
|
|
211
210
|
this.aObjectViewers = [];
|
|
212
211
|
var i = 0;
|
|
213
|
-
rm.
|
|
212
|
+
rm.openStart("div").class("viewxmlmain").openEnd();
|
|
213
|
+
rm.openStart("div").class("settingscontainer").openEnd();
|
|
214
|
+
rm.openStart("span").class("settings").attr("raise", "_onClearAllBreakpoints").openEnd().text("Clear all breakpoints").close("span");
|
|
215
|
+
rm.openStart("span").class("settings").attr("raise", "_onClearAllXMLModifications").openEnd().text("Clear all XML modifications").close("span");
|
|
216
|
+
rm.close("div");
|
|
214
217
|
this.aMetamodels = [];
|
|
215
218
|
if (this.aOdataModels) {
|
|
216
219
|
for (var j = 0; j < this.aOdataModels.length; j++) {
|
|
@@ -219,12 +222,34 @@ sap.ui.define([
|
|
|
219
222
|
this.aMetamodels.push(oMetadata);
|
|
220
223
|
var oTree = this.createTree(oMetadata, i);
|
|
221
224
|
this.aTrees[i] = oTree;
|
|
222
|
-
rm.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
rm.openStart("div").class("viewxmlheader").attr("collapsed", "true").openEnd();
|
|
226
|
+
rm.openStart("span").class("toggle").openEnd().close("span");
|
|
227
|
+
rm.openStart("span").class("info").openEnd().text("Metadata: " + oMetadata.env.settings.response.requestUri).close("span");
|
|
228
|
+
rm.openStart("div").class("settingscontainer").openEnd();
|
|
229
|
+
rm.openStart("span").class("settings").class("sapUiSupportViewInfoElementHidden").attr("raise", "_onToggleDebugNodes").attr("idx", i).openEnd().text("Expand debugged nodes").close("span");
|
|
230
|
+
rm.openStart("span").class("settings").class("sapUiSupportViewInfoElementHidden").attr("raise", "_onToggleRealIds").attr("idx", i).openEnd();
|
|
231
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
232
|
+
rm.text("Show XML View Ids");
|
|
233
|
+
rm.close("span");
|
|
234
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleNamespace").attr("idx", i).openEnd();
|
|
235
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
236
|
+
rm.text("Hide tag namespace");
|
|
237
|
+
rm.close("span");
|
|
238
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleInactive").attr("idx", i).openEnd();
|
|
239
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
240
|
+
rm.text("Hide inactive");
|
|
241
|
+
rm.close("span");
|
|
242
|
+
rm.close("div");
|
|
243
|
+
rm.close("div");
|
|
244
|
+
rm.openStart("div").class("sapUiSupportViewInfoElementHidden").openEnd();
|
|
245
|
+
rm.openStart("div", "treecontent_" + i).openEnd().close("div");
|
|
246
|
+
rm.openStart("div").class("viewxmlsplitter").openEnd().close("div");
|
|
247
|
+
rm.openStart("div").class("viewxmlinfo").openEnd();
|
|
248
|
+
rm.openStart("div", "objectHeader" + i).class("title").class("sapUiSupportViewInfoElementHidden").openEnd().text("Header").close("div");
|
|
249
|
+
rm.openStart("div", "objectToolbar" + i).class("toolbar").class("sapUiSupportViewInfoElementHidden").openEnd().text("Toolbar").close("div");
|
|
250
|
+
rm.openStart("div", "selectedcontent_" + i).class("content").openEnd().close("div");
|
|
251
|
+
rm.close("div");
|
|
252
|
+
rm.close("div");
|
|
228
253
|
}
|
|
229
254
|
oMetadata.env.tree = oTree;
|
|
230
255
|
i++;
|
|
@@ -276,7 +301,25 @@ sap.ui.define([
|
|
|
276
301
|
}
|
|
277
302
|
|
|
278
303
|
if (oView.env.type === "template") {
|
|
279
|
-
rm.
|
|
304
|
+
rm.openStart("div").class("viewxmlheader").attr("collapsed", "true").openEnd();
|
|
305
|
+
rm.openstart("span").class("toggle").openEnd().close("span");
|
|
306
|
+
rm.openStart("span").class("info").openEnd().text(sId + ' (' + oView.env.type + ')').close("span");
|
|
307
|
+
rm.openStart("div").class("settingscontainer").openEnd();
|
|
308
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleDebugNodes").attr("idx", i).openEnd().text("Expand debugged nodes").close("span");
|
|
309
|
+
rm.openStart("span").class("settings").class("sapUiSupportViewInfoElementHidden").attr("raise", "_onToggleRealIds").attr("idx", i).openEnd();
|
|
310
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
311
|
+
rm.text("Show XML View Ids");
|
|
312
|
+
rm.close("span");
|
|
313
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleNamespace").attr("idx", i).openEnd();
|
|
314
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
315
|
+
rm.text("Hide tag namespace");
|
|
316
|
+
rm.close("span");
|
|
317
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleInactive").attr("idx", i).openEnd();
|
|
318
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
319
|
+
rm.text("Hide inactive");
|
|
320
|
+
rm.close("span");
|
|
321
|
+
rm.close("div");
|
|
322
|
+
rm.close("div");
|
|
280
323
|
} else {
|
|
281
324
|
var sTemplatedBy = "";
|
|
282
325
|
if (oView.env.metamodels) {
|
|
@@ -290,13 +333,32 @@ sap.ui.define([
|
|
|
290
333
|
if (oView.env.settings.cache) {
|
|
291
334
|
sCache += " from client cache " + JSON.stringify(oView.env.settings.cache);
|
|
292
335
|
}
|
|
293
|
-
rm.
|
|
336
|
+
rm.openStart("div").class("viewxmlheader").attr("collapsed", "true").openEnd();
|
|
337
|
+
rm.openStart("span").class("toggle").openEnd().close("span");
|
|
338
|
+
rm.openStart("span").class("info").openEnd().text(sId + ' (' + oView.env.type + sTemplatedBy + ') ' + sCache).close("span");
|
|
339
|
+
rm.openStart("div").class("settingscontainer").openEnd();
|
|
340
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleDebugNodes").attr("idx", i).openEnd().text("Expand debugged nodes").close("span");
|
|
341
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleRealIds").attr("idx", i).openEnd();
|
|
342
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
343
|
+
rm.text("Show XML View Ids");
|
|
344
|
+
rm.close("span");
|
|
345
|
+
rm.openStart("span").class("settings").attr("raise", "_onToggleNamespace").attr("idx", i).openEnd();
|
|
346
|
+
rm.openStart("span").attr("selected", "false").openEnd().close("span");
|
|
347
|
+
rm.text("Hide tag namespace");
|
|
348
|
+
rm.close("span");
|
|
349
|
+
rm.close("div");
|
|
350
|
+
rm.close("div");
|
|
294
351
|
}
|
|
295
|
-
rm.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
352
|
+
rm.openStart("div").class("sapUiSupportViewInfoElementHidden").openEnd();
|
|
353
|
+
rm.openStart("div", "treecontent_" + i).openEnd().close("div");
|
|
354
|
+
rm.openStart("div").class("viewxmlsplitter").openEnd().close("div");
|
|
355
|
+
rm.openStart("div").class("viewxmlinfo").openEnd();
|
|
356
|
+
rm.openStart("div", "objectHeader" + i).class("title").class("sapUiSupportViewInfoElementHidden").openEnd().text("Header").close("div");
|
|
357
|
+
rm.openStart("div", "objectToolbar" + i).class("toolbar").class("sapUiSupportViewInfoElementHidden").openEnd().text("Toolbar").close("div");
|
|
358
|
+
rm.openStart("div", "selectedcontent_" + i).class("content").openEnd().close("div");
|
|
359
|
+
rm.close("div");
|
|
360
|
+
rm.close("div");
|
|
361
|
+
rm.close("div");
|
|
300
362
|
i++;
|
|
301
363
|
}
|
|
302
364
|
}
|