@siemens/native-charts-ng 49.4.0 → 49.5.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/README.md
CHANGED
|
@@ -38,8 +38,7 @@ export class DashboardComponent {}
|
|
|
38
38
|
|
|
39
39
|
### Running unit tests
|
|
40
40
|
|
|
41
|
-
Run `npm run native-charts:test` to perform the unit tests via [
|
|
42
|
-
You can set a seed for running the tests in a specific using an environment variable: `SEED=71384 npm run native-charts:test`
|
|
41
|
+
Run `npm run native-charts:test` to perform the unit tests via [Vitest](https://main.vitest.dev/).
|
|
43
42
|
|
|
44
43
|
## License
|
|
45
44
|
|
|
@@ -20,11 +20,17 @@ class SiMicrochartProgressComponent {
|
|
|
20
20
|
/** @defaultValue 4 */
|
|
21
21
|
barHeight = input(4, ...(ngDevMode ? [{ debugName: "barHeight" }] : []));
|
|
22
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiMicrochartProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", 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 });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", 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 } }, host: { attributes: { "role": "progressbar" }, properties: { "attr.aria-valuenow": "series().valuePercent", "attr.aria-valuemin": "0", "attr.aria-valuemax": "100", "attr.aria-valuetext": "series().valuePercent + \"%\"" } }, ngImport: i0, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body\" aria-hidden=\"true\"> {{ 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
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiMicrochartProgressComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
|
-
args: [{ selector: 'si-microchart-progress', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
args: [{ selector: 'si-microchart-progress', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
28
|
+
role: 'progressbar',
|
|
29
|
+
'[attr.aria-valuenow]': 'series().valuePercent',
|
|
30
|
+
'[attr.aria-valuemin]': '0',
|
|
31
|
+
'[attr.aria-valuemax]': '100',
|
|
32
|
+
'[attr.aria-valuetext]': 'series().valuePercent + "%"'
|
|
33
|
+
}, template: "<div class=\"pb-1 pt-1\" [style.width.px]=\"barWidth()\">\n <div class=\"text-secondary si-body\" aria-hidden=\"true\"> {{ 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
34
|
}], propDecorators: { series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: true }] }], barWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "barWidth", required: false }] }], barHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "barHeight", required: false }] }] } });
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -1 +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 - 2026\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 - 2026\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;
|
|
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 - 2026\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 host: {\n role: 'progressbar',\n '[attr.aria-valuenow]': 'series().valuePercent',\n '[attr.aria-valuemin]': '0',\n '[attr.aria-valuemax]': '100',\n '[attr.aria-valuetext]': 'series().valuePercent + \"%\"'\n }\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\" aria-hidden=\"true\"> {{ 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 - 2026\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;MA2BU,6BAA6B,CAAA;AACxC;;;;;;;AAOG;AACM,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,iDAA4B;;AAEnD,IAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC;;AAE5B,IAAA,SAAS,GAAG,KAAK,CAAS,CAAC,qDAAC;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,6rBC9B1C,ilBAiBA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDaa,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAbzC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,EAAA,eAAA,EAGjB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,sBAAsB,EAAE,uBAAuB;AAC/C,wBAAA,sBAAsB,EAAE,GAAG;AAC3B,wBAAA,sBAAsB,EAAE,KAAK;AAC7B,wBAAA,uBAAuB,EAAE;AAC1B,qBAAA,EAAA,QAAA,EAAA,ilBAAA,EAAA,MAAA,EAAA,CAAA,yDAAA,CAAA,EAAA;;;AE5BH;;;AAGG;;ACHH;;AAEG;;;;"}
|
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": "49.
|
|
4
|
+
"version": "49.5.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "21",
|
|
22
22
|
"@angular/core": "21",
|
|
23
|
-
"@siemens/element-theme": "49.
|
|
23
|
+
"@siemens/element-theme": "49.5.0"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
"./docs.json": {
|