1
|
export class IndicatorUtils {
|
2
|
|
3
|
chartTypes: Map<string, string> = new Map([
|
4
|
['pie', 'pie_chart'],
|
5
|
['table', 'table_chart'],
|
6
|
['line', 'show_chart'],
|
7
|
['column', 'bar_chart'],
|
8
|
['bar', 'bar_chart'],
|
9
|
['image', 'perm_media']
|
10
|
]);
|
11
|
|
12
|
isPublicIcon: Map<boolean, string> = new Map([
|
13
|
[true, 'public'],
|
14
|
[false, 'lock']
|
15
|
]);
|
16
|
|
17
|
isActiveIcon: string = 'brightness_1';
|
18
|
}
|
19
|
|
20
|
export class Tools {
|
21
|
|
22
|
public static copy(element: any): any {
|
23
|
return JSON.parse(JSON.stringify(element));
|
24
|
}
|
25
|
}
|