suis 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/suis-chart/index.mjs +3 -0
- package/esm2022/lib/components/suis-chart/suis-chart-data.pipe.mjs +35 -0
- package/esm2022/lib/components/suis-chart/suis-chart-height.pipe.mjs +19 -0
- package/esm2022/lib/components/suis-chart/suis-chart.component.mjs +82 -0
- package/esm2022/lib/components/suis-chart/suis-chart.interfaces.mjs +2 -0
- package/fesm2022/suis.mjs +128 -2
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/suis-chart/index.d.ts +2 -0
- package/lib/components/suis-chart/suis-chart-data.pipe.d.ts +8 -0
- package/lib/components/suis-chart/suis-chart-height.pipe.d.ts +7 -0
- package/lib/components/suis-chart/suis-chart.component.d.ts +43 -0
- package/lib/components/suis-chart/suis-chart.interfaces.d.ts +10 -0
- package/package.json +1 -1
@@ -5,6 +5,7 @@ export * from './suis-breadcrumbs';
|
|
5
5
|
export * from './suis-button';
|
6
6
|
export * from './suis-button-link';
|
7
7
|
export * from './suis-button-outlined';
|
8
|
+
export * from './suis-chart';
|
8
9
|
export * from './suis-chip';
|
9
10
|
export * from './suis-container';
|
10
11
|
export * from './suis-dialog';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import { SuisChartDataItem, SuisChartDataComparisionItem } from './suis-chart.interfaces';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisChartDataPipe implements PipeTransform {
|
5
|
+
transform(data: SuisChartDataItem[], compareData: SuisChartDataItem[]): SuisChartDataComparisionItem[];
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisChartDataPipe, never>;
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SuisChartDataPipe, "suisChartData", true>;
|
8
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class SuisChartHeightPipe implements PipeTransform {
|
4
|
+
transform(value: number, maxValue: number): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisChartHeightPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SuisChartHeightPipe, "suisChartHeight", true>;
|
7
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { SuisColor, SuisSize } from '../../types';
|
2
|
+
import { SuisChartDataItem } from './suis-chart.interfaces';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisChartComponent {
|
5
|
+
/** @internal */
|
6
|
+
_maxValue: number;
|
7
|
+
/** @internal */
|
8
|
+
get maxValue(): number;
|
9
|
+
/**
|
10
|
+
* Set the maximum value of the chart bars. By default set to 100.
|
11
|
+
*/
|
12
|
+
set maxValue(value: number);
|
13
|
+
/**
|
14
|
+
* Array of the chart bars labels. By default set to empty array.
|
15
|
+
*/
|
16
|
+
labels: string[];
|
17
|
+
/**
|
18
|
+
* Array of data values and optionally colors. Type of SuisChartDataItem[]. By default set to empty array.
|
19
|
+
*/
|
20
|
+
data: SuisChartDataItem[];
|
21
|
+
/**
|
22
|
+
* Sets the default color of the chart bars. Type of SuisColor. By default set to 'primary'.
|
23
|
+
*/
|
24
|
+
color: SuisColor;
|
25
|
+
/**
|
26
|
+
* Adjusts the width of the chart bars. Type of SuisSize. By default set to 'md'.
|
27
|
+
*/
|
28
|
+
size: SuisSize;
|
29
|
+
/**
|
30
|
+
* Sets the maximum value automatically based on data values. By default set to false.
|
31
|
+
*/
|
32
|
+
autoMax: boolean;
|
33
|
+
/**
|
34
|
+
* Array of comparision data values and optionally colors. Type of SuisChartDataItem[]. By default set to empty array.
|
35
|
+
*/
|
36
|
+
compareData: SuisChartDataItem[];
|
37
|
+
/**
|
38
|
+
* Sets the default color of the comparision chart bars. Type of SuisColor. By default set to 'warning'.
|
39
|
+
*/
|
40
|
+
compareColor: SuisColor;
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisChartComponent, never>;
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisChartComponent, "suis-chart", never, { "maxValue": { "alias": "maxValue"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "data": { "alias": "data"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autoMax": { "alias": "autoMax"; "required": false; }; "compareData": { "alias": "compareData"; "required": false; }; "compareColor": { "alias": "compareColor"; "required": false; }; }, {}, never, never, true, never>;
|
43
|
+
}
|