@esfaenza/es-charts 15.2.7 → 16.2.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.
Files changed (102) hide show
  1. package/{esm2020 → esm2022}/esfaenza-es-charts.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/adapters/BaseAdapter.mjs +50 -50
  3. package/{esm2020 → esm2022}/lib/adapters/IBaseAdapter.mjs +1 -1
  4. package/{esm2020 → esm2022}/lib/components/base/base-chart.component.mjs +350 -350
  5. package/{esm2020 → esm2022}/lib/components/chart-pager/chart-pager.component.mjs +89 -89
  6. package/{esm2020 → esm2022}/lib/components/specializations/es-area-chart.component.mjs +77 -77
  7. package/{esm2020 → esm2022}/lib/components/specializations/es-chart.component.mjs +122 -122
  8. package/{esm2020 → esm2022}/lib/components/specializations/es-line-chart.component.mjs +112 -112
  9. package/{esm2020 → esm2022}/lib/components/specializations/es-pie-chart.component.mjs +98 -98
  10. package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-2d-chart.component.mjs +95 -95
  11. package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-chart.component.mjs +92 -92
  12. package/{esm2020 → esm2022}/lib/components/specializations/es-vertical-stacked-chart.component.mjs +92 -92
  13. package/{esm2020 → esm2022}/lib/es-charts.module.mjs +67 -67
  14. package/{esm2020 → esm2022}/lib/models/EsChaartsModuleConfig.mjs +5 -5
  15. package/{esm2020 → esm2022}/lib/models/core/ChartDispatcher.mjs +91 -91
  16. package/{esm2020 → esm2022}/lib/models/core/ChartLoader.mjs +212 -212
  17. package/{esm2020 → esm2022}/lib/models/core/ChartThemes.mjs +60 -60
  18. package/{esm2020 → esm2022}/lib/models/data/AreaChartData.mjs +15 -15
  19. package/{esm2020 → esm2022}/lib/models/data/LineChartData.mjs +15 -15
  20. package/{esm2020 → esm2022}/lib/models/data/PagedChartData.mjs +19 -19
  21. package/{esm2020 → esm2022}/lib/models/data/PieChartData.mjs +13 -13
  22. package/{esm2020 → esm2022}/lib/models/data/Vertical2DChartData.mjs +15 -15
  23. package/{esm2020 → esm2022}/lib/models/data/VerticalChartData.mjs +13 -13
  24. package/{esm2020 → esm2022}/lib/models/data/VerticalStackedChartData.mjs +13 -13
  25. package/{esm2020 → esm2022}/lib/models/data/base/DateValue.mjs +10 -10
  26. package/{esm2020 → esm2022}/lib/models/data/base/KeyValue.mjs +10 -10
  27. package/{esm2020 → esm2022}/lib/models/data/base/KeyValueColor.mjs +12 -12
  28. package/{esm2020 → esm2022}/lib/models/data/base/Limit.mjs +15 -15
  29. package/{esm2020 → esm2022}/lib/models/data/base/LineSerie.mjs +27 -27
  30. package/{esm2020 → esm2022}/lib/models/settings/AreaChartSettings.mjs +10 -10
  31. package/{esm2020 → esm2022}/lib/models/settings/LineChartSettings.mjs +10 -10
  32. package/{esm2020 → esm2022}/lib/models/settings/PieChartSettings.mjs +6 -6
  33. package/{esm2020 → esm2022}/lib/models/settings/Vertical2DChartSettings.mjs +10 -10
  34. package/{esm2020 → esm2022}/lib/models/settings/VerticalChartSettings.mjs +10 -10
  35. package/{esm2020 → esm2022}/lib/models/settings/VerticalStackedChartSettings.mjs +10 -10
  36. package/{esm2020 → esm2022}/lib/models/settings/base/BaseInterval.mjs +5 -5
  37. package/{esm2020 → esm2022}/lib/models/settings/base/BaseSettings.mjs +5 -5
  38. package/{esm2020 → esm2022}/lib/models/settings/base/LegendPad.mjs +5 -5
  39. package/esm2022/lib/services/AreaChartService.mjs +157 -0
  40. package/esm2022/lib/services/LineChartService.mjs +392 -0
  41. package/{esm2020 → esm2022}/lib/services/PieChartService.mjs +113 -113
  42. package/{esm2020 → esm2022}/lib/services/Vertical2DChartService.mjs +162 -162
  43. package/{esm2020 → esm2022}/lib/services/VerticalChartService.mjs +113 -113
  44. package/{esm2020 → esm2022}/lib/services/VerticalStackedChartService.mjs +126 -126
  45. package/{esm2020 → esm2022}/lib/services/base/IBaseService.mjs +1 -1
  46. package/{esm2020 → esm2022}/lib/tokens.mjs +13 -13
  47. package/{esm2020 → esm2022}/public-api.mjs +38 -38
  48. package/{fesm2020 → fesm2022}/esfaenza-es-charts.mjs +2728 -2688
  49. package/fesm2022/esfaenza-es-charts.mjs.map +1 -0
  50. package/index.d.ts +5 -5
  51. package/lib/adapters/BaseAdapter.d.ts +40 -40
  52. package/lib/adapters/IBaseAdapter.d.ts +35 -35
  53. package/lib/components/base/base-chart.component.d.ts +304 -304
  54. package/lib/components/chart-pager/chart-pager.component.d.ts +70 -70
  55. package/lib/components/specializations/es-area-chart.component.d.ts +53 -53
  56. package/lib/components/specializations/es-chart.component.d.ts +71 -71
  57. package/lib/components/specializations/es-line-chart.component.d.ts +112 -112
  58. package/lib/components/specializations/es-pie-chart.component.d.ts +81 -81
  59. package/lib/components/specializations/es-vertical-2d-chart.component.d.ts +79 -79
  60. package/lib/components/specializations/es-vertical-chart.component.d.ts +74 -74
  61. package/lib/components/specializations/es-vertical-stacked-chart.component.d.ts +74 -74
  62. package/lib/es-charts.module.d.ts +18 -18
  63. package/lib/models/EsChaartsModuleConfig.d.ts +24 -24
  64. package/lib/models/core/ChartDispatcher.d.ts +46 -46
  65. package/lib/models/core/ChartLoader.d.ts +92 -92
  66. package/lib/models/core/ChartThemes.d.ts +23 -23
  67. package/lib/models/data/AreaChartData.d.ts +22 -22
  68. package/lib/models/data/LineChartData.d.ts +16 -16
  69. package/lib/models/data/PagedChartData.d.ts +23 -23
  70. package/lib/models/data/PieChartData.d.ts +13 -13
  71. package/lib/models/data/Vertical2DChartData.d.ts +27 -27
  72. package/lib/models/data/VerticalChartData.d.ts +13 -13
  73. package/lib/models/data/VerticalStackedChartData.d.ts +21 -21
  74. package/lib/models/data/base/DateValue.d.ts +9 -9
  75. package/lib/models/data/base/KeyValue.d.ts +9 -9
  76. package/lib/models/data/base/KeyValueColor.d.ts +11 -11
  77. package/lib/models/data/base/Limit.d.ts +14 -14
  78. package/lib/models/data/base/LineSerie.d.ts +28 -28
  79. package/lib/models/settings/AreaChartSettings.d.ts +10 -10
  80. package/lib/models/settings/LineChartSettings.d.ts +67 -67
  81. package/lib/models/settings/PieChartSettings.d.ts +34 -34
  82. package/lib/models/settings/Vertical2DChartSettings.d.ts +36 -36
  83. package/lib/models/settings/VerticalChartSettings.d.ts +31 -31
  84. package/lib/models/settings/VerticalStackedChartSettings.d.ts +31 -31
  85. package/lib/models/settings/base/BaseInterval.d.ts +13 -13
  86. package/lib/models/settings/base/BaseSettings.d.ts +67 -67
  87. package/lib/models/settings/base/LegendPad.d.ts +21 -21
  88. package/lib/services/AreaChartService.d.ts +32 -31
  89. package/lib/services/LineChartService.d.ts +48 -47
  90. package/lib/services/PieChartService.d.ts +27 -27
  91. package/lib/services/Vertical2DChartService.d.ts +39 -39
  92. package/lib/services/VerticalChartService.d.ts +33 -33
  93. package/lib/services/VerticalStackedChartService.d.ts +35 -35
  94. package/lib/services/base/IBaseService.d.ts +38 -38
  95. package/lib/tokens.d.ts +13 -13
  96. package/package.json +11 -17
  97. package/public-api.d.ts +35 -35
  98. package/esm2020/lib/services/AreaChartService.mjs +0 -137
  99. package/esm2020/lib/services/LineChartService.mjs +0 -372
  100. package/fesm2015/esfaenza-es-charts.mjs +0 -2829
  101. package/fesm2015/esfaenza-es-charts.mjs.map +0 -1
  102. package/fesm2020/esfaenza-es-charts.mjs.map +0 -1
@@ -1,18 +1,18 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { EsChartsModuleConfig } from './models/EsChaartsModuleConfig';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./components/specializations/es-chart.component";
5
- import * as i2 from "./components/specializations/es-line-chart.component";
6
- import * as i3 from "./components/specializations/es-pie-chart.component";
7
- import * as i4 from "./components/specializations/es-vertical-2d-chart.component";
8
- import * as i5 from "./components/specializations/es-vertical-chart.component";
9
- import * as i6 from "./components/specializations/es-vertical-stacked-chart.component";
10
- import * as i7 from "./components/chart-pager/chart-pager.component";
11
- import * as i8 from "./components/specializations/es-area-chart.component";
12
- import * as i9 from "@angular/common";
13
- export declare class EsChartsModule {
14
- static forRoot(config?: EsChartsModuleConfig): ModuleWithProviders<EsChartsModule>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<EsChartsModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<EsChartsModule, [typeof i1.EsChartComponent, typeof i2.EsLineChartComponent, typeof i3.EsPieChartComponent, typeof i4.EsVertical2DChartComponent, typeof i5.EsVerticalChartComponent, typeof i6.EsVerticalStackedChartComponent, typeof i7.PageChartSelector, typeof i8.EsAreaChartComponent], [typeof i9.CommonModule], [typeof i1.EsChartComponent, typeof i2.EsLineChartComponent, typeof i3.EsPieChartComponent, typeof i4.EsVertical2DChartComponent, typeof i5.EsVerticalChartComponent, typeof i6.EsVerticalStackedChartComponent, typeof i7.PageChartSelector, typeof i8.EsAreaChartComponent]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<EsChartsModule>;
18
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { EsChartsModuleConfig } from './models/EsChaartsModuleConfig';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./components/specializations/es-chart.component";
5
+ import * as i2 from "./components/specializations/es-line-chart.component";
6
+ import * as i3 from "./components/specializations/es-pie-chart.component";
7
+ import * as i4 from "./components/specializations/es-vertical-2d-chart.component";
8
+ import * as i5 from "./components/specializations/es-vertical-chart.component";
9
+ import * as i6 from "./components/specializations/es-vertical-stacked-chart.component";
10
+ import * as i7 from "./components/chart-pager/chart-pager.component";
11
+ import * as i8 from "./components/specializations/es-area-chart.component";
12
+ import * as i9 from "@angular/common";
13
+ export declare class EsChartsModule {
14
+ static forRoot(config?: EsChartsModuleConfig): ModuleWithProviders<EsChartsModule>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsChartsModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EsChartsModule, [typeof i1.EsChartComponent, typeof i2.EsLineChartComponent, typeof i3.EsPieChartComponent, typeof i4.EsVertical2DChartComponent, typeof i5.EsVerticalChartComponent, typeof i6.EsVerticalStackedChartComponent, typeof i7.PageChartSelector, typeof i8.EsAreaChartComponent], [typeof i9.CommonModule], [typeof i1.EsChartComponent, typeof i2.EsLineChartComponent, typeof i3.EsPieChartComponent, typeof i4.EsVertical2DChartComponent, typeof i5.EsVerticalChartComponent, typeof i6.EsVerticalStackedChartComponent, typeof i7.PageChartSelector, typeof i8.EsAreaChartComponent]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<EsChartsModule>;
18
+ }
@@ -1,24 +1,24 @@
1
- import { Type } from '@angular/core';
2
- /**
3
- * Classe di configurazione per il modulo entry point della libreria
4
- */
5
- export declare class EsChartsModuleConfig {
6
- /**
7
- * Utilizzo o meno di default delle animazioni nei grafici
8
- */
9
- animations?: boolean;
10
- /**
11
- * Tema di default per i grafici
12
- */
13
- theme?: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
14
- /**
15
- * Adapter per trasformare i dati dei grafici da una versione precedente (con libreria di terze parti) ad una versione digeribile da questa libreria
16
- *
17
- * Deve implementare l'interfaccia IBaseAdapter
18
- */
19
- adapter?: Type<any>;
20
- /**
21
- * Serve per eventualmente attivare la modalità di debug in cui i messaggi vengono tutti scritti a console
22
- */
23
- debugMode?: boolean;
24
- }
1
+ import { Type } from '@angular/core';
2
+ /**
3
+ * Classe di configurazione per il modulo entry point della libreria
4
+ */
5
+ export declare class EsChartsModuleConfig {
6
+ /**
7
+ * Utilizzo o meno di default delle animazioni nei grafici
8
+ */
9
+ animations?: boolean;
10
+ /**
11
+ * Tema di default per i grafici
12
+ */
13
+ theme?: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
14
+ /**
15
+ * Adapter per trasformare i dati dei grafici da una versione precedente (con libreria di terze parti) ad una versione digeribile da questa libreria
16
+ *
17
+ * Deve implementare l'interfaccia IBaseAdapter
18
+ */
19
+ adapter?: Type<any>;
20
+ /**
21
+ * Serve per eventualmente attivare la modalità di debug in cui i messaggi vengono tutti scritti a console
22
+ */
23
+ debugMode?: boolean;
24
+ }
@@ -1,46 +1,46 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Classe che si occupa del dispatch delle operazioni di rendering dei grafici utilizzando una coda per permettere ad ogni grafico di avere temi e localizzazione custom
4
- */
5
- export declare class ChartDispatcher {
6
- private logs;
7
- /**
8
- * Coda di inizializzazioni ancora da eseguire. Quando questa è vuota significa che nessuno sta creando grafici
9
- */
10
- private Initializations;
11
- /**
12
- * Lista dei grafici inizializzati e attivi in un dato momento (viene registrata la proprietà **name**). Non è possibile registrare due grafici con lo stesso identificativo
13
- */
14
- private InitializedGraphs;
15
- /**
16
- * @ignore
17
- */
18
- constructor(logs: boolean);
19
- /**
20
- * Registra un grafico da visualizzare insieme alla propria funzione di creazione. Quest'ultima sarà differita fino a che tutti i grafici
21
- * precedentemente registati non hanno finito la fase di inizializzazione
22
- *
23
- * @param {string} name Identificativo del grafico da registrare
24
- * @param {Function} chartCreationFunction Funzione che fisicamente dovrà occuparsi della creazione del grafico
25
- */
26
- register(name: string, chartCreationFunction: Function): void;
27
- /**
28
- * Deregistra un grafico presente. Chiamata generalmente al dispose del grafico in questione quando non dev'essere più mostrato nella pagina corrente
29
- *
30
- * @param {string} name Identificativo del grafico da deregistrare
31
- */
32
- deregisterGraph(name: string): void;
33
- /**
34
- * Metodo che esegue in maniera sequenziale le funzioni di inizializzazione dei grafici finché presenti
35
- * in modo che nessun grafico possa essere inizializzato contemporaneamente ad un altro.
36
- *
37
- * Questo è il punto chiave che permette di avere per ogni grafico temi e locale differenti
38
- */
39
- private drainInitQueues;
40
- /**
41
- * @ignore
42
- */
43
- private log;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartDispatcher, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<ChartDispatcher>;
46
- }
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Classe che si occupa del dispatch delle operazioni di rendering dei grafici utilizzando una coda per permettere ad ogni grafico di avere temi e localizzazione custom
4
+ */
5
+ export declare class ChartDispatcher {
6
+ private logs;
7
+ /**
8
+ * Coda di inizializzazioni ancora da eseguire. Quando questa è vuota significa che nessuno sta creando grafici
9
+ */
10
+ private Initializations;
11
+ /**
12
+ * Lista dei grafici inizializzati e attivi in un dato momento (viene registrata la proprietà **name**). Non è possibile registrare due grafici con lo stesso identificativo
13
+ */
14
+ private InitializedGraphs;
15
+ /**
16
+ * @ignore
17
+ */
18
+ constructor(logs: boolean);
19
+ /**
20
+ * Registra un grafico da visualizzare insieme alla propria funzione di creazione. Quest'ultima sarà differita fino a che tutti i grafici
21
+ * precedentemente registati non hanno finito la fase di inizializzazione
22
+ *
23
+ * @param {string} name Identificativo del grafico da registrare
24
+ * @param {Function} chartCreationFunction Funzione che fisicamente dovrà occuparsi della creazione del grafico
25
+ */
26
+ register(name: string, chartCreationFunction: Function): void;
27
+ /**
28
+ * Deregistra un grafico presente. Chiamata generalmente al dispose del grafico in questione quando non dev'essere più mostrato nella pagina corrente
29
+ *
30
+ * @param {string} name Identificativo del grafico da deregistrare
31
+ */
32
+ deregisterGraph(name: string): void;
33
+ /**
34
+ * Metodo che esegue in maniera sequenziale le funzioni di inizializzazione dei grafici finché presenti
35
+ * in modo che nessun grafico possa essere inizializzato contemporaneamente ad un altro.
36
+ *
37
+ * Questo è il punto chiave che permette di avere per ogni grafico temi e locale differenti
38
+ */
39
+ private drainInitQueues;
40
+ /**
41
+ * @ignore
42
+ */
43
+ private log;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartDispatcher, never>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartDispatcher>;
46
+ }
@@ -1,92 +1,92 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Classe di supporto al caricamento dinamico dei vari pezzi di amcharts che mi servono per il grafico (temi, locali, ecc...)
4
- *
5
- * Essenzialmente ogni volta che viene creato un grafico, questo acquisisce il tema e il locale applicato IN QUEL MOMENTO,
6
- * questo significa che per creare due grafici con temi diversi bisogna fare:
7
- *
8
- * 1) Caricamento tema 1
9
- *
10
- * 2) Creazione grafico 1
11
- *
12
- * 3) Scaricamento tema 1
13
- *
14
- * 3) Caricamento tema 2
15
- *
16
- * 4) Creazione grafico 2
17
- *
18
- */
19
- export declare class ChartLoader {
20
- private logs;
21
- /**
22
- * Indica se attualmente ho le animazioni caricate in modo da non ricaricarle inutilmente
23
- */
24
- private AnimationsAreLoaded;
25
- /**
26
- * Indica l'ultimo tema caricato in modo da non ricaricarlo inutilmente qualora il prossimo grafico da creare richieda lo stesso tema
27
- */
28
- private LastLoadedTheme;
29
- /**
30
- * Cache dei temi (moduli caricati dinamicamente)
31
- */
32
- private themeCache;
33
- /**
34
- * Cache delle localizzazioni (moduli caricati dinamicamente)
35
- */
36
- private localizationCache;
37
- /**
38
- * @ignore
39
- */
40
- constructor(logs: boolean);
41
- /**
42
- * Applica il tema con le animazioni all'istanza globale di amCharts
43
- *
44
- * @param {Object} chartsCore Istanza globale di amCharts
45
- * @returns {Promise} Promise che identifica la fine del caricamento
46
- */
47
- applyAnimations(chartsCore: any): Promise<any>;
48
- /**
49
- * De-applica il tema con le animazioni dall'istanza globale di amCharts
50
- *
51
- * @param {Object} chartsCore Istanza globale di amCharts
52
- * @returns {Promise} Promise che identifica la fine dello scarico
53
- */
54
- unapplyAnimations(chartsCore: any): Promise<any>;
55
- /**
56
- * Applica il tema specificato all'istanza globale di amCharts
57
- *
58
- * @param {Object} chartsCore Istanza globale di amCharts
59
- * @param {'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none'} theme Tema da applicare
60
- * @returns {Promise} Promise che identifica la fine del caricamento
61
- */
62
- applyTheme(chartsCore: any, theme: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none'): Promise<any>;
63
- /**
64
- * De-applica il tema precedente dall'istanza globale di amCharts
65
- *
66
- * @param {Object} chartsCore Istanza globale di amCharts
67
- */
68
- unapplyPreviousTheme(chartsCore: any): void;
69
- /**
70
- * Applica il locale specificato all'istanza specifica del grafico
71
- *
72
- * @param {amCharts.Chart} chart Istanza specifica del grafico a cui applicare il locale
73
- * @param {string} locale Locale da applicare
74
- * @returns {Promise} Promise che identifica la fine del caricamento
75
- */
76
- applyLocale(chart: any, locale: string): Promise<any>;
77
- /**
78
- * Permette di importare, se serve un dato tema o localizzazione
79
- *
80
- * @param {'lang' | 'themes'} what Oggetto da importare, se localizzazione o tema
81
- * @param {string} item Chiave dell'oggetto da importare
82
- *
83
- * @returns {Promise} Promise che identifica la fine del caricamento
84
- */
85
- importIfNeeded(what: 'lang' | 'themes', item: string): Promise<any>;
86
- /**
87
- * @ignore
88
- */
89
- log(text: string): void;
90
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartLoader, never>;
91
- static ɵprov: i0.ɵɵInjectableDeclaration<ChartLoader>;
92
- }
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Classe di supporto al caricamento dinamico dei vari pezzi di amcharts che mi servono per il grafico (temi, locali, ecc...)
4
+ *
5
+ * Essenzialmente ogni volta che viene creato un grafico, questo acquisisce il tema e il locale applicato IN QUEL MOMENTO,
6
+ * questo significa che per creare due grafici con temi diversi bisogna fare:
7
+ *
8
+ * 1) Caricamento tema 1
9
+ *
10
+ * 2) Creazione grafico 1
11
+ *
12
+ * 3) Scaricamento tema 1
13
+ *
14
+ * 3) Caricamento tema 2
15
+ *
16
+ * 4) Creazione grafico 2
17
+ *
18
+ */
19
+ export declare class ChartLoader {
20
+ private logs;
21
+ /**
22
+ * Indica se attualmente ho le animazioni caricate in modo da non ricaricarle inutilmente
23
+ */
24
+ private AnimationsAreLoaded;
25
+ /**
26
+ * Indica l'ultimo tema caricato in modo da non ricaricarlo inutilmente qualora il prossimo grafico da creare richieda lo stesso tema
27
+ */
28
+ private LastLoadedTheme;
29
+ /**
30
+ * Cache dei temi (moduli caricati dinamicamente)
31
+ */
32
+ private themeCache;
33
+ /**
34
+ * Cache delle localizzazioni (moduli caricati dinamicamente)
35
+ */
36
+ private localizationCache;
37
+ /**
38
+ * @ignore
39
+ */
40
+ constructor(logs: boolean);
41
+ /**
42
+ * Applica il tema con le animazioni all'istanza globale di amCharts
43
+ *
44
+ * @param {Object} chartsCore Istanza globale di amCharts
45
+ * @returns {Promise} Promise che identifica la fine del caricamento
46
+ */
47
+ applyAnimations(chartsCore: any): Promise<any>;
48
+ /**
49
+ * De-applica il tema con le animazioni dall'istanza globale di amCharts
50
+ *
51
+ * @param {Object} chartsCore Istanza globale di amCharts
52
+ * @returns {Promise} Promise che identifica la fine dello scarico
53
+ */
54
+ unapplyAnimations(chartsCore: any): Promise<any>;
55
+ /**
56
+ * Applica il tema specificato all'istanza globale di amCharts
57
+ *
58
+ * @param {Object} chartsCore Istanza globale di amCharts
59
+ * @param {'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none'} theme Tema da applicare
60
+ * @returns {Promise} Promise che identifica la fine del caricamento
61
+ */
62
+ applyTheme(chartsCore: any, theme: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none'): Promise<any>;
63
+ /**
64
+ * De-applica il tema precedente dall'istanza globale di amCharts
65
+ *
66
+ * @param {Object} chartsCore Istanza globale di amCharts
67
+ */
68
+ unapplyPreviousTheme(chartsCore: any): void;
69
+ /**
70
+ * Applica il locale specificato all'istanza specifica del grafico
71
+ *
72
+ * @param {amCharts.Chart} chart Istanza specifica del grafico a cui applicare il locale
73
+ * @param {string} locale Locale da applicare
74
+ * @returns {Promise} Promise che identifica la fine del caricamento
75
+ */
76
+ applyLocale(chart: any, locale: string): Promise<any>;
77
+ /**
78
+ * Permette di importare, se serve un dato tema o localizzazione
79
+ *
80
+ * @param {'lang' | 'themes'} what Oggetto da importare, se localizzazione o tema
81
+ * @param {string} item Chiave dell'oggetto da importare
82
+ *
83
+ * @returns {Promise} Promise che identifica la fine del caricamento
84
+ */
85
+ importIfNeeded(what: 'lang' | 'themes', item: string): Promise<any>;
86
+ /**
87
+ * @ignore
88
+ */
89
+ log(text: string): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartLoader, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartLoader>;
92
+ }
@@ -1,23 +1,23 @@
1
- /**
2
- * Classe per enumerare i temi disponibili nella libreria
3
- */
4
- export declare class ChartThemes {
5
- get spiritedaway(): string;
6
- get moonrisekingdom(): string;
7
- get frozen(): string;
8
- get dark(): string;
9
- get kelly(): string;
10
- get material(): string;
11
- get dataviz(): string;
12
- get none(): string;
13
- get animated(): string;
14
- static get spiritedaway(): string;
15
- static get moonrisekingdom(): string;
16
- static get frozen(): string;
17
- static get dark(): string;
18
- static get kelly(): string;
19
- static get material(): string;
20
- static get dataviz(): string;
21
- static get none(): string;
22
- static get animated(): string;
23
- }
1
+ /**
2
+ * Classe per enumerare i temi disponibili nella libreria
3
+ */
4
+ export declare class ChartThemes {
5
+ get spiritedaway(): string;
6
+ get moonrisekingdom(): string;
7
+ get frozen(): string;
8
+ get dark(): string;
9
+ get kelly(): string;
10
+ get material(): string;
11
+ get dataviz(): string;
12
+ get none(): string;
13
+ get animated(): string;
14
+ static get spiritedaway(): string;
15
+ static get moonrisekingdom(): string;
16
+ static get frozen(): string;
17
+ static get dark(): string;
18
+ static get kelly(): string;
19
+ static get material(): string;
20
+ static get dataviz(): string;
21
+ static get none(): string;
22
+ static get animated(): string;
23
+ }
@@ -1,22 +1,22 @@
1
- import { BaseInterval } from '../settings/base/BaseInterval';
2
- import { KeyValue } from './base/KeyValue';
3
- /**
4
- * Dati relativi a un grafico di tipo AreaChart
5
- */
6
- export declare class AreaChartData {
7
- groups: {
8
- name: Date;
9
- values: KeyValue[];
10
- }[];
11
- interval?: BaseInterval;
12
- /**
13
- * Costruttore
14
- *
15
- * @param {{ name: Date; values: KeyValue[]; }[]} groups Gruppi di valori raggruppati per data
16
- * @param {BaseInterval} interval Intervallo della serie. Viene utilizzato per gestire eventuali Gap
17
- */
18
- constructor(groups?: {
19
- name: Date;
20
- values: KeyValue[];
21
- }[], interval?: BaseInterval);
22
- }
1
+ import { BaseInterval } from '../settings/base/BaseInterval';
2
+ import { KeyValue } from './base/KeyValue';
3
+ /**
4
+ * Dati relativi a un grafico di tipo AreaChart
5
+ */
6
+ export declare class AreaChartData {
7
+ groups: {
8
+ name: Date;
9
+ values: KeyValue[];
10
+ }[];
11
+ interval?: BaseInterval;
12
+ /**
13
+ * Costruttore
14
+ *
15
+ * @param {{ name: Date; values: KeyValue[]; }[]} groups Gruppi di valori raggruppati per data
16
+ * @param {BaseInterval} interval Intervallo della serie. Viene utilizzato per gestire eventuali Gap
17
+ */
18
+ constructor(groups?: {
19
+ name: Date;
20
+ values: KeyValue[];
21
+ }[], interval?: BaseInterval);
22
+ }
@@ -1,16 +1,16 @@
1
- import { Limit } from './base/Limit';
2
- import { LineSerie } from './base/LineSerie';
3
- /**
4
- * Dati relativi a un grafico di tipo LineChart
5
- */
6
- export declare class LineChartData {
7
- series: LineSerie[];
8
- limit?: Limit | Limit[];
9
- /**
10
- * Costruttore
11
- *
12
- * @param {LineSerie[]} series Lista di serie da graficare
13
- * @param {{upper: lower}}
14
- */
15
- constructor(series?: LineSerie[], limit?: Limit | Limit[]);
16
- }
1
+ import { Limit } from './base/Limit';
2
+ import { LineSerie } from './base/LineSerie';
3
+ /**
4
+ * Dati relativi a un grafico di tipo LineChart
5
+ */
6
+ export declare class LineChartData {
7
+ series: LineSerie[];
8
+ limit?: Limit | Limit[];
9
+ /**
10
+ * Costruttore
11
+ *
12
+ * @param {LineSerie[]} series Lista di serie da graficare
13
+ * @param {{upper: lower}}
14
+ */
15
+ constructor(series?: LineSerie[], limit?: Limit | Limit[]);
16
+ }
@@ -1,23 +1,23 @@
1
- import { LineChartData } from './LineChartData';
2
- import { PieChartData } from './PieChartData';
3
- import { Vertical2DChartData } from './Vertical2DChartData';
4
- import { VerticalChartData } from './VerticalChartData';
5
- import { VerticalStackedChartData } from './VerticalStackedChartData';
6
- /**
7
- * Classe che identifica i dati per un grafico generico paginato
8
- */
9
- export declare class PagedChartData<T extends LineChartData | PieChartData | Vertical2DChartData | VerticalChartData | VerticalStackedChartData | any> {
10
- data: T;
11
- title: string;
12
- dataRetrieveDto: any;
13
- dataRetrieveFunction: Function;
14
- /**
15
- * Costruttore
16
- *
17
- * @param {T} data Dati del grafico
18
- * @param {string} title Titolo del grafico
19
- * @param {Object} dataRetrieveDto Dto utilizzato per recuperare i dati di questo grafico
20
- * @param {Function} dataRetrieveFunction Funzione utilizzata per ottenere i dati di questo grafico
21
- */
22
- constructor(data: T, title: string, dataRetrieveDto: any, dataRetrieveFunction: Function);
23
- }
1
+ import { LineChartData } from './LineChartData';
2
+ import { PieChartData } from './PieChartData';
3
+ import { Vertical2DChartData } from './Vertical2DChartData';
4
+ import { VerticalChartData } from './VerticalChartData';
5
+ import { VerticalStackedChartData } from './VerticalStackedChartData';
6
+ /**
7
+ * Classe che identifica i dati per un grafico generico paginato
8
+ */
9
+ export declare class PagedChartData<T extends LineChartData | PieChartData | Vertical2DChartData | VerticalChartData | VerticalStackedChartData | any> {
10
+ data: T;
11
+ title: string;
12
+ dataRetrieveDto: any;
13
+ dataRetrieveFunction: Function;
14
+ /**
15
+ * Costruttore
16
+ *
17
+ * @param {T} data Dati del grafico
18
+ * @param {string} title Titolo del grafico
19
+ * @param {Object} dataRetrieveDto Dto utilizzato per recuperare i dati di questo grafico
20
+ * @param {Function} dataRetrieveFunction Funzione utilizzata per ottenere i dati di questo grafico
21
+ */
22
+ constructor(data: T, title: string, dataRetrieveDto: any, dataRetrieveFunction: Function);
23
+ }
@@ -1,13 +1,13 @@
1
- import { KeyValueColor } from './base/KeyValueColor';
2
- /**
3
- * Dati relativi a un grafico di tipo PieChart
4
- */
5
- export declare class PieChartData {
6
- values: KeyValueColor[];
7
- /**
8
- * Costruttore
9
- *
10
- * @param {KeyValueColor[]} values Lista di Chiave-Valore-Colore che rappresentano ognuno uno spicchio del grafico a torta
11
- */
12
- constructor(values?: KeyValueColor[]);
13
- }
1
+ import { KeyValueColor } from './base/KeyValueColor';
2
+ /**
3
+ * Dati relativi a un grafico di tipo PieChart
4
+ */
5
+ export declare class PieChartData {
6
+ values: KeyValueColor[];
7
+ /**
8
+ * Costruttore
9
+ *
10
+ * @param {KeyValueColor[]} values Lista di Chiave-Valore-Colore che rappresentano ognuno uno spicchio del grafico a torta
11
+ */
12
+ constructor(values?: KeyValueColor[]);
13
+ }
@@ -1,27 +1,27 @@
1
- import { KeyValue } from './base/KeyValue';
2
- /**
3
- * Dati relativi a un grafico di tipo Vertical2DChart
4
- */
5
- export declare class Vertical2DChartData {
6
- groups: {
7
- name: string;
8
- values: KeyValue[];
9
- uom?: string;
10
- }[];
11
- colorinfos?: {
12
- color: string;
13
- }[];
14
- /**
15
- * Costruttore
16
- *
17
- * @param {{ name: string; values: KeyValue[];, uom: string }[]} groups Gruppi di valori raggruppati per nome
18
- * @param {{ color: string }[]} colorinfos Lista dei colori da utilizzare. Vanno a sovrascrivere quelli di default di amcharts
19
- */
20
- constructor(groups?: {
21
- name: string;
22
- values: KeyValue[];
23
- uom?: string;
24
- }[], colorinfos?: {
25
- color: string;
26
- }[]);
27
- }
1
+ import { KeyValue } from './base/KeyValue';
2
+ /**
3
+ * Dati relativi a un grafico di tipo Vertical2DChart
4
+ */
5
+ export declare class Vertical2DChartData {
6
+ groups: {
7
+ name: string;
8
+ values: KeyValue[];
9
+ uom?: string;
10
+ }[];
11
+ colorinfos?: {
12
+ color: string;
13
+ }[];
14
+ /**
15
+ * Costruttore
16
+ *
17
+ * @param {{ name: string; values: KeyValue[];, uom: string }[]} groups Gruppi di valori raggruppati per nome
18
+ * @param {{ color: string }[]} colorinfos Lista dei colori da utilizzare. Vanno a sovrascrivere quelli di default di amcharts
19
+ */
20
+ constructor(groups?: {
21
+ name: string;
22
+ values: KeyValue[];
23
+ uom?: string;
24
+ }[], colorinfos?: {
25
+ color: string;
26
+ }[]);
27
+ }
@@ -1,13 +1,13 @@
1
- import { KeyValueColor } from './base/KeyValueColor';
2
- /**
3
- * Dati relativi a un grafico di tipo VerticalChart
4
- */
5
- export declare class VerticalChartData {
6
- values: KeyValueColor[];
7
- /**
8
- * Costruttore
9
- *
10
- * @param {KeyValueColor[]} values Lista di Chiave-Valore-Colore che rappresentano ognuno una colonna
11
- */
12
- constructor(values?: KeyValueColor[]);
13
- }
1
+ import { KeyValueColor } from './base/KeyValueColor';
2
+ /**
3
+ * Dati relativi a un grafico di tipo VerticalChart
4
+ */
5
+ export declare class VerticalChartData {
6
+ values: KeyValueColor[];
7
+ /**
8
+ * Costruttore
9
+ *
10
+ * @param {KeyValueColor[]} values Lista di Chiave-Valore-Colore che rappresentano ognuno una colonna
11
+ */
12
+ constructor(values?: KeyValueColor[]);
13
+ }