@spike-rabbit/charts-ng 49.0.0 → 49.13.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/LICENSE.md +1 -1
- package/README.md +17 -3
- package/cartesian/package.json +4 -0
- package/chart/package.json +4 -0
- package/circle/package.json +4 -0
- package/common/package.json +4 -0
- package/custom-legend/package.json +4 -0
- package/fesm2022/spike-rabbit-charts-ng-cartesian.mjs +383 -0
- package/fesm2022/spike-rabbit-charts-ng-cartesian.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-chart.mjs +59 -0
- package/fesm2022/spike-rabbit-charts-ng-chart.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-circle.mjs +91 -0
- package/fesm2022/spike-rabbit-charts-ng-circle.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-common.mjs +2383 -0
- package/fesm2022/spike-rabbit-charts-ng-common.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-custom-legend.mjs +62 -0
- package/fesm2022/spike-rabbit-charts-ng-custom-legend.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-gauge.mjs +371 -0
- package/fesm2022/spike-rabbit-charts-ng-gauge.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-loading-spinner.mjs +27 -0
- package/fesm2022/spike-rabbit-charts-ng-loading-spinner.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-progress-bar.mjs +170 -0
- package/fesm2022/spike-rabbit-charts-ng-progress-bar.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-progress.mjs +220 -0
- package/fesm2022/spike-rabbit-charts-ng-progress.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-sankey.mjs +52 -0
- package/fesm2022/spike-rabbit-charts-ng-sankey.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-sunburst.mjs +52 -0
- package/fesm2022/spike-rabbit-charts-ng-sunburst.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng.mjs +40 -3527
- package/fesm2022/spike-rabbit-charts-ng.mjs.map +1 -1
- package/gauge/package.json +4 -0
- package/loading-spinner/package.json +4 -0
- package/package.json +58 -12
- package/progress/package.json +4 -0
- package/progress-bar/package.json +4 -0
- package/projects/charts-ng/README.md +17 -3
- package/sankey/package.json +4 -0
- package/sunburst/package.json +4 -0
- package/types/spike-rabbit-charts-ng-cartesian.d.ts +91 -0
- package/types/spike-rabbit-charts-ng-chart.d.ts +9 -0
- package/types/spike-rabbit-charts-ng-circle.d.ts +74 -0
- package/{index.d.ts → types/spike-rabbit-charts-ng-common.d.ts} +102 -431
- package/types/spike-rabbit-charts-ng-custom-legend.d.ts +68 -0
- package/types/spike-rabbit-charts-ng-gauge.d.ts +96 -0
- package/types/spike-rabbit-charts-ng-loading-spinner.d.ts +8 -0
- package/types/spike-rabbit-charts-ng-progress-bar.d.ts +46 -0
- package/types/spike-rabbit-charts-ng-progress.d.ts +57 -0
- package/types/spike-rabbit-charts-ng-sankey.d.ts +19 -0
- package/types/spike-rabbit-charts-ng-sunburst.d.ts +19 -0
- package/types/spike-rabbit-charts-ng.d.ts +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spike-rabbit-charts-ng-common.mjs","sources":["../../../../projects/charts-ng/common/echarts.custom.ts","../../../../projects/charts-ng/common/themes/element.ts","../../../../projects/charts-ng/common/theme-support.ts","../../../../projects/charts-ng/common/si-chart-base.component.ts","../../../../projects/charts-ng/common/si-chart-base.component.html","../../../../projects/charts-ng/common/index.ts","../../../../projects/charts-ng/common/spike-rabbit-charts-ng-common.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { TitleComponent, TooltipComponent } from 'echarts/components';\nimport * as echarts from 'echarts/core';\nimport { CanvasRenderer, SVGRenderer } from 'echarts/renderers';\n\necharts.use([\n // renderers\n CanvasRenderer,\n SVGRenderer,\n\n // core components used by all charts\n TitleComponent,\n TooltipComponent\n]);\n\nexport { echarts };\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { echarts } from '../echarts.custom';\n\nconst getProp = (style: CSSStyleDeclaration, prop: string): string => {\n return style.getPropertyValue(prop);\n};\n\nconst candleStickValues = ['open', 'close', 'lowest', 'highest'];\n\nconst tooltipFormatter = (p: object | object[]): string => {\n const params = Array.isArray(p) ? p : [p];\n const label: string = params[0]?.axisValueLabel ?? '';\n\n let html = label;\n for (const series of params) {\n const isCandle = series.componentSubType === 'candlestick';\n const isPie = series.componentSubType === 'pie';\n const useName = series.name != series.axisValue;\n const name = isPie\n ? series.data.name\n : useName\n ? // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n series.name || series.seriesName\n : series.seriesName;\n const valIndex = (series.encode.value ?? series.encode.y)[0];\n const value = isCandle\n ? ''\n : isPie\n ? series.percent + '%'\n : Array.isArray(series.value)\n ? series.value[valIndex]\n : series.value;\n\n html += '<div style=\"display: flex; align-items: center;\">';\n html += series.marker?.replace('margin-right', 'margin-inline-end');\n html += `<span style=\"margin-inline: 4px 8px\">${name}</span>`;\n html += `<span style=\"margin-inline-start: auto\">${value}</span>`;\n html += '</div>';\n\n if (isCandle) {\n const miniMarker = `<span style=\"display:inline-block;vertical-align:middle;margin-inline:3px 8px;border-radius:4px;width:4px;height:4px;background:${series.color};\"></span>`;\n for (let i = 0; i < candleStickValues.length; i++) {\n const v = candleStickValues[i];\n const idx = series.encode.y[i];\n html += '<div style=\"display: flex; align-items: center;\">';\n html += miniMarker;\n html += `<span style=\"margin-inline-end: 8px\">${v}</span>`;\n html += `<span style=\"margin-inline-start: auto\">${series.value[idx]}</span>`;\n html += '</div>';\n }\n }\n }\n return html;\n};\n\nexport const themeElement = {\n name: 'element',\n style: () => {\n const style = window.getComputedStyle(document.documentElement);\n\n const elementUi0 = getProp(style, '--element-ui-0');\n const elementUi0Hover = getProp(style, '--element-ui-0-hover');\n const elementUi1 = getProp(style, '--element-ui-1');\n const elementUi2 = getProp(style, '--element-ui-2');\n const elementUi3 = getProp(style, '--element-ui-3');\n const elementUi4 = getProp(style, '--element-ui-4');\n const elementBase1 = getProp(style, '--element-base-1');\n const elementTextPrimary = getProp(style, '--element-text-primary');\n const elementTextSecondary = getProp(style, '--element-text-secondary');\n const elementTextInverse = getProp(style, '--element-text-inverse');\n\n // The order of colors is provided by ux.\n const colorPalettes = {\n default: [\n getProp(style, '--element-data-1'), // $siemens-data-petrol,\n getProp(style, '--element-data-2'), // $siemens-data-turquoise-900,\n getProp(style, '--element-data-4'), // $siemens-data-turquoise-700,\n getProp(style, '--element-data-6'), // $siemens-data-interactive-coral-900,\n getProp(style, '--element-data-5'), // $siemens-data-royal-blue-500,\n getProp(style, '--element-data-7'), // $siemens-data-purple-700,\n getProp(style, '--element-data-8'), // $siemens-data-purple-900,\n getProp(style, '--element-data-9'), // $siemens-data-orchid-700,\n getProp(style, '--element-data-11'), // $siemens-data-plum-900,\n getProp(style, '--element-data-12'), // $siemens-data-plum-500\n getProp(style, '--element-data-13'), // $siemens-data-royal-blue-700,\n getProp(style, '--element-data-16'), // $siemens-data-sand-700,\n getProp(style, '--element-data-17'), // $siemens-data-deep-blue-700\n getProp(style, '--element-data-3'), // $siemens-data-green-700,\n getProp(style, '--element-data-10'), // $siemens-data-red-700,\n getProp(style, '--element-data-14'), // $siemens-data-orange-900,\n getProp(style, '--element-data-15') // $siemens-data-yellow-900,\n ]\n };\n\n const gradientColors = {\n default: [\n getProp(style, '--element-data-1'), // $siemens-data-petrol,\n getProp(style, '--element-data-2') // $siemens-data-turquoise-900,\n ]\n };\n\n const axisFontSize = 12;\n const axisLineHeight = 12;\n const axisLineColor = elementUi4;\n\n const rootFontSizeRaw = getProp(style, 'font-size');\n const rootFontSize = rootFontSizeRaw.endsWith('px') ? parseInt(rootFontSizeRaw) : 16;\n\n // value based on body-2\n const fontSize = rootFontSize * 0.875;\n // diverging here by intention\n const lineHeight = fontSize;\n const textColor = elementTextPrimary;\n\n const candlestickBull = colorPalettes.default[4];\n const candlestickBear = colorPalettes.default[12];\n\n const dataZoomFillerColor = echarts.color.modifyAlpha(elementUi4, 0.4);\n const dataZoomBrushColor = elementUi0;\n const dataZoomAreaColor = elementUi4;\n const dataZoomLineColor = elementUi2;\n\n const dataZoomHandleIcon =\n 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z';\n const dataZoomHandleColor = elementUi0;\n\n const tooltipBackground = echarts.color.modifyAlpha(elementUi1, 0.8);\n\n const rtl = style.direction === 'rtl';\n\n // For E2E testing to get rid of font-loading instability.\n const fontFamily = navigator.webdriver ? 'sans-serif' : undefined;\n\n return {\n textStyle: {\n fontFamily\n },\n richInheritPlainLabel: false,\n color: colorPalettes.default,\n gradientColor: gradientColors.default,\n backgroundColor: 'transparent',\n animationDuration: 700,\n\n title: {\n left: 0,\n top: 0,\n padding: [10, 0, 0, 10],\n textStyle: {\n fontFamily,\n lineHeight,\n fontSize,\n color: textColor\n },\n subtextStyle: {\n fontFamily,\n lineHeight,\n fontSize,\n color: elementTextSecondary\n }\n },\n\n legend: {\n backgroundColor: 'transparent',\n inactiveColor: elementUi3,\n left: 'auto',\n right: 20,\n top: 35,\n itemGap: 10,\n textStyle: {\n fontFamily,\n color: textColor,\n lineHeight,\n fontSize\n },\n icon: 'circle',\n pageTextStyle: {\n color: textColor\n },\n itemStyle: {\n borderWidth: 0,\n itemGap: 12\n }\n },\n\n tooltip: {\n borderWidth: 0,\n backgroundColor: tooltipBackground,\n textStyle: {\n fontFamily,\n color: 'var(--element-text-inverse)',\n fontWeight: 400\n },\n padding: [8, 12, 8, 12],\n axisPointer: {\n crossStyle: {\n color: elementUi3,\n width: 1\n }\n },\n formatter: tooltipFormatter\n },\n\n axisPointer: {\n label: {\n fontFamily,\n color: elementTextInverse,\n backgroundColor: elementUi1,\n lineHeight: axisLineHeight,\n fontSize: axisFontSize\n },\n lineStyle: {\n color: elementUi3,\n width: 2\n },\n handle: {\n color: 'rgba(0,0,0,0)',\n margin: 0\n }\n },\n\n grid: {\n top: 85,\n left: 32,\n right: 32,\n bottom: 30,\n containLabel: true\n },\n\n valueAxis: {\n nameTextStyle: {\n fontFamily,\n color: elementTextSecondary\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: axisLineColor\n }\n },\n axisLabel: {\n fontFamily,\n color: textColor,\n lineHeight: axisLineHeight,\n fontSize: axisFontSize,\n hideOverlap: true\n },\n axisTick: {\n alignWithLabel: true\n },\n splitLine: {\n lineStyle: {\n color: axisLineColor\n }\n }\n },\n timeAxis: {\n inverse: rtl,\n nameTextStyle: {\n fontFamily,\n color: elementTextSecondary\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: axisLineColor\n }\n },\n axisLabel: {\n fontFamily,\n color: textColor,\n lineHeight: axisLineHeight,\n fontSize: axisFontSize,\n hideOverlap: true\n },\n axisTick: {\n show: true,\n alignWithLabel: true\n },\n splitLine: {\n lineStyle: {\n color: axisLineColor\n }\n }\n },\n categoryAxis: {\n inverse: rtl,\n nameTextStyle: {\n fontFamily,\n color: elementTextSecondary\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: axisLineColor\n }\n },\n axisLabel: {\n fontFamily,\n color: textColor,\n lineHeight: axisLineHeight,\n fontSize: axisFontSize,\n hideOverlap: true\n },\n axisTick: {\n show: true,\n alignWithLabel: true\n },\n splitLine: {\n lineStyle: {\n color: axisLineColor\n }\n }\n },\n\n dataZoom: {\n textStyle: {\n fontFamily,\n color: textColor,\n lineHeight: axisLineHeight,\n fontSize: axisFontSize\n },\n borderColor: elementUi4,\n fillerColor: dataZoomFillerColor,\n handleIcon: dataZoomHandleIcon,\n handleStyle: {\n color: dataZoomHandleColor,\n borderColor: elementUi4\n },\n moveHandleStyle: {\n color: elementUi4,\n opacity: 1\n },\n brushStyle: {\n color: dataZoomBrushColor\n },\n dataBackground: {\n areaStyle: {\n color: dataZoomAreaColor\n },\n lineStyle: {\n color: dataZoomLineColor\n }\n },\n selectedDataBackground: {\n areaStyle: {\n color: dataZoomLineColor,\n opacity: 0.2\n },\n lineStyle: {\n color: dataZoomLineColor\n }\n },\n emphasis: {\n moveHandleStyle: {\n color: elementUi0Hover,\n opacity: 1\n },\n handleStyle: {\n color: elementUi0Hover,\n borderColor: elementUi4\n }\n }\n },\n\n toolbox: {\n feature: {\n dataZoom: {\n brushStyle: {\n color: dataZoomFillerColor\n }\n }\n }\n },\n\n // different chart types\n graph: {\n color: colorPalettes.default\n },\n\n bar: {\n barGap: 0,\n label: {\n fontFamily,\n color: elementTextSecondary,\n fontSize\n }\n },\n\n line: {\n areaStyle: {\n opacity: 0.3\n },\n symbol: 'circle',\n symbolSize: 4\n },\n\n pie: {\n radius: [0, '75%'],\n label: {\n distanceToLabelLine: 2,\n fontFamily,\n formatter: '{d}%',\n color: elementTextSecondary,\n lineHeight,\n fontSize\n },\n labelLine: {\n length: 15,\n length2: 8,\n lineStyle: {\n color: elementTextSecondary\n }\n },\n itemStyle: {\n borderWidth: 2,\n borderColor: elementBase1\n }\n },\n\n candlestick: {\n itemStyle: {\n color: candlestickBull,\n color0: candlestickBear,\n borderColor: candlestickBull,\n borderColor0: candlestickBear\n }\n },\n\n gauge: {\n detail: {\n color: elementTextPrimary,\n rich: {\n value: {\n color: elementTextPrimary\n },\n unit: {\n color: elementTextPrimary\n }\n }\n },\n axisLabel: {\n fontFamily,\n color: elementTextPrimary\n },\n axisTick: {\n lineStyle: {\n color: axisLineColor\n }\n },\n splitLine: {\n lineStyle: {\n color: axisLineColor\n }\n }\n },\n\n sankey: {\n label: {\n fontFamily,\n textBorderColor: 'transparent',\n color: textColor\n }\n },\n sunburst: {\n label: {\n fontFamily,\n textBorderColor: 'transparent',\n color: textColor\n }\n },\n\n simpl: {\n colorPalettes,\n\n dataZoom: {\n options: {\n height: 36,\n bottom: 20\n },\n grid: {\n bottom: 80\n }\n },\n\n timeRangeBar: {\n height: 32\n },\n\n externalZoomSlider: {\n grid: {\n bottom: 10\n }\n },\n\n legendLeft: {\n left: 10,\n width: '45%'\n },\n legendRight: {\n right: 20,\n width: '45%'\n },\n\n noTitle: {\n grid: {\n top: 60\n },\n legend: {\n top: 15\n }\n },\n\n subTitle: {\n grid: {\n top: 110\n },\n legend: {\n top: 65\n }\n },\n\n customLegend: {\n grid: {\n top: 64\n }\n },\n\n progress: {\n itemWidth: 6,\n itemGap: 6,\n grey: elementUi4\n },\n\n progressBar: {\n labelColor: textColor,\n itemWidth: 20,\n grid: {\n left: 16,\n right: 52,\n containLabel: true\n }\n },\n\n gauge: {\n grey: elementUi4,\n value: elementTextPrimary,\n unit: elementTextSecondary,\n defaultColor: elementUi0\n }\n }\n };\n }\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { themeElement } from './themes/element';\n\nexport const themeSupport = {\n _defaultTheme: themeElement,\n _themes: {} as { [key: string]: any },\n\n registerTheme(theme: any) {\n if (theme.name) {\n this._themes[theme.name] = theme;\n }\n },\n\n getThemeNames() {\n return Object.keys(this._themes);\n },\n\n getThemeByName(name: string) {\n return this._themes[name];\n },\n\n setDefault(theme: any) {\n this._defaultTheme = theme;\n },\n\n getDefault(): any {\n return this._defaultTheme;\n }\n};\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n model,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n output,\n signal,\n SimpleChanges,\n viewChild,\n viewChildren\n} from '@angular/core';\nimport {\n CustomLegend,\n CustomLegendItem,\n CustomLegendProps,\n SiCustomLegendComponent\n} from '@spike-rabbit/charts-ng/custom-legend';\nimport { SiChartLoadingSpinnerComponent } from '@spike-rabbit/charts-ng/loading-spinner';\n\nimport { echarts } from './echarts.custom';\nimport {\n DataZoomComponentOption,\n EChartOption,\n EChartSeries,\n GridComponentOption\n} from './echarts.model';\nimport {\n AxisPointerEvent,\n CustomLegendMultiLineInfo,\n DataZoomEvent,\n DataZoomRange,\n FilterMode,\n GridRectCoordinate,\n LegendItem,\n LineColor,\n SelectedLegendItem,\n SeriesSelectionState,\n SeriesUpdate\n} from './si-chart.interfaces';\nimport { themeSupport } from './theme-support';\n\n@Component({\n selector: 'si-chart-base',\n imports: [SiCustomLegendComponent, SiChartLoadingSpinnerComponent],\n templateUrl: './si-chart-base.component.html',\n styleUrl: './si-chart-base.component.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '(window:theme-switch)': 'themeSwitch()'\n }\n})\nexport class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, OnDestroy {\n /**\n * reference to the wrapper container. Used for setting scroll position, etc.\n *\n * @defaultValue\n * ```\n * viewChild.required<ElementRef>('chartContainerWrapper')\n * ```\n */\n readonly chartContainerWrapper = viewChild.required<ElementRef>('chartContainerWrapper');\n protected readonly chartContainer = viewChild<ElementRef>('chart');\n protected readonly externalZoomSliderContainer = viewChild<ElementRef>('externalZoomSlider');\n protected readonly siCustomLegend = viewChildren('siCustomLegend', {\n read: SiCustomLegendComponent\n });\n\n /**\n * See [ECharts 5.x Documentation]{@link https://echarts.apache.org/en/option.html}\n * for all available options.\n */\n readonly options = input<EChartOption>();\n /** Used to override specific properties set in `options`. */\n readonly additionalOptions = input<EChartOption>();\n /** The title of the chart. */\n readonly title = input<string>();\n /** The subtitle of the chart. */\n readonly subTitle = input<string>();\n /**\n * Show Echarts legend\n *\n * @defaultValue true\n */\n readonly showLegend = model(true);\n /**\n * Enable to show a custom legend.\n * The custom legend offers additional features such as, scroll bar to avoid legend and chart overlapping,\n * Left and right alignment of legends based on y-axis, etc and many more.\n * @defaultValue false\n */\n readonly showCustomLegend = input(false);\n /**\n * the renderer to use: canvas or svg\n *\n * @defaultValue 'canvas'\n */\n readonly renderer = input<'canvas' | 'svg'>('canvas');\n /**\n * Enables the zoom slider below the chart.\n *\n * @defaultValue false\n */\n readonly zoomSlider = input(false);\n /**\n * Shows data shadow in dataZoom slider, use together with `zoomSlider`.\n *\n * @defaultValue true\n */\n readonly zoomSliderShadow = input(true);\n /**\n * realtime update mode for zoom slider\n *\n * @defaultValue true\n */\n readonly zoomSliderRealtime = input(true);\n /**\n * enable brush mode for zoom slider\n *\n * @defaultValue true\n */\n readonly zoomSliderBrush = input(true);\n /**\n * Enables zooming inside the chart with the mouse wheel/touch.\n *\n * Whether zooming inside the chart is possible with mouse.\n *\n * @defaultValue false\n */\n readonly zoomInside = input(false);\n /**\n * Maximum number of series data points shown in the chart.\n *\n * @defaultValue 1000\n */\n readonly maxEntries = input(1000);\n /**\n * No auto dataZoom update) by default. Use together with `autoZoomSeriesIndex`.\n *\n * @defaultValue -1\n */\n readonly visibleEntries = model(-1);\n /**\n * No auto dataZoom update) by default. Use together with `autoZoomSeriesIndex`.\n *\n * @defaultValue -1\n */\n readonly visibleRange = model(-1);\n /**\n * No auto dataZoom update) by default. Use together with `visibleEntries`.\n *\n * @defaultValue -1\n */\n readonly autoZoomSeriesIndex = input(-1);\n /** The desired theme to load. */\n readonly theme = input<any>();\n /** Used to override specific options of loaded `theme`. */\n readonly themeCustomization = input<any>();\n /**\n * The name of the color palette (if any) of the loaded `theme`.\n *\n * @defaultValue undefined\n */\n readonly palette = input<string | undefined>();\n /**\n * Used to display `axisPointer` line either by click or mouse-move.\n *\n * @defaultValue false\n */\n readonly axisPointer = input<(boolean | string) | undefined>(false);\n /**\n * Apply a specific zoom range (see {@link https://echarts.apache.org/en/option.html#dataZoom-inside}).\n */\n readonly dataZoomRange = input<DataZoomRange>();\n /**\n * The lower limit of the data zoom slider (see {@link https://echarts.apache.org/en/option.html#dataZoom-slider.minValueSpan}).\n */\n readonly dataZoomMinValueSpan = input<number>();\n /**\n * The upper limit of the data zoom slider (see {@link https://echarts.apache.org/en/option.html#dataZoom-slider.maxValueSpan}).\n */\n readonly dataZoomMaxValueSpan = input<number>();\n /**\n * The data zoom filter mode. (see {@link https://echarts.apache.org/en/option.html#dataZoom-inside.filterMode})\n *\n * The value 'filter' will cause the lines to be disconnected to the outside of the chart.\n *\n * @defaultValue 'none'\n */\n readonly dataZoomFilterMode = input<FilterMode>('none');\n /**\n * Enable custom legend click actions exposed by the `selectionChanged` event.\n */\n readonly customLegendAction = input<boolean>();\n /**\n * Specify selected legend item.\n *\n * @defaultValue\n * ```\n * { legendItemName: '' }\n * ```\n */\n readonly selectedItem = input<SelectedLegendItem>({ legendItemName: '' });\n /**\n * The height of the ECharts container as decimal.\n */\n readonly eChartContainerHeight = input<string | null>();\n /**\n * Flag to use external zoom slider\n *\n * @defaultValue false\n */\n readonly externalZoomSlider = input(false);\n /** External XAxis Formatter from consumer */\n readonly externalXAxisFormatter = input<(value: any, visibleRange: number) => string>();\n /**\n * If true, add consumer-provided time range bar. Use together with `zoomSlider`.\n * @deprecated The input will be removed in future versions as the time range bar slot is deprecated.\n *\n * @defaultValue false\n */\n readonly showTimeRangeBar = input(false);\n\n /** Event emitted when data zoom changes. */\n readonly dataZoom = output<DataZoomEvent>();\n /** Event emitted when axis pointer moves. */\n readonly pointer = output<AxisPointerEvent>();\n /** Event emitted when selection changes e.g. clicking on a legend item. */\n readonly selectionChanged = output<any>();\n /** Event emitted when a chart series is clicked. */\n readonly chartSeriesClick = output<LegendItem>();\n /** Event emitted when chart grid is resized. */\n readonly chartGridResized = output<GridRectCoordinate>();\n /** Event emitted when custom legend multi-line info changes. */\n readonly customLegendMultiLineInfoEvent = output<CustomLegendMultiLineInfo[]>();\n /** Emitted when data zoom changes, indicating the time range in milliseconds, 0 for full range */\n readonly timeRangeChange = output<number>();\n\n /** Allow to override options specific for a chart type. */\n protected actualOptions: EChartOption = {};\n\n protected customLegend: CustomLegend[] = [\n {\n customLegends: [\n { list: [], unit: '' },\n { list: [], unit: '' }\n ],\n legendAxis: 'both'\n }\n ];\n /** @internal */\n chart!: echarts.ECharts;\n private extZoomSliderChart!: echarts.ECharts;\n private echartElement!: HTMLElement;\n private eChartExtSliderElement!: HTMLElement;\n protected readonly inProgress = signal(false);\n protected readonly backgroundColor = signal('');\n protected readonly textColor = signal('');\n protected readonly titleColor = signal('');\n protected readonly subTitleColor = signal('');\n private selectedSeriesColors: LineColor = {};\n private unselectedSeriesColors: LineColor = {};\n private seriesSelectionState: SeriesSelectionState = {};\n protected readonly containerHeight = signal<number | null>(null);\n\n protected activeTheme: any;\n protected autoZoomUpdate = true;\n\n private prevAxisPointer: any = {};\n private lastValidDataZoom: any = {};\n private presetDataZoomRange?: DataZoomRange;\n private dataZoomSetupDone = false;\n private requestedDataZoom?: DataZoomRange;\n private measureCanvas?: CanvasRenderingContext2D;\n private readonly cdRef = inject(ChangeDetectorRef);\n private readonly ngZone = inject(NgZone);\n\n protected curWidth = 0;\n protected curHeight = 0;\n protected readonly timeBarBottom = signal(50);\n protected readonly timeBarLeft = signal(32);\n protected readonly timeBarRight = signal(32);\n protected readonly timeBarHeight = signal(32);\n\n private gridCoordinates: GridRectCoordinate = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n containerWidth: 0,\n containerHeight: 0\n };\n private customLegendsMultiLineInfo: CustomLegendMultiLineInfo[] = [];\n protected extZoomSliderOptions: EChartOption = {\n animation: false,\n dataZoom: [\n { type: 'slider', showDataShadow: false },\n { type: 'inside', showDataShadow: false }\n ],\n grid: [{ left: 32, right: 32, top: 0, height: 0, containLabel: false }],\n xAxis: [{ type: 'time', axisLine: { onZero: true }, zlevel: 1 }],\n yAxis: [{ type: 'value', boundaryGap: [0, '100%'], splitLine: { show: false }, show: false }],\n series: [{ type: 'line', showSymbol: false, lineStyle: { opacity: 0 }, data: [] }]\n };\n\n private readonly echartMouseDown = (): void => this.handleChartMouseDown();\n private readonly echartMouseUp = (event: MouseEvent): void => this.handleChartMouseUp(event);\n\n private readonly echartExtSliderMouseDown = (): void => this.handleExtChartMouseDown();\n private readonly echartExtSliderMouseUp = (event: MouseEvent): void =>\n this.handleExtChartMouseUp(event);\n\n protected readonly shapePaths: Record<string, string> = {\n circle: 'M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0Z',\n rect: 'M0 0H12V12H0Z',\n roundRect: 'M2 0H10A2 2 0 0 1 12 2V10A2 2 0 0 1 10 12H2A2 2 0 0 1 0 10V2A2 2 0 0 1 2 0Z',\n triangle: 'M6 0L12 12H0L6 0Z',\n diamond: 'M6 0L12 6L6 12L0 6L6 0Z',\n pin: 'M6.00049 0C8.48577 0 10.5005 2.01472 10.5005 4.5C10.5005 5.51817 10.0175 6.461 9.46826 7.31836C8.42358 8.94924 7.16317 10.4497 6.00049 12C4.83781 10.4497 3.57642 8.94924 2.53174 7.31836C1.98255 6.461 1.49951 5.51817 1.49951 4.5C1.49951 2.01472 3.51521 0 6.00049 0Z'\n };\n /**\n * Allow consuming applications to re-draw chart on window resizes.\n */\n resize(): void {\n if (!this.chart) {\n return;\n }\n const rect = this.chartContainer()?.nativeElement.getBoundingClientRect();\n const width = Math.floor(rect.width);\n const height = Math.floor(rect.height);\n if (width && height && (width !== this.curWidth || height !== this.curHeight)) {\n this.curWidth = width;\n this.curHeight = height;\n\n this.ngZone.runOutsideAngular(() => {\n this.chart.resize({ width, height: this.containerHeight() ?? height });\n if (this.externalZoomSlider()) {\n this.extZoomSliderChart.resize();\n }\n setTimeout(() => this.checkGridSizeChange());\n });\n this.afterChartResize();\n }\n this.updateCustomLegendMultiLineInfo();\n }\n\n ngOnChanges(changes: SimpleChanges<unknown>): void {\n if (changes.options?.currentValue) {\n this.actualOptions = this.options()!;\n }\n\n if (!this.chart) {\n return;\n }\n\n if (changes.eChartContainerHeight) {\n this.setContainerHeight();\n }\n\n const selectedLegendItem = changes.selectedItem;\n if (\n selectedLegendItem &&\n !selectedLegendItem.isFirstChange() &&\n selectedLegendItem.currentValue\n ) {\n const event = {\n name: selectedLegendItem.currentValue.legendItemName,\n type: 'legendToggleSelect'\n };\n this.dispatchEChartAction(event);\n }\n\n if (\n this.customLegendAction() &&\n changes.options &&\n !changes.options.isFirstChange() &&\n !changes.options.currentValue.color.length\n ) {\n this.actualOptions.color = changes.options.previousValue.color;\n }\n if (changes.theme || changes.renderer) {\n // need to completely redo the chart for the theme change to take effect\n return this.resetChart();\n }\n\n let updates = 0;\n let applyAll = false;\n let skipMerge = false;\n\n if (\n changes.forceAll ||\n changes.yAxis ||\n changes.xAxis ||\n changes.options ||\n changes.series ||\n changes.value\n ) {\n // this is to clean the legend item list\n if (this.showCustomLegend() && this.customLegend && this.customLegend.length > 0) {\n this.customLegend.forEach(cl => {\n cl.customLegends = [\n { list: [], unit: '' },\n { list: [], unit: '' }\n ];\n });\n }\n this.applyOptions();\n applyAll = true;\n skipMerge =\n changes.series?.previousValue &&\n changes.series.currentValue &&\n changes.series.currentValue.length < changes.series.previousValue.length;\n updates++;\n }\n\n if (!applyAll && (changes.title || changes.subTitle)) {\n // already called when `applyOptions()` has been called\n this.applyTitles();\n updates++;\n }\n\n if (\n applyAll ||\n changes.forceAll ||\n changes.zoomSlider ||\n changes.zoomSliderShadow ||\n changes.zoomSliderRealtime ||\n changes.zoomSliderBrush ||\n changes.zoomInside ||\n changes.axisPointer ||\n changes.autoZoomSeriesIndex ||\n changes.visibleEntries ||\n changes.visibleRange\n ) {\n this.applyDataZoom();\n updates++;\n }\n\n if (applyAll || changes.forceAll || changes.palette || changes.additionalOptions) {\n this.applyAdditionalOptions();\n updates++;\n }\n\n if (applyAll) {\n this.applyStyles();\n setTimeout(() => this.updateCustomLegendMultiLineInfo());\n }\n\n let skipDz = false;\n\n if (updates) {\n if (changes.dataZoomRange) {\n this.setDataZoomRange(true);\n skipDz = true;\n }\n\n const dz = this.actualOptions.dataZoom!;\n let currentDataZoom: DataZoomComponentOption | undefined;\n if (skipMerge && this.hasDataZoom() && this.hasData() && !skipDz) {\n // forced updated is required when adding/removing series, see:\n // https://github.com/apache/incubator-echarts/issues/6202\n // in order not to mess up current datazoom, save the current value and add it to options\n this.saveCurrentDataZoom();\n if (this.lastValidDataZoom) {\n currentDataZoom = dz[0];\n const newDataZoom: DataZoomComponentOption = {};\n echarts.util.merge(newDataZoom, dz[0], true);\n echarts.util.merge(newDataZoom, this.lastValidDataZoom, true);\n dz[0] = newDataZoom;\n }\n }\n\n this.updateEChart(skipMerge);\n\n if (currentDataZoom) {\n dz[0] = currentDataZoom;\n this.updateEChart(false, { dataZoom: this.actualOptions.dataZoom });\n }\n this.applyColorsToCustomLegends();\n }\n\n if (!skipDz && changes.dataZoomRange) {\n // this is done after a possible setOptions call to ensure echarts has all the desired states\n this.setDataZoomRange();\n }\n\n this.cdRef.markForCheck();\n }\n\n ngOnInit(): void {\n const canvas = document.createElement('canvas') as HTMLCanvasElement;\n this.measureCanvas = canvas.getContext('2d') as CanvasRenderingContext2D;\n this.measureCanvas.font = '12px \"SiemensSans Pro\"';\n const externalXAxisFormatter = this.externalXAxisFormatter();\n if (this.externalZoomSlider() && externalXAxisFormatter) {\n const consumerFormatter = externalXAxisFormatter;\n this.extZoomSliderOptions.xAxis[0].axisLabel = {\n formatter: (value: any) => consumerFormatter(value, this.visibleRange())\n };\n }\n this.applyTheme();\n // this is to clean the legend item list\n if (this.showCustomLegend() && this.customLegend && this.customLegend.length > 0) {\n this.customLegend.forEach(cl => {\n cl.customLegends = [\n { list: [], unit: '' },\n { list: [], unit: '' }\n ];\n });\n }\n this.applyOptions();\n this.applyAdditionalOptions();\n this.applyDataZoom();\n this.applyStyles();\n if (this.customLegendAction()) {\n this.fetchSeriesColors();\n }\n }\n\n ngAfterViewInit(skipZoom?: boolean): void {\n this.ngZone.runOutsideAngular(() => {\n const chartContainerEl = this.chartContainer()!.nativeElement;\n // set current dimension to avoid initial resize() call on chart\n const rect = chartContainerEl.getBoundingClientRect();\n this.curWidth = Math.floor(rect.width);\n this.curHeight = Math.floor(rect.height);\n\n const opts = { renderer: this.renderer() };\n this.chart = echarts.init(chartContainerEl, this.activeTheme, opts);\n this.echartElement = chartContainerEl as HTMLElement;\n this.getEChartInner()?.addEventListener('mousedown', this.echartMouseDown);\n this.chart.setOption(this.actualOptions);\n setTimeout(() => this.checkGridSizeChange());\n\n if (this.externalZoomSlider()) {\n this.extZoomSliderChart = echarts.init(\n this.externalZoomSliderContainer()!.nativeElement,\n this.activeTheme,\n opts\n );\n this.eChartExtSliderElement = this.externalZoomSliderContainer()!\n .nativeElement as HTMLElement;\n this.getEChartExternalSliderInner()?.addEventListener(\n 'mousedown',\n this.echartExtSliderMouseDown\n );\n this.extZoomSliderChart.setOption(this.extZoomSliderOptions);\n this.extZoomSliderChart.on('datazoom', (event: any) => this.handleExtDataZoom(event));\n }\n this.afterChartInit(skipZoom);\n });\n setTimeout(() => {\n this.resize();\n this.applyColorsToCustomLegends();\n });\n }\n\n private calculateTextWidth(text: string): number {\n if (!this.measureCanvas) {\n return 150;\n }\n return Math.ceil(this.measureCanvas.measureText(text).width);\n }\n\n private disposeChart(): void {\n if (this.chart && !this.chart.isDisposed()) {\n this.chart.dispose();\n }\n if (this.extZoomSliderChart && !this.extZoomSliderChart.isDisposed()) {\n this.extZoomSliderChart.dispose();\n }\n }\n\n ngOnDestroy(): void {\n this.disposeChart();\n }\n\n /**\n * Switch theme using echarts api, which does not need reloading the whole chart.\n */\n themeSwitch(): void {\n if (!this.chart) {\n return;\n }\n\n this.applyTheme();\n this.chart.setTheme(this.activeTheme);\n\n // Since color palette is set thorugh options, it needs to be set again.\n this.themeChanged();\n this.applyPalette();\n this.applyStyles();\n this.applyTitles();\n\n setTimeout(() => {\n this.applyColorsToCustomLegends();\n });\n this.chart.setOption(this.actualOptions);\n\n if (this.externalZoomSlider()) {\n this.extZoomSliderChart.setTheme(this.activeTheme);\n this.extZoomSliderChart.setOption(this.extZoomSliderOptions);\n }\n this.cdRef.markForCheck();\n }\n\n /**\n * Re-render the whole chart.\n * @deprecated The method is deprecated and should not be used directly by the consumer.\n */\n resetChart(): void {\n this.applyTheme();\n\n if (!this.actualOptions) {\n // this can happen if the SiThemeService fires the theme switch when the chart is not\n // yet completely initialized\n return;\n }\n\n this.disposeChart();\n this.applyPalette();\n const addOpts = this.additionalOptions();\n if (addOpts?.palette) {\n echarts.util.merge(this.actualOptions.palette, addOpts.palette, true);\n }\n this.themeChanged();\n this.applyStyles();\n this.applyTitles();\n this.ngAfterViewInit(true); // eslint-disable-line @angular-eslint/no-lifecycle-call\n this.cdRef.markForCheck();\n }\n\n protected handleLegendClick(legend: CustomLegendItem): void {\n this.doToggleSeriesVisibility(legend.name, legend.selected, legend);\n this.cdRef.markForCheck();\n }\n\n protected handleLegendHover(legend: CustomLegendItem, start: boolean): void {\n this.dispatchEChartAction({\n type: start ? 'highlight' : 'downplay',\n [legend.alternativeNaming ? 'name' : 'seriesName']: legend.name\n });\n }\n\n /**\n * Toggle visibility of a series.\n */\n toggleSeriesVisibility(name: string, visible: boolean): void {\n const legendItem = this.findCustomLegendItem(name);\n this.doToggleSeriesVisibility(name, visible, legendItem);\n this.cdRef.markForCheck();\n }\n\n private doToggleSeriesVisibility(\n name: string,\n visible: boolean,\n legendItem?: CustomLegendItem\n ): void {\n if (legendItem) {\n legendItem.selected = visible;\n }\n this.dispatchEChartAction({ type: visible ? 'legendSelect' : 'legendUnSelect', name });\n\n if (this.externalZoomSlider()) {\n this.ngZone.runOutsideAngular(() => {\n this.extZoomSliderChart.dispatchAction({\n type: visible ? 'legendSelect' : 'legendUnSelect',\n name\n });\n });\n }\n const opt = this.getOptionNoClone();\n if (Array.isArray(opt.legend)) {\n const selection: any = {};\n opt.legend.forEach((l: any) => Object.assign(selection, l.selected));\n this.handleSelectionChanged({ selected: selection });\n }\n }\n\n private findCustomLegendItem(name: string): CustomLegendItem | undefined {\n if (this.showCustomLegend()) {\n for (const cl of this.customLegend) {\n for (const l of cl.customLegends) {\n for (const item of l.list) {\n if (item.name === name) {\n return item;\n }\n }\n }\n }\n }\n return undefined;\n }\n\n protected getValidXAxis(): Set<number> | undefined {\n return undefined;\n }\n\n protected setZoomMode(): void {}\n\n private applyTheme(): void {\n // Set default theme if no theme provided\n const theme = this.theme();\n if (theme?.style) {\n this.activeTheme = theme.style();\n } else if (themeSupport._defaultTheme?.style) {\n this.activeTheme = themeSupport._defaultTheme.style();\n }\n const themeCustomization = this.themeCustomization();\n if (themeCustomization) {\n const custom = echarts.util.merge({}, themeCustomization);\n this.activeTheme = echarts.util.merge(custom, this.activeTheme);\n }\n }\n\n protected themeChanged(): void {}\n\n protected applyOptions(): void {}\n\n protected applyCustomLegendPosition(): void {\n if (this.showLegend() && this.showCustomLegend()) {\n this.customLegend.forEach(cl => {\n if (cl.customLegends?.[0].list && cl.customLegends?.[1].list) {\n const leftLegend = cl.customLegends[0];\n const rightLegend = cl.customLegends[1];\n\n // if we have left and right axis\n if (leftLegend.list.length > 0 && rightLegend.list.length > 0) {\n cl.legendAxis = 'both';\n } else if (leftLegend.list.length > 0 && rightLegend.list.length === 0) {\n // if we have only left axis data\n cl.legendAxis = 'left';\n } else if (leftLegend.list.length === 0 && rightLegend.list.length > 0) {\n // if we have only right axis data\n cl.legendAxis = 'right';\n } else {\n cl.legendAxis = 'both';\n }\n } else {\n cl.legendAxis = 'both';\n }\n });\n this.cdRef.markForCheck();\n }\n }\n\n private applyAdditionalOptions(): void {\n // need to merge palette before the additionalOptions so that overrides work as expected\n this.applyPalette();\n\n if (this.additionalOptions()) {\n echarts.util.merge(this.actualOptions, this.additionalOptions(), true);\n }\n }\n\n private applyPalette(): void {\n const paletteValue = this.palette() ?? 'default';\n if (paletteValue) {\n const palette = this.getThemeCustomValue(['colorPalettes', paletteValue], null);\n if (palette) {\n this.actualOptions.color = palette;\n if (this.customLegendAction()) {\n this.fetchSeriesColors(palette);\n }\n }\n }\n }\n\n protected applyDataZoom(): void {\n if (!this.actualOptions.grid) {\n return;\n }\n this.actualOptions.dataZoom ??= [];\n\n const sliderOptions: any = {};\n const dataZoomMinValueSpan = this.dataZoomMinValueSpan();\n if (dataZoomMinValueSpan) {\n sliderOptions.minValueSpan = dataZoomMinValueSpan;\n }\n const dataZoomMaxValueSpan = this.dataZoomMaxValueSpan();\n if (dataZoomMaxValueSpan) {\n sliderOptions.maxValueSpan = dataZoomMaxValueSpan;\n }\n sliderOptions.realtime = this.zoomSliderRealtime();\n sliderOptions.brushSelect = this.zoomSliderBrush();\n sliderOptions.showDataShadow = this.zoomSliderShadow();\n sliderOptions.filterMode = this.dataZoomFilterMode();\n sliderOptions.showDetail = false;\n // keep external zoom slider in sync, always at index 0\n Object.assign(this.extZoomSliderOptions.dataZoom![0], sliderOptions);\n\n const dz = this.actualOptions.dataZoom!;\n const sliderIdx = dz.findIndex(z => z.type === 'slider');\n const insideIdx = dz.findIndex(z => z.type === 'inside');\n const zoomSlider = this.zoomSlider();\n if (zoomSlider && sliderIdx === -1) {\n // for the non-external, merge with other options\n const customOptions = this.getThemeCustomValue(['dataZoom', 'options'], {});\n const dzSliderOptions: any = Object.assign({ type: 'slider' }, customOptions, sliderOptions);\n Object.assign(this.extZoomSliderOptions.dataZoom![0], customOptions);\n\n const externalZoomSlider = this.externalZoomSlider();\n if (externalZoomSlider) {\n dzSliderOptions.show = false;\n }\n dz.push(dzSliderOptions);\n\n const gridOptions = externalZoomSlider\n ? this.getThemeCustomValue(['externalZoomSlider', 'grid'], {})\n : this.getThemeCustomValue(['dataZoom', 'grid'], {});\n\n if (this.showTimeRangeBar()) {\n const timeBarOptions = this.getThemeCustomValue(['timeRangeBar'], {});\n if (customOptions.height && customOptions.bottom) {\n this.timeBarBottom.set(customOptions.height + customOptions.bottom);\n }\n this.timeBarHeight.set(timeBarOptions?.height ?? 32);\n\n if (!externalZoomSlider) {\n gridOptions.bottom = (gridOptions?.bottom ?? 0) + this.timeBarHeight();\n }\n }\n\n echarts.util.merge(this.actualOptions.grid, gridOptions, true);\n } else if (zoomSlider && sliderIdx >= 0) {\n // update existing\n const dzSliderOptions = dz[sliderIdx];\n Object.assign(dzSliderOptions, sliderOptions);\n } else if (!zoomSlider && sliderIdx >= 0) {\n dz.splice(sliderIdx, 1);\n }\n const zoomInside = this.zoomInside();\n if (zoomInside && insideIdx === -1) {\n dz.push({ type: 'inside', filterMode: this.dataZoomFilterMode() });\n } else if (!zoomInside && insideIdx >= 0) {\n dz.splice(insideIdx, 1);\n }\n\n if (this.actualOptions.xAxis) {\n this.handleAxisPointer(this.actualOptions);\n }\n this.cdRef.markForCheck();\n }\n\n private handleAxisPointer(options: EChartOption): void {\n const axisPointer = this.axisPointer();\n if (axisPointer !== undefined) {\n options.axisPointer ??= {};\n }\n if (axisPointer === true) {\n options.axisPointer.triggerOn = 'click';\n } else if (axisPointer === false) {\n options.axisPointer.triggerOn = 'mousemove|click';\n } else if (typeof axisPointer === 'string') {\n options.axisPointer.triggerOn = axisPointer;\n }\n if (Array.isArray(options.xAxis)) {\n const xAxisArray: any[] = options.xAxis;\n xAxisArray.forEach(axis => this.handleAxisPointerSingleAxis(axis));\n } else {\n this.handleAxisPointerSingleAxis(options.xAxis);\n }\n }\n\n private handleAxisPointerSingleAxis(xAxis: any): void {\n if (this.axisPointer()) {\n echarts.util.merge(xAxis, { axisPointer: { handle: { show: true } } }, true);\n } else {\n echarts.util.merge(xAxis, { axisPointer: { handle: { show: false } } }, true);\n }\n }\n\n protected hasDataZoom(): boolean {\n return !!this.actualOptions.dataZoom?.length;\n }\n\n protected getThemeValue(props: string[], defaultValue: any, ns?: string): any {\n if (!this.activeTheme) {\n return defaultValue;\n }\n\n let currentValue = this.activeTheme;\n if (ns) {\n currentValue = currentValue[ns];\n }\n for (let i = 0; currentValue && i < props.length; i++) {\n currentValue = currentValue[props[i]];\n }\n return currentValue ?? defaultValue;\n }\n\n protected getThemeCustomValue(props: string[], defaultValue: any): any {\n return this.getThemeValue(props, defaultValue, 'simpl');\n }\n\n protected applyTitles(): void {\n const title = this.title();\n const subTitle = this.subTitle();\n const options = this.actualOptions;\n if (this.showLegend() && this.showCustomLegend()) {\n if (options.title) {\n options.title.show = false;\n }\n options.legend?.forEach(legend => {\n legend.show = false;\n legend.height = 0;\n });\n if (options.grid) {\n const gridOptions = this.getThemeCustomValue(['customLegend', 'grid'], {});\n echarts.util.merge(options.grid, gridOptions, true);\n }\n\n this.titleColor.set(this.getThemeValue(['title', 'textStyle', 'color'], null));\n this.subTitleColor.set(\n this.getThemeValue(['title', 'subtextStyle', 'color'], this.titleColor)\n );\n this.textColor.set(this.getThemeValue(['legend', 'textStyle', 'color'], null));\n this.backgroundColor.set(this.getThemeValue(['backgroundColor'], null));\n } else if (title || subTitle) {\n options.title = {\n text: title,\n subtext: subTitle\n };\n if (subTitle) {\n this.modifyTopAlignment('subTitle');\n }\n } else if (!title && !subTitle && !options.title) {\n this.modifyTopAlignment('noTitle');\n }\n }\n\n private modifyTopAlignment(key: string): void {\n const options = this.actualOptions;\n if (options.grid && !this.options()?.grid) {\n const gridOptions = this.getThemeCustomValue([key, 'grid'], {});\n echarts.util.merge(options.grid, gridOptions, true);\n }\n\n if (!this.options()?.legend) {\n const legendOptions = this.getThemeCustomValue([key, 'legend'], {});\n options.legend?.forEach(legend => echarts.util.merge(legend, legendOptions, true));\n }\n }\n\n protected afterChartInit(skipZoom?: boolean): void {\n this.chart.on('datazoom', (event: any) => this.handleDataZoom(event, 'echart'));\n if (!this.customLegendAction()) {\n // default generic si-chart behavior\n this.chart.on('legendselectchanged', (event: any) => this.handleSelectionChanged(event));\n this.chart.on('click', (event: any) => this.handleClickOnChart(event, false));\n } else {\n // custom chart behaviour\n this.chart.on('legendselectchanged', (event: any) =>\n this.handleSelectionChangedCustom(event)\n );\n this.chart.on('click', (event: any) => this.handleClickOnChart(event, true));\n }\n this.chart.on('updateaxispointer', (event: any) => this.handleUpdateAxisPointer(event));\n if (!skipZoom) {\n this.setDataZoomRange();\n }\n this.cdRef.markForCheck();\n }\n\n protected afterChartResize(): void {}\n\n private getEChartInner(): Element | null {\n return this.echartElement.querySelector(':scope > div:first-child');\n }\n\n private getEChartExternalSliderInner(): Element | null {\n return this.eChartExtSliderElement.querySelector(':scope > div:first-child');\n }\n\n private handleExtChartMouseDown(): void {\n window.addEventListener('mouseup', this.echartExtSliderMouseUp);\n }\n\n private handleExtChartMouseUp(event: MouseEvent): void {\n window.removeEventListener('mouseup', this.echartExtSliderMouseUp);\n const newEvent = new MouseEvent('mouseup', event);\n setTimeout(() => {\n this.getEChartExternalSliderInner()?.dispatchEvent(newEvent);\n this.cdRef.markForCheck();\n }, 1);\n }\n\n private handleChartMouseDown(): void {\n window.addEventListener('mouseup', this.echartMouseUp);\n }\n\n private handleChartMouseUp(event: MouseEvent): void {\n window.removeEventListener('mouseup', this.echartMouseUp);\n const newEvent = new MouseEvent('mouseup', event);\n setTimeout(() => {\n this.getEChartInner()?.dispatchEvent(newEvent);\n this.cdRef.markForCheck();\n }, 1);\n }\n\n private setDataZoomRange(skipUpdate?: boolean): void {\n // Checking if we received a valid dataZoomRange Object\n const dataZoomRange = this.dataZoomRange();\n if (dataZoomRange && Object.keys(dataZoomRange).length > 0) {\n // If series has data, then directly dispatch action for the dataZoom event\n // Else, Store the dataZoomRange values in presetDataZoomRange variable for applying zoom\n // after data is received in chart\n // No need to reassign presetDataZoomRange if earlier value is not consumed\n if (this.hasData()) {\n const dz = this.getPresetDataZoom(dataZoomRange);\n if (dz) {\n const requested = { ...dataZoomRange };\n this.presetDataZoomRange = undefined;\n\n this.updateDataZoom(dz);\n if (!skipUpdate) {\n this.updateEChart(false, { dataZoom: [dz] });\n }\n\n // update user with proper data\n setTimeout(() => {\n this.ngZone.runOutsideAngular(() => {\n this.requestedDataZoom = requested;\n this.handleDataZoom(dz, 'setDataZoomRange');\n });\n });\n\n return;\n }\n }\n this.presetDataZoomRange = dataZoomRange;\n }\n }\n\n private handleDataZoom(event: any, source?: string): void {\n // events can be batched\n if (event.batch?.length) {\n event = event.batch[0];\n }\n if (Number.isNaN(event.start) || Number.isNaN(event.end)) {\n // need to fix to the last valid dataZoom setting, see below\n this.chart.dispatchAction({ type: 'dataZoom', ...this.lastValidDataZoom });\n return;\n }\n\n const effectiveOpts = this.getOptionNoClone();\n // in case of pane by chart area, event.start and event.end are always undefined.\n // and in case of slider move, they has values in percentage(0-100)\n // so, to handle in case of pane, we need to get start and end values from datazoom property\n // following condition will be executed only if autozoom is false; and start and end are undefined(undefined means call is from pane)\n const dz = effectiveOpts.dataZoom[0];\n this.autoZoomUpdate = !!dz && dz.end === 100;\n // Due to chart updates outside Angular, we need to emit events back\n // inside Angular to activate Angular's change detection.\n const range = this.getVisibleRange();\n if (range) {\n range.source = source ?? event.source;\n this.calculateVisibleRange(range);\n if (this.requestedDataZoom) {\n range.requested = this.requestedDataZoom;\n this.requestedDataZoom = undefined;\n }\n\n this.ngZone.run(() => {\n this.dataZoom.emit(range);\n this.timeRangeChange.emit(\n dz.start === 0 && dz.end === 100 ? 0 : range.rangeEnd - range.rangeStart\n );\n });\n\n setTimeout(() => this.checkGridSizeChange());\n this.presetDataZoomRange = undefined;\n this.dataZoomSetupDone = true;\n\n // sync/store values\n this.updateDataZoom({ startValue: range.rangeStart, endValue: range.rangeEnd });\n\n if (event.source !== 'extSlider') {\n this.extZoomSliderChart?.dispatchAction({\n type: 'dataZoom',\n source: 'mainChart',\n startValue: range.rangeStart,\n endValue: range.rangeEnd\n });\n }\n }\n this.cdRef.markForCheck();\n }\n\n private handleExtDataZoom(event: any): void {\n if (event.batch?.length) {\n event = event.batch[0];\n }\n\n if (event.source === 'mainChart') {\n return;\n }\n\n const zoomModel = (this.extZoomSliderChart as any)._model;\n const range = this.doGetVisibleRange(zoomModel);\n if (range) {\n this.calculateVisibleRange(range);\n this.chart?.dispatchAction({\n type: 'dataZoom',\n source: 'extSlider',\n startValue: range.rangeStart,\n endValue: range.rangeEnd\n });\n }\n }\n\n protected handleSelectionChanged(event: any): void {\n this.selectionChanged.emit(event);\n\n for (const a in event.selected) {\n if (event.selected[a] !== false) {\n return;\n }\n }\n\n this.saveCurrentDataZoom();\n }\n\n /**\n * Creates two objects that stores the colors for selected and unselected series. Used only for custom legend actions.\n */\n protected fetchSeriesColors(colorsToBeUSed?: any): void {\n const options = this.actualOptions;\n if (!options.color?.length && this.activeTheme) {\n options.color = [...this.activeTheme.color];\n }\n if (!colorsToBeUSed && !this.activeTheme) {\n return;\n }\n options.series?.forEach((element, index) => {\n this.unselectedSeriesColors[element.name!] = {\n color: this.getThemeValue(['legend', 'unselected', 'color'], '#ccc'),\n index\n };\n const colors = colorsToBeUSed ?? this.activeTheme.color;\n this.selectedSeriesColors[element.name!] = { color: colors[index], index };\n });\n }\n\n /**\n * Handles legend select event in non echart native way.\n * @param event - legend select\n */\n protected handleSelectionChangedCustom(event: any): void {\n const optionsToChange = this.styleSelectedSeries(event.name, false, event.dataIndex);\n this.ngZone.runOutsideAngular(() => {\n this.chart.setOption(optionsToChange);\n this.chart.dispatchAction({ type: 'legendSelect', name: event.name });\n });\n }\n\n /**\n * Handles click on series in non echart native way.\n * @param event - click\n */\n protected handleClickOnChart(event: any, toggleVisibility: boolean): void {\n if (event.componentType !== 'series') {\n return;\n }\n if (toggleVisibility) {\n const optionsToChange = this.styleSelectedSeries(event.seriesName, true, event.dataIndex);\n this.chart.setOption(optionsToChange);\n } else {\n this.ngZone.run(() =>\n this.chartSeriesClick.emit({\n itemName: event.seriesName,\n dataIndex: event.dataIndex\n })\n );\n }\n }\n\n /**\n * Selects or unselects the series based on series state object\n * @param seriesName - series to be selected/unselected\n * @param emit - if true event is emitted otherwise no event is emitted\n */\n protected styleSelectedSeries(seriesName: string, emit: boolean, seriesDataIndex: number): any {\n if (this.seriesSelectionState?.[seriesName]) {\n const elementToStyle = this.actualOptions.series?.find(\n element => element.name === seriesName\n );\n this.seriesSelectionState[seriesName] = false;\n return this.selectSeries(elementToStyle, emit, seriesDataIndex);\n } else {\n const elementToStyle = this.actualOptions.series?.find(\n element => element.name === seriesName\n );\n this.seriesSelectionState[seriesName] = true;\n return this.unselectSeries(elementToStyle, emit, seriesDataIndex);\n }\n }\n\n /**\n * Selects the series\n * @param element - to be styled as selected\n * @param emit - if true event is emitted otherwise no event is emitted\n */\n protected selectSeries(element: any, emit: boolean, seriesDataIndex: number): any {\n const options = this.actualOptions;\n const optionsToChange = { color: options.color, series: [options.series] };\n const optionsColorIndex = this.selectedSeriesColors[element.name].index;\n optionsToChange.color[optionsColorIndex] = this.selectedSeriesColors[element.name].color;\n if (element.areaStyle) {\n element.areaStyle.opacity = 0.4;\n optionsToChange.series[this.selectedSeriesColors[element.name].index] = element;\n }\n if (emit) {\n this.chartSeriesClick.emit({\n itemName: element.name,\n dataIndex: seriesDataIndex,\n selected: false,\n color: this.selectedSeriesColors[element.name].color\n });\n }\n return optionsToChange;\n }\n\n /**\n * Unselects the series\n * @param element - to be styled as unselected\n * @param emit - if true event is emitted otherwise no event is emitted\n */\n protected unselectSeries(\n element: any,\n emit: boolean,\n seriesDataIndex: number\n ): {\n color: any;\n series: (EChartSeries | undefined)[];\n } {\n const options = this.actualOptions;\n const optionsToChange = { color: options.color, series: [options.series] };\n const optionsColorIndex = this.selectedSeriesColors[element.name].index;\n optionsToChange.color[optionsColorIndex] = this.unselectedSeriesColors[element.name].color;\n if (element.areaStyle) {\n element.areaStyle.opacity = 0;\n optionsToChange.series[this.unselectedSeriesColors[element.name].index] = element;\n }\n if (emit) {\n this.chartSeriesClick.emit({\n itemName: element.name,\n dataIndex: seriesDataIndex,\n selected: true,\n color: this.selectedSeriesColors[element.name].color\n });\n }\n return optionsToChange;\n }\n\n private isValidDataZoomValue(val: any): boolean {\n return val !== null && val !== undefined && !Number.isNaN(val);\n }\n\n private saveCurrentDataZoom(): void {\n const options = this.actualOptions;\n if (!options.grid || !options.dataZoom) {\n return;\n }\n\n // When the last item on the legend is disabled, remember the current valid\n // dataZoom setting. Due to a bug in ECharts it happens\n // that the zoom slider disappears not to ever reappear again. To work around\n // the problem, we simply inject the last valid dataZoom settings saved here\n // once the invalid values (NaN) are detected\n const currentOpts = this.getOptionNoClone();\n if (!currentOpts?.dataZoom?.[0]) {\n return;\n }\n\n const dz = currentOpts.dataZoom[0];\n if (dz) {\n this.lastValidDataZoom = {};\n if (this.isValidDataZoomValue(dz.startValue)) {\n this.lastValidDataZoom.startValue = dz.startValue;\n } else if (this.isValidDataZoomValue(dz.start)) {\n this.lastValidDataZoom.start = dz.start;\n }\n if (this.isValidDataZoomValue(dz.endValue)) {\n this.lastValidDataZoom.endValue = dz.endValue;\n } else if (this.isValidDataZoomValue(dz.end)) {\n this.lastValidDataZoom.end = dz.end;\n }\n }\n }\n\n /**\n * Get color by series name.\n */\n getSeriesColorBySeriesName(seriesName: string): string | undefined {\n return this.doGetSeriesColorBySeriesName(seriesName).color;\n }\n\n private doGetSeriesColorBySeriesName(seriesName: string): {\n color: string | undefined;\n altName: boolean;\n } {\n const ecModel = this.internalGetModel();\n const ecSeries = ecModel.getSeriesByName(seriesName);\n if (ecSeries && ecSeries.length > 0) {\n return { color: ecSeries[0].getData().getVisual('style')?.fill as string, altName: false };\n }\n\n let ret = { color: undefined as string | undefined, altName: false };\n ecModel.eachRawSeries((seriesModel: any) => {\n const idx = seriesModel.legendVisualProvider?.indexOfName(seriesName) ?? -1;\n if (idx >= 0) {\n ret = {\n color: seriesModel.legendVisualProvider.getItemVisual(idx, 'style')?.fill as string,\n altName: true\n };\n }\n });\n return ret;\n }\n\n private applyColorsToCustomLegends(): void {\n if (!this.showLegend() || !this.showCustomLegend()) {\n return;\n }\n this.customLegend.forEach(cl => {\n cl.customLegends.forEach(legendAxis => {\n legendAxis?.list.forEach(legend => {\n const color = this.doGetSeriesColorBySeriesName(legend.name);\n legend.color = color.color;\n legend.alternativeNaming = color.altName;\n });\n });\n });\n this.cdRef.markForCheck();\n }\n\n private handleUpdateAxisPointer(event: any): void {\n if (\n event.seriesIndex !== this.prevAxisPointer.seriesIndex ||\n event.dataIndex !== this.prevAxisPointer.dataIndex\n ) {\n this.prevAxisPointer.seriesIndex = event.seriesIndex;\n this.prevAxisPointer.dataIndex = event.dataIndex;\n\n if (this.axisPointer() && event.seriesIndex === undefined) {\n return;\n }\n\n // Due to chart updates outside Angular, we need to emit events back\n // inside Angular to activate Angular's change detection.\n this.ngZone.run(() => {\n this.pointer.emit({\n seriesIndex: event.seriesIndex,\n dataIndex: event.dataIndex\n });\n });\n }\n }\n\n /**\n * Get current data zoom range.\n */\n getVisibleRange(): DataZoomEvent | undefined {\n return this.doGetVisibleRange(this.internalGetModel());\n }\n\n protected internalGetModel(): any {\n return (this.chart as any)._model;\n }\n\n /**\n * returns the current EChart options, w/o cloning anything. Be very careful\n * not to change anything in the data structure in it.\n */\n getOptionNoClone(): any {\n return this.internalGetModel().option;\n }\n\n protected parsePercent(percent: string | number, all: number): number {\n if (typeof percent === 'string') {\n if (percent.match(/\\d+%/)) {\n return (parseFloat(percent) / 100) * all;\n }\n return parseFloat(percent);\n }\n return percent;\n }\n\n private doGetVisibleRange(zoomModel: any): DataZoomEvent | undefined {\n const effectiveOpts: any = zoomModel.option;\n const xAxis = effectiveOpts.xAxis?.[0];\n const dz = effectiveOpts.dataZoom[0];\n\n const rangeStartArray: number[] = [];\n const rangeEndArray: number[] = [];\n for (let i = 0; i < effectiveOpts.xAxis?.length; i++) {\n const axis = zoomModel.getComponent('xAxis', i);\n const extent = axis?.axis?.scale?.getExtent();\n if (extent?.length) {\n if (this.isValidDataZoomValue(extent[0])) {\n rangeStartArray.push(extent[0]);\n }\n if (this.isValidDataZoomValue(extent[1])) {\n rangeEndArray.push(extent[1]);\n }\n }\n }\n\n const rangeStart = rangeStartArray.length ? Math.min(...rangeStartArray) : dz?.startValue;\n const rangeEnd = rangeEndArray.length ? Math.max(...rangeEndArray) : dz?.endValue;\n\n if (!this.isValidDataZoomValue(rangeEnd)) {\n return;\n }\n\n let gridWidth: number | undefined;\n if (effectiveOpts.grid && effectiveOpts.grid.length > 0) {\n const width = this.chart.getWidth();\n const grid = effectiveOpts.grid[0];\n gridWidth =\n width - this.parsePercent(grid.left, width) - this.parsePercent(grid.right, width);\n }\n\n return {\n rangeType: xAxis.type,\n rangeStart,\n rangeEnd,\n width: gridWidth,\n autoZoomUpdate: this.autoZoomUpdate\n };\n }\n\n protected updateEChart(force = false, options?: EChartOption): void {\n if (!this.chart) {\n return;\n }\n let axisDZUpdated = this.updateAxisAndDataZoom(options);\n options ??= this.actualOptions;\n const isFilledArray = (v: any): boolean => Array.isArray(v) && v.length > 0;\n if (\n isFilledArray(options.grid) &&\n isFilledArray(options.xAxis) &&\n isFilledArray(options.dataZoom)\n ) {\n // adjust grid for axis labels\n let max = 0;\n options.yAxis.forEach((axis: any) => {\n if (axis.position !== 'right' && isFilledArray(axis.data)) {\n axis.data.forEach((label: string) => {\n const width = this.calculateTextWidth(label);\n max = Math.max(max, width);\n });\n }\n });\n max += 16; // long text getting truncated, so add some padding\n const grids = options.grid as GridComponentOption[];\n grids.forEach(g => (g.left = Math.max(g.left as number, max)));\n\n // update dataZoom if not already set\n const zoom = options.dataZoom![0];\n if (\n !this.isValidDataZoomValue(zoom?.startValue) &&\n !this.isValidDataZoomValue(zoom?.endValue) &&\n !this.isValidDataZoomValue(zoom?.end)\n ) {\n const range = this.getVisibleRange();\n if (range) {\n this.updateDataZoom({ startValue: range.rangeStart, endValue: range.rangeEnd });\n }\n }\n\n // change in grid/axis requires a full update\n force = true;\n axisDZUpdated = true;\n }\n\n this.ngZone.runOutsideAngular(() => {\n this.chart.setOption(options!, force);\n this.setZoomMode();\n if (axisDZUpdated && this.externalZoomSlider()) {\n this.extZoomSliderChart.setOption(this.extZoomSliderOptions, false);\n }\n });\n\n setTimeout(() => this.checkGridSizeChange());\n }\n\n protected updateAxisAndDataZoom(inOptions?: EChartOption): boolean {\n const options = this.actualOptions;\n if (!options.xAxis) {\n return false;\n }\n\n const isFull = !inOptions || inOptions === options;\n inOptions = inOptions ?? {};\n if (!isFull && !inOptions.series && !options.dataZoom) {\n return false;\n }\n\n const xAxis = Array.isArray(options.xAxis) ? options.xAxis : [options.xAxis];\n if (!isFull && !inOptions.xAxis) {\n // for delta update, make sure we have same-sized axis array\n inOptions.xAxis = xAxis.map(() => ({}));\n }\n\n const minMax = this.getSeriesMinMax();\n\n // extend range if DZ is bigger than actual data\n const dz = inOptions?.dataZoom?.[0];\n if (\n dz?.startValue != null &&\n (minMax.min === undefined || (dz.startValue as number) < minMax.min)\n ) {\n minMax.min = dz.startValue as number;\n }\n if (\n dz?.endValue != null &&\n (minMax.max === undefined || (dz.endValue as number) > minMax.max)\n ) {\n minMax.max = dz.endValue as number;\n }\n\n // Update all sub chart index to be controlled by the dataZoom\n let xAxisIndexes: number[] = [];\n xAxis.forEach((axis, index) => {\n if (axis.gridIndex >= 0) {\n // set min/max the same on all axis so that datazoom can work\n axis.min = minMax.min;\n axis.max = minMax.max;\n\n if (!isFull) {\n inOptions.xAxis[index].min = minMax.min;\n inOptions.xAxis[index].max = minMax.max;\n }\n\n xAxisIndexes.push(index);\n }\n });\n\n // update dataZoom\n const effectiveOpts = this.getOptionNoClone();\n const effectiveXAxis = effectiveOpts.xAxis;\n if (effectiveXAxis.length > 1) {\n // 1. find out all visible series\n // 2. find out valid x index\n // 3. remove invalid x axis from the xAxisIndex array\n const validXAxis = this.getValidXAxis();\n if (validXAxis) {\n xAxisIndexes = xAxisIndexes.filter(index => validXAxis.has(index));\n }\n }\n\n if (xAxisIndexes.length) {\n const allDataZoom = options.dataZoom!;\n allDataZoom.forEach(zoom => (zoom.xAxisIndex = xAxisIndexes));\n if (!isFull && inOptions.dataZoom) {\n inOptions.dataZoom.forEach(zoom => (zoom.xAxisIndex = xAxisIndexes));\n }\n }\n\n // update external slider if required\n if (this.externalZoomSlider()) {\n const extSliderAxis = this.extZoomSliderOptions.xAxis[0];\n if (extSliderAxis.min !== minMax.min || extSliderAxis.max !== minMax.max) {\n extSliderAxis.min = minMax.min;\n extSliderAxis.max = minMax.max;\n this.extZoomSliderOptions.series![0].data = [\n [minMax.min, null],\n [minMax.max, null]\n ];\n }\n }\n\n return true;\n }\n\n /**\n * Send action to echart.\n * @see https://echarts.apache.org/en/api.html#action\n */\n dispatchEChartAction(action: echarts.Payload): void {\n if (!this.chart) {\n return;\n }\n this.ngZone.runOutsideAngular(() => {\n this.chart.dispatchAction(action);\n });\n this.cdRef.markForCheck();\n }\n\n private getSeriesMinMax(visibleOnly = false): {\n min: number | undefined;\n max: number | undefined;\n } {\n const legend = visibleOnly ? this.internalGetModel().getComponent('legend') : undefined;\n let min: number | undefined;\n let max: number | undefined;\n this.actualOptions.series?.forEach(s => {\n const seriesData = s.data as any[];\n if (seriesData?.length > 1 && (!legend || legend.isSelected(s.name))) {\n const start = seriesData[0][0]?.valueOf();\n const last = seriesData[seriesData.length - 1];\n // end value is can be undefined sometimes, if we don't have milliseconds as a value, instead\n // we have value[] array of Date, so to handle that scenario we are taking value[0].valueOf() to\n // calculate the millisecond value i.e from Date(value[0])\n const end = last[0]?.valueOf() ?? last.value?.[0]?.valueOf();\n if (this.isValidDataZoomValue(start) && this.isValidDataZoomValue(end)) {\n if (min === undefined || start < min) {\n min = start;\n }\n if (max === undefined || end > max) {\n max = end;\n }\n }\n }\n });\n return { min, max };\n }\n\n private calculateVisibleRange(range: DataZoomEvent | undefined): void {\n const options = this.actualOptions;\n if (!options.xAxis || !this.hasDataZoom() || !range) {\n return;\n }\n if (!Array.isArray(options.xAxis) && options.xAxis.type === 'category') {\n this.visibleRange.set(Math.ceil(range.rangeEnd) - Math.floor(range.rangeStart));\n } else {\n this.visibleRange.set(Math.round(range.rangeEnd - range.rangeStart));\n }\n\n // once in range mode, disable the entries mode to prevent overriding the user\n this.visibleEntries.set(-1);\n }\n\n private getValueFromSeriesPoint(point: any): any[] {\n return Array.isArray(point) ? point : point.value;\n }\n\n private calculateZoomStartValue(): any {\n const options = this.actualOptions;\n if (!options.series) {\n return null;\n }\n\n const seriesData = options.series[this.autoZoomSeriesIndex()]?.data as any[];\n if (!seriesData) {\n return null;\n }\n\n if (this.visibleEntries() > -1) {\n const offset = Math.min(seriesData.length, this.visibleEntries());\n const data = seriesData[seriesData.length - offset];\n return data ? this.getValueFromSeriesPoint(data)[0] : null;\n } else if (this.visibleRange() > -1) {\n const minMax = this.getSeriesMinMax(true);\n if (minMax.min && minMax.max) {\n // make sure startValue is >= the min data value\n return Math.max(minMax.min, minMax.max - this.visibleRange());\n }\n const data = seriesData[seriesData.length - 1];\n return data ? this.getValueFromSeriesPoint(data)[0] - this.visibleRange() : null;\n }\n return null;\n }\n\n protected hasData(): boolean {\n return this.actualOptions.series?.some(s => (s.data as any[])?.length > 0) ?? false;\n }\n\n /**\n * Re-render the chart series data. This method should be called on series data changes.\n */\n refreshSeries(isLive: boolean = true, dzToSet?: DataZoomRange): void {\n dzToSet ??= this.presetDataZoomRange;\n const optionsToUpdate: any = {\n series: this.actualOptions.series\n };\n\n if (!isLive) {\n this.updateEChart(false, optionsToUpdate);\n return;\n }\n\n if (this.hasDataZoom() && this.hasData()) {\n if (dzToSet) {\n this.dataZoomSetupDone = true;\n\n const dz = this.getPresetDataZoom(dzToSet);\n if (dz) {\n const requested = { ...dzToSet };\n this.presetDataZoomRange = undefined;\n this.updateDataZoom(dz, optionsToUpdate);\n\n // dispatch the same async. reasoning: the sync here is needed to prevent\n // flickering, the async dispatch to ensure a DataZoomEvent is fired so\n // that any consumer of this event work as expected\n setTimeout(() => {\n this.ngZone.runOutsideAngular(() => {\n this.requestedDataZoom = requested;\n this.handleDataZoom(dz, 'refreshSeries');\n });\n });\n }\n } else if (!this.dataZoomSetupDone) {\n // need to do this async to have the data in ECharts\n setTimeout(() => {\n if (!this.dataZoomSetupDone && !this.dataZoomRange() && this.chart) {\n this.calculateVisibleRange(this.getVisibleRange());\n }\n this.dataZoomSetupDone = true;\n });\n } else if (this.zoomSlider() && this.autoZoomUpdate && this.autoZoomSeriesIndex() !== -1) {\n // this ensures the slider is at the end and the window size remains stable, showing new data\n const startValue = this.calculateZoomStartValue();\n if (this.isValidDataZoomValue(startValue)) {\n this.updateDataZoom({ startValue, end: 100 }, optionsToUpdate);\n }\n if (isLive) {\n this.dispatchEChartAction({ type: 'hideTip' });\n }\n } else {\n // this ensures the current displayed window stays stable as new data arrives\n const dz = this.getOptionNoClone().dataZoom[0];\n if (\n this.isValidDataZoomValue(dz.startValue) &&\n this.isValidDataZoomValue(dz.endValue) &&\n dz.end !== 100\n ) {\n this.updateDataZoom(\n { startValue: dz.startValue, endValue: dz.endValue },\n optionsToUpdate\n );\n }\n }\n }\n\n this.updateEChart(false, optionsToUpdate);\n }\n\n // this ensures DZ is in sync everywhere\n private updateDataZoom(dz: DataZoomRange, optionsToUpdate?: EChartOption): void {\n const options = this.actualOptions;\n if (options.dataZoom?.[0]) {\n this.doUpdateDZ(dz, options.dataZoom[0]);\n }\n if (optionsToUpdate && optionsToUpdate !== options) {\n if (Array.isArray(optionsToUpdate.dataZoom)) {\n this.doUpdateDZ(dz, optionsToUpdate.dataZoom[0]);\n } else if (optionsToUpdate.dataZoom) {\n this.doUpdateDZ(dz, optionsToUpdate.dataZoom);\n } else {\n optionsToUpdate.dataZoom = [{ ...dz }];\n }\n }\n if (this.externalZoomSlider()) {\n this.doUpdateDZ(dz, this.extZoomSliderOptions.dataZoom![0]);\n }\n }\n\n private doUpdateDZ(dz: DataZoomRange, dzOptions: DataZoomComponentOption): void {\n // make sure only to have value or percent\n if (this.isValidDataZoomValue(dz.startValue)) {\n dzOptions.startValue = dz.startValue;\n dzOptions.start = undefined;\n } else if (this.isValidDataZoomValue(dz.start)) {\n dzOptions.start = dz.start;\n dzOptions.startValue = undefined;\n }\n if (this.isValidDataZoomValue(dz.endValue)) {\n dzOptions.endValue = dz.endValue;\n dzOptions.end = undefined;\n } else if (this.isValidDataZoomValue(dz.end)) {\n dzOptions.end = dz.end;\n dzOptions.endValue = undefined;\n }\n }\n\n protected applyStyles(): void {\n const bodyStyle: CSSStyleDeclaration = window.getComputedStyle(document.body);\n const options = this.actualOptions;\n options.textStyle = {\n fontFamily: navigator.webdriver ? 'sans-serif' : bodyStyle.fontFamily,\n fontSize: bodyStyle.fontSize\n };\n this.extZoomSliderOptions.textStyle = options.textStyle;\n }\n\n protected addLegendItem(\n name: string,\n visible?: boolean | null,\n index: number = 0,\n gridIndex: number = 0,\n customLegendProp?: CustomLegendProps,\n seriesSymbol?: string\n ): void {\n const options = this.actualOptions;\n if (!options.legend?.length) {\n return;\n }\n\n const legend = options.legend[options.legend.length > index ? index : 0];\n const unitText = customLegendProp ? customLegendProp.unit : undefined;\n const customLegendItem: CustomLegendItem = {\n name: '',\n displayName: '',\n color: '',\n selected: false,\n tooltip: customLegendProp ? customLegendProp.tooltip : '',\n symbol: this.getPath(seriesSymbol, false)\n };\n legend.data?.push({\n name,\n icon: this.getPath(seriesSymbol, true)\n });\n\n legend.selected ??= {};\n\n if (visible !== null && visible !== undefined) {\n legend.selected[name] = visible;\n customLegendItem.selected = visible;\n }\n const showCustomLegend = this.showCustomLegend();\n if (this.showLegend() && showCustomLegend) {\n if (visible !== false) {\n customLegendItem.selected = true;\n }\n customLegendItem.name = name;\n customLegendItem.displayName = customLegendProp?.displayName ?? name;\n\n if (showCustomLegend) {\n this.addCustomLegend(customLegendItem, unitText, index, gridIndex);\n }\n }\n this.cdRef.markForCheck();\n }\n\n private getPath(seriesSymbol: string | undefined, prefix: boolean): string {\n const path = seriesSymbol ? this.shapePaths[seriesSymbol] : this.shapePaths.circle;\n return prefix ? 'path://' + path : path;\n }\n\n private addCustomLegend(\n customLegendItem: CustomLegendItem,\n unitText: string | undefined,\n index: number,\n gridIndex: number = 0\n ): void {\n if (this.actualOptions.legend) {\n if (!this.customLegend[gridIndex].customLegends) {\n this.customLegend[gridIndex].customLegends = [\n { list: [], unit: '' },\n { list: [], unit: '' }\n ];\n }\n // index = 0 means left legend\n if (index === 0) {\n if (!this.customLegend[gridIndex]?.customLegends[0]?.list) {\n this.customLegend[gridIndex].customLegends[0] = { list: [customLegendItem] };\n } else {\n // legend with same id and name not found\n this.customLegend[gridIndex].customLegends[0].list.push(customLegendItem);\n }\n this.customLegend[gridIndex].customLegends[0].unit = unitText;\n } else {\n // index = 1 means right legend\n if (!this.customLegend[gridIndex]?.customLegends[1]?.list) {\n this.customLegend[gridIndex].customLegends[1] = { list: [customLegendItem] };\n } else {\n this.customLegend[gridIndex].customLegends[1].list.push(customLegendItem);\n }\n this.customLegend[gridIndex].customLegends[1].unit = unitText;\n }\n this.applyCustomLegendPosition();\n }\n }\n\n /**\n * Show loading indicator.\n */\n public startProgressIndication(): void {\n this.inProgress.set(true);\n }\n\n /**\n * Hide loading indicator.\n */\n public stopProgressIndication(): void {\n this.inProgress.set(false);\n }\n\n /**\n * Set the data zoom range for the chart in milliseconds.\n * As an example one hour is the value 3600000.\n */\n setTimeRange(range: number): void {\n const currentDZ = this.getVisibleRange();\n const minMax = this.getSeriesMinMax(true);\n if (!currentDZ || minMax.min == null || minMax.max == null) {\n return;\n }\n\n const mid = (currentDZ.rangeStart + currentDZ.rangeEnd) / 2;\n const halfRange = range / 2;\n\n let start: number;\n let end: number;\n\n if (range === 0 || range > minMax.max - minMax.min) {\n start = minMax.min;\n end = minMax.max;\n } else {\n start = mid - halfRange;\n end = mid + halfRange;\n\n // at start\n if (start < minMax.min) {\n start = minMax.min;\n end = start + range;\n }\n\n // at end. Special case: if already at end, keep end\n if (end > minMax.max || currentDZ.rangeEnd === minMax.max) {\n start = minMax.max - range;\n end = minMax.max;\n }\n }\n\n this.dispatchEChartAction({ type: 'dataZoom', startValue: start, endValue: end });\n }\n\n protected addDataInternal(series: SeriesUpdate<any>[]): void {\n const options = this.actualOptions;\n series.forEach(update => {\n const currentSeries = options.series![update.index];\n if (!currentSeries) {\n return;\n }\n const seriesData = currentSeries.data as any[];\n seriesData.push(update.data);\n if (this.maxEntries() > 0 && seriesData.length > this.maxEntries()) {\n seriesData.splice(0, seriesData.length - this.maxEntries());\n }\n });\n\n this.refreshSeries();\n }\n\n private getPresetDataZoom(range: DataZoomRange): any {\n let ret: any;\n if (range.visibleWidth && this.autoZoomSeriesIndex() !== -1) {\n this.visibleRange.set(range.visibleWidth);\n\n const startValue = this.calculateZoomStartValue();\n if (this.isValidDataZoomValue(startValue)) {\n this.autoZoomUpdate = true;\n ret = { startValue, end: 100 };\n }\n } else if (\n this.isValidDataZoomValue(range.startValue) &&\n this.isValidDataZoomValue(range.endValue)\n ) {\n // handling the case when startValue and endValue is given as a fixed time interval\n ret = {\n startValue: range.startValue,\n endValue: range.endValue\n };\n this.autoZoomUpdate = false;\n } else {\n ret = { ...range };\n }\n\n return ret;\n }\n\n private checkGridSizeChange(): void {\n if (!this.chart) {\n return;\n }\n const gridRectNew: GridRectCoordinate =\n this.internalGetModel()?.getComponent('grid')?.coordinateSystem?._rect;\n if (gridRectNew) {\n const nativeWrapper = this.chartContainerWrapper().nativeElement as HTMLElement;\n gridRectNew.containerWidth = nativeWrapper.offsetWidth;\n gridRectNew.containerHeight = nativeWrapper.offsetHeight;\n\n let isGridResized = false;\n\n for (const objKey of Object.keys(this.gridCoordinates) as (keyof GridRectCoordinate)[]) {\n if (this.gridSizeItemChanged(gridRectNew[objKey], this.gridCoordinates[objKey])) {\n isGridResized = true;\n break;\n }\n }\n\n if (isGridResized) {\n // update new coordinates and emit event\n this.gridCoordinates = gridRectNew;\n this.timeBarLeft.set(this.gridCoordinates.x);\n this.timeBarRight.set(\n this.gridCoordinates.containerWidth - this.gridCoordinates.x - this.gridCoordinates.width\n );\n\n if (this.externalZoomSlider() && Array.isArray(this.extZoomSliderOptions?.grid)) {\n this.extZoomSliderOptions.grid[0].left = this.timeBarLeft();\n this.extZoomSliderOptions.grid[0].right = this.timeBarRight();\n this.extZoomSliderChart.setOption({ grid: this.extZoomSliderOptions.grid }, false);\n }\n this.ngZone.run(() => this.chartGridResized.emit(this.gridCoordinates));\n }\n }\n this.cdRef.markForCheck();\n }\n\n private gridSizeItemChanged(a: any, b: any): boolean {\n return Array.isArray(a)\n ? a.length !== b.length || (a as any[]).some((item, index) => item !== b[index])\n : a !== b;\n }\n\n private setContainerHeight(): void {\n const newHeight = parseInt(this.eChartContainerHeight()!, 10) || null;\n if (newHeight !== this.containerHeight()) {\n this.containerHeight.set(newHeight);\n\n this.ngZone.runOutsideAngular(() => {\n this.chart?.resize({ width: this.curWidth, height: newHeight ?? this.curHeight });\n if (this.externalZoomSlider()) {\n this.extZoomSliderChart.resize();\n }\n });\n }\n }\n\n private updateCustomLegendMultiLineInfo(): void {\n const event: CustomLegendMultiLineInfo[] = [];\n this.siCustomLegend().forEach((legend, index) => {\n event.push({\n customLegendId: index,\n isCustomLegendMultilined: legend.customLegendContainer().nativeElement.offsetHeight > 20\n });\n });\n if (\n event.length !== this.customLegendsMultiLineInfo.length ||\n event.some(\n (e, index) =>\n e.isCustomLegendMultilined !==\n this.customLegendsMultiLineInfo[index].isCustomLegendMultilined\n )\n ) {\n this.customLegendsMultiLineInfo = event;\n this.customLegendMultiLineInfoEvent.emit(event);\n }\n this.cdRef.markForCheck();\n }\n}\n","@if (showCustomLegend() && (title() || subTitle())) {\n <div class=\"si-h5 chart-title chart-title-width\" [style.background-color]=\"backgroundColor()\">\n <div class=\"chart-title-text\" [style.color]=\"titleColor()\">{{ title() }}</div>\n @if (subTitle()) {\n <div class=\"si-body\" [style.color]=\"subTitleColor()\">{{ subTitle() }}</div>\n }\n </div>\n}\n\n<div\n #chartContainerWrapper\n class=\"chart-container-wrapper\"\n [class.chart-scroll]=\"containerHeight()\"\n [attr.tabindex]=\"containerHeight() ? '0' : null\"\n>\n <div class=\"chart-container\" [style.height.px]=\"containerHeight()\">\n @if (showCustomLegend()) {\n @for (cl of customLegend; track $index) {\n <si-custom-legend\n #siCustomLegend\n class=\"custom-legend\"\n [style.top.px]=\"cl.top\"\n [title]=\"title()\"\n [subTitle]=\"subTitle()\"\n [customLegend]=\"cl\"\n [style.background-color]=\"backgroundColor()\"\n [titleColor]=\"titleColor()\"\n [subTitleColor]=\"subTitleColor()\"\n [textColor]=\"textColor()\"\n (legendIconClickEvent)=\"handleLegendClick($event)\"\n (legendClickEvent)=\"handleLegendClick($event)\"\n (legendHoverStartEvent)=\"handleLegendHover($event, true)\"\n (legendHoverEndEvent)=\"handleLegendHover($event, false)\"\n />\n }\n }\n <div #chart class=\"echart-container\" [style.height.px]=\"containerHeight()\"></div>\n </div>\n</div>\n@if (externalZoomSlider()) {\n <div\n #externalZoomSlider\n class=\"external-zoom-container\"\n [class.has-time-range-bar]=\"showTimeRangeBar()\"\n [style.--time-bar-height.px]=\"timeBarHeight()\"\n ></div>\n}\n\n@if (showTimeRangeBar() && zoomSlider()) {\n <div\n class=\"time-range-bar\"\n [style.bottom.px]=\"timeBarBottom()\"\n [style.padding-left.px]=\"timeBarLeft()\"\n [style.padding-right.px]=\"timeBarRight()\"\n >\n <ng-content select=\"[slot=timeRangeBar]\" />\n </div>\n}\n\n@if (inProgress()) {\n <div class=\"progress-container\">\n <si-chart-loading-spinner />\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './echarts.custom';\nexport * from './echarts.model';\nexport * from './si-chart-base.component';\nexport * from './si-chart.interfaces';\nexport * from './theme-support';\nexport * from './themes/element';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAKH,OAAO,CAAC,GAAG,CAAC;;IAEV,cAAc;IACd,WAAW;;IAGX,cAAc;IACd;AACD,CAAA,CAAC;;AChBF;;;AAGG;AAGH,MAAM,OAAO,GAAG,CAAC,KAA0B,EAAE,IAAY,KAAY;AACnE,IAAA,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;AACrC,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC;AAEhE,MAAM,gBAAgB,GAAG,CAAC,CAAoB,KAAY;AACxD,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,MAAM,KAAK,GAAW,MAAM,CAAC,CAAC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A,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,8BAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,gCAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7EH;;;AAGG;;ACHH;;AAEG;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { viewChild, input, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
6
|
+
* SPDX-License-Identifier: MIT
|
|
7
|
+
*/
|
|
8
|
+
class SiCustomLegendComponent {
|
|
9
|
+
/** @internal */
|
|
10
|
+
customLegendContainer = viewChild.required('customLegendContainer');
|
|
11
|
+
customLegend = input(/* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [undefined, { debugName: "customLegend" }] : /* istanbul ignore next */ []));
|
|
13
|
+
/** The legend title. */
|
|
14
|
+
title = input(/* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
16
|
+
/** The legend subtitle. */
|
|
17
|
+
subTitle = input(/* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [undefined, { debugName: "subTitle" }] : /* istanbul ignore next */ []));
|
|
19
|
+
/** The color of the legend title. */
|
|
20
|
+
titleColor = input(/* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [undefined, { debugName: "titleColor" }] : /* istanbul ignore next */ []));
|
|
22
|
+
/** The color of the legend subtitle. */
|
|
23
|
+
subTitleColor = input(/* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [undefined, { debugName: "subTitleColor" }] : /* istanbul ignore next */ []));
|
|
25
|
+
/** The color of the legend text. */
|
|
26
|
+
textColor = input(/* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [undefined, { debugName: "textColor" }] : /* istanbul ignore next */ []));
|
|
28
|
+
/** The event emitted when a legend icon is clicked. */
|
|
29
|
+
legendIconClickEvent = output();
|
|
30
|
+
/** The event emitted when a legend is clicked. */
|
|
31
|
+
legendClickEvent = output();
|
|
32
|
+
/** The event emitted when the mouse enters a legend. */
|
|
33
|
+
legendHoverStartEvent = output();
|
|
34
|
+
/** The event emitted when the mouse leaves a legend. */
|
|
35
|
+
legendHoverEndEvent = output();
|
|
36
|
+
legendIconClick(legend) {
|
|
37
|
+
legend.selected = !legend.selected;
|
|
38
|
+
this.legendIconClickEvent.emit(legend);
|
|
39
|
+
}
|
|
40
|
+
legendClick(legend) {
|
|
41
|
+
legend.selected = !legend.selected;
|
|
42
|
+
this.legendClickEvent.emit(legend);
|
|
43
|
+
}
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SiCustomLegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: SiCustomLegendComponent, isStandalone: true, selector: "si-custom-legend", inputs: { customLegend: { classPropertyName: "customLegend", publicName: "customLegend", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subTitle: { classPropertyName: "subTitle", publicName: "subTitle", isSignal: true, isRequired: false, transformFunction: null }, titleColor: { classPropertyName: "titleColor", publicName: "titleColor", isSignal: true, isRequired: false, transformFunction: null }, subTitleColor: { classPropertyName: "subTitleColor", publicName: "subTitleColor", isSignal: true, isRequired: false, transformFunction: null }, textColor: { classPropertyName: "textColor", publicName: "textColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { legendIconClickEvent: "legendIconClickEvent", legendClickEvent: "legendClickEvent", legendHoverStartEvent: "legendHoverStartEvent", legendHoverEndEvent: "legendHoverEndEvent" }, viewQueries: [{ propertyName: "customLegendContainer", first: true, predicate: ["customLegendContainer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (customLegend() && customLegend()?.customLegends) {\n <div #customLegendContainer class=\"legend-container si-body\">\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 0 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"left-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'left' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"both-scenario-left-unit-container\"\n [class.left-scenario-unit-container]=\"customLegend()?.legendAxis === 'left'\"\n >\n <span class=\"text-secondary\">{{ leg.unit }}</span>\n </div>\n <div\n class=\"legend-item-container both-scenario-legend-container custom-legend-left\"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div class=\"legend-item\" [class.hidden-legend]=\"!legendItem.selected\">\n <div\n class=\"me-4 d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n }\n }\n\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 1 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"right-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'right' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'right'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"legend-item-container custom-legend-right legend-item-container-right-floating-inner\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div\n class=\"legend-item legend-item-right\"\n [class.hidden-legend]=\"!legendItem.selected\"\n >\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n <div\n class=\"right-legend-circle d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n <div\n class=\"both-scenario-right-unit-container\"\n [class.right-scenario-unit-container]=\"customLegend()?.legendAxis === 'right'\"\n >\n <span class=\"right-unit-text text-secondary\">{{ leg.unit }}</span>\n </div>\n </div>\n }\n }\n </div>\n}\n", styles: [":host{--flex-dir1: row;--flex-dir2: row-reverse;margin:12px;display:flex;flex-direction:column}:host-context(:dir(rtl)){--flex-dir1: row-reverse;--flex-dir2: row}:host-context([dir=rtl]){--flex-dir1: row-reverse;--flex-dir2: row}.legend-container{display:flex;flex-direction:var(--flex-dir1);max-height:40px;flex:1 1 auto}.legend-item-container{width:50%;vertical-align:top;display:flex;flex-wrap:wrap;flex:1 1 100%;flex-direction:var(--flex-dir1);height:fit-content;max-height:40px;max-width:50%;min-width:50%;overflow-y:auto;scrollbar-width:thin}.legend-item-container::-webkit-scrollbar{width:4px;height:6px;background-color:var(--element-base-0, #f0f2f5)}.legend-item-container::-webkit-scrollbar-thumb{border-radius:12px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.legend-item-container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:12px;background-color:var(--element-base-0, #f0f2f5)}.legend-item-container .custom-legend-left{flex-direction:var(--flex-dir1);flex:1 1 50%}.legend-item-container .custom-legend-right{flex-direction:var(--flex-dir2);flex:1 1 50%}.legend-item-container-right-floating-inner{max-width:calc(100% - 32px);min-width:calc(100% - 32px);padding-right:12px;float:left}.legend-single-axis{max-width:100%;min-width:100%}.legend-empty{width:0%}.tooltip{display:none;max-width:375px;word-break:break-word;margin-top:16px;inset-block-start:0;margin-inline-start:-6px}.tooltip-arrow{left:12px}.legend-item{cursor:pointer;margin-right:12px;display:flex;flex-direction:var(--flex-dir1);align-items:center;height:20px;position:initial;width:calc(100% - 12px);max-width:fit-content}.legend-item:hover .tooltip{display:block}.legend-item-right{margin-right:0;margin-left:12px}.right-legend-circle{margin-right:0;margin-left:8px}.legend-text{box-sizing:inherit;display:inline;cursor:pointer}.hidden-legend .right-legend-circle,.hidden-legend div:first-child,.hidden-legend .legend-text{opacity:.4}.both-scenario-left-unit-container,.both-scenario-right-unit-container{min-width:32px;max-width:32px;overflow:hidden}.both-scenario-right-unit-container{max-height:100%}.both-scenario-left-unit-container{min-height:100%}.both-scenario-legend-container{max-width:calc(100% - 32px);min-width:calc(100% - 32px);padding-left:12px}.right-unit-text{min-width:100%;min-height:100%;padding-left:2px}.left-legends{padding-right:36px}.right-legends{padding-left:28px}.both-legend-container{padding-right:0;padding-left:0}\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SiCustomLegendComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ selector: 'si-custom-legend', changeDetection: ChangeDetectionStrategy.Eager, template: "@if (customLegend() && customLegend()?.customLegends) {\n <div #customLegendContainer class=\"legend-container si-body\">\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 0 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"left-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'left' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"both-scenario-left-unit-container\"\n [class.left-scenario-unit-container]=\"customLegend()?.legendAxis === 'left'\"\n >\n <span class=\"text-secondary\">{{ leg.unit }}</span>\n </div>\n <div\n class=\"legend-item-container both-scenario-legend-container custom-legend-left\"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div class=\"legend-item\" [class.hidden-legend]=\"!legendItem.selected\">\n <div\n class=\"me-4 d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n }\n }\n\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 1 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"right-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'right' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'right'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"legend-item-container custom-legend-right legend-item-container-right-floating-inner\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div\n class=\"legend-item legend-item-right\"\n [class.hidden-legend]=\"!legendItem.selected\"\n >\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n <div\n class=\"right-legend-circle d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n <div\n class=\"both-scenario-right-unit-container\"\n [class.right-scenario-unit-container]=\"customLegend()?.legendAxis === 'right'\"\n >\n <span class=\"right-unit-text text-secondary\">{{ leg.unit }}</span>\n </div>\n </div>\n }\n }\n </div>\n}\n", styles: [":host{--flex-dir1: row;--flex-dir2: row-reverse;margin:12px;display:flex;flex-direction:column}:host-context(:dir(rtl)){--flex-dir1: row-reverse;--flex-dir2: row}:host-context([dir=rtl]){--flex-dir1: row-reverse;--flex-dir2: row}.legend-container{display:flex;flex-direction:var(--flex-dir1);max-height:40px;flex:1 1 auto}.legend-item-container{width:50%;vertical-align:top;display:flex;flex-wrap:wrap;flex:1 1 100%;flex-direction:var(--flex-dir1);height:fit-content;max-height:40px;max-width:50%;min-width:50%;overflow-y:auto;scrollbar-width:thin}.legend-item-container::-webkit-scrollbar{width:4px;height:6px;background-color:var(--element-base-0, #f0f2f5)}.legend-item-container::-webkit-scrollbar-thumb{border-radius:12px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.legend-item-container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:12px;background-color:var(--element-base-0, #f0f2f5)}.legend-item-container .custom-legend-left{flex-direction:var(--flex-dir1);flex:1 1 50%}.legend-item-container .custom-legend-right{flex-direction:var(--flex-dir2);flex:1 1 50%}.legend-item-container-right-floating-inner{max-width:calc(100% - 32px);min-width:calc(100% - 32px);padding-right:12px;float:left}.legend-single-axis{max-width:100%;min-width:100%}.legend-empty{width:0%}.tooltip{display:none;max-width:375px;word-break:break-word;margin-top:16px;inset-block-start:0;margin-inline-start:-6px}.tooltip-arrow{left:12px}.legend-item{cursor:pointer;margin-right:12px;display:flex;flex-direction:var(--flex-dir1);align-items:center;height:20px;position:initial;width:calc(100% - 12px);max-width:fit-content}.legend-item:hover .tooltip{display:block}.legend-item-right{margin-right:0;margin-left:12px}.right-legend-circle{margin-right:0;margin-left:8px}.legend-text{box-sizing:inherit;display:inline;cursor:pointer}.hidden-legend .right-legend-circle,.hidden-legend div:first-child,.hidden-legend .legend-text{opacity:.4}.both-scenario-left-unit-container,.both-scenario-right-unit-container{min-width:32px;max-width:32px;overflow:hidden}.both-scenario-right-unit-container{max-height:100%}.both-scenario-left-unit-container{min-height:100%}.both-scenario-legend-container{max-width:calc(100% - 32px);min-width:calc(100% - 32px);padding-left:12px}.right-unit-text{min-width:100%;min-height:100%;padding-left:2px}.left-legends{padding-right:36px}.right-legends{padding-left:28px}.both-legend-container{padding-right:0;padding-left:0}\n"] }]
|
|
50
|
+
}], propDecorators: { customLegendContainer: [{ type: i0.ViewChild, args: ['customLegendContainer', { isSignal: true }] }], customLegend: [{ type: i0.Input, args: [{ isSignal: true, alias: "customLegend", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subTitle", required: false }] }], titleColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleColor", required: false }] }], subTitleColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "subTitleColor", required: false }] }], textColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "textColor", required: false }] }], legendIconClickEvent: [{ type: i0.Output, args: ["legendIconClickEvent"] }], legendClickEvent: [{ type: i0.Output, args: ["legendClickEvent"] }], legendHoverStartEvent: [{ type: i0.Output, args: ["legendHoverStartEvent"] }], legendHoverEndEvent: [{ type: i0.Output, args: ["legendHoverEndEvent"] }] } });
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
54
|
+
* SPDX-License-Identifier: MIT
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { SiCustomLegendComponent };
|
|
62
|
+
//# sourceMappingURL=spike-rabbit-charts-ng-custom-legend.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spike-rabbit-charts-ng-custom-legend.mjs","sources":["../../../../projects/charts-ng/custom-legend/si-custom-legend.component.ts","../../../../projects/charts-ng/custom-legend/si-custom-legend.component.html","../../../../projects/charts-ng/custom-legend/index.ts","../../../../projects/charts-ng/custom-legend/spike-rabbit-charts-ng-custom-legend.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n viewChild\n} from '@angular/core';\n\nimport { CustomLegend, CustomLegendItem } from './si-custom-legend.interface';\n\n@Component({\n selector: 'si-custom-legend',\n templateUrl: './si-custom-legend.component.html',\n styleUrl: './si-custom-legend.component.scss',\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class SiCustomLegendComponent {\n /** @internal */\n readonly customLegendContainer = viewChild.required<ElementRef>('customLegendContainer');\n\n readonly customLegend = input<CustomLegend>();\n /** The legend title. */\n readonly title = input<string>();\n /** The legend subtitle. */\n readonly subTitle = input<string>();\n /** The color of the legend title. */\n readonly titleColor = input<string>();\n /** The color of the legend subtitle. */\n readonly subTitleColor = input<string>();\n /** The color of the legend text. */\n readonly textColor = input<string>();\n /** The event emitted when a legend icon is clicked. */\n readonly legendIconClickEvent = output<CustomLegendItem>();\n /** The event emitted when a legend is clicked. */\n readonly legendClickEvent = output<CustomLegendItem>();\n /** The event emitted when the mouse enters a legend. */\n readonly legendHoverStartEvent = output<CustomLegendItem>();\n /** The event emitted when the mouse leaves a legend. */\n readonly legendHoverEndEvent = output<CustomLegendItem>();\n\n protected legendIconClick(legend: CustomLegendItem): void {\n legend.selected = !legend.selected;\n this.legendIconClickEvent.emit(legend);\n }\n\n protected legendClick(legend: CustomLegendItem): void {\n legend.selected = !legend.selected;\n this.legendClickEvent.emit(legend);\n }\n}\n","@if (customLegend() && customLegend()?.customLegends) {\n <div #customLegendContainer class=\"legend-container si-body\">\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 0 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"left-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'left' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"both-scenario-left-unit-container\"\n [class.left-scenario-unit-container]=\"customLegend()?.legendAxis === 'left'\"\n >\n <span class=\"text-secondary\">{{ leg.unit }}</span>\n </div>\n <div\n class=\"legend-item-container both-scenario-legend-container custom-legend-left\"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'left'\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div class=\"legend-item\" [class.hidden-legend]=\"!legendItem.selected\">\n <div\n class=\"me-4 d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n (mouseenter)=\"legendHoverStartEvent.emit(legendItem)\"\n (mouseleave)=\"legendHoverEndEvent.emit(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n }\n }\n\n @for (leg of customLegend()?.customLegends; track legendIndex; let legendIndex = $index) {\n @if (legendIndex === 1 && leg && leg.list && leg.list.length > 0) {\n <div\n class=\"right-legends legend-item-container\"\n [class.legend-empty]=\"\n customLegend()?.legendAxis !== 'right' && customLegend()?.legendAxis !== 'both'\n \"\n [class.legend-single-axis]=\"customLegend()?.legendAxis === 'right'\"\n [class.both-legend-container]=\"customLegend()?.legendAxis === 'both'\"\n >\n <div\n class=\"legend-item-container custom-legend-right legend-item-container-right-floating-inner\"\n >\n @for (legendItem of leg.list; track legendItem.name) {\n <div\n class=\"legend-item legend-item-right\"\n [class.hidden-legend]=\"!legendItem.selected\"\n >\n <span\n class=\"legend-text text-truncate\"\n [style.color]=\"textColor()\"\n (click)=\"legendClick(legendItem)\"\n >\n {{ legendItem.displayName }}\n </span>\n <div\n class=\"right-legend-circle d-flex align-items-center justify-content-center\"\n (click)=\"legendIconClick(legendItem)\"\n >\n <svg width=\"12\" height=\"12\" xmlns=\"http://www.w3.org/2000/svg\">\n <path [attr.d]=\"legendItem.symbol\" [attr.fill]=\"legendItem.color\" />\n </svg>\n </div>\n @if (legendItem.tooltip) {\n <div class=\"tooltip show bs-tooltip-bottom\" role=\"tooltip\">\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">{{ legendItem.tooltip }}</div>\n </div>\n }\n </div>\n }\n </div>\n <div\n class=\"both-scenario-right-unit-container\"\n [class.right-scenario-unit-container]=\"customLegend()?.legendAxis === 'right'\"\n >\n <span class=\"right-unit-text text-secondary\">{{ leg.unit }}</span>\n </div>\n </div>\n }\n }\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-custom-legend.component';\nexport * from './si-custom-legend.interface';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MAkBU,uBAAuB,CAAA;;AAEzB,IAAA,qBAAqB,GAAG,SAAS,CAAC,QAAQ,CAAa,uBAAuB,CAAC;AAE/E,IAAA,YAAY,GAAG,KAAK;gGAAgB;;AAEpC,IAAA,KAAK,GAAG,KAAK;yFAAU;;AAEvB,IAAA,QAAQ,GAAG,KAAK;4FAAU;;AAE1B,IAAA,UAA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