@siemens/native-charts-ng 48.0.0-next.5 → 48.0.0-next.7

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.
Files changed (30) hide show
  1. package/fesm2022/siemens-native-charts-ng-microchart-bar.mjs +46 -0
  2. package/fesm2022/siemens-native-charts-ng-microchart-bar.mjs.map +1 -0
  3. package/fesm2022/{siemens-native-charts-ng-micro-donut.mjs → siemens-native-charts-ng-microchart-donut.mjs} +9 -9
  4. package/fesm2022/siemens-native-charts-ng-microchart-donut.mjs.map +1 -0
  5. package/fesm2022/siemens-native-charts-ng-microchart-line.mjs +60 -0
  6. package/fesm2022/siemens-native-charts-ng-microchart-line.mjs.map +1 -0
  7. package/fesm2022/siemens-native-charts-ng-microchart-progress.mjs +40 -0
  8. package/fesm2022/siemens-native-charts-ng-microchart-progress.mjs.map +1 -0
  9. package/microchart-bar/index.d.ts +34 -0
  10. package/microchart-bar/package.json +3 -0
  11. package/{micro-donut → microchart-donut}/index.d.ts +11 -11
  12. package/microchart-donut/package.json +3 -0
  13. package/{micro-line → microchart-line}/index.d.ts +9 -9
  14. package/microchart-line/package.json +3 -0
  15. package/microchart-progress/index.d.ts +32 -0
  16. package/microchart-progress/package.json +3 -0
  17. package/package.json +14 -14
  18. package/fesm2022/siemens-native-charts-ng-micro-bar.mjs +0 -46
  19. package/fesm2022/siemens-native-charts-ng-micro-bar.mjs.map +0 -1
  20. package/fesm2022/siemens-native-charts-ng-micro-donut.mjs.map +0 -1
  21. package/fesm2022/siemens-native-charts-ng-micro-line.mjs +0 -60
  22. package/fesm2022/siemens-native-charts-ng-micro-line.mjs.map +0 -1
  23. package/fesm2022/siemens-native-charts-ng-micro-progress.mjs +0 -40
  24. package/fesm2022/siemens-native-charts-ng-micro-progress.mjs.map +0 -1
  25. package/micro-bar/index.d.ts +0 -34
  26. package/micro-bar/package.json +0 -3
  27. package/micro-donut/package.json +0 -3
  28. package/micro-line/package.json +0 -3
  29. package/micro-progress/index.d.ts +0 -32
  30. package/micro-progress/package.json +0 -3
@@ -0,0 +1,46 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+
4
+ /**
5
+ * Copyright (c) Siemens 2016 - 2025
6
+ * SPDX-License-Identifier: MIT
7
+ */
8
+ class SiMicrochartBarComponent {
9
+ /** @defaultValue 64 */
10
+ width = input(64);
11
+ /** @defaultValue 16 */
12
+ height = input(16);
13
+ /**
14
+ * Microchart bar series.
15
+ * Example series can be:
16
+ * @example
17
+ * ```ts
18
+ * Series: MicrochartBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};
19
+ * ```
20
+ */
21
+ series = input.required();
22
+ barWidth = 4;
23
+ padding = 8;
24
+ maxValue = computed(() => {
25
+ const currentSeries = this.series();
26
+ return currentSeries?.values.length ? Math.max(...currentSeries.values) : 1;
27
+ });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiMicrochartBarComponent, isStandalone: true, selector: "si-microchart-bar", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n", styles: [".bar-container{gap:1px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
+ }
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartBarComponent, decorators: [{
32
+ type: Component,
33
+ args: [{ selector: 'si-microchart-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n", styles: [".bar-container{gap:1px}\n"] }]
34
+ }] });
35
+
36
+ /**
37
+ * Copyright (c) Siemens 2016 - 2025
38
+ * SPDX-License-Identifier: MIT
39
+ */
40
+
41
+ /**
42
+ * Generated bundle index. Do not edit.
43
+ */
44
+
45
+ export { SiMicrochartBarComponent };
46
+ //# sourceMappingURL=siemens-native-charts-ng-microchart-bar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siemens-native-charts-ng-microchart-bar.mjs","sources":["../../../../projects/native-charts-ng/microchart-bar/si-microchart-bar.component.ts","../../../../projects/native-charts-ng/microchart-bar/si-microchart-bar.component.html","../../../../projects/native-charts-ng/microchart-bar/index.ts","../../../../projects/native-charts-ng/microchart-bar/siemens-native-charts-ng-microchart-bar.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\nexport interface MicrochartBarSeries {\n /* Series values */\n values: number[];\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-microchart-bar',\n templateUrl: './si-microchart-bar.component.html',\n styleUrl: './si-microchart-bar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicrochartBarComponent {\n /** @defaultValue 64 */\n readonly width = input<number>(64);\n /** @defaultValue 16 */\n readonly height = input<number>(16);\n /**\n * Microchart bar series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicrochartBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};\n * ```\n */\n readonly series = input.required<MicrochartBarSeries>();\n\n protected barWidth = 4;\n protected padding = 8;\n protected readonly maxValue = computed(() => {\n const currentSeries = this.series();\n return currentSeries?.values.length ? Math.max(...currentSeries.values) : 1;\n });\n}\n","<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-microchart-bar.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MAoBU,wBAAwB,CAAA;;AAE1B,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC;;AAEzB,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,CAAC;AACnC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAuB;IAE7C,QAAQ,GAAG,CAAC;IACZ,OAAO,GAAG,CAAC;AACF,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE;QACnC,OAAO,aAAa,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;AAC7E,KAAC,CAAC;uGApBS,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,scCvBrC,8YAaA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDUa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACE,mBAAmB,EAAA,eAAA,EAGZ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8YAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -6,15 +6,15 @@ import { makeArc, valueToRelativeAngle } from '@siemens/native-charts-ng/utils';
6
6
  * Copyright (c) Siemens 2016 - 2025
7
7
  * SPDX-License-Identifier: MIT
8
8
  */
9
- class SiMicroDonutComponent {
9
+ class SiMicrochartDonutComponent {
10
10
  /**
11
- * Micro donut series. Can also be an array representing multiple series.
11
+ * Microchart donut series. Can also be an array representing multiple series.
12
12
  * Each series, in case of multiple, forms section of the arc, in percentage
13
13
  * of the respective value.
14
14
  * Example series can be:
15
15
  * @example
16
16
  * ```ts
17
- * Series: MicroDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];
17
+ * Series: MicrochartDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];
18
18
  * ```
19
19
  * @defaultValue []
20
20
  */
@@ -79,12 +79,12 @@ class SiMicroDonutComponent {
79
79
  containAngle(angle) {
80
80
  return Math.max(this.startAngle, Math.min(this.endAngle, angle));
81
81
  }
82
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroDonutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiMicroDonutComponent, isStandalone: true, selector: "si-micro-donut", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n", styles: [".chart .background,.chart .data{fill:none}.chart .background{stroke:var(--element-ui-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartDonutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiMicrochartDonutComponent, isStandalone: true, selector: "si-microchart-donut", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n", styles: [".chart .background,.chart .data{fill:none}.chart .background{stroke:var(--element-ui-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
84
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroDonutComponent, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartDonutComponent, decorators: [{
86
86
  type: Component,
87
- args: [{ selector: 'si-micro-donut', changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n", styles: [".chart .background,.chart .data{fill:none}.chart .background{stroke:var(--element-ui-4)}\n"] }]
87
+ args: [{ selector: 'si-microchart-donut', changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n", styles: [".chart .background,.chart .data{fill:none}.chart .background{stroke:var(--element-ui-4)}\n"] }]
88
88
  }] });
89
89
 
90
90
  /**
@@ -96,5 +96,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
96
96
  * Generated bundle index. Do not edit.
97
97
  */
98
98
 
99
- export { SiMicroDonutComponent };
100
- //# sourceMappingURL=siemens-native-charts-ng-micro-donut.mjs.map
99
+ export { SiMicrochartDonutComponent };
100
+ //# sourceMappingURL=siemens-native-charts-ng-microchart-donut.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siemens-native-charts-ng-microchart-donut.mjs","sources":["../../../../projects/native-charts-ng/microchart-donut/si-microchart-donut.component.ts","../../../../projects/native-charts-ng/microchart-donut/si-microchart-donut.component.html","../../../../projects/native-charts-ng/microchart-donut/index.ts","../../../../projects/native-charts-ng/microchart-donut/siemens-native-charts-ng-microchart-donut.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n numberAttribute\n} from '@angular/core';\nimport { Coordinate, makeArc, valueToRelativeAngle } from '@siemens/native-charts-ng/utils';\n\n/**\n * One series of the microchart donut.\n */\nexport interface MicrochartDonutSeries {\n /** value in percent */\n valuePercent: number;\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n /** ID exposed as `data-id` */\n id?: string;\n}\n\ninterface InternalSeries {\n series: MicrochartDonutSeries;\n path: string;\n colorVar: string;\n}\n\n@Component({\n selector: 'si-microchart-donut',\n templateUrl: './si-microchart-donut.component.html',\n styleUrl: './si-microchart-donut.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicrochartDonutComponent {\n /**\n * Microchart donut series. Can also be an array representing multiple series.\n * Each series, in case of multiple, forms section of the arc, in percentage\n * of the respective value.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicrochartDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];\n * ```\n * @defaultValue []\n */\n readonly series = input.required<MicrochartDonutSeries[]>();\n /**\n * Radius of donut. The radius is calculated from center of the donut to the mid point of the arc.\n * @defaultValue 7.5\n */\n readonly radius = input(7.5, { transform: numberAttribute });\n\n protected readonly arcThickness = computed(() => 0.7 * this.radius());\n protected readonly dim = computed(() => {\n // Keeping the viewbox width and height only enough to fit the donut.\n // The radius is calculated from center of the donut to the mid point of the arc.\n // Hence half the arc thicknes on both side needs to be added (equals full arc thickness)\n // The buffer space is added because the svg donut gets cropped on certain Os + browser configuration.\n const radius = this.radius();\n const arcThickness = this.arcThickness();\n const size = 2 * radius + arcThickness + this.bufferSpace;\n return { width: size, height: size };\n });\n\n protected readonly backgroundPath = computed(() =>\n makeArc(this.center(), this.radius(), this.startAngle, this.endAngle)\n );\n\n private readonly center = computed<Coordinate>(() => {\n // Once we have the viewbox dimensions, getting the donut at the center by\n // calculating correct coordinates\n const d = this.dim();\n return {\n x: d.width / 2,\n y: d.height / 2\n };\n });\n private readonly min = 0;\n private readonly max = 100;\n private readonly startAngle = 0;\n private readonly endAngle = 360;\n private readonly bufferSpace = 4;\n\n protected readonly internalSeries = computed(() => {\n const inputSeries = this.series();\n const result: InternalSeries[] = [];\n let nextPosAngle = 0;\n\n for (const series of inputSeries) {\n // Does not add series if percent is 0 or less\n if (series.valuePercent > 0) {\n const { nextAngle, internal } = this.toInternalSeries(nextPosAngle, series);\n result.push(internal);\n nextPosAngle = nextAngle;\n }\n }\n return result;\n });\n\n private toInternalSeries(\n startAngle: number,\n series: MicrochartDonutSeries,\n color?: string\n ): { nextAngle: number; internal: InternalSeries } {\n let nextAngle =\n valueToRelativeAngle(\n this.startAngle,\n this.endAngle,\n this.min,\n this.max,\n series.valuePercent\n ) + startAngle;\n\n startAngle = this.containAngle(startAngle);\n nextAngle = this.containAngle(nextAngle);\n\n color ??= series.colorToken;\n const internal: InternalSeries = {\n series,\n path: makeArc(this.center(), this.radius(), startAngle, nextAngle),\n colorVar: `var(--${color})`\n };\n return { nextAngle, internal };\n }\n\n private containAngle(angle: number): number {\n return Math.max(this.startAngle, Math.min(this.endAngle, angle));\n }\n}\n","<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-microchart-donut.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;AAGG;MAsCU,0BAA0B,CAAA;AACrC;;;;;;;;;;AAUG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAA2B;AAC3D;;;AAGG;IACM,MAAM,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;AAEzC,IAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,GAAG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AuBA,EAAA,MAAA,EAAA,CAAA,4FAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDkBa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;+BACE,qBAAqB,EAAA,eAAA,EAGd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wpBAAA,EAAA,MAAA,EAAA,CAAA,4FAAA,CAAA,EAAA;;;AEvCjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -0,0 +1,60 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { makePolyline } from '@siemens/native-charts-ng/utils';
4
+
5
+ /**
6
+ * Copyright (c) Siemens 2016 - 2025
7
+ * SPDX-License-Identifier: MIT
8
+ */
9
+ class SiMicrochartLineComponent {
10
+ /**
11
+ * Microchart line series.
12
+ * Example series can be:
13
+ * @example
14
+ * ```ts
15
+ * Series: MicrochartLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };
16
+ * ```
17
+ */
18
+ series = input.required();
19
+ /** @defaultValue 64 */
20
+ width = input(64);
21
+ /** @defaultValue 24 */
22
+ height = input(24);
23
+ strokeWidth = 2;
24
+ path = computed(() => {
25
+ const series = this.series();
26
+ if (!series || series.values.length < 2) {
27
+ return '';
28
+ }
29
+ const points = this.mapToCoordinates(series.values, this.width(), this.height());
30
+ return makePolyline(points);
31
+ });
32
+ mapToCoordinates(values, width, height) {
33
+ const max = Math.max(...values);
34
+ const min = Math.min(...values);
35
+ const scaleX = width / (values.length - 1);
36
+ const scaleY = max !== min ? height / (max - min) : 1;
37
+ return values.map((value, i) => ({
38
+ x: i * scaleX,
39
+ y: height - (value - min) * scaleY
40
+ }));
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: SiMicrochartLineComponent, isStandalone: true, selector: "si-microchart-line", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
+ }
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartLineComponent, decorators: [{
46
+ type: Component,
47
+ args: [{ selector: 'si-microchart-line', changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n" }]
48
+ }] });
49
+
50
+ /**
51
+ * Copyright (c) Siemens 2016 - 2025
52
+ * SPDX-License-Identifier: MIT
53
+ */
54
+
55
+ /**
56
+ * Generated bundle index. Do not edit.
57
+ */
58
+
59
+ export { SiMicrochartLineComponent };
60
+ //# sourceMappingURL=siemens-native-charts-ng-microchart-line.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siemens-native-charts-ng-microchart-line.mjs","sources":["../../../../projects/native-charts-ng/microchart-line/si-microchart-line.component.ts","../../../../projects/native-charts-ng/microchart-line/si-microchart-line.component.html","../../../../projects/native-charts-ng/microchart-line/index.ts","../../../../projects/native-charts-ng/microchart-line/siemens-native-charts-ng-microchart-line.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Coordinate, makePolyline } from '@siemens/native-charts-ng/utils';\n\nexport interface MicrochartLineSeries {\n /** Series values */\n values: number[];\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-microchart-line',\n templateUrl: './si-microchart-line.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicrochartLineComponent {\n /**\n * Microchart line series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicrochartLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };\n * ```\n */\n readonly series = input.required<MicrochartLineSeries>();\n /** @defaultValue 64 */\n readonly width = input<number>(64);\n /** @defaultValue 24 */\n readonly height = input<number>(24);\n\n protected strokeWidth = 2;\n\n protected readonly path = computed(() => {\n const series = this.series();\n if (!series || series.values.length < 2) {\n return '';\n }\n const points = this.mapToCoordinates(series.values, this.width(), this.height());\n return makePolyline(points);\n });\n\n private mapToCoordinates(values: number[], width: number, height: number): Coordinate[] {\n const max = Math.max(...values);\n const min = Math.min(...values);\n const scaleX = width / (values.length - 1);\n const scaleY = max !== min ? height / (max - min) : 1;\n\n return values.map((value, i) => ({\n x: i * scaleX,\n y: height - (value - min) * scaleY\n }));\n }\n}\n","<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-microchart-line.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;AAGG;MAoBU,yBAAyB,CAAA;AACpC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAwB;;AAE/C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC;;AAEzB,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,CAAC;IAEzB,WAAW,GAAG,CAAC;AAEN,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;AACtC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;QAC5B,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;AACvC,YAAA,OAAO,EAAE;;QAEX,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;AAChF,QAAA,OAAO,YAAY,CAAC,MAAM,CAAC;AAC7B,KAAC,CAAC;AAEM,IAAA,gBAAgB,CAAC,MAAgB,EAAE,KAAa,EAAE,MAAc,EAAA;QACtE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;QAC/B,MAAM,MAAM,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C,QAAA,MAAM,MAAM,GAAG,GAAG,KAAK,GAAG,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QAErD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM;YAC/B,CAAC,EAAE,CAAC,GAAG,MAAM;YACb,CAAC,EAAE,MAAM,GAAG,CAAC,KAAK,GAAG,GAAG,IAAI;AAC7B,SAAA,CAAC,CAAC;;uGAnCM,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,ucCvBtC,sZAoBA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDGa,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBALrC,SAAS;+BACE,oBAAoB,EAAA,eAAA,EAEb,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sZAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+
4
+ /**
5
+ * Copyright (c) Siemens 2016 - 2025
6
+ * SPDX-License-Identifier: MIT
7
+ */
8
+ class SiMicrochartProgressComponent {
9
+ /**
10
+ * Microchart progress series.
11
+ * Example series can be:
12
+ * @example
13
+ * ```ts
14
+ * Series: MicrochartProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };
15
+ * ```
16
+ */
17
+ series = input.required();
18
+ /** @defaultValue 64 */
19
+ barWidth = input(64);
20
+ /** @defaultValue 4 */
21
+ barHeight = input(4);
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: SiMicrochartProgressComponent, isStandalone: true, selector: "si-microchart-progress", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, barWidth: { classPropertyName: "barWidth", publicName: "barWidth", isSignal: true, isRequired: false, transformFunction: null }, barHeight: { classPropertyName: "barHeight", publicName: "barHeight", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n", styles: [".bar-background{background-color:var(--element-ui-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicrochartProgressComponent, decorators: [{
26
+ type: Component,
27
+ args: [{ selector: 'si-microchart-progress', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n", styles: [".bar-background{background-color:var(--element-ui-4)}\n"] }]
28
+ }] });
29
+
30
+ /**
31
+ * Copyright (c) Siemens 2016 - 2025
32
+ * SPDX-License-Identifier: MIT
33
+ */
34
+
35
+ /**
36
+ * Generated bundle index. Do not edit.
37
+ */
38
+
39
+ export { SiMicrochartProgressComponent };
40
+ //# sourceMappingURL=siemens-native-charts-ng-microchart-progress.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"siemens-native-charts-ng-microchart-progress.mjs","sources":["../../../../projects/native-charts-ng/microchart-progress/si-microchart-progress.component.ts","../../../../projects/native-charts-ng/microchart-progress/si-microchart-progress.component.html","../../../../projects/native-charts-ng/microchart-progress/index.ts","../../../../projects/native-charts-ng/microchart-progress/siemens-native-charts-ng-microchart-progress.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\nexport interface MicrochartProgressSeries {\n /** Value in percent */\n valuePercent: number;\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-microchart-progress',\n templateUrl: './si-microchart-progress.component.html',\n styleUrl: './si-microchart-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicrochartProgressComponent {\n /**\n * Microchart progress series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicrochartProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };\n * ```\n */\n readonly series = input.required<MicrochartProgressSeries>();\n /** @defaultValue 64 */\n readonly barWidth = input<number>(64);\n /** @defaultValue 4 */\n readonly barHeight = input<number>(4);\n}\n","<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-microchart-progress.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MAoBU,6BAA6B,CAAA;AACxC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAA4B;;AAEnD,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,CAAC;;AAE5B,IAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC;uGAb1B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,6BAA6B,6dCvB1C,4jBAiBA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDMa,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;+BACE,wBAAwB,EAAA,eAAA,EAGjB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4jBAAA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -0,0 +1,34 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ interface MicrochartBarSeries {
4
+ values: number[];
5
+ /**
6
+ * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
7
+ *
8
+ * @example "element-data-10"
9
+ */
10
+ colorToken: string;
11
+ }
12
+ declare class SiMicrochartBarComponent {
13
+ /** @defaultValue 64 */
14
+ readonly width: _angular_core.InputSignal<number>;
15
+ /** @defaultValue 16 */
16
+ readonly height: _angular_core.InputSignal<number>;
17
+ /**
18
+ * Microchart bar series.
19
+ * Example series can be:
20
+ * @example
21
+ * ```ts
22
+ * Series: MicrochartBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};
23
+ * ```
24
+ */
25
+ readonly series: _angular_core.InputSignal<MicrochartBarSeries>;
26
+ protected barWidth: number;
27
+ protected padding: number;
28
+ protected readonly maxValue: _angular_core.Signal<number>;
29
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicrochartBarComponent, never>;
30
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicrochartBarComponent, "si-microchart-bar", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
31
+ }
32
+
33
+ export { SiMicrochartBarComponent };
34
+ export type { MicrochartBarSeries };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-native-charts-ng-microchart-bar.mjs"
3
+ }
@@ -1,9 +1,9 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
 
3
3
  /**
4
- * One series of the micro donut chart.
4
+ * One series of the microchart donut.
5
5
  */
6
- interface MicroDonutSeries {
6
+ interface MicrochartDonutSeries {
7
7
  /** value in percent */
8
8
  valuePercent: number;
9
9
  /**
@@ -16,23 +16,23 @@ interface MicroDonutSeries {
16
16
  id?: string;
17
17
  }
18
18
  interface InternalSeries {
19
- series: MicroDonutSeries;
19
+ series: MicrochartDonutSeries;
20
20
  path: string;
21
21
  colorVar: string;
22
22
  }
23
- declare class SiMicroDonutComponent {
23
+ declare class SiMicrochartDonutComponent {
24
24
  /**
25
- * Micro donut series. Can also be an array representing multiple series.
25
+ * Microchart donut series. Can also be an array representing multiple series.
26
26
  * Each series, in case of multiple, forms section of the arc, in percentage
27
27
  * of the respective value.
28
28
  * Example series can be:
29
29
  * @example
30
30
  * ```ts
31
- * Series: MicroDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];
31
+ * Series: MicrochartDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];
32
32
  * ```
33
33
  * @defaultValue []
34
34
  */
35
- readonly series: _angular_core.InputSignal<MicroDonutSeries[]>;
35
+ readonly series: _angular_core.InputSignal<MicrochartDonutSeries[]>;
36
36
  /**
37
37
  * Radius of donut. The radius is calculated from center of the donut to the mid point of the arc.
38
38
  * @defaultValue 7.5
@@ -53,9 +53,9 @@ declare class SiMicroDonutComponent {
53
53
  protected readonly internalSeries: _angular_core.Signal<InternalSeries[]>;
54
54
  private toInternalSeries;
55
55
  private containAngle;
56
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroDonutComponent, never>;
57
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroDonutComponent, "si-micro-donut", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
56
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicrochartDonutComponent, never>;
57
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicrochartDonutComponent, "si-microchart-donut", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
58
58
  }
59
59
 
60
- export { SiMicroDonutComponent };
61
- export type { MicroDonutSeries };
60
+ export { SiMicrochartDonutComponent };
61
+ export type { MicrochartDonutSeries };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-native-charts-ng-microchart-donut.mjs"
3
+ }
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
 
3
- interface MicroLineSeries {
3
+ interface MicrochartLineSeries {
4
4
  /** Series values */
5
5
  values: number[];
6
6
  /**
@@ -10,16 +10,16 @@ interface MicroLineSeries {
10
10
  */
11
11
  colorToken: string;
12
12
  }
13
- declare class SiMicroLineComponent {
13
+ declare class SiMicrochartLineComponent {
14
14
  /**
15
- * Micro line series.
15
+ * Microchart line series.
16
16
  * Example series can be:
17
17
  * @example
18
18
  * ```ts
19
- * Series: MicroLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };
19
+ * Series: MicrochartLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };
20
20
  * ```
21
21
  */
22
- readonly series: _angular_core.InputSignal<MicroLineSeries>;
22
+ readonly series: _angular_core.InputSignal<MicrochartLineSeries>;
23
23
  /** @defaultValue 64 */
24
24
  readonly width: _angular_core.InputSignal<number>;
25
25
  /** @defaultValue 24 */
@@ -27,9 +27,9 @@ declare class SiMicroLineComponent {
27
27
  protected strokeWidth: number;
28
28
  protected readonly path: _angular_core.Signal<string>;
29
29
  private mapToCoordinates;
30
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroLineComponent, never>;
31
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroLineComponent, "si-micro-line", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicrochartLineComponent, never>;
31
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicrochartLineComponent, "si-microchart-line", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
32
32
  }
33
33
 
34
- export { SiMicroLineComponent };
35
- export type { MicroLineSeries };
34
+ export { SiMicrochartLineComponent };
35
+ export type { MicrochartLineSeries };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-native-charts-ng-microchart-line.mjs"
3
+ }
@@ -0,0 +1,32 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ interface MicrochartProgressSeries {
4
+ /** Value in percent */
5
+ valuePercent: number;
6
+ /**
7
+ * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
8
+ *
9
+ * @example "element-data-10"
10
+ */
11
+ colorToken: string;
12
+ }
13
+ declare class SiMicrochartProgressComponent {
14
+ /**
15
+ * Microchart progress series.
16
+ * Example series can be:
17
+ * @example
18
+ * ```ts
19
+ * Series: MicrochartProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };
20
+ * ```
21
+ */
22
+ readonly series: _angular_core.InputSignal<MicrochartProgressSeries>;
23
+ /** @defaultValue 64 */
24
+ readonly barWidth: _angular_core.InputSignal<number>;
25
+ /** @defaultValue 4 */
26
+ readonly barHeight: _angular_core.InputSignal<number>;
27
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicrochartProgressComponent, never>;
28
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicrochartProgressComponent, "si-microchart-progress", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "barWidth": { "alias": "barWidth"; "required": false; "isSignal": true; }; "barHeight": { "alias": "barHeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
29
+ }
30
+
31
+ export { SiMicrochartProgressComponent };
32
+ export type { MicrochartProgressSeries };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-native-charts-ng-microchart-progress.mjs"
3
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@siemens/native-charts-ng",
3
3
  "description": "Element Native charts library.",
4
- "version": "48.0.0-next.5",
4
+ "version": "48.0.0-next.7",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -32,25 +32,25 @@
32
32
  "types": "./index.d.ts",
33
33
  "default": "./fesm2022/siemens-native-charts-ng.mjs"
34
34
  },
35
+ "./microchart-bar": {
36
+ "types": "./microchart-bar/index.d.ts",
37
+ "default": "./fesm2022/siemens-native-charts-ng-microchart-bar.mjs"
38
+ },
35
39
  "./gauge": {
36
40
  "types": "./gauge/index.d.ts",
37
41
  "default": "./fesm2022/siemens-native-charts-ng-gauge.mjs"
38
42
  },
39
- "./micro-bar": {
40
- "types": "./micro-bar/index.d.ts",
41
- "default": "./fesm2022/siemens-native-charts-ng-micro-bar.mjs"
42
- },
43
- "./micro-donut": {
44
- "types": "./micro-donut/index.d.ts",
45
- "default": "./fesm2022/siemens-native-charts-ng-micro-donut.mjs"
43
+ "./microchart-donut": {
44
+ "types": "./microchart-donut/index.d.ts",
45
+ "default": "./fesm2022/siemens-native-charts-ng-microchart-donut.mjs"
46
46
  },
47
- "./micro-line": {
48
- "types": "./micro-line/index.d.ts",
49
- "default": "./fesm2022/siemens-native-charts-ng-micro-line.mjs"
47
+ "./microchart-line": {
48
+ "types": "./microchart-line/index.d.ts",
49
+ "default": "./fesm2022/siemens-native-charts-ng-microchart-line.mjs"
50
50
  },
51
- "./micro-progress": {
52
- "types": "./micro-progress/index.d.ts",
53
- "default": "./fesm2022/siemens-native-charts-ng-micro-progress.mjs"
51
+ "./microchart-progress": {
52
+ "types": "./microchart-progress/index.d.ts",
53
+ "default": "./fesm2022/siemens-native-charts-ng-microchart-progress.mjs"
54
54
  },
55
55
  "./utils": {
56
56
  "types": "./utils/index.d.ts",
@@ -1,46 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- /**
5
- * Copyright (c) Siemens 2016 - 2025
6
- * SPDX-License-Identifier: MIT
7
- */
8
- class SiMicroBarComponent {
9
- /** @defaultValue 64 */
10
- width = input(64);
11
- /** @defaultValue 16 */
12
- height = input(16);
13
- /**
14
- * Micro bar series.
15
- * Example series can be:
16
- * @example
17
- * ```ts
18
- * Series: MicroBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};
19
- * ```
20
- */
21
- series = input.required();
22
- barWidth = 4;
23
- padding = 8;
24
- maxValue = computed(() => {
25
- const currentSeries = this.series();
26
- return currentSeries?.values.length ? Math.max(...currentSeries.values) : 1;
27
- });
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiMicroBarComponent, isStandalone: true, selector: "si-micro-bar", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n", styles: [".bar-container{gap:1px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroBarComponent, decorators: [{
32
- type: Component,
33
- args: [{ selector: 'si-micro-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n", styles: [".bar-container{gap:1px}\n"] }]
34
- }] });
35
-
36
- /**
37
- * Copyright (c) Siemens 2016 - 2025
38
- * SPDX-License-Identifier: MIT
39
- */
40
-
41
- /**
42
- * Generated bundle index. Do not edit.
43
- */
44
-
45
- export { SiMicroBarComponent };
46
- //# sourceMappingURL=siemens-native-charts-ng-micro-bar.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"siemens-native-charts-ng-micro-bar.mjs","sources":["../../../../projects/native-charts-ng/micro-bar/si-micro-bar.component.ts","../../../../projects/native-charts-ng/micro-bar/si-micro-bar.component.html","../../../../projects/native-charts-ng/micro-bar/index.ts","../../../../projects/native-charts-ng/micro-bar/siemens-native-charts-ng-micro-bar.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\nexport interface MicroBarSeries {\n /* Series values */\n values: number[];\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-micro-bar',\n templateUrl: './si-micro-bar.component.html',\n styleUrl: './si-micro-bar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicroBarComponent {\n /** @defaultValue 64 */\n readonly width = input<number>(64);\n /** @defaultValue 16 */\n readonly height = input<number>(16);\n /**\n * Micro bar series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicroBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};\n * ```\n */\n readonly series = input.required<MicroBarSeries>();\n\n protected barWidth = 4;\n protected padding = 8;\n protected readonly maxValue = computed(() => {\n const currentSeries = this.series();\n return currentSeries?.values.length ? Math.max(...currentSeries.values) : 1;\n });\n}\n","<div\n class=\"bar-container d-flex align-items-end pb-2 pt-2\"\n [style.width.px]=\"width()\"\n [style.height.px]=\"height() + padding\"\n>\n @for (value of series().values; track $index) {\n <div\n [style.height.%]=\"(value / maxValue()) * 100\"\n [style.width.px]=\"barWidth\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n ></div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-micro-bar.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MAoBU,mBAAmB,CAAA;;AAErB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC;;AAEzB,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,CAAC;AACnC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAkB;IAExC,QAAQ,GAAG,CAAC;IACZ,OAAO,GAAG,CAAC;AACF,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE;QACnC,OAAO,aAAa,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;AAC7E,KAAC,CAAC;uGApBS,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,icCvBhC,8YAaA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDUa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;+BACE,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8YAAA,EAAA,MAAA,EAAA,CAAA,2BAAA,CAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"siemens-native-charts-ng-micro-donut.mjs","sources":["../../../../projects/native-charts-ng/micro-donut/si-micro-donut.component.ts","../../../../projects/native-charts-ng/micro-donut/si-micro-donut.component.html","../../../../projects/native-charts-ng/micro-donut/index.ts","../../../../projects/native-charts-ng/micro-donut/siemens-native-charts-ng-micro-donut.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n numberAttribute\n} from '@angular/core';\nimport { Coordinate, makeArc, valueToRelativeAngle } from '@siemens/native-charts-ng/utils';\n\n/**\n * One series of the micro donut chart.\n */\nexport interface MicroDonutSeries {\n /** value in percent */\n valuePercent: number;\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n /** ID exposed as `data-id` */\n id?: string;\n}\n\ninterface InternalSeries {\n series: MicroDonutSeries;\n path: string;\n colorVar: string;\n}\n\n@Component({\n selector: 'si-micro-donut',\n templateUrl: './si-micro-donut.component.html',\n styleUrl: './si-micro-donut.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicroDonutComponent {\n /**\n * Micro donut series. Can also be an array representing multiple series.\n * Each series, in case of multiple, forms section of the arc, in percentage\n * of the respective value.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicroDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];\n * ```\n * @defaultValue []\n */\n readonly series = input.required<MicroDonutSeries[]>();\n /**\n * Radius of donut. The radius is calculated from center of the donut to the mid point of the arc.\n * @defaultValue 7.5\n */\n readonly radius = input(7.5, { transform: numberAttribute });\n\n protected readonly arcThickness = computed(() => 0.7 * this.radius());\n protected readonly dim = computed(() => {\n // Keeping the viewbox width and height only enough to fit the donut.\n // The radius is calculated from center of the donut to the mid point of the arc.\n // Hence half the arc thicknes on both side needs to be added (equals full arc thickness)\n // The buffer space is added because the svg donut gets cropped on certain Os + browser configuration.\n const radius = this.radius();\n const arcThickness = this.arcThickness();\n const size = 2 * radius + arcThickness + this.bufferSpace;\n return { width: size, height: size };\n });\n\n protected readonly backgroundPath = computed(() =>\n makeArc(this.center(), this.radius(), this.startAngle, this.endAngle)\n );\n\n private readonly center = computed<Coordinate>(() => {\n // Once we have the viewbox dimensions, getting the donut at the center by\n // calculating correct coordinates\n const d = this.dim();\n return {\n x: d.width / 2,\n y: d.height / 2\n };\n });\n private readonly min = 0;\n private readonly max = 100;\n private readonly startAngle = 0;\n private readonly endAngle = 360;\n private readonly bufferSpace = 4;\n\n protected readonly internalSeries = computed(() => {\n const inputSeries = this.series();\n const result: InternalSeries[] = [];\n let nextPosAngle = 0;\n\n for (const series of inputSeries) {\n // Does not add series if percent is 0 or less\n if (series.valuePercent > 0) {\n const { nextAngle, internal } = this.toInternalSeries(nextPosAngle, series);\n result.push(internal);\n nextPosAngle = nextAngle;\n }\n }\n return result;\n });\n\n private toInternalSeries(\n startAngle: number,\n series: MicroDonutSeries,\n color?: string\n ): { nextAngle: number; internal: InternalSeries } {\n let nextAngle =\n valueToRelativeAngle(\n this.startAngle,\n this.endAngle,\n this.min,\n this.max,\n series.valuePercent\n ) + startAngle;\n\n startAngle = this.containAngle(startAngle);\n nextAngle = this.containAngle(nextAngle);\n\n color ??= series.colorToken;\n const internal: InternalSeries = {\n series,\n path: makeArc(this.center(), this.radius(), startAngle, nextAngle),\n colorVar: `var(--${color})`\n };\n return { nextAngle, internal };\n }\n\n private containAngle(angle: number): number {\n return Math.max(this.startAngle, Math.min(this.endAngle, angle));\n }\n}\n","<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"chart\"\n [attr.viewBox]=\"'0 0 ' + dim().width + ' ' + dim().height\"\n [attr.width]=\"dim().width\"\n [attr.height]=\"dim().height\"\n>\n <g class=\"background\">\n <path [attr.d]=\"backgroundPath()\" [style.stroke-width]=\"arcThickness()\" />\n </g>\n <g class=\"data\">\n @for (series of internalSeries(); track $index) {\n @if (series?.path) {\n <path\n [attr.d]=\"series.path\"\n [attr.data-id]=\"series.series.id\"\n [style.stroke]=\"series.colorVar\"\n [style.stroke-width]=\"arcThickness()\"\n />\n }\n }\n </g>\n</svg>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-micro-donut.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;AAGG;MAsCU,qBAAqB,CAAA;AAChC;;;;;;;;;;AAUG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAsB;AACtD;;;AAGG;IACM,MAAM,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;AAEzC,IAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;AAClD,IAAA,GAAG,GAAG,QAAQ,CAAC,MAAK;;;;;AAKrC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;AAC5B,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE;QACxC,MAAM,IAAI,GAAG,CAAC,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC,WAAW;QACzD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;AACtC,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i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { makePolyline } from '@siemens/native-charts-ng/utils';
4
-
5
- /**
6
- * Copyright (c) Siemens 2016 - 2025
7
- * SPDX-License-Identifier: MIT
8
- */
9
- class SiMicroLineComponent {
10
- /**
11
- * Micro line series.
12
- * Example series can be:
13
- * @example
14
- * ```ts
15
- * Series: MicroLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };
16
- * ```
17
- */
18
- series = input.required();
19
- /** @defaultValue 64 */
20
- width = input(64);
21
- /** @defaultValue 24 */
22
- height = input(24);
23
- strokeWidth = 2;
24
- path = computed(() => {
25
- const series = this.series();
26
- if (!series || series.values.length < 2) {
27
- return '';
28
- }
29
- const points = this.mapToCoordinates(series.values, this.width(), this.height());
30
- return makePolyline(points);
31
- });
32
- mapToCoordinates(values, width, height) {
33
- const max = Math.max(...values);
34
- const min = Math.min(...values);
35
- const scaleX = width / (values.length - 1);
36
- const scaleY = max !== min ? height / (max - min) : 1;
37
- return values.map((value, i) => ({
38
- x: i * scaleX,
39
- y: height - (value - min) * scaleY
40
- }));
41
- }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroLineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: SiMicroLineComponent, isStandalone: true, selector: "si-micro-line", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroLineComponent, decorators: [{
46
- type: Component,
47
- args: [{ selector: 'si-micro-line', changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n" }]
48
- }] });
49
-
50
- /**
51
- * Copyright (c) Siemens 2016 - 2025
52
- * SPDX-License-Identifier: MIT
53
- */
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
- export { SiMicroLineComponent };
60
- //# sourceMappingURL=siemens-native-charts-ng-micro-line.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"siemens-native-charts-ng-micro-line.mjs","sources":["../../../../projects/native-charts-ng/micro-line/si-micro-line.component.ts","../../../../projects/native-charts-ng/micro-line/si-micro-line.component.html","../../../../projects/native-charts-ng/micro-line/index.ts","../../../../projects/native-charts-ng/micro-line/siemens-native-charts-ng-micro-line.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Coordinate, makePolyline } from '@siemens/native-charts-ng/utils';\n\nexport interface MicroLineSeries {\n /** Series values */\n values: number[];\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-micro-line',\n templateUrl: './si-micro-line.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicroLineComponent {\n /**\n * Micro line series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicroLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };\n * ```\n */\n readonly series = input.required<MicroLineSeries>();\n /** @defaultValue 64 */\n readonly width = input<number>(64);\n /** @defaultValue 24 */\n readonly height = input<number>(24);\n\n protected strokeWidth = 2;\n\n protected readonly path = computed(() => {\n const series = this.series();\n if (!series || series.values.length < 2) {\n return '';\n }\n const points = this.mapToCoordinates(series.values, this.width(), this.height());\n return makePolyline(points);\n });\n\n private mapToCoordinates(values: number[], width: number, height: number): Coordinate[] {\n const max = Math.max(...values);\n const min = Math.min(...values);\n const scaleX = width / (values.length - 1);\n const scaleY = max !== min ? height / (max - min) : 1;\n\n return values.map((value, i) => ({\n x: i * scaleX,\n y: height - (value - min) * scaleY\n }));\n }\n}\n","<svg\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.viewBox]=\"\n -strokeWidth / 2 +\n ' ' +\n -strokeWidth / 2 +\n ' ' +\n (width() + strokeWidth) +\n ' ' +\n (height() + strokeWidth)\n \"\n>\n <path\n fill=\"none\"\n [attr.d]=\"path()\"\n [attr.stroke]=\"'var(--' + series().colorToken + ')'\"\n [attr.stroke-width]=\"strokeWidth\"\n />\n</svg>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-micro-line.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;AAGG;MAoBU,oBAAoB,CAAA;AAC/B;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAmB;;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AAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,kcCvBjC,sZAoBA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDGa,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,SAAS;+BACE,eAAe,EAAA,eAAA,EAER,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sZAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -1,40 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- /**
5
- * Copyright (c) Siemens 2016 - 2025
6
- * SPDX-License-Identifier: MIT
7
- */
8
- class SiMicroProgressComponent {
9
- /**
10
- * Micro progress series.
11
- * Example series can be:
12
- * @example
13
- * ```ts
14
- * Series: MicroProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };
15
- * ```
16
- */
17
- series = input.required();
18
- /** @defaultValue 64 */
19
- barWidth = input(64);
20
- /** @defaultValue 4 */
21
- barHeight = input(4);
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.6", type: SiMicroProgressComponent, isStandalone: true, selector: "si-micro-progress", inputs: { series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, barWidth: { classPropertyName: "barWidth", publicName: "barWidth", isSignal: true, isRequired: false, transformFunction: null }, barHeight: { classPropertyName: "barHeight", publicName: "barHeight", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body-2\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n", styles: [".bar-background{background-color:var(--element-ui-4)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: SiMicroProgressComponent, decorators: [{
26
- type: Component,
27
- args: [{ selector: 'si-micro-progress', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body-2\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n", styles: [".bar-background{background-color:var(--element-ui-4)}\n"] }]
28
- }] });
29
-
30
- /**
31
- * Copyright (c) Siemens 2016 - 2025
32
- * SPDX-License-Identifier: MIT
33
- */
34
-
35
- /**
36
- * Generated bundle index. Do not edit.
37
- */
38
-
39
- export { SiMicroProgressComponent };
40
- //# sourceMappingURL=siemens-native-charts-ng-micro-progress.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"siemens-native-charts-ng-micro-progress.mjs","sources":["../../../../projects/native-charts-ng/micro-progress/si-micro-progress.component.ts","../../../../projects/native-charts-ng/micro-progress/si-micro-progress.component.html","../../../../projects/native-charts-ng/micro-progress/index.ts","../../../../projects/native-charts-ng/micro-progress/siemens-native-charts-ng-micro-progress.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\nexport interface MicroProgressSeries {\n /** Value in percent */\n valuePercent: number;\n /**\n * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}\n *\n * @example \"element-data-10\"\n */\n colorToken: string;\n}\n\n@Component({\n selector: 'si-micro-progress',\n templateUrl: './si-micro-progress.component.html',\n styleUrl: './si-micro-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SiMicroProgressComponent {\n /**\n * Micro progress series.\n * Example series can be:\n * @example\n * ```ts\n * Series: MicroProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };\n * ```\n */\n readonly series = input.required<MicroProgressSeries>();\n /** @defaultValue 64 */\n readonly barWidth = input<number>(64);\n /** @defaultValue 4 */\n readonly barHeight = input<number>(4);\n}\n","<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body-2\"> {{ series().valuePercent }}% </div>\n\n <div\n class=\"bar-background w-100\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n >\n <div\n class=\"bar-foreground h-100\"\n [style.width.%]=\"series().valuePercent\"\n [style.backgroundColor]=\"'var(--' + series().colorToken + ')'\"\n [style.height.px]=\"barHeight()\"\n [style.border-radius.px]=\"barHeight() / 2\"\n ></div>\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-micro-progress.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;MAoBU,wBAAwB,CAAA;AACnC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAuB;;AAE9C,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,CAAC;;AAE5B,IAAA,SAAS,GAAG,KAAK,CAAS,CAAC,CAAC;uGAb1B,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,wdCvBrC,8jBAiBA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDMa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACE,mBAAmB,EAAA,eAAA,EAGZ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8jBAAA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA;;;AErBjD;;;AAGG;;ACHH;;AAEG;;;;"}
@@ -1,34 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
-
3
- interface MicroBarSeries {
4
- values: number[];
5
- /**
6
- * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
7
- *
8
- * @example "element-data-10"
9
- */
10
- colorToken: string;
11
- }
12
- declare class SiMicroBarComponent {
13
- /** @defaultValue 64 */
14
- readonly width: _angular_core.InputSignal<number>;
15
- /** @defaultValue 16 */
16
- readonly height: _angular_core.InputSignal<number>;
17
- /**
18
- * Micro bar series.
19
- * Example series can be:
20
- * @example
21
- * ```ts
22
- * Series: MicroBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};
23
- * ```
24
- */
25
- readonly series: _angular_core.InputSignal<MicroBarSeries>;
26
- protected barWidth: number;
27
- protected padding: number;
28
- protected readonly maxValue: _angular_core.Signal<number>;
29
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroBarComponent, never>;
30
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroBarComponent, "si-micro-bar", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
31
- }
32
-
33
- export { SiMicroBarComponent };
34
- export type { MicroBarSeries };
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/siemens-native-charts-ng-micro-bar.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/siemens-native-charts-ng-micro-donut.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/siemens-native-charts-ng-micro-line.mjs"
3
- }
@@ -1,32 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
-
3
- interface MicroProgressSeries {
4
- /** Value in percent */
5
- valuePercent: number;
6
- /**
7
- * Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
8
- *
9
- * @example "element-data-10"
10
- */
11
- colorToken: string;
12
- }
13
- declare class SiMicroProgressComponent {
14
- /**
15
- * Micro progress series.
16
- * Example series can be:
17
- * @example
18
- * ```ts
19
- * Series: MicroProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };
20
- * ```
21
- */
22
- readonly series: _angular_core.InputSignal<MicroProgressSeries>;
23
- /** @defaultValue 64 */
24
- readonly barWidth: _angular_core.InputSignal<number>;
25
- /** @defaultValue 4 */
26
- readonly barHeight: _angular_core.InputSignal<number>;
27
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroProgressComponent, never>;
28
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroProgressComponent, "si-micro-progress", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "barWidth": { "alias": "barWidth"; "required": false; "isSignal": true; }; "barHeight": { "alias": "barHeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
29
- }
30
-
31
- export { SiMicroProgressComponent };
32
- export type { MicroProgressSeries };
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/siemens-native-charts-ng-micro-progress.mjs"
3
- }