@esfaenza/es-charts 15.2.0 → 15.2.2

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 (29) hide show
  1. package/esm2020/lib/components/base/base-chart.component.mjs +4 -3
  2. package/esm2020/lib/components/specializations/es-area-chart.component.mjs +10 -12
  3. package/esm2020/lib/components/specializations/es-chart.component.mjs +10 -12
  4. package/esm2020/lib/components/specializations/es-line-chart.component.mjs +10 -12
  5. package/esm2020/lib/components/specializations/es-pie-chart.component.mjs +10 -12
  6. package/esm2020/lib/components/specializations/es-vertical-2d-chart.component.mjs +10 -12
  7. package/esm2020/lib/components/specializations/es-vertical-chart.component.mjs +10 -12
  8. package/esm2020/lib/components/specializations/es-vertical-stacked-chart.component.mjs +10 -12
  9. package/esm2020/lib/es-charts.module.mjs +6 -12
  10. package/esm2020/lib/models/EsChaartsModuleConfig.mjs +1 -1
  11. package/esm2020/lib/models/core/ChartDispatcher.mjs +4 -3
  12. package/esm2020/lib/models/core/ChartLoader.mjs +13 -1
  13. package/esm2020/lib/tokens.mjs +1 -5
  14. package/fesm2015/esfaenza-es-charts.mjs +73 -88
  15. package/fesm2015/esfaenza-es-charts.mjs.map +1 -1
  16. package/fesm2020/esfaenza-es-charts.mjs +71 -88
  17. package/fesm2020/esfaenza-es-charts.mjs.map +1 -1
  18. package/lib/components/base/base-chart.component.d.ts +2 -2
  19. package/lib/components/specializations/es-area-chart.component.d.ts +2 -1
  20. package/lib/components/specializations/es-chart.component.d.ts +2 -1
  21. package/lib/components/specializations/es-line-chart.component.d.ts +2 -1
  22. package/lib/components/specializations/es-pie-chart.component.d.ts +2 -1
  23. package/lib/components/specializations/es-vertical-2d-chart.component.d.ts +2 -1
  24. package/lib/components/specializations/es-vertical-chart.component.d.ts +2 -1
  25. package/lib/components/specializations/es-vertical-stacked-chart.component.d.ts +2 -1
  26. package/lib/models/EsChaartsModuleConfig.d.ts +3 -7
  27. package/lib/models/core/ChartLoader.d.ts +3 -0
  28. package/lib/tokens.d.ts +0 -4
  29. package/package.json +3 -2
@@ -192,7 +192,7 @@ export declare abstract class BaseChartComponent implements AfterViewInit, OnDes
192
192
  * @param {ChartDispatcher} Dispatcher Istanza del Dispatcher che si occupa di differire il caricamento dei grafici 1 dopo l'altro in modo che caricamenti pseudo paralleli incasinino tutto
193
193
  * @param {boolean} logs Indica se effettuare log a console o meno, iniettato dalle classi specializzate dal token ESC_LOGS
194
194
  * @param {boolean} animations Indica se per questo grafico devono essere attive o meno le animazioni. Impostazione generica presa dal token ESC_ANIMATIONS
195
- * @param {string} locale Indica il locale specifico per questo grafico. Impostazione generica presa dal token ESC_LOCALE
195
+ * @param {string} locale Indica il locale specifico per questo grafico. Impostazione generica presa dal LocalizationService
196
196
  * @param {string} theme Indica il tema specifico per questo grafico. Impostazione generica presa dal token ESC_THEME
197
197
  */
198
198
  constructor(el: ElementRef, platformId: Object, zone: NgZone, Charter: ChartLoader, Dispatcher: ChartDispatcher, logs: boolean, animations: boolean, locale: string, theme: string);
@@ -200,7 +200,7 @@ export declare abstract class BaseChartComponent implements AfterViewInit, OnDes
200
200
  * Metodo di inizializzazione post valorizzazione degli input, utilizzato per valorizzare correttamente le proprietà essenziali del grafico (Animazioni, Tema e Locale)
201
201
  *
202
202
  * Viene data priorità ai Settings (HTML), priorità secondaria agli Input diretti (Lato HTML), priorità ultima alle impostazioni globali,
203
- * impostate in fase di import del modulo assegnando valori ai token ESC_LOCALE, ESC_ANIMATIONS, ESC_THEME
203
+ * impostate in fase di import del modulo assegnando valori ai token ESC_ANIMATIONS, ESC_THEME
204
204
  */
205
205
  ngOnInit(): void;
206
206
  /**
@@ -1,4 +1,5 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
2
3
  import { BaseAdapter } from '../../adapters/BaseAdapter';
3
4
  import { BaseChartComponent } from '../base/base-chart.component';
4
5
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -23,7 +24,7 @@ export declare class EsAreaChartComponent extends BaseChartComponent {
23
24
  /**
24
25
  * @ignore
25
26
  */
26
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
27
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
27
28
  /**
28
29
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
29
30
  */
@@ -1,5 +1,6 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
2
  import { DateService } from "@esfaenza/extensions";
3
+ import { LocalizationService } from '@esfaenza/localizations';
3
4
  import { BaseAdapter } from '../../adapters/BaseAdapter';
4
5
  import { BaseChartComponent } from '../base/base-chart.component';
5
6
  import { ChartDispatcher } from "../../models/core/ChartDispatcher";
@@ -41,7 +42,7 @@ export declare class EsChartComponent extends BaseChartComponent {
41
42
  /**
42
43
  * @ignore
43
44
  */
44
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, dateService: DateService, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
45
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, dateService: DateService, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
45
46
  /**
46
47
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
47
48
  */
@@ -1,5 +1,6 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
2
  import { DateService } from "@esfaenza/extensions";
3
+ import { LocalizationService } from '@esfaenza/localizations';
3
4
  import { BaseAdapter } from '../../adapters/BaseAdapter';
4
5
  import { BaseChartComponent } from '../base/base-chart.component';
5
6
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -82,7 +83,7 @@ export declare class EsLineChartComponent extends BaseChartComponent {
82
83
  /**
83
84
  * @ignore
84
85
  */
85
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, dateService: DateService, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
86
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, dateService: DateService, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
86
87
  /**
87
88
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
88
89
  */
@@ -1,4 +1,5 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
2
3
  import { BaseAdapter } from '../../adapters/BaseAdapter';
3
4
  import { BaseChartComponent } from '../base/base-chart.component';
4
5
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -51,7 +52,7 @@ export declare class EsPieChartComponent extends BaseChartComponent {
51
52
  /**
52
53
  * @ignore
53
54
  */
54
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
55
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
55
56
  /**
56
57
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
57
58
  */
@@ -1,4 +1,5 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
2
3
  import { BaseAdapter } from '../../adapters/BaseAdapter';
3
4
  import { BaseChartComponent } from '../base/base-chart.component';
4
5
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -49,7 +50,7 @@ export declare class EsVertical2DChartComponent extends BaseChartComponent {
49
50
  /**
50
51
  * @ignore
51
52
  */
52
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
53
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
53
54
  /**
54
55
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
55
56
  */
@@ -1,4 +1,5 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
2
3
  import { BaseAdapter } from '../../adapters/BaseAdapter';
3
4
  import { BaseChartComponent } from '../base/base-chart.component';
4
5
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -44,7 +45,7 @@ export declare class EsVerticalChartComponent extends BaseChartComponent {
44
45
  /**
45
46
  * @ignore
46
47
  */
47
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
48
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
48
49
  /**
49
50
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
50
51
  */
@@ -1,4 +1,5 @@
1
1
  import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
2
3
  import { BaseAdapter } from '../../adapters/BaseAdapter';
3
4
  import { BaseChartComponent } from '../base/base-chart.component';
4
5
  import { ChartLoader } from "../../models/core/ChartLoader";
@@ -44,7 +45,7 @@ export declare class EsVerticalStackedChartComponent extends BaseChartComponent
44
45
  /**
45
46
  * @ignore
46
47
  */
47
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_LOCALE: string, ESC_THEME: string);
48
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_LOGS: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
48
49
  /**
49
50
  * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
50
51
  */
@@ -3,24 +3,20 @@ import { Type } from '@angular/core';
3
3
  * Classe di configurazione per il modulo entry point della libreria
4
4
  */
5
5
  export declare class EsChartsModuleConfig {
6
- /**
7
- * Locale di default per i grafici
8
- */
9
- locale: string;
10
6
  /**
11
7
  * Utilizzo o meno di default delle animazioni nei grafici
12
8
  */
13
- animations: boolean;
9
+ animations?: boolean;
14
10
  /**
15
11
  * Tema di default per i grafici
16
12
  */
17
- theme: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
13
+ theme?: 'spiritedaway' | 'moonrisekingdom' | 'frozen' | 'dark' | 'kelly' | 'material' | 'dataviz' | 'none';
18
14
  /**
19
15
  * Adapter per trasformare i dati dei grafici da una versione precedente (con libreria di terze parti) ad una versione digeribile da questa libreria
20
16
  *
21
17
  * Deve implementare l'interfaccia IBaseAdapter
22
18
  */
23
- adapter: Type<any>;
19
+ adapter?: Type<any>;
24
20
  /**
25
21
  * Serve per eventualmente attivare la modalità di debug in cui i messaggi vengono tutti scritti a console
26
22
  */
@@ -1,3 +1,4 @@
1
+ import * as i0 from "@angular/core";
1
2
  /**
2
3
  * Classe di supporto al caricamento dinamico dei vari pezzi di amcharts che mi servono per il grafico (temi, locali, ecc...)
3
4
  *
@@ -86,4 +87,6 @@ export declare class ChartLoader {
86
87
  * @ignore
87
88
  */
88
89
  log(text: string): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartLoader, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartLoader>;
89
92
  }
package/lib/tokens.d.ts CHANGED
@@ -1,8 +1,4 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- /**
3
- * Token che identifica il Locale di default per tutti i grafici, può essere sovrascritto dalle impostazioni locali (Settings e Input)
4
- */
5
- export declare const ESC_LOCALE: InjectionToken<string>;
6
2
  /**
7
3
  * Token che identifica il default per l'utilizzo o meno delle Animazioni per tutti i grafici, può essere sovrascritto dalle impostazioni locali (Settings e Input)
8
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/es-charts",
3
- "version": "15.2.0",
3
+ "version": "15.2.2",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -8,7 +8,8 @@
8
8
  "@amcharts/amcharts4": "4.10.36",
9
9
  "@angular/common": "^15.2.9",
10
10
  "@angular/core": "^15.2.9",
11
- "@esfaenza/extensions": "^15.2.0",
11
+ "@esfaenza/extensions": "^15.2.1",
12
+ "@esfaenza/localizations": "^15.2.8",
12
13
  "dayjs": "1.11.8"
13
14
  },
14
15
  "module": "fesm2015/esfaenza-es-charts.mjs",