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C,EAAAA,oBAAAA,QACAA,EAAAA,oBAAAA,WACAA,EAAAA,oBAAAA,IACAA,EAAAA,oBAAAA,IACAA,EAAAA,oBAAAA,SACAA,EAAAA,oBAAAA,MACAA,EAAAA,oBAAAA,YAGHC,eAAe,CAAEv7B,aAAa,EAAMw7B,aAAa,IACjDC,qBEvXwC/9B,IAAyC,MAClF,MAAM+C,EAA8B,UAAG/C,EAAM+C,mBAAT,QAAwB,CAC1DC,SAAU,GACVC,UAAW,IAGP5B,EAAUrB,EAAMqB,SAAW,GAWjC,OARIA,EAAQ2mB,YACVjlB,EAAYC,SAASS,MAAQpC,EAAQ2mB,iBAC9B3mB,EAAQ2mB,WAIjBhoB,EAAMqB,QAAUA,EAChBrB,EAAM+C,YAAcA,EACb1B,KFyWT+B,GAAO46B,iBAAmB/D","sources":["webpack://grafana/./public/app/features/alerting/state/ThresholdMapper.ts","webpack://grafana/./public/app/features/dashboard/utils/loadSnapshotData.ts","webpack://grafana/./public/app/features/panel/panellinks/linkSuppliers.ts","webpack://grafana/./public/app/plugins/panel/graph/jquery.flot.events.ts","webpack://grafana/./public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx","webpack://grafana/./public/app/plugins/panel/graph/Legend/Legend.tsx","webpack://grafana/./public/app/plugins/panel/graph/align_yaxes.ts","webpack://grafana/./public/app/plugins/panel/graph/event_manager.ts","webpack://grafana/./public/app/plugins/panel/graph/graph_tooltip.ts","webpack://grafana/./public/app/plugins/panel/graph/histogram.ts","webpack://grafana/./public/app/plugins/panel/graph/threshold_manager.ts","webpack://grafana/./public/app/core/utils/timeRegions.ts","webpack://grafana/./public/app/plugins/panel/graph/time_region_manager.ts","webpack://grafana/./public/app/plugins/panel/graph/graph.ts","webpack://grafana/./public/app/plugins/panel/graph/utils.ts","webpack://grafana/./public/app/plugins/panel/graph/series_overrides_ctrl.ts","webpack://grafana/./public/app/plugins/panel/graph/thresholds_form.ts","webpack://grafana/./public/app/plugins/panel/graph/time_regions_form.ts","webpack://grafana/./public/app/plugins/panel/graph/annotation_tooltip.ts","webpack://grafana/./public/app/plugins/panel/graph/event_editor.ts","webpack://grafana/./public/app/plugins/panel/graph/GraphContextMenuCtrl.ts","webpack://grafana/./public/app/plugins/panel/graph/axes_editor.ts","webpack://grafana/./public/app/plugins/panel/graph/module.ts","webpack://grafana/./public/app/plugins/panel/graph/template.ts","webpack://grafana/./public/app/plugins/panel/graph/GraphMigrations.ts"],"sourcesContent":["import { config } from 'app/core/config';\nimport { PanelModel } from 'app/features/dashboard/state';\n\nexport const hiddenReducerTypes = ['percent_diff', 'percent_diff_abs'];\nexport class ThresholdMapper {\n static alertToGraphThresholds(panel: PanelModel) {\n if (!panel.alert || config.unifiedAlertingEnabled) {\n return false; // no update when no alerts\n }\n\n for (let i = 0; i < panel.alert.conditions.length; i++) {\n const condition = panel.alert.conditions[i];\n if (condition.type !== 'query') {\n continue;\n }\n\n const evaluator = condition.evaluator;\n const thresholds: any[] = (panel.thresholds = []);\n const visible = hiddenReducerTypes.indexOf(condition.reducer?.type) === -1;\n\n switch (evaluator.type) {\n case 'gt': {\n const value = evaluator.params[0];\n thresholds.push({ value: value, op: 'gt', visible });\n break;\n }\n case 'lt': {\n const value = evaluator.params[0];\n thresholds.push({ value: value, op: 'lt', visible });\n break;\n }\n case 'outside_range': {\n const value1 = evaluator.params[0];\n const value2 = evaluator.params[1];\n\n if (value1 > value2) {\n thresholds.push({ value: value1, op: 'gt', visible });\n thresholds.push({ value: value2, op: 'lt', visible });\n } else {\n thresholds.push({ value: value1, op: 'lt', visible });\n thresholds.push({ value: value2, op: 'gt', visible });\n }\n\n break;\n }\n case 'within_range': {\n const value1 = evaluator.params[0];\n const value2 = evaluator.params[1];\n\n if (value1 > value2) {\n thresholds.push({ value: value1, op: 'lt', visible });\n thresholds.push({ value: value2, op: 'gt', visible });\n } else {\n thresholds.push({ value: value1, op: 'gt', visible });\n thresholds.push({ value: value2, op: 'lt', visible });\n }\n break;\n }\n }\n break;\n }\n\n for (const t of panel.thresholds) {\n t.fill = panel.options.alertThreshold;\n t.line = panel.options.alertThreshold;\n t.colorMode = 'critical';\n }\n\n const updated = true;\n return updated;\n }\n}\n","import { applyFieldOverrides, ArrayDataFrame, getDefaultTimeRange, LoadingState, PanelData } from '@grafana/data';\nimport { config } from 'app/core/config';\n\nimport { SnapshotWorker } from '../../query/state/DashboardQueryRunner/SnapshotWorker';\nimport { getProcessedDataFrames } from '../../query/state/runRequest';\nimport { getTimeSrv } from '../services/TimeSrv';\nimport { DashboardModel, PanelModel } from '../state';\n\nimport { applyPanelTimeOverrides } from './panel';\n\nexport function loadSnapshotData(panel: PanelModel, dashboard: DashboardModel): PanelData {\n const data = getProcessedDataFrames(panel.snapshotData);\n const worker = new SnapshotWorker();\n const options = { dashboard, range: getDefaultTimeRange() };\n const annotationEvents = worker.canWork(options) ? worker.getAnnotationsInSnapshot(dashboard, panel.id) : [];\n const annotations = [new ArrayDataFrame(annotationEvents)];\n const timeData = applyPanelTimeOverrides(panel, getTimeSrv().timeRange());\n\n return {\n timeRange: timeData.timeRange,\n state: LoadingState.Done,\n series: applyFieldOverrides({\n data,\n fieldConfig: {\n defaults: {},\n overrides: [],\n },\n replaceVariables: panel.replaceVariables,\n fieldConfigRegistry: panel.plugin!.fieldConfigRegistry,\n theme: config.theme2,\n timeZone: dashboard.getTimezone(),\n }),\n annotations,\n };\n}\n","import {\n DataLink,\n DisplayValue,\n FieldDisplay,\n formattedValueToString,\n getFieldDisplayValuesProxy,\n getTimeField,\n InterpolateFunction,\n Labels,\n LinkModelSupplier,\n ScopedVar,\n ScopedVars,\n} from '@grafana/data';\nimport { PanelModel } from 'app/features/dashboard/state/PanelModel';\n\nimport { getLinkSrv } from './link_srv';\n\ninterface SeriesVars {\n name?: string;\n refId?: string;\n}\n\ninterface FieldVars {\n name: string;\n labels?: Labels;\n}\n\ninterface ValueVars {\n raw: any;\n numeric: number;\n text: string;\n time?: number;\n calc?: string;\n}\n\ninterface DataViewVars {\n name?: string;\n refId?: string;\n fields?: Record;\n}\n\ninterface DataLinkScopedVars extends ScopedVars {\n __series: ScopedVar;\n __field: ScopedVar;\n __value: ScopedVar;\n __data: ScopedVar;\n}\n\n/**\n * Link suppliers creates link models based on a link origin\n */\nexport const getFieldLinksSupplier = (value: FieldDisplay): LinkModelSupplier | undefined => {\n const links = value.field.links;\n if (!links || links.length === 0) {\n return undefined;\n }\n\n return {\n getLinks: (replaceVariables: InterpolateFunction) => {\n const scopedVars: Partial = {};\n\n if (value.view) {\n const { dataFrame } = value.view;\n\n scopedVars['__series'] = {\n value: {\n name: dataFrame.name,\n refId: dataFrame.refId,\n },\n text: 'Series',\n };\n\n const field = value.colIndex !== undefined ? dataFrame.fields[value.colIndex] : undefined;\n\n if (field) {\n scopedVars['__field'] = {\n value: {\n name: field.name,\n labels: field.labels,\n },\n text: 'Field',\n };\n\n if (value.rowIndex !== undefined && value.rowIndex >= 0) {\n const { timeField } = getTimeField(dataFrame);\n scopedVars['__value'] = {\n value: {\n raw: field.values.get(value.rowIndex),\n numeric: value.display.numeric,\n text: formattedValueToString(value.display),\n time: timeField ? timeField.values.get(value.rowIndex) : undefined,\n },\n text: 'Value',\n };\n }\n\n // Expose other values on the row\n if (value.view) {\n scopedVars['__data'] = {\n value: {\n name: dataFrame.name,\n refId: dataFrame.refId,\n fields: getFieldDisplayValuesProxy({\n frame: dataFrame,\n rowIndex: value.rowIndex!,\n }),\n },\n text: 'Data',\n };\n }\n } else {\n // calculation\n scopedVars['__value'] = {\n value: {\n raw: value.display.numeric,\n numeric: value.display.numeric,\n text: formattedValueToString(value.display),\n calc: value.name,\n },\n text: 'Value',\n };\n }\n } else {\n console.log('VALUE', value);\n }\n\n const replace: InterpolateFunction = (value: string, vars: ScopedVars | undefined, fmt?: string | Function) => {\n const finalVars: ScopedVars = {\n ...(scopedVars as ScopedVars),\n ...vars,\n };\n return replaceVariables(value, finalVars, fmt);\n };\n\n return links.map((link: DataLink) => {\n return getLinkSrv().getDataLinkUIModel(link, replace, value);\n });\n },\n };\n};\n\nexport const getPanelLinksSupplier = (panel: PanelModel): LinkModelSupplier | undefined => {\n const links = panel.links;\n\n if (!links || links.length === 0) {\n return undefined;\n }\n\n return {\n getLinks: () => {\n return links.map((link) => {\n return getLinkSrv().getDataLinkUIModel(link, panel.replaceVariables, panel);\n });\n },\n };\n};\n","import $ from 'jquery';\nimport { partition, each } from 'lodash';\n//@ts-ignore\nimport Drop from 'tether-drop';\n\nimport { CreatePlotOverlay } from '@grafana/data';\nimport { getLegacyAngularInjector } from '@grafana/runtime';\n\n/** @ngInject */\nconst createAnnotationToolip: CreatePlotOverlay = (element, event, plot) => {\n const injector = getLegacyAngularInjector();\n const content = document.createElement('div');\n content.innerHTML = '';\n\n injector.invoke([\n '$compile',\n '$rootScope',\n ($compile, $rootScope) => {\n const eventManager = plot.getOptions().events.manager;\n const tmpScope = $rootScope.$new(true);\n tmpScope.event = event;\n tmpScope.onEdit = () => {\n eventManager.editEvent(event);\n };\n\n $compile(content)(tmpScope);\n tmpScope.$digest();\n tmpScope.$destroy();\n\n const drop = new Drop({\n target: element[0],\n content: content,\n position: 'bottom center',\n classes: 'drop-popover drop-popover--annotation',\n openOn: 'hover',\n hoverCloseDelay: 200,\n tetherOptions: {\n constraints: [{ to: 'window', pin: true, attachment: 'both' }],\n },\n });\n\n drop.open();\n\n drop.on('close', () => {\n setTimeout(() => {\n drop.destroy();\n });\n });\n },\n ]);\n};\n\nlet markerElementToAttachTo: any = null;\n\n/** @ngInject */\nconst createEditPopover: CreatePlotOverlay = (element, event, plot) => {\n const eventManager = plot.getOptions().events.manager;\n if (eventManager.editorOpen) {\n // update marker element to attach to (needed in case of legend on the right\n // when there is a double render pass and the initial marker element is removed)\n markerElementToAttachTo = element;\n return;\n }\n\n // mark as openend\n eventManager.editorOpened();\n // set marker elment to attache to\n markerElementToAttachTo = element;\n\n // wait for element to be attached and positioned\n setTimeout(() => {\n const injector = getLegacyAngularInjector();\n const content = document.createElement('div');\n content.innerHTML = '';\n\n injector.invoke([\n '$compile',\n '$rootScope',\n ($compile, $rootScope) => {\n const scope = $rootScope.$new(true);\n let drop: any;\n\n scope.event = event;\n scope.panelCtrl = eventManager.panelCtrl;\n scope.close = () => {\n drop.close();\n };\n\n $compile(content)(scope);\n scope.$digest();\n\n drop = new Drop({\n target: markerElementToAttachTo[0],\n content: content,\n position: 'bottom center',\n classes: 'drop-popover drop-popover--form',\n openOn: 'click',\n tetherOptions: {\n constraints: [{ to: 'window', pin: true, attachment: 'both' }],\n },\n });\n\n drop.open();\n eventManager.editorOpened();\n\n drop.on('close', () => {\n // need timeout here in order call drop.destroy\n setTimeout(() => {\n eventManager.editorClosed();\n scope.$destroy();\n drop.destroy();\n });\n });\n },\n ]);\n }, 100);\n};\n\nexport { createEditPopover, createAnnotationToolip };\n\n/*\n * jquery.flot.events\n *\n * description: Flot plugin for adding events/markers to the plot\n * version: 0.2.5\n * authors:\n * Alexander Wunschik \n * Joel Oughton \n * Nicolas Joseph \n *\n * website: https://github.com/mojoaxel/flot-events\n *\n * released under MIT License and GPLv2+\n */\n\n/**\n * A class that allows for the drawing an remove of some object\n */\nexport class DrawableEvent {\n _object: any;\n _drawFunc: any;\n _clearFunc: any;\n _moveFunc: any;\n _position: any;\n _width: any;\n _height: any;\n\n /** @ngInject */\n constructor(\n object: JQuery,\n drawFunc: any,\n clearFunc: any,\n moveFunc: any,\n left: number,\n top: number,\n width: number,\n height: number\n ) {\n this._object = object;\n this._drawFunc = drawFunc;\n this._clearFunc = clearFunc;\n this._moveFunc = moveFunc;\n this._position = { left, top };\n this._width = width;\n this._height = height;\n }\n\n width() {\n return this._width;\n }\n height() {\n return this._height;\n }\n position() {\n return this._position;\n }\n draw() {\n this._drawFunc(this._object);\n }\n clear() {\n this._clearFunc(this._object);\n }\n getObject() {\n return this._object;\n }\n moveTo(position: { left: number; top: number }) {\n this._position = position;\n this._moveFunc(this._object, this._position);\n }\n}\n\n/**\n * Event class that stores options (eventType, min, max, title, description) and the object to draw.\n */\nexport class VisualEvent {\n _parent: any;\n _options: any;\n _drawableEvent: any;\n _hidden: any;\n\n /** @ngInject */\n constructor(options: any, drawableEvent: DrawableEvent) {\n this._options = options;\n this._drawableEvent = drawableEvent;\n this._hidden = false;\n }\n\n visual() {\n return this._drawableEvent;\n }\n getOptions() {\n return this._options;\n }\n getParent() {\n return this._parent;\n }\n isHidden() {\n return this._hidden;\n }\n hide() {\n this._hidden = true;\n }\n unhide() {\n this._hidden = false;\n }\n}\n\n/**\n * A Class that handles the event-markers inside the given plot\n */\nexport class EventMarkers {\n _events: any;\n _types: any;\n _plot: any;\n eventsEnabled: any;\n\n /** @ngInject */\n constructor(plot: any) {\n this._events = [];\n this._types = [];\n this._plot = plot;\n this.eventsEnabled = false;\n }\n\n getEvents() {\n return this._events;\n }\n\n setTypes(types: any) {\n return (this._types = types);\n }\n\n /**\n * create internal objects for the given events\n */\n setupEvents(events: any[]) {\n const parts = partition(events, 'isRegion');\n const regions = parts[0];\n events = parts[1];\n\n $.each(events, (index, event) => {\n const ve = new VisualEvent(event, this._buildDiv(event));\n this._events.push(ve);\n });\n\n $.each(regions, (index, event) => {\n const vre = new VisualEvent(event, this._buildRegDiv(event));\n this._events.push(vre);\n });\n\n this._events.sort((a: any, b: any) => {\n const ao = a.getOptions(),\n bo = b.getOptions();\n if (ao.min > bo.min) {\n return 1;\n }\n if (ao.min < bo.min) {\n return -1;\n }\n return 0;\n });\n }\n\n /**\n * draw the events to the plot\n */\n drawEvents() {\n // var o = this._plot.getPlotOffset();\n\n $.each(this._events, (index, event) => {\n const options = event.getOptions();\n const insidePlot = this._insidePlot(options.min) || this._insidePlot(options.timeEnd);\n const overlapPlot = this._overlapPlot(options.min, options.timeEnd);\n // check event is inside the graph range\n if ((insidePlot || overlapPlot) && !event.isHidden()) {\n event.visual().draw();\n } else {\n event.visual().getObject().hide();\n }\n });\n }\n\n /**\n * update the position of the event-markers (e.g. after scrolling or zooming)\n */\n updateEvents() {\n const o = this._plot.getPlotOffset();\n let left;\n let top;\n const xaxis = this._plot.getXAxes()[this._plot.getOptions().events.xaxis - 1];\n\n $.each(this._events, (index, event) => {\n top = o.top + this._plot.height() - event.visual().height();\n left = xaxis.p2c(event.getOptions().min) + o.left - event.visual().width() / 2;\n event.visual().moveTo({ top: top, left: left });\n });\n }\n\n /**\n * remove all events from the plot\n */\n _clearEvents() {\n $.each(this._events, (index, val) => {\n val.visual().clear();\n });\n this._events = [];\n }\n\n /**\n * create a DOM element for the given event\n */\n _buildDiv(event: { eventType: any; min: any; editModel: any }) {\n const that = this;\n\n const container = this._plot.getPlaceholder();\n const o = this._plot.getPlotOffset();\n const xaxis = this._plot.getXAxes()[this._plot.getOptions().events.xaxis - 1];\n let top, left, color, markerSize, markerShow, lineStyle, lineWidth;\n let markerTooltip;\n\n // map the eventType to a types object\n const eventTypeId = event.eventType;\n\n if (this._types === null || !this._types[eventTypeId] || !this._types[eventTypeId].color) {\n color = '#666';\n } else {\n color = this._types[eventTypeId].color;\n }\n\n if (this._types === null || !this._types[eventTypeId] || !this._types[eventTypeId].markerSize) {\n markerSize = 8; //default marker size\n } else {\n markerSize = this._types[eventTypeId].markerSize;\n }\n\n if (this._types === null || !this._types[eventTypeId] || this._types[eventTypeId].markerShow === undefined) {\n markerShow = true;\n } else {\n markerShow = this._types[eventTypeId].markerShow;\n }\n\n if (this._types === null || !this._types[eventTypeId] || this._types[eventTypeId].markerTooltip === undefined) {\n markerTooltip = true;\n } else {\n markerTooltip = this._types[eventTypeId].markerTooltip;\n }\n\n if (this._types == null || !this._types[eventTypeId] || !this._types[eventTypeId].lineStyle) {\n lineStyle = 'dashed'; //default line style\n } else {\n lineStyle = this._types[eventTypeId].lineStyle.toLowerCase();\n }\n\n if (this._types == null || !this._types[eventTypeId] || this._types[eventTypeId].lineWidth === undefined) {\n lineWidth = 1; //default line width\n } else {\n lineWidth = this._types[eventTypeId].lineWidth;\n }\n\n let topOffset = xaxis.options.eventSectionHeight || 0;\n topOffset = topOffset / 3;\n\n top = o.top + this._plot.height() + topOffset;\n left = xaxis.p2c(event.min) + o.left;\n\n const line = $('
')\n .css({\n position: 'absolute',\n opacity: 0.8,\n left: left + 'px',\n top: 8,\n width: lineWidth + 'px',\n height: this._plot.height() + topOffset * 0.8,\n 'border-left-width': lineWidth + 'px',\n 'border-left-style': lineStyle,\n 'border-left-color': color,\n color: color,\n })\n .appendTo(container);\n\n if (markerShow) {\n const marker = $('
').css({\n position: 'absolute',\n left: -markerSize - Math.round(lineWidth / 2) + 'px',\n 'font-size': 0,\n 'line-height': 0,\n width: 0,\n height: 0,\n 'border-left': markerSize + 'px solid transparent',\n 'border-right': markerSize + 'px solid transparent',\n });\n\n marker.appendTo(line);\n\n if (\n this._types[eventTypeId] &&\n this._types[eventTypeId].position &&\n this._types[eventTypeId].position.toUpperCase() === 'BOTTOM'\n ) {\n marker.css({\n top: top - markerSize - 8 + 'px',\n 'border-top': 'none',\n 'border-bottom': markerSize + 'px solid ' + color,\n });\n } else {\n marker.css({\n top: '0px',\n 'border-top': markerSize + 'px solid ' + color,\n 'border-bottom': 'none',\n });\n }\n\n marker.data({\n event: event,\n });\n\n const mouseenter = function (this: any) {\n createAnnotationToolip(marker, $(this).data('event'), that._plot);\n };\n\n if (event.editModel) {\n createEditPopover(marker, event.editModel, that._plot);\n }\n\n const mouseleave = () => {\n that._plot.clearSelection();\n };\n\n if (markerTooltip) {\n marker.css({ cursor: 'help' });\n marker.hover(mouseenter, mouseleave);\n }\n }\n\n const drawableEvent = new DrawableEvent(\n line,\n function drawFunc(obj: { show: () => void }) {\n obj.show();\n },\n (obj: { remove: () => void }) => {\n obj.remove();\n },\n (obj: any, position: { top: any; left: any }) => {\n obj.css({\n top: position.top,\n left: position.left,\n });\n },\n left,\n top,\n line.width() ?? 1,\n line.height() ?? 1\n );\n\n return drawableEvent;\n }\n\n /**\n * create a DOM element for the given region\n */\n _buildRegDiv(event: { eventType: any; min: number; timeEnd: number; editModel: any }) {\n const that = this;\n\n const container = this._plot.getPlaceholder();\n const o = this._plot.getPlotOffset();\n const xaxis = this._plot.getXAxes()[this._plot.getOptions().events.xaxis - 1];\n let top,\n left,\n lineWidth: number,\n regionWidth,\n lineStyle: string | number | cssPropertySetter,\n color: string,\n markerTooltip;\n\n // map the eventType to a types object\n const eventTypeId = event.eventType;\n\n if (this._types === null || !this._types[eventTypeId] || !this._types[eventTypeId].color) {\n color = '#666';\n } else {\n color = this._types[eventTypeId].color;\n }\n\n if (this._types === null || !this._types[eventTypeId] || this._types[eventTypeId].markerTooltip === undefined) {\n markerTooltip = true;\n } else {\n markerTooltip = this._types[eventTypeId].markerTooltip;\n }\n\n if (this._types == null || !this._types[eventTypeId] || this._types[eventTypeId].lineWidth === undefined) {\n lineWidth = 1; //default line width\n } else {\n lineWidth = this._types[eventTypeId].lineWidth;\n }\n\n if (this._types == null || !this._types[eventTypeId] || !this._types[eventTypeId].lineStyle) {\n lineStyle = 'dashed'; //default line style\n } else {\n lineStyle = this._types[eventTypeId].lineStyle.toLowerCase();\n }\n\n const topOffset = 2;\n top = o.top + this._plot.height() + topOffset;\n\n const timeFrom = Math.min(event.min, event.timeEnd);\n const timeTo = Math.max(event.min, event.timeEnd);\n left = xaxis.p2c(timeFrom) + o.left;\n const right = xaxis.p2c(timeTo) + o.left;\n\n const [xmin, xmax] = [o.left, o.left + this._plot.width()];\n const regionStart = Math.max(left, xmin);\n const regionEnd = Math.min(right, xmax);\n const regionOffset = right > xmax ? 0 : lineWidth; // only include lineWidth when right line is visible\n regionWidth = regionEnd - regionStart + regionOffset;\n\n each([left, right], (position) => {\n // only draw visible region lines\n if (xmin <= position && position < xmax) {\n const line = $('
').css({\n position: 'absolute',\n opacity: 0.8,\n left: position + 'px',\n top: 8,\n width: lineWidth + 'px',\n height: this._plot.height() + topOffset,\n 'border-left-width': lineWidth + 'px',\n 'border-left-style': lineStyle,\n 'border-left-color': color,\n color: color,\n });\n line.appendTo(container);\n }\n });\n\n const region = $('
').css({\n position: 'absolute',\n opacity: 0.5,\n left: regionStart + 'px',\n top: top,\n width: regionWidth + 'px',\n height: '0.5rem',\n 'border-left-color': color,\n color: color,\n 'background-color': color,\n });\n region.appendTo(container);\n\n region.data({\n event: event,\n });\n\n const mouseenter = function (this: any) {\n createAnnotationToolip(region, $(this).data('event'), that._plot);\n };\n\n if (event.editModel) {\n createEditPopover(region, event.editModel, that._plot);\n }\n\n const mouseleave = () => {\n that._plot.clearSelection();\n };\n\n if (markerTooltip) {\n region.css({ cursor: 'help' });\n region.hover(mouseenter, mouseleave);\n }\n\n const drawableEvent = new DrawableEvent(\n region,\n function drawFunc(obj: { show: () => void }) {\n obj.show();\n },\n (obj: { remove: () => void }) => {\n obj.remove();\n },\n (obj: { css: (arg0: { top: any; left: any }) => void }, position: { top: any; left: any }) => {\n obj.css({\n top: position.top,\n left: position.left,\n });\n },\n left,\n top,\n region.width() ?? 1,\n region.height() ?? 1\n );\n\n return drawableEvent;\n }\n\n /**\n * check if the event is inside visible range\n */\n _insidePlot(x: any) {\n const xaxis = this._plot.getXAxes()[this._plot.getOptions().events.xaxis - 1];\n const xc = xaxis.p2c(x);\n return xc > 0 && xc < xaxis.p2c(xaxis.max);\n }\n\n /**\n * check if the event overlaps the visible range\n */\n _overlapPlot(point0: number, point1: number) {\n const xaxis = this._plot.getXAxes()[this._plot.getOptions().events.xaxis - 1];\n const [coord0, coord1] = [xaxis.p2c(point0), xaxis.p2c(point1)];\n const [coordMin, coordMax] = [0, xaxis.p2c(xaxis.max)];\n return coordMin < coord0 && coord1 < coordMax;\n }\n}\n\n/**\n * initialize the plugin for the given plot\n */\n\n/** @ngInject */\nexport function init(this: any, plot: any) {\n const that = this;\n const eventMarkers = new EventMarkers(plot);\n\n plot.getEvents = () => {\n return eventMarkers._events;\n };\n\n plot.hideEvents = () => {\n $.each(eventMarkers._events, (index, event) => {\n event.visual().getObject().hide();\n });\n };\n\n plot.showEvents = () => {\n plot.hideEvents();\n $.each(eventMarkers._events, (index, event) => {\n event.hide();\n });\n\n that.eventMarkers.drawEvents();\n };\n\n // change events on an existing plot\n plot.setEvents = (events: any[]) => {\n if (eventMarkers.eventsEnabled) {\n eventMarkers.setupEvents(events);\n }\n };\n\n plot.hooks.processOptions.push((plot: any, options: any) => {\n // enable the plugin\n if (options.events.data != null) {\n eventMarkers.eventsEnabled = true;\n }\n });\n\n plot.hooks.draw.push((plot: any) => {\n const options = plot.getOptions();\n\n if (eventMarkers.eventsEnabled) {\n // check for first run\n if (eventMarkers.getEvents().length < 1) {\n eventMarkers.setTypes(options.events.types);\n eventMarkers.setupEvents(options.events.data);\n } else {\n eventMarkers.updateEvents();\n }\n }\n\n eventMarkers.drawEvents();\n });\n}\n\nconst defaultOptions: any = {\n events: {\n data: null,\n types: null,\n xaxis: 1,\n position: 'BOTTOM',\n },\n};\n\n$.plot.plugins.push({\n init: init,\n options: defaultOptions,\n name: 'events',\n version: '0.2.5',\n});\n","import classNames from 'classnames';\nimport React, { PureComponent } from 'react';\n\nimport { selectors } from '@grafana/e2e-selectors';\nimport { SeriesColorPicker, SeriesIcon } from '@grafana/ui';\nimport { TimeSeries } from 'app/core/core';\n\nexport const LEGEND_STATS = ['min', 'max', 'avg', 'current', 'total'] as const;\nexport type LegendStat = typeof LEGEND_STATS[number];\n\nexport interface LegendLabelProps {\n series: TimeSeries;\n asTable?: boolean;\n hidden?: boolean;\n onLabelClick: (series: any, event: any) => void;\n onColorChange: (series: any, color: string) => void;\n onToggleAxis: (series: any) => void;\n}\n\nexport interface LegendValuesProps {\n values?: boolean;\n min?: boolean;\n max?: boolean;\n avg?: boolean;\n current?: boolean;\n total?: boolean;\n}\n\ntype LegendItemProps = LegendLabelProps & LegendValuesProps;\n\ninterface LegendItemState {\n yaxis: number;\n}\n\nexport class LegendItem extends PureComponent {\n static defaultProps = {\n asTable: false,\n hidden: false,\n onLabelClick: () => {},\n onColorChange: () => {},\n onToggleAxis: () => {},\n };\n\n constructor(props: LegendItemProps) {\n super(props);\n this.state = {\n yaxis: this.props.series.yaxis,\n };\n }\n\n onLabelClick = (e: any) => this.props.onLabelClick(this.props.series, e);\n\n onToggleAxis = () => {\n const yaxis = this.state.yaxis === 2 ? 1 : 2;\n const info = { alias: this.props.series.alias, yaxis: yaxis };\n this.setState({ yaxis: yaxis });\n this.props.onToggleAxis(info);\n };\n\n onColorChange = (color: string) => {\n this.props.onColorChange(this.props.series, color);\n // Because of PureComponent nature it makes only shallow props comparison and changing of series.color doesn't run\n // component re-render. In this case we can't rely on color, selected by user, because it may be overwritten\n // by series overrides. So we need to use forceUpdate() to make sure we have proper series color.\n this.forceUpdate();\n };\n\n renderLegendValues() {\n const { series, asTable } = this.props;\n const legendValueItems = [];\n for (const valueName of LEGEND_STATS) {\n // @ts-ignore\n if (this.props[valueName]) {\n const valueFormatted = series.formatValue(series.stats[valueName]);\n legendValueItems.push(\n \n );\n }\n }\n return legendValueItems;\n }\n\n render() {\n const { series, values, asTable, hidden } = this.props;\n const seriesOptionClasses = classNames({\n 'graph-legend-series-hidden': hidden,\n 'graph-legend-series--right-y': series.yaxis === 2,\n });\n const valueItems = values ? this.renderLegendValues() : [];\n const seriesLabel = (\n \n );\n\n if (asTable) {\n return (\n \n \n
{seriesLabel}
\n \n {valueItems}\n \n );\n } else {\n return (\n
\n {seriesLabel}\n {valueItems}\n
\n );\n }\n }\n}\n\ninterface LegendSeriesLabelProps {\n label: string;\n color: string;\n yaxis?: number;\n onLabelClick: (event: any) => void;\n}\n\nclass LegendSeriesLabel extends PureComponent {\n static defaultProps: Partial = {\n yaxis: undefined,\n onLabelClick: () => {},\n };\n\n render() {\n const { label, color, yaxis } = this.props;\n const { onColorChange, onToggleAxis } = this.props;\n const onLabelClick = this.props.onLabelClick ? this.props.onLabelClick : () => {};\n\n return [\n ,\n \n {label}\n ,\n ];\n }\n}\n\ninterface LegendSeriesIconProps {\n color: string;\n yaxis?: number;\n onColorChange?: (color: string) => void;\n onToggleAxis?: () => void;\n}\n\ninterface LegendSeriesIconState {\n color: string;\n}\n\nclass LegendSeriesIcon extends PureComponent {\n static defaultProps: Partial = {\n yaxis: undefined,\n onColorChange: () => {},\n onToggleAxis: () => {},\n };\n\n onColorChange = (color: string) => {\n const { onColorChange } = this.props;\n if (onColorChange) {\n onColorChange(color);\n }\n };\n render() {\n return (\n \n {({ ref, showColorPicker, hideColorPicker }) => (\n \n )}\n \n );\n }\n}\n\ninterface LegendValueProps {\n value: string;\n valueName: string;\n asTable?: boolean;\n onValueClick?: (event: any) => void;\n}\n\nfunction LegendValue({ value, valueName, asTable, onValueClick }: LegendValueProps) {\n if (asTable) {\n return (\n \n {value}\n \n );\n }\n return (\n
\n {value}\n
\n );\n}\n","import { sortBy as _sortBy } from 'lodash';\nimport React, { PureComponent } from 'react';\n\nimport { CustomScrollbar, Icon } from '@grafana/ui';\nimport { TimeSeries } from 'app/core/core';\n\nimport { LegendStat, LegendItem, LEGEND_STATS } from './LegendSeriesItem';\n\ninterface LegendProps {\n seriesList: TimeSeries[];\n optionalClass?: string;\n}\n\ninterface LegendEventHandlers {\n onToggleSeries?: (hiddenSeries: any) => void;\n onToggleSort?: (sortBy: any, sortDesc: any) => void;\n onToggleAxis?: (series: TimeSeries) => void;\n onColorChange?: (series: TimeSeries, color: string) => void;\n}\n\ninterface LegendComponentEventHandlers {\n onToggleSeries?: (series: TimeSeries, event: any) => void;\n onToggleSort?: (sortBy: LegendStat | undefined, sortDesc: any) => void;\n onToggleAxis?: (series: TimeSeries) => void;\n onColorChange?: (series: TimeSeries, color: string) => void;\n}\n\ninterface LegendDisplayProps {\n hiddenSeries: any;\n hideEmpty?: boolean;\n hideZero?: boolean;\n alignAsTable?: boolean;\n rightSide?: boolean;\n sideWidth?: number;\n}\n\ninterface LegendValuesProps {\n values?: boolean;\n min?: boolean;\n max?: boolean;\n avg?: boolean;\n current?: boolean;\n total?: boolean;\n}\n\ninterface LegendSortProps {\n sort?: LegendStat;\n sortDesc?: boolean;\n}\n\nexport type GraphLegendProps = LegendProps &\n LegendDisplayProps &\n LegendValuesProps &\n LegendSortProps &\n LegendEventHandlers;\nexport type LegendComponentProps = LegendProps &\n LegendDisplayProps &\n LegendValuesProps &\n LegendSortProps &\n LegendComponentEventHandlers;\n\ninterface LegendState {\n hiddenSeries: { [seriesAlias: string]: boolean };\n}\n\nexport class GraphLegend extends PureComponent {\n static defaultProps: Partial = {\n values: false,\n min: false,\n max: false,\n avg: false,\n current: false,\n total: false,\n alignAsTable: false,\n rightSide: false,\n sort: undefined,\n sortDesc: false,\n optionalClass: '',\n onToggleSeries: () => {},\n onToggleSort: () => {},\n onToggleAxis: () => {},\n onColorChange: () => {},\n };\n\n constructor(props: GraphLegendProps) {\n super(props);\n this.state = {\n hiddenSeries: this.props.hiddenSeries,\n };\n }\n\n sortLegend() {\n let seriesList: TimeSeries[] = [...this.props.seriesList] || [];\n const sortBy = this.props.sort;\n if (sortBy && this.props[sortBy] && this.props.alignAsTable) {\n seriesList = _sortBy(seriesList, (series) => {\n let sort = series.stats[sortBy];\n if (sort === null) {\n sort = -Infinity;\n }\n return sort;\n }) as TimeSeries[];\n if (this.props.sortDesc) {\n seriesList = seriesList.reverse();\n }\n }\n return seriesList;\n }\n\n onToggleSeries = (series: TimeSeries, event: any) => {\n if (!this.props.onToggleSeries) {\n return;\n }\n\n let hiddenSeries = { ...this.state.hiddenSeries };\n if (event.ctrlKey || event.metaKey || event.shiftKey) {\n if (hiddenSeries[series.alias]) {\n delete hiddenSeries[series.alias];\n } else {\n hiddenSeries[series.alias] = true;\n }\n } else {\n hiddenSeries = this.toggleSeriesExclusiveMode(series);\n }\n this.setState({ hiddenSeries: hiddenSeries });\n this.props.onToggleSeries(hiddenSeries);\n };\n\n toggleSeriesExclusiveMode(series: TimeSeries) {\n const hiddenSeries = { ...this.state.hiddenSeries };\n\n if (hiddenSeries[series.alias]) {\n delete hiddenSeries[series.alias];\n }\n\n // check if every other series is hidden\n const alreadyExclusive = this.props.seriesList.every((value) => {\n if (value.alias === series.alias) {\n return true;\n }\n\n return hiddenSeries[value.alias];\n });\n\n if (alreadyExclusive) {\n // remove all hidden series\n this.props.seriesList.forEach((value) => {\n delete hiddenSeries[value.alias];\n });\n } else {\n // hide all but this serie\n this.props.seriesList.forEach((value) => {\n if (value.alias === series.alias) {\n return;\n }\n\n hiddenSeries[value.alias] = true;\n });\n }\n\n return hiddenSeries;\n }\n\n render() {\n const {\n optionalClass,\n rightSide,\n sideWidth,\n sort,\n sortDesc,\n hideEmpty,\n hideZero,\n values,\n min,\n max,\n avg,\n current,\n total,\n } = this.props;\n const seriesValuesProps = { values, min, max, avg, current, total };\n const hiddenSeries = this.state.hiddenSeries;\n const seriesHideProps = { hideEmpty, hideZero };\n const sortProps = { sort, sortDesc };\n const seriesList = this.sortLegend().filter((series) => !series.hideFromLegend(seriesHideProps));\n const legendClass = `${this.props.alignAsTable ? 'graph-legend-table' : ''} ${optionalClass}`;\n\n // Set min-width if side style and there is a value, otherwise remove the CSS property\n // Set width so it works with IE11\n const width: any = rightSide && sideWidth ? sideWidth : undefined;\n const ieWidth: any = rightSide && sideWidth ? sideWidth - 1 : undefined;\n const legendStyle: React.CSSProperties = {\n minWidth: width,\n width: ieWidth,\n };\n\n const legendProps: LegendComponentProps = {\n seriesList: seriesList,\n hiddenSeries: hiddenSeries,\n onToggleSeries: this.onToggleSeries,\n onToggleAxis: this.props.onToggleAxis,\n onToggleSort: this.props.onToggleSort,\n onColorChange: this.props.onColorChange,\n ...seriesValuesProps,\n ...sortProps,\n };\n\n return (\n
\n {this.props.alignAsTable ? : }\n
\n );\n }\n}\n\nclass LegendSeriesList extends PureComponent {\n render() {\n const { seriesList, hiddenSeries, values, min, max, avg, current, total } = this.props;\n const seriesValuesProps = { values, min, max, avg, current, total };\n return seriesList.map((series, i) => (\n