@siemens/charts-ng 47.6.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 +20 -0
- package/README.md +47 -0
- package/components/index.d.ts +13 -0
- package/components/si-chart/index.d.ts +6 -0
- package/components/si-chart/si-chart.component.d.ts +341 -0
- package/components/si-chart/si-chart.interfaces.d.ts +97 -0
- package/components/si-chart-cartesian/index.d.ts +6 -0
- package/components/si-chart-cartesian/si-chart-cartesian.component.d.ts +53 -0
- package/components/si-chart-cartesian/si-chart-cartesian.interfaces.d.ts +35 -0
- package/components/si-chart-circle/index.d.ts +6 -0
- package/components/si-chart-circle/si-chart-circle.component.d.ts +18 -0
- package/components/si-chart-circle/si-chart-circle.interface.d.ts +38 -0
- package/components/si-chart-gauge/index.d.ts +6 -0
- package/components/si-chart-gauge/si-chart-gauge.component.d.ts +84 -0
- package/components/si-chart-gauge/si-chart-gauge.interface.d.ts +9 -0
- package/components/si-chart-loading-spinner/si-chart-loading-spinner.component.d.ts +5 -0
- package/components/si-chart-progress/index.d.ts +6 -0
- package/components/si-chart-progress/si-chart-progress.component.d.ts +39 -0
- package/components/si-chart-progress/si-chart-progress.interface.d.ts +12 -0
- package/components/si-chart-progress-bar/index.d.ts +6 -0
- package/components/si-chart-progress-bar/si-chart-progress-bar.component.d.ts +28 -0
- package/components/si-chart-progress-bar/si-chart-progress-bar.interface.d.ts +12 -0
- package/components/si-chart-sankey/index.d.ts +5 -0
- package/components/si-chart-sankey/si-chart-sankey.component.d.ts +11 -0
- package/components/si-chart-sunburst/index.d.ts +5 -0
- package/components/si-chart-sunburst/si-chart-sunburst.component.d.ts +11 -0
- package/components/si-custom-legend/index.d.ts +6 -0
- package/components/si-custom-legend/si-custom-legend.component.d.ts +25 -0
- package/components/si-custom-legend/si-custom-legend.interface.d.ts +33 -0
- package/fesm2022/siemens-charts-ng.mjs +3576 -0
- package/fesm2022/siemens-charts-ng.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +43 -0
- package/projects/charts-ng/README.md +47 -0
- package/public-api.d.ts +7 -0
- package/public-api.module.d.ts +18 -0
- package/shared/echarts.custom.d.ts +2 -0
- package/shared/echarts.model.d.ts +15 -0
- package/shared/index.d.ts +8 -0
- package/shared/theme-support.d.ts +394 -0
- package/shared/themes/element.d.ts +384 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { PieSeriesOption } from 'echarts';
|
|
6
|
+
export interface CircleChartData {
|
|
7
|
+
value: number;
|
|
8
|
+
name?: string;
|
|
9
|
+
label?: {
|
|
10
|
+
color?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
itemStyle?: {
|
|
14
|
+
color?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface CircleChartSeries {
|
|
19
|
+
name: string;
|
|
20
|
+
radius?: string[];
|
|
21
|
+
data: CircleChartData[];
|
|
22
|
+
label?: {
|
|
23
|
+
/**
|
|
24
|
+
* A custom label formatter based on echarts, some commonly used variations can be
|
|
25
|
+
* \{a\}: series name.
|
|
26
|
+
* \{b\}: the name of a data item.
|
|
27
|
+
* \{c\}: the value of a data item.
|
|
28
|
+
* \{d\}: the percent.
|
|
29
|
+
* See {@link https://echarts.apache.org/en/option.html#series-pie.label.formatter}
|
|
30
|
+
*/
|
|
31
|
+
formatter?: NonNullable<PieSeriesOption['label']>['formatter'];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface CircleValueUpdate {
|
|
35
|
+
seriesIndex: number;
|
|
36
|
+
valueIndex: number;
|
|
37
|
+
value: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
6
|
+
import { SiChartComponent } from '../si-chart/si-chart.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SiChartGaugeComponent extends SiChartComponent implements OnChanges {
|
|
9
|
+
/** @defaultValue 0 */
|
|
10
|
+
readonly minValue: import("@angular/core").InputSignal<number>;
|
|
11
|
+
/** @defaultValue 100 */
|
|
12
|
+
readonly maxValue: import("@angular/core").InputSignal<number>;
|
|
13
|
+
/** @defaultValue 0 */
|
|
14
|
+
readonly value: import("@angular/core").InputSignal<number>;
|
|
15
|
+
readonly splitSteps: import("@angular/core").InputSignal<number | undefined>;
|
|
16
|
+
/** @defaultValue true */
|
|
17
|
+
readonly responsiveSplitSteps: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
/** @defaultValue '%' */
|
|
19
|
+
readonly unit: import("@angular/core").InputSignal<string>;
|
|
20
|
+
/** @defaultValue false */
|
|
21
|
+
readonly unitsOnSplit: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Custom formatter for axis labels and value.
|
|
24
|
+
* Takes precedence when specified, i.e. number of decimals, unit etc needs
|
|
25
|
+
* to be set by the user using this formatter.
|
|
26
|
+
*/
|
|
27
|
+
readonly labelFormatter: import("@angular/core").InputSignal<((val: number) => string) | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the number of decimals.
|
|
30
|
+
* @deprecated Use `minNumberOfDecimals` and `maxNumberOfDecimals` instead.
|
|
31
|
+
* @defaultValue undefined */
|
|
32
|
+
readonly numberOfDecimals: import("@angular/core").InputSignal<number | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Min number of decimals.
|
|
35
|
+
* @defaultValue 0
|
|
36
|
+
*/
|
|
37
|
+
readonly minNumberOfDecimals: import("@angular/core").InputSignal<number>;
|
|
38
|
+
/**
|
|
39
|
+
* Max number of decimals.
|
|
40
|
+
* @defaultValue 0
|
|
41
|
+
*/
|
|
42
|
+
readonly maxNumberOfDecimals: import("@angular/core").InputSignal<number>;
|
|
43
|
+
/**
|
|
44
|
+
* Number of decimals on the axis.
|
|
45
|
+
* @defaultValue 0
|
|
46
|
+
*/
|
|
47
|
+
readonly axisNumberOfDecimals: import("@angular/core").InputSignal<number>;
|
|
48
|
+
/** @defaultValue false */
|
|
49
|
+
readonly hideAxisLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* Segments on the arc from 0 (implicit) to 1 (explicit)
|
|
52
|
+
* E.g. 0.2 means from 0 to 0.2 of the possible range (maxValue - minValue)
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue [0.2, 0.8, 1]
|
|
55
|
+
*/
|
|
56
|
+
readonly segments: import("@angular/core").InputSignal<number[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Colors for the defined segments.
|
|
59
|
+
* If there are less colors then segments, the colors will be repeated. Defaults to the standard color palette
|
|
60
|
+
*/
|
|
61
|
+
readonly colors: import("@angular/core").InputSignal<string[] | undefined>;
|
|
62
|
+
private readonly locale;
|
|
63
|
+
private readonly actualMinNumberOfDecimals;
|
|
64
|
+
private readonly actualMaxNumberOfDecimals;
|
|
65
|
+
private readonly numberFormat;
|
|
66
|
+
private readonly axisNumberFormat;
|
|
67
|
+
protected afterChartInit(): void;
|
|
68
|
+
private updateColors;
|
|
69
|
+
private setAxisLineColor;
|
|
70
|
+
private getResponsiveConfig;
|
|
71
|
+
private calcValue;
|
|
72
|
+
private axisLabelFormatter;
|
|
73
|
+
protected applyOptions(): void;
|
|
74
|
+
private valueFormatter;
|
|
75
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
76
|
+
protected applyDataZoom(): void;
|
|
77
|
+
protected afterChartResize(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Update gauge chart value.
|
|
80
|
+
*/
|
|
81
|
+
setValue(value: number): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartGaugeComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartGaugeComponent, "si-chart-gauge", never, { "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "splitSteps": { "alias": "splitSteps"; "required": false; "isSignal": true; }; "responsiveSplitSteps": { "alias": "responsiveSplitSteps"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "unitsOnSplit": { "alias": "unitsOnSplit"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "numberOfDecimals": { "alias": "numberOfDecimals"; "required": false; "isSignal": true; }; "minNumberOfDecimals": { "alias": "minNumberOfDecimals"; "required": false; "isSignal": true; }; "maxNumberOfDecimals": { "alias": "maxNumberOfDecimals"; "required": false; "isSignal": true; }; "axisNumberOfDecimals": { "alias": "axisNumberOfDecimals"; "required": false; "isSignal": true; }; "hideAxisLabels": { "alias": "hideAxisLabels"; "required": false; "isSignal": true; }; "segments": { "alias": "segments"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiChartLoadingSpinnerComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartLoadingSpinnerComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartLoadingSpinnerComponent, "si-chart-loading-spinner", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SiChartComponent } from '../si-chart/si-chart.component';
|
|
2
|
+
import { ProgressChartSeries, ProgressValueUpdate } from './si-chart-progress.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiChartProgressComponent extends SiChartComponent {
|
|
5
|
+
readonly series: import("@angular/core").InputSignal<ProgressChartSeries[] | undefined>;
|
|
6
|
+
/**
|
|
7
|
+
* How big the data can get in degrees.
|
|
8
|
+
*
|
|
9
|
+
* @defaultValue 220
|
|
10
|
+
*/
|
|
11
|
+
readonly dataAngle: import("@angular/core").InputSignal<number>;
|
|
12
|
+
private itemWidth;
|
|
13
|
+
private itemGap;
|
|
14
|
+
private baseRadius;
|
|
15
|
+
private sizeFactor;
|
|
16
|
+
private center;
|
|
17
|
+
private grey;
|
|
18
|
+
private startAngle;
|
|
19
|
+
protected afterChartInit(): void;
|
|
20
|
+
protected themeChanged(): void;
|
|
21
|
+
protected handleSelectionChanged(event: any): void;
|
|
22
|
+
protected applyOptions(): void;
|
|
23
|
+
private labelFormatter;
|
|
24
|
+
private addSeries;
|
|
25
|
+
private updateData;
|
|
26
|
+
private calculateRadius;
|
|
27
|
+
private updateRadius;
|
|
28
|
+
protected applyDataZoom(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Update single value of the progress chart.
|
|
31
|
+
*/
|
|
32
|
+
changeSingleValue(index: number, percent: number): void;
|
|
33
|
+
/**
|
|
34
|
+
* Update multiple values of the progress chart.
|
|
35
|
+
*/
|
|
36
|
+
changeMultiValues(updateValues: ProgressValueUpdate[]): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartProgressComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartProgressComponent, "si-chart-progress", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "dataAngle": { "alias": "dataAngle"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SiChartComponent } from '../si-chart/si-chart.component';
|
|
2
|
+
import { ProgressBarChartSeries, ProgressBarValueUpdate } from './si-chart-progress-bar.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiChartProgressBarComponent extends SiChartComponent {
|
|
5
|
+
readonly series: import("@angular/core").InputSignal<ProgressBarChartSeries[] | undefined>;
|
|
6
|
+
/** Used to display the label in inline or above the progress-bar. */
|
|
7
|
+
readonly labelPosition: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
private maxValue;
|
|
9
|
+
private xAxisConfig;
|
|
10
|
+
private yAxis;
|
|
11
|
+
private formatter;
|
|
12
|
+
private labelPositionOption;
|
|
13
|
+
private labelPositionOptionForValue;
|
|
14
|
+
private labelFormatter;
|
|
15
|
+
protected themeChanged(): void;
|
|
16
|
+
protected applyOptions(): void;
|
|
17
|
+
protected applyDataZoom(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Updates single value of a single progress bar.
|
|
20
|
+
*/
|
|
21
|
+
changeSingleValue(valueIndex: number, value: number): void;
|
|
22
|
+
/**
|
|
23
|
+
* Updates multiple values of a single progress bar.
|
|
24
|
+
*/
|
|
25
|
+
changeMultiValues(updateValues: ProgressBarValueUpdate[]): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartProgressBarComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartProgressBarComponent, "si-chart-progress-bar", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SankeySeriesOption } from '../../shared/echarts.model';
|
|
2
|
+
import { SiChartComponent } from '../si-chart/si-chart.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiChartSankeyComponent extends SiChartComponent {
|
|
5
|
+
readonly series: import("@angular/core").InputSignal<SankeySeriesOption | undefined>;
|
|
6
|
+
/** @defaultValue false */
|
|
7
|
+
readonly toolTip: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
protected applyOptions(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartSankeyComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartSankeyComponent, "si-chart-sankey", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "toolTip": { "alias": "toolTip"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SunburstSeriesOption } from '../../shared/echarts.model';
|
|
2
|
+
import { SiChartComponent } from '../si-chart/si-chart.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiChartSunburstComponent extends SiChartComponent {
|
|
5
|
+
readonly series: import("@angular/core").InputSignal<SunburstSeriesOption | undefined>;
|
|
6
|
+
/** @defaultValue false */
|
|
7
|
+
readonly toolTip: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
protected applyOptions(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartSunburstComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartSunburstComponent, "si-chart-sunburst", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "toolTip": { "alias": "toolTip"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
6
|
+
import { CustomLegend, CustomLegendItem } from './si-custom-legend.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SiCustomLegendComponent {
|
|
9
|
+
/** @internal */
|
|
10
|
+
readonly customLegendContainer: import("@angular/core").Signal<ElementRef<any>>;
|
|
11
|
+
readonly customLegend: import("@angular/core").InputSignal<CustomLegend | undefined>;
|
|
12
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
readonly subTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
readonly titleColor: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
readonly subTitleColor: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
readonly textColor: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
readonly legendIconClickEvent: import("@angular/core").OutputEmitterRef<CustomLegendItem>;
|
|
18
|
+
readonly legendClickEvent: import("@angular/core").OutputEmitterRef<CustomLegendItem>;
|
|
19
|
+
readonly legendHoverStartEvent: import("@angular/core").OutputEmitterRef<CustomLegendItem>;
|
|
20
|
+
readonly legendHoverEndEvent: import("@angular/core").OutputEmitterRef<CustomLegendItem>;
|
|
21
|
+
protected legendIconClick(legend: CustomLegendItem): void;
|
|
22
|
+
protected legendClick(legend: CustomLegendItem): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCustomLegendComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiCustomLegendComponent, "si-custom-legend", never, { "customLegend": { "alias": "customLegend"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "titleColor": { "alias": "titleColor"; "required": false; "isSignal": true; }; "subTitleColor": { "alias": "subTitleColor"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; }, { "legendIconClickEvent": "legendIconClickEvent"; "legendClickEvent": "legendClickEvent"; "legendHoverStartEvent": "legendHoverStartEvent"; "legendHoverEndEvent": "legendHoverEndEvent"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomLegend {
|
|
6
|
+
customLegends: [
|
|
7
|
+
{
|
|
8
|
+
list: CustomLegendItem[];
|
|
9
|
+
unit?: string;
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
list: CustomLegendItem[];
|
|
13
|
+
unit?: string;
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
legendAxis: string;
|
|
17
|
+
top?: number | string;
|
|
18
|
+
gridIndex?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface CustomLegendItem {
|
|
21
|
+
name: string;
|
|
22
|
+
alternativeNaming?: boolean;
|
|
23
|
+
displayName?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
selected: boolean;
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
symbol?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CustomLegendProps {
|
|
30
|
+
displayName?: string;
|
|
31
|
+
unit?: string;
|
|
32
|
+
tooltip?: string;
|
|
33
|
+
}
|