@openui5/sap.ui.core 1.93.3 → 1.96.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 +13 -2
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +1 -1
- package/src/jquery.sap.global.js +5 -2
- 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/jquery.sap.stubs.js +2 -1
- package/src/jquery.sap.trace.js +2 -1
- package/src/sap/base/i18n/ResourceBundle.js +6 -2
- package/src/sap/base/strings/whitespaceReplacer.js +52 -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 +37 -42
- package/src/sap/ui/Global.js +8 -7
- package/src/sap/ui/base/DataType.js +14 -8
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/ExpressionParser.js +9 -6
- package/src/sap/ui/base/Interface.js +3 -49
- package/src/sap/ui/base/ManagedObject.js +12 -7
- 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 +49 -4
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/syncXHRFix.js +2 -1
- package/src/sap/ui/core/.library +5 -5
- package/src/sap/ui/core/AppCacheBuster.js +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -11
- package/src/sap/ui/core/Component.js +300 -140
- package/src/sap/ui/core/ComponentContainer.js +24 -8
- package/src/sap/ui/core/ComponentMetadata.js +14 -3
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +67 -31
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +103 -25
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/CustomizingConfiguration.js +35 -260
- package/src/sap/ui/core/DeclarativeSupport.js +3 -2
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +4 -2
- package/src/sap/ui/core/EnabledPropagator.js +91 -73
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/ExtensionPoint.js +7 -14
- package/src/sap/ui/core/Fragment.js +30 -32
- 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 +7 -8
- package/src/sap/ui/core/IconPool.js +26 -1097
- package/src/sap/ui/core/IconRenderer.js +6 -6
- 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 +26 -4
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +4 -61
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Patcher.js +27 -3
- package/src/sap/ui/core/Placeholder.js +28 -15
- package/src/sap/ui/core/RenderManager.js +36 -6
- package/src/sap/ui/core/Renderer.js +13 -3
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +2 -2
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHintsMixin.js +14 -7
- 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 +42 -16
- 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 +2 -2
- package/src/sap/ui/core/XMLCompositeMetadata.js +2 -2
- package/src/sap/ui/core/XMLTemplateProcessor.js +116 -41
- package/src/sap/ui/core/_IconRegistry.js +1148 -0
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +6 -3
- 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 +2 -2
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +16 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +73 -221
- package/src/sap/ui/core/hyphenation/HyphenationTestingWords.js +11 -10
- 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 +13 -15
- 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_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/messagebundle_it.properties +1 -1
- package/src/sap/ui/core/messagebundle_pl.properties +1 -1
- package/src/sap/ui/core/messagebundle_th.properties +2 -2
- package/src/sap/ui/core/mvc/Controller.js +38 -19
- package/src/sap/ui/core/mvc/ControllerExtensionProvider.js +30 -32
- package/src/sap/ui/core/mvc/ControllerMetadata.js +18 -18
- package/src/sap/ui/core/mvc/HTMLView.js +2 -2
- package/src/sap/ui/core/mvc/JSONView.js +2 -2
- package/src/sap/ui/core/mvc/JSView.js +2 -2
- package/src/sap/ui/core/mvc/TemplateView.js +2 -2
- package/src/sap/ui/core/mvc/View.js +58 -85
- package/src/sap/ui/core/mvc/XMLView.js +2 -2
- package/src/sap/ui/core/mvc/XMLViewRenderer.js +17 -20
- 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/History.js +10 -2
- package/src/sap/ui/core/routing/Router.js +8 -1
- package/src/sap/ui/core/routing/Target.js +13 -0
- package/src/sap/ui/core/routing/Targets.js +13 -2
- package/src/sap/ui/core/routing/async/Route.js +1 -1
- package/src/sap/ui/core/routing/async/Target.js +353 -259
- 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/BootSupportTool.js +11 -0
- package/src/sap/ui/core/support/InteractionTree.css +4 -0
- 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/ViewInfo.css +599 -0
- package/src/sap/ui/core/support/controls/InteractionTree.js +352 -222
- package/src/sap/ui/core/support/controls/ObjectViewer.js +3 -41
- package/src/sap/ui/core/support/controls/TimelineOverview.js +49 -24
- package/src/sap/ui/core/support/controls/TreeViewer.js +12 -58
- package/src/sap/ui/core/support/plugins/ControlTree.js +59 -68
- package/src/sap/ui/core/support/plugins/Debugging.js +9 -11
- package/src/sap/ui/core/support/plugins/Interaction.js +2 -2
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +147 -75
- package/src/sap/ui/core/support/plugins/Selector.js +19 -24
- package/src/sap/ui/core/support/plugins/TechInfo.js +5 -5
- package/src/sap/ui/core/support/plugins/Trace.js +95 -32
- package/src/sap/ui/core/support/plugins/ViewInfo.js +9 -73
- package/src/sap/ui/core/support/support.css +109 -14
- package/src/sap/ui/core/support/support.html +6 -2
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.fragment.xml +1 -0
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +149 -72
- package/src/sap/ui/core/themes/base/Icon.less +9 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +6 -4
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +10 -28
- package/src/sap/ui/core/tmpl/TemplateControl.js +4 -4
- package/src/sap/ui/core/tmpl/_parsePath.js +35 -0
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/DraftEnabledMockServer.js +9 -4
- 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 +5 -5
- package/src/sap/ui/core/util/MockServerAnnotationsHandler.js +3 -2
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/XMLPreprocessor.js +11 -12
- package/src/sap/ui/core/util/reflection/BaseTreeModifier.js +136 -63
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +170 -153
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +424 -293
- 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 +10 -4
- package/src/sap/ui/debug/DebugEnv.js +3 -4
- package/src/sap/ui/debug/Highlighter.js +8 -2
- package/src/sap/ui/debug/PropertyList.css +55 -0
- package/src/sap/ui/debug/PropertyList.js +111 -182
- package/src/sap/ui/model/Binding.js +174 -118
- package/src/sap/ui/model/ClientContextBinding.js +1 -1
- package/src/sap/ui/model/ClientListBinding.js +1 -3
- package/src/sap/ui/model/ClientModel.js +4 -4
- package/src/sap/ui/model/ClientPropertyBinding.js +4 -2
- package/src/sap/ui/model/ClientTreeBinding.js +15 -9
- package/src/sap/ui/model/ClientTreeBindingAdapter.js +28 -23
- package/src/sap/ui/model/CompositeBinding.js +98 -77
- package/src/sap/ui/model/CompositeDataState.js +2 -2
- package/src/sap/ui/model/CompositeType.js +2 -2
- package/src/sap/ui/model/Context.js +4 -2
- package/src/sap/ui/model/ContextBinding.js +6 -14
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/Filter.js +255 -53
- package/src/sap/ui/model/FilterOperator.js +1 -1
- package/src/sap/ui/model/FilterProcessor.js +27 -17
- package/src/sap/ui/model/FilterType.js +1 -1
- package/src/sap/ui/model/ListBinding.js +180 -117
- package/src/sap/ui/model/MetaModel.js +4 -9
- package/src/sap/ui/model/Model.js +345 -294
- package/src/sap/ui/model/PropertyBinding.js +92 -58
- package/src/sap/ui/model/SelectionModel.js +2 -2
- package/src/sap/ui/model/SimpleType.js +2 -2
- package/src/sap/ui/model/Sorter.js +1 -1
- package/src/sap/ui/model/SorterProcessor.js +1 -1
- package/src/sap/ui/model/StaticBinding.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +2 -2
- package/src/sap/ui/model/TreeBinding.js +1 -1
- package/src/sap/ui/model/TreeBindingAdapter.js +251 -100
- package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +16 -9
- package/src/sap/ui/model/TreeBindingUtils.js +1 -0
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +8 -4
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalVersionInfo.js +1 -1
- package/src/sap/ui/model/analytics/BatchResponseCollector.js +1 -1
- package/src/sap/ui/model/analytics/ODataModelAdapter.js +1 -1
- package/src/sap/ui/model/analytics/odata4analytics.js +34 -25
- package/src/sap/ui/model/base/ManagedObjectModel.js +4 -0
- package/src/sap/ui/model/json/JSONListBinding.js +8 -5
- package/src/sap/ui/model/json/JSONModel.js +24 -15
- package/src/sap/ui/model/json/JSONPropertyBinding.js +4 -3
- package/src/sap/ui/model/json/JSONTreeBinding.js +1 -1
- package/src/sap/ui/model/message/MessageListBinding.js +6 -3
- package/src/sap/ui/model/message/MessageModel.js +23 -15
- package/src/sap/ui/model/message/MessagePropertyBinding.js +2 -2
- package/src/sap/ui/model/odata/AnnotationHelper.js +1 -1
- package/src/sap/ui/model/odata/AnnotationParser.js +1 -1
- package/src/sap/ui/model/odata/CountMode.js +1 -1
- package/src/sap/ui/model/odata/Filter.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +2 -2
- package/src/sap/ui/model/odata/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +2 -2
- package/src/sap/ui/model/odata/ODataMetaModel.js +5 -3
- package/src/sap/ui/model/odata/ODataMetadata.js +2 -2
- package/src/sap/ui/model/odata/ODataModel.js +8 -7
- package/src/sap/ui/model/odata/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBinding.js +65 -33
- package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +2 -2
- package/src/sap/ui/model/odata/ODataUtils.js +13 -11
- package/src/sap/ui/model/odata/OperationMode.js +1 -1
- package/src/sap/ui/model/odata/_AnnotationHelperExpression.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/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 +81 -9
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +3 -3
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +39 -49
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +236 -73
- package/src/sap/ui/model/odata/v2/ODataModel.js +314 -164
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +110 -97
- package/src/sap/ui/model/odata/v2/_CreatedContextsCache.js +129 -0
- package/src/sap/ui/model/odata/v4/Context.js +6 -3
- package/src/sap/ui/model/odata/v4/ODataBinding.js +5 -6
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +117 -40
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +95 -15
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +44 -31
- package/src/sap/ui/model/odata/v4/ODataModel.js +86 -78
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +47 -28
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +11 -7
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +10 -3
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +8 -1
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +24 -16
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +32 -30
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +52 -17
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.js +2 -2
- package/src/sap/ui/model/resource/ResourceModel.js +6 -2
- package/src/sap/ui/model/resource/ResourcePropertyBinding.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +2 -2
- package/src/sap/ui/model/type/Currency.js +2 -2
- package/src/sap/ui/model/type/Date.js +9 -3
- package/src/sap/ui/model/type/DateInterval.js +4 -2
- package/src/sap/ui/model/type/DateTime.js +2 -2
- package/src/sap/ui/model/type/DateTimeInterval.js +2 -2
- package/src/sap/ui/model/type/FileSize.js +4 -2
- package/src/sap/ui/model/type/Float.js +4 -2
- package/src/sap/ui/model/type/Integer.js +4 -2
- package/src/sap/ui/model/type/String.js +2 -2
- package/src/sap/ui/model/type/Time.js +2 -2
- package/src/sap/ui/model/type/TimeInterval.js +2 -2
- package/src/sap/ui/model/type/Unit.js +14 -7
- package/src/sap/ui/model/xml/XMLListBinding.js +15 -9
- package/src/sap/ui/model/xml/XMLModel.js +70 -41
- package/src/sap/ui/model/xml/XMLPropertyBinding.js +4 -4
- package/src/sap/ui/model/xml/XMLTreeBinding.js +5 -4
- package/src/sap/ui/performance/trace/Interaction.js +30 -15
- package/src/sap/ui/performance/trace/initTraces.js +1 -1
- package/src/sap/ui/qunit/QUnitUtils.js +3 -2
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +9 -11
- package/src/sap/ui/test/TestUtils.js +11 -4
- package/src/sap/ui/test/actions/Drag.js +6 -2
- package/src/sap/ui/test/actions/Drop.js +6 -2
- package/src/sap/ui/test/actions/EnterText.js +6 -0
- package/src/sap/ui/test/actions/Press.js +6 -0
- package/src/sap/ui/test/actions/Scroll.js +6 -0
- package/src/sap/ui/test/autowaiter/_resourceWaiter.js +4 -4
- package/src/sap/ui/test/launchers/componentLauncher.js +0 -4
- package/src/sap/ui/test/matchers/I18NText.js +29 -11
- package/src/sap/ui/test/opaQunit.js +5 -0
- package/src/sap/ui/thirdparty/crossroads.js +6 -4
- package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly.js +1196 -0
- package/src/sap/ui/thirdparty/hyphenopoly/Hyphenopoly_Loader.js +797 -0
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js +108 -127
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.wasm +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/bg.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/ca.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/da.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/de.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/el-monoton.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/en-us.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/es.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/et.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/fi.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/fr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hi.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/hu.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/it.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/lt.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/nb-no.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/nl.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/pt.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/ru.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/sl.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/sv.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/th.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/tr.hpb +0 -0
- package/src/sap/ui/thirdparty/hyphenopoly/patterns/uk.hpb +0 -0
- package/src/sap/ui/thirdparty/jquery.js +9 -1
- package/src/sap/ui/thirdparty/qunit-2.js +1 -1
- package/src/sap/ui/thirdparty/qunit.js +1 -1
- package/src/sap/ui/util/Mobile.js +2 -20
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/isCrossOriginURL.js +16 -6
- package/src/sap-ui-core-nojQuery.js +1 -1
- package/src/sap-ui-core.js +1 -1
- package/src/sap-ui-debug.js +3 -17
- package/ui5.yaml +5 -2
- package/src/sap/ui/core/support/plugins/MessageTest.js +0 -96
- package/src/sap/ui/thirdparty/hyphenopoly/hyphenopoly.bundle.js +0 -860
|
@@ -94,8 +94,8 @@ sap.ui.define([
|
|
|
94
94
|
|
|
95
95
|
rm.write('<div id="sapUiSupportDebuggingRebootContainer" class="sapUiSupportContainer">');
|
|
96
96
|
|
|
97
|
-
rm.write('<div
|
|
98
|
-
rm.write('<div
|
|
97
|
+
rm.write('<div class="sapUISupportLabel sapUISupportLabelBold">Note: Designed to work with apps loaded with the standard UI5 loading bootstrap script tag:</div>');
|
|
98
|
+
rm.write('<div class="sapUISupportLabel sapUISupportLabelBold"><script id="sap-ui-bootstrap" src="somepath/resources/sap-ui-core.js" ...<br/><br/></div>');
|
|
99
99
|
|
|
100
100
|
rm.write('<div class="sapUISupportLabel">Boot application with different UI5 version on next reload:</div>');
|
|
101
101
|
rm.write('<select id="sapUiSupportDebuggingRebootSelect" class="sapUiSupportSelect">');
|
|
@@ -103,7 +103,7 @@ sap.ui.define([
|
|
|
103
103
|
rm.write('<option value="other" id="sapUiSupportDebuggingRebootOther">Other (enter URL to sap-ui-core.js below)...:</option>');
|
|
104
104
|
rm.write('</select>');
|
|
105
105
|
rm.write('<input type="text" id="sapUiSupportDebuggingRebootInput" disabled="disabled">');
|
|
106
|
-
rm.write('<button id="sapUiSupportDebuggingReboot" class="sapUiSupportRoundedButton"
|
|
106
|
+
rm.write('<button id="sapUiSupportDebuggingReboot" class="sapUiSupportRoundedButton">Activate Reboot URL</button>');
|
|
107
107
|
rm.write('</div>');
|
|
108
108
|
|
|
109
109
|
rm.write('<div id="sapUiSupportDebuggingClassContainer" class="sapUiSupportContainer"></div>');
|
|
@@ -120,7 +120,7 @@ sap.ui.define([
|
|
|
120
120
|
var aClasses = this._aClasses;
|
|
121
121
|
var rm = sap.ui.getCore().createRenderManager();
|
|
122
122
|
|
|
123
|
-
rm.write('<div class="sapUISupportLabel"
|
|
123
|
+
rm.write('<div class="sapUISupportLabel">Select Class:</div>');
|
|
124
124
|
|
|
125
125
|
rm.write('<select id="sapUiSupportDebuggingClassSelect" class="sapUiSupportAutocomplete sapUiSupportSelect"><option></option>');
|
|
126
126
|
|
|
@@ -161,8 +161,7 @@ sap.ui.define([
|
|
|
161
161
|
|
|
162
162
|
rm.write('><div><span class="className">' + encodeXML(oValue + "") + '</span>' +
|
|
163
163
|
'<span class="breakpoints">' + encodeXML(bpCountText + "") + '</span></div>' +
|
|
164
|
-
'<img class="remove-class"
|
|
165
|
-
'src="../../debug/images/delete.gif" alt="X"></li>');
|
|
164
|
+
'<img class="remove-class" src="../../debug/images/delete.gif" alt="X"></li>');
|
|
166
165
|
});
|
|
167
166
|
|
|
168
167
|
rm.write('</ul>');
|
|
@@ -176,13 +175,13 @@ sap.ui.define([
|
|
|
176
175
|
var rm = sap.ui.getCore().createRenderManager();
|
|
177
176
|
|
|
178
177
|
if (typeof (mMethods) === 'undefined') {
|
|
179
|
-
rm.write('<p
|
|
178
|
+
rm.write('<p>Select a class in the list on the left side to add breakpoint.</p>');
|
|
180
179
|
rm.flush($("#sapUiSupportDebuggingMethodContainer").get(0));
|
|
181
180
|
rm.destroy();
|
|
182
181
|
return;
|
|
183
182
|
}
|
|
184
183
|
|
|
185
|
-
rm.write('<div class="sapUISupportLabel"
|
|
184
|
+
rm.write('<div class="sapUISupportLabel">Select Method:</div>');
|
|
186
185
|
|
|
187
186
|
rm.write('<select id="sapUiSupportDebuggingMethodSelect" class="sapUiSupportAutocomplete sapUiSupportSelect"><option></option>');
|
|
188
187
|
|
|
@@ -209,8 +208,7 @@ sap.ui.define([
|
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
rm.write('<li data-method-type="' + encodeXML(oValue.type + "") + '"><span>' + encodeXML(oValue.name + "") + '</span>' +
|
|
212
|
-
'<img class="remove-breakpoint"
|
|
213
|
-
'src="../../debug/images/delete.gif" alt="Remove"></li>');
|
|
211
|
+
'<img class="remove-breakpoint" src="../../debug/images/delete.gif" alt="Remove"></li>');
|
|
214
212
|
});
|
|
215
213
|
|
|
216
214
|
rm.write('</ul>');
|
|
@@ -240,7 +238,7 @@ sap.ui.define([
|
|
|
240
238
|
|
|
241
239
|
// Update breakpoint-count
|
|
242
240
|
var $breakpoints = $('li[data-class-name="' + sClassName + '"] span.breakpoints');
|
|
243
|
-
$breakpoints.text(mBreakpointCount.active + " / " + mBreakpointCount.all)
|
|
241
|
+
$breakpoints.text(mBreakpointCount.active + " / " + mBreakpointCount.all);
|
|
244
242
|
|
|
245
243
|
$('#sapUiSupportDebuggingMethodInput').trigger("focus");
|
|
246
244
|
};
|
|
@@ -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.96.2
|
|
42
42
|
* @private
|
|
43
43
|
* @alias sap.ui.core.support.plugins.Interaction
|
|
44
44
|
*/
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
rm.write("</div>");
|
|
118
118
|
|
|
119
119
|
rm.write('<div class="sapUiPerformanceStatsDiv sapUiSupportIntHidden">');
|
|
120
|
-
rm.write('<div class="sapUiPerformanceTimeline"
|
|
120
|
+
rm.write('<div class="sapUiPerformanceTimeline"></div>');
|
|
121
121
|
rm.write('<div class="sapUiPerformanceTop">');
|
|
122
122
|
rm.write('</div>');
|
|
123
123
|
|
|
@@ -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.96.2
|
|
19
19
|
* @private
|
|
20
20
|
* @alias sap.ui.core.support.plugins.LocalStorage
|
|
21
21
|
*/
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides class sap.ui.core.support.plugins.Performance
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
9
|
+
"sap/ui/core/Core",
|
|
10
|
+
"sap/ui/core/support/Plugin",
|
|
10
11
|
"sap/ui/performance/Measurement",
|
|
11
12
|
"sap/base/security/encodeXML"
|
|
12
13
|
],
|
|
13
|
-
function(Plugin, Measurement, encodeXML) {
|
|
14
|
+
function(Core, Plugin, Measurement, encodeXML) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
var _rawdata = [];
|
|
@@ -55,7 +56,7 @@ sap.ui.define([
|
|
|
55
56
|
* With this plugIn the performance measurements are displayed
|
|
56
57
|
*
|
|
57
58
|
* @extends sap.ui.core.support.Plugin
|
|
58
|
-
* @version 1.
|
|
59
|
+
* @version 1.96.2
|
|
59
60
|
* @private
|
|
60
61
|
* @alias sap.ui.core.support.plugins.Performance
|
|
61
62
|
*/
|
|
@@ -98,7 +99,7 @@ sap.ui.define([
|
|
|
98
99
|
};
|
|
99
100
|
|
|
100
101
|
function initInTools(oSupportStub) {
|
|
101
|
-
var rm =
|
|
102
|
+
var rm = Core.createRenderManager();
|
|
102
103
|
|
|
103
104
|
//create the initial html for the performance tool
|
|
104
105
|
rm.write(_getPerformanceToolHTML());
|
|
@@ -420,10 +421,43 @@ sap.ui.define([
|
|
|
420
421
|
return stepsData;
|
|
421
422
|
}
|
|
422
423
|
|
|
424
|
+
/**
|
|
425
|
+
* @param {sap.ui.core.RenderManager} rm Render Manager
|
|
426
|
+
* @param {Object} step
|
|
427
|
+
* @param {string} type - Type is 'duration' or 'time'
|
|
428
|
+
* @private
|
|
429
|
+
*/
|
|
430
|
+
function _renderSubBarHTML(rm, step, type) {
|
|
431
|
+
/*
|
|
432
|
+
step = {
|
|
433
|
+
time: {
|
|
434
|
+
_total: 20ms,
|
|
435
|
+
rendering: 10ms,
|
|
436
|
+
require: 10ms
|
|
437
|
+
},
|
|
438
|
+
duration: {
|
|
439
|
+
_total: 20ms,
|
|
440
|
+
rendering: 10ms,
|
|
441
|
+
require: 10ms
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
*/
|
|
445
|
+
|
|
446
|
+
Object.keys(step.duration).sort().forEach(function (categoryType) {
|
|
447
|
+
if (categoryType !== '_total') {
|
|
448
|
+
var heightInPercent = (step[type][categoryType] / step[type]._total) * 100;
|
|
449
|
+
|
|
450
|
+
rm.openStart("div")
|
|
451
|
+
.class(_getBarClassType(categoryType))
|
|
452
|
+
.style("height", heightInPercent.toFixed(2) + "%")
|
|
453
|
+
.openEnd()
|
|
454
|
+
.close("div");
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
|
|
423
459
|
function _renderTimelineOverview(data) {
|
|
424
460
|
var domParent = document.querySelector('#sapUiSupportPerfHeaderTimelineOverview .timeline');
|
|
425
|
-
|
|
426
|
-
var HTML = '<ol>';
|
|
427
461
|
var copiedData = (JSON.parse(JSON.stringify(data)));
|
|
428
462
|
|
|
429
463
|
//TODO: optimise this logic to loop only once
|
|
@@ -458,68 +492,57 @@ sap.ui.define([
|
|
|
458
492
|
allTimeSum = topSumTimeStep.time._total;
|
|
459
493
|
allDurationSum = topSumDurationStep.duration._total;
|
|
460
494
|
|
|
461
|
-
|
|
462
|
-
*
|
|
463
|
-
* @param {Object} step
|
|
464
|
-
* @param {string} type - Type is 'duration' or 'time'
|
|
465
|
-
* @param {string} html - html string to add to
|
|
466
|
-
* @private
|
|
467
|
-
*/
|
|
468
|
-
function __getSubBarHTML(step, type) {
|
|
469
|
-
/*
|
|
470
|
-
step = {
|
|
471
|
-
time: {
|
|
472
|
-
_total: 20ms,
|
|
473
|
-
rendering: 10ms,
|
|
474
|
-
require: 10ms
|
|
475
|
-
},
|
|
476
|
-
duration: {
|
|
477
|
-
_total: 20ms,
|
|
478
|
-
rendering: 10ms,
|
|
479
|
-
require: 10ms
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
*/
|
|
483
|
-
var HTML = '';
|
|
484
|
-
|
|
485
|
-
Object.keys(step.duration).sort().forEach(function (categoryType) {
|
|
486
|
-
if (categoryType !== '_total') {
|
|
487
|
-
var heightInPercent = (step[type][categoryType] / step[type]._total) * 100;
|
|
488
|
-
HTML += '<div class="' + _getBarClassType(categoryType) + '" style="height: ' + heightInPercent.toFixed(2) + '%;"></div>';
|
|
489
|
-
}
|
|
490
|
-
});
|
|
495
|
+
var rm = Core.createRenderManager();
|
|
491
496
|
|
|
492
|
-
|
|
493
|
-
}
|
|
497
|
+
rm.openStart("ol").openEnd();
|
|
494
498
|
|
|
495
499
|
stepsData.forEach(function (step) {
|
|
496
500
|
var stepDurationInPercent = Math.ceil((step.duration._total / allDurationSum) * 100);
|
|
497
501
|
var stepTimeInPercent = Math.ceil((step.time._total / allTimeSum) * 100);
|
|
498
502
|
|
|
499
|
-
|
|
503
|
+
rm.openStart("li").openEnd();
|
|
504
|
+
|
|
505
|
+
rm.openStart("div")
|
|
506
|
+
.class("bars-wrapper")
|
|
507
|
+
.attr("title", _getTimelineOverViewBarTitle(step.duration._total, step.time._total))
|
|
508
|
+
.openEnd();
|
|
509
|
+
|
|
510
|
+
rm.openStart("div")
|
|
511
|
+
.class("duration")
|
|
512
|
+
.style("height", stepDurationInPercent + "%");
|
|
513
|
+
|
|
500
514
|
if (stepDurationInPercent > 0) {
|
|
501
|
-
|
|
515
|
+
rm.style("min-height", "1px");
|
|
502
516
|
}
|
|
503
517
|
|
|
504
|
-
|
|
518
|
+
rm.openEnd();
|
|
519
|
+
|
|
520
|
+
_renderSubBarHTML(rm, step, "duration");
|
|
521
|
+
|
|
522
|
+
rm.close("div"); // duration
|
|
523
|
+
|
|
524
|
+
rm.openStart("div")
|
|
525
|
+
.class("time")
|
|
526
|
+
.style("height", stepTimeInPercent + "%");
|
|
527
|
+
|
|
505
528
|
if (stepTimeInPercent > 0) {
|
|
506
|
-
|
|
529
|
+
rm.style("min-height", "1px");
|
|
507
530
|
}
|
|
508
531
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
HTML += '</div></li>';
|
|
532
|
+
rm.openEnd();
|
|
533
|
+
|
|
534
|
+
_renderSubBarHTML(rm, step, "time");
|
|
535
|
+
|
|
536
|
+
rm.close("div"); // time
|
|
537
|
+
|
|
538
|
+
rm.close("div"); // bars-wrapper
|
|
539
|
+
rm.close("li");
|
|
518
540
|
});
|
|
519
541
|
|
|
520
|
-
|
|
542
|
+
rm.close("ol");
|
|
521
543
|
|
|
522
|
-
domParent
|
|
544
|
+
rm.flush(domParent);
|
|
545
|
+
rm.destroy();
|
|
523
546
|
}
|
|
524
547
|
|
|
525
548
|
/* =============================================================================================================
|
|
@@ -527,8 +550,8 @@ sap.ui.define([
|
|
|
527
550
|
============================================================================================================= */
|
|
528
551
|
|
|
529
552
|
function _render() {
|
|
530
|
-
var
|
|
531
|
-
var
|
|
553
|
+
var barRm = Core.createRenderManager();
|
|
554
|
+
var barInfoRm = Core.createRenderManager();
|
|
532
555
|
|
|
533
556
|
//get all data from the filter ui elements
|
|
534
557
|
var filterOptions = _getFilterOptions();
|
|
@@ -537,29 +560,82 @@ sap.ui.define([
|
|
|
537
560
|
|
|
538
561
|
//no data bar
|
|
539
562
|
if (data.length === 0) {
|
|
540
|
-
|
|
541
|
-
|
|
563
|
+
barRm.openStart("li")
|
|
564
|
+
.class("line")
|
|
565
|
+
.class("nodata")
|
|
566
|
+
.attr("data-uid", -1)
|
|
567
|
+
.openEnd()
|
|
568
|
+
.close("li");
|
|
569
|
+
|
|
570
|
+
barInfoRm.openStart("li")
|
|
571
|
+
.class("line")
|
|
572
|
+
.class("nodata")
|
|
573
|
+
.attr("data-uid", -1)
|
|
574
|
+
.openEnd();
|
|
575
|
+
|
|
576
|
+
barInfoRm.openStart("div")
|
|
577
|
+
.class("info")
|
|
578
|
+
.class("line")
|
|
579
|
+
.openEnd()
|
|
580
|
+
.text("No data")
|
|
581
|
+
.close("div");
|
|
582
|
+
|
|
583
|
+
barInfoRm.close("li");
|
|
542
584
|
}
|
|
543
585
|
|
|
544
586
|
data.forEach(function (item) {
|
|
545
587
|
var rawItem = _getBarById(item.uid);
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
588
|
+
barRm.openStart("li")
|
|
589
|
+
.class("line")
|
|
590
|
+
.attr("data-uid", item.uid)
|
|
591
|
+
.attr("title", _getBarTitle(rawItem))
|
|
592
|
+
.attr("data-item-category", rawItem.categories[0])
|
|
593
|
+
.openEnd();
|
|
594
|
+
|
|
595
|
+
barRm.openStart("div")
|
|
596
|
+
.class("bar")
|
|
597
|
+
.class(_getBarColor(rawItem.duration))
|
|
598
|
+
.style("width", _calculateBarWidth(item.duration))
|
|
599
|
+
.style("margin-left", _calculateBarOffset(item, filterOptions.filterByTime.start))
|
|
600
|
+
.openEnd();
|
|
601
|
+
|
|
602
|
+
barRm.openStart("div")
|
|
603
|
+
.class("sub-bar")
|
|
604
|
+
.class(_getBarColor(rawItem.time))
|
|
605
|
+
.style("width", _calculateBarWidth(item.time))
|
|
606
|
+
.openEnd()
|
|
607
|
+
.close("div");
|
|
608
|
+
|
|
609
|
+
barRm.close("div"); // bar
|
|
610
|
+
barRm.close("li");
|
|
551
611
|
|
|
552
612
|
//render bar info ==================================================================================
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
613
|
+
barInfoRm.openStart("li")
|
|
614
|
+
.class("line")
|
|
615
|
+
.class(_getBarClassType(rawItem.categories[0]))
|
|
616
|
+
.attr("data-uid", item.uid)
|
|
617
|
+
.attr("title", _getBarTitle(rawItem))
|
|
618
|
+
.attr("data-item-category", rawItem.categories[0])
|
|
619
|
+
.openEnd();
|
|
620
|
+
|
|
621
|
+
barInfoRm.openStart("div")
|
|
622
|
+
.class("line")
|
|
623
|
+
.class("info")
|
|
624
|
+
.openEnd()
|
|
625
|
+
.text(_formatInfo(rawItem) + " (" + (rawItem.time).toFixed(0) + " ms)")
|
|
626
|
+
.close("div");
|
|
627
|
+
|
|
628
|
+
barInfoRm.close("li");
|
|
556
629
|
});
|
|
557
630
|
|
|
558
|
-
|
|
559
|
-
|
|
631
|
+
barRm.close("ol");
|
|
632
|
+
barInfoRm.close("ol");
|
|
560
633
|
|
|
561
|
-
document.querySelector(
|
|
562
|
-
document.querySelector(
|
|
634
|
+
barRm.flush(document.querySelector("#sapUiSupportPerfHeaderTimelineBarWrapper"));
|
|
635
|
+
barInfoRm.flush(document.querySelector("#sapUiSupportPerfHeaderTimelineBarInfoWrapper"));
|
|
636
|
+
|
|
637
|
+
barRm.destroy();
|
|
638
|
+
barInfoRm.destroy();
|
|
563
639
|
|
|
564
640
|
_createTimelineGrid(filterOptions);
|
|
565
641
|
_filterByCategory(); // Don't change the order, this is applying css styles on the rendered content
|
|
@@ -580,7 +656,7 @@ sap.ui.define([
|
|
|
580
656
|
}
|
|
581
657
|
|
|
582
658
|
function _getBarTitle(bar) {
|
|
583
|
-
return
|
|
659
|
+
return bar.info + "\nduration: " + bar.duration.toFixed(2) + " ms. \ntime: " + bar.time.toFixed(2) + " ms. \nstart: " + bar.start.toFixed(2) + " ms.\nend: " + bar.end.toFixed(2) + " ms.";
|
|
584
660
|
}
|
|
585
661
|
|
|
586
662
|
function _formatInfo(bar) {
|
|
@@ -590,7 +666,7 @@ sap.ui.define([
|
|
|
590
666
|
barInfo = barInfo.substring(barInfo.lastIndexOf('sap.m.'), barInfo.length);
|
|
591
667
|
barInfo = barInfo.replace('Rendering of ', '');
|
|
592
668
|
|
|
593
|
-
return
|
|
669
|
+
return barInfo;
|
|
594
670
|
}
|
|
595
671
|
|
|
596
672
|
function _getBarClassType(category) {
|
|
@@ -652,10 +728,6 @@ sap.ui.define([
|
|
|
652
728
|
return categories;
|
|
653
729
|
}
|
|
654
730
|
|
|
655
|
-
function _getBarDataAttributes(bar) {
|
|
656
|
-
return 'data-item-category = ' + bar.categories[0];
|
|
657
|
-
}
|
|
658
|
-
|
|
659
731
|
function _lineHover(e) {
|
|
660
732
|
var dom = e.srcElement;
|
|
661
733
|
|
|
@@ -6,25 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides class sap.ui.core.support.plugins.Selector (Selector support plugin)
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
"sap/ui/core/Core",
|
|
10
|
+
"sap/ui/core/Popup",
|
|
11
|
+
"../Plugin",
|
|
12
|
+
"../Support",
|
|
12
13
|
"sap/ui/thirdparty/jquery",
|
|
13
14
|
"sap/base/util/uid"
|
|
14
|
-
],
|
|
15
|
-
function(Popup, Plugin, Support, jQueryDOM, uid) {
|
|
15
|
+
], function (Core, Popup, Plugin, Support, jQuery, uid) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
18
|
/**
|
|
23
19
|
* Creates an instance of sap.ui.core.support.plugins.Selector.
|
|
24
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.
|
|
25
21
|
*
|
|
26
22
|
* @extends sap.ui.core.support.Plugin
|
|
27
|
-
* @version 1.
|
|
23
|
+
* @version 1.96.2
|
|
28
24
|
* @private
|
|
29
25
|
* @alias sap.ui.core.support.plugins.Selector
|
|
30
26
|
*/
|
|
@@ -50,7 +46,6 @@ sap.ui.define([
|
|
|
50
46
|
highlight(oEvent.getParameter("id"), this, oEvent.getParameter("sendInfo"));
|
|
51
47
|
};
|
|
52
48
|
|
|
53
|
-
|
|
54
49
|
Selector.prototype.init = function(oSupportStub){
|
|
55
50
|
Plugin.prototype.init.apply(this, arguments);
|
|
56
51
|
|
|
@@ -58,15 +53,20 @@ sap.ui.define([
|
|
|
58
53
|
|
|
59
54
|
if (!this._sPopupId) {
|
|
60
55
|
this._sPopupId = this.getId() + "-" + uid();
|
|
61
|
-
var rm =
|
|
62
|
-
rm.
|
|
63
|
-
|
|
56
|
+
var rm = Core.createRenderManager();
|
|
57
|
+
rm.openStart("div", this._sPopupId)
|
|
58
|
+
.style("border", "2px solid rgb(0, 128, 0)")
|
|
59
|
+
.style("background-color", "rgba(0, 128, 0, .55)")
|
|
60
|
+
.openEnd()
|
|
61
|
+
.close("div");
|
|
62
|
+
|
|
63
|
+
rm.flush(Core.getStaticAreaRef(), false, true);
|
|
64
64
|
rm.destroy();
|
|
65
65
|
|
|
66
|
-
jPopupRef =
|
|
66
|
+
jPopupRef = jQuery(document.getElementById(this._sPopupId));
|
|
67
67
|
this._oPopup.setContent(jPopupRef[0]);
|
|
68
68
|
} else {
|
|
69
|
-
jPopupRef =
|
|
69
|
+
jPopupRef = jQuery(document.getElementById(this._sPopupId));
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
var that = this;
|
|
@@ -92,11 +92,10 @@ sap.ui.define([
|
|
|
92
92
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
|
|
96
95
|
Selector.prototype.exit = function(oSupportStub){
|
|
97
96
|
this._oPopup.close(0);
|
|
98
97
|
if (this._fCloseHandler) {
|
|
99
|
-
|
|
98
|
+
jQuery(document.getElementById(this._sPopupId)).off("click", this._fCloseHandler);
|
|
100
99
|
this._fCloseHandler = null;
|
|
101
100
|
}
|
|
102
101
|
if (this._fSelectHandler) {
|
|
@@ -106,12 +105,11 @@ sap.ui.define([
|
|
|
106
105
|
Plugin.prototype.exit.apply(this, arguments);
|
|
107
106
|
};
|
|
108
107
|
|
|
109
|
-
|
|
110
108
|
function highlight(sId, oPlugin, bSend){
|
|
111
109
|
if (sId) {
|
|
112
|
-
var oElem =
|
|
110
|
+
var oElem = Core.byId(sId);
|
|
113
111
|
if (oElem) {
|
|
114
|
-
var jPopupRef =
|
|
112
|
+
var jPopupRef = jQuery(document.getElementById(oPlugin._sPopupId));
|
|
115
113
|
var jRef = oElem.$();
|
|
116
114
|
if (jRef.is(":visible")) {
|
|
117
115
|
jPopupRef.width(jRef.outerWidth());
|
|
@@ -130,14 +128,11 @@ sap.ui.define([
|
|
|
130
128
|
return false;
|
|
131
129
|
}
|
|
132
130
|
|
|
133
|
-
|
|
134
131
|
function getElementDetailsForEvent(oElement, oPlugin){
|
|
135
132
|
//TODO: to be extended
|
|
136
133
|
return {"id": oElement.getId()};
|
|
137
134
|
}
|
|
138
135
|
|
|
139
|
-
|
|
140
|
-
|
|
141
136
|
return Selector;
|
|
142
137
|
|
|
143
138
|
});
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @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
24
|
*
|
|
25
25
|
* @extends sap.ui.core.support.Plugin
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.96.2
|
|
27
27
|
* @private
|
|
28
28
|
* @alias sap.ui.core.support.plugins.TechInfo
|
|
29
29
|
*/
|
|
@@ -136,10 +136,10 @@ sap.ui.define([
|
|
|
136
136
|
"</select>"
|
|
137
137
|
);
|
|
138
138
|
buffer.push("<button id='" + that.getId() + "-startE2ETrace' class='sapUiSupportRoundedButton " +
|
|
139
|
-
(oData["e2e-trace"].isStarted ? " active" : "") + "'
|
|
140
|
-
buffer.push("<div
|
|
139
|
+
(oData["e2e-trace"].isStarted ? " active" : "") + "'>" + (oData["e2e-trace"].isStarted ? "Running..." : "Start") + "</button>");
|
|
140
|
+
buffer.push("<div class='sapUiSupportTechInfoXMLOutput'>");
|
|
141
141
|
buffer.push("<label class='sapUiSupportLabel'>XML Output:</label>");
|
|
142
|
-
buffer.push("<textarea id='" + that.getId() + "-outputE2ETrace'
|
|
142
|
+
buffer.push("<textarea id='" + that.getId() + "-outputE2ETrace'></textarea>");
|
|
143
143
|
buffer.push("</div>");
|
|
144
144
|
});
|
|
145
145
|
|
|
@@ -312,7 +312,7 @@ sap.ui.define([
|
|
|
312
312
|
|
|
313
313
|
function multiline(buffer, right, border, label, content){
|
|
314
314
|
line(buffer, right, border, label, function(buffer){
|
|
315
|
-
buffer.push("<table border='0' cellspacing='0' cellpadding='3'
|
|
315
|
+
buffer.push("<table border='0' cellspacing='0' cellpadding='3'>");
|
|
316
316
|
jQuery.each(content, function(i,v){
|
|
317
317
|
var val = "";
|
|
318
318
|
if (v) {
|