@esfaenza/es-charts 15.2.8 → 16.0.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 (99) 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/{esm2020 → esm2022}/lib/services/AreaChartService.mjs +156 -156
  40. package/{esm2020 → esm2022}/lib/services/LineChartService.mjs +391 -391
  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 -2728
  49. package/{fesm2020 → fesm2022}/esfaenza-es-charts.mjs.map +1 -1
  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 -32
  89. package/lib/services/LineChartService.d.ts +48 -48
  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/fesm2015/esfaenza-es-charts.mjs +0 -2869
  99. package/fesm2015/esfaenza-es-charts.mjs.map +0 -1
@@ -1,70 +1,70 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { PagedChartData } from '../../models/data/PagedChartData';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Componente che si occupa della paginazione dei grafici qualora servisse
6
- */
7
- export declare class PageChartSelector {
8
- /**
9
- * Lista dei dati precaricata in memoria
10
- */
11
- Items: PagedChartData<any>[];
12
- /**
13
- * Lista dei Dto da utilizzare per caricare i valori dei vari grafici
14
- */
15
- Dtos: any[];
16
- /**
17
- * Dopo aver navigato a un nuovo grafico verranno attesi questi millisecondi prima di richiedere i dati attraverso la **DataRetrieve**.
18
- *
19
- * Questo per evitare che l'utente cliccando velocemente "avanti" generi tonnellate di richieste inutili
20
- */
21
- BrowseDelayMs: any;
22
- /**
23
- * Indice dell'array **Dtos** o dell'array **Items** da cui iniziare ad emettere i valori, utile per supportare il "back" da un eventuale pagina di dettaglio
24
- */
25
- StartIndex: number;
26
- /**
27
- * Indica un cambio di pagina ed emette un oggetto con i dati attuali e l'indice attuale.
28
- *
29
- * Qualora la proprietà **data** fosse null indica un evento di "loading"
30
- */
31
- onPageChange: EventEmitter<{
32
- data: any;
33
- index: number;
34
- }>;
35
- /**
36
- * Override del titolo di default
37
- */
38
- headerInner_tr: any;
39
- /**
40
- * @ignore
41
- */
42
- currentpage: number;
43
- /**
44
- * @ignore
45
- */
46
- private currentindex;
47
- /**
48
- * @ignore
49
- */
50
- private finalIndex;
51
- /**
52
- * @ignore
53
- */
54
- ngOnChanges(): void;
55
- /**
56
- * Gestisce un cambio pagina inviando al callback **onPageChange** i dati attuali (siano essi il Dto per il caricamento dati i
57
- * o i dati già presenti) e l'indice di visualizzazione
58
- */
59
- private handlePageChange;
60
- /**
61
- * Visualizza il grafico successivo
62
- */
63
- Next(): void;
64
- /**
65
- * Visualizza il grafico precedente
66
- */
67
- Previous(): void;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<PageChartSelector, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<PageChartSelector, "chart-pager", never, { "Items": "Items"; "Dtos": "Dtos"; "BrowseDelayMs": "BrowseDelayMs"; "StartIndex": "StartIndex"; }, { "onPageChange": "onPageChange"; }, ["headerInner_tr"], never, false, never>;
70
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { PagedChartData } from '../../models/data/PagedChartData';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Componente che si occupa della paginazione dei grafici qualora servisse
6
+ */
7
+ export declare class PageChartSelector {
8
+ /**
9
+ * Lista dei dati precaricata in memoria
10
+ */
11
+ Items: PagedChartData<any>[];
12
+ /**
13
+ * Lista dei Dto da utilizzare per caricare i valori dei vari grafici
14
+ */
15
+ Dtos: any[];
16
+ /**
17
+ * Dopo aver navigato a un nuovo grafico verranno attesi questi millisecondi prima di richiedere i dati attraverso la **DataRetrieve**.
18
+ *
19
+ * Questo per evitare che l'utente cliccando velocemente "avanti" generi tonnellate di richieste inutili
20
+ */
21
+ BrowseDelayMs: any;
22
+ /**
23
+ * Indice dell'array **Dtos** o dell'array **Items** da cui iniziare ad emettere i valori, utile per supportare il "back" da un eventuale pagina di dettaglio
24
+ */
25
+ StartIndex: number;
26
+ /**
27
+ * Indica un cambio di pagina ed emette un oggetto con i dati attuali e l'indice attuale.
28
+ *
29
+ * Qualora la proprietà **data** fosse null indica un evento di "loading"
30
+ */
31
+ onPageChange: EventEmitter<{
32
+ data: any;
33
+ index: number;
34
+ }>;
35
+ /**
36
+ * Override del titolo di default
37
+ */
38
+ headerInner_tr: any;
39
+ /**
40
+ * @ignore
41
+ */
42
+ currentpage: number;
43
+ /**
44
+ * @ignore
45
+ */
46
+ private currentindex;
47
+ /**
48
+ * @ignore
49
+ */
50
+ private finalIndex;
51
+ /**
52
+ * @ignore
53
+ */
54
+ ngOnChanges(): void;
55
+ /**
56
+ * Gestisce un cambio pagina inviando al callback **onPageChange** i dati attuali (siano essi il Dto per il caricamento dati i
57
+ * o i dati già presenti) e l'indice di visualizzazione
58
+ */
59
+ private handlePageChange;
60
+ /**
61
+ * Visualizza il grafico successivo
62
+ */
63
+ Next(): void;
64
+ /**
65
+ * Visualizza il grafico precedente
66
+ */
67
+ Previous(): void;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageChartSelector, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageChartSelector, "chart-pager", never, { "Items": { "alias": "Items"; "required": false; }; "Dtos": { "alias": "Dtos"; "required": false; }; "BrowseDelayMs": { "alias": "BrowseDelayMs"; "required": false; }; "StartIndex": { "alias": "StartIndex"; "required": false; }; }, { "onPageChange": "onPageChange"; }, ["headerInner_tr"], never, false, never>;
70
+ }
@@ -1,53 +1,53 @@
1
- import { NgZone, ElementRef } from '@angular/core';
2
- import { LocalizationService } from '@esfaenza/localizations';
3
- import { BaseAdapter } from '../../adapters/BaseAdapter';
4
- import { BaseChartComponent } from '../base/base-chart.component';
5
- import { ChartLoader } from "../../models/core/ChartLoader";
6
- import { ChartDispatcher } from "../../models/core/ChartDispatcher";
7
- import { AreaChartSettings } from '../../models/settings/AreaChartSettings';
8
- import { AreaChartData } from '../../models/data/AreaChartData';
9
- import { PagedChartData } from '../../models/data/PagedChartData';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * Componente specifico per la graficazione di un grafico ad Area
13
- */
14
- export declare class EsAreaChartComponent extends BaseChartComponent {
15
- private adapter;
16
- /**
17
- * Dati specifici per il grafico o di un tipo tramutabile al tipo **AreaChartData** col supporto del **BaseAdapter**
18
- */
19
- Data: AreaChartData | any;
20
- /**
21
- * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo **AreaChartData** col supporto del **BaseAdapter**
22
- */
23
- DataArray: PagedChartData<AreaChartData>[] | PagedChartData<any>[];
24
- /**
25
- * @ignore
26
- */
27
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
28
- /**
29
- * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
30
- */
31
- getSpecificPropertiesToCheck(): string[];
32
- /**
33
- * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
34
- *
35
- * @returns {AreaChartSettings} Settings castati al tipo giusto
36
- */
37
- getCastedSettings(): AreaChartSettings;
38
- /**
39
- * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
40
- *
41
- * @param {AreaChartSettings} settingsCasted Settings castati al tipo giusto
42
- */
43
- fillSpecificSettings(settingsCasted: AreaChartSettings): void;
44
- /**
45
- * Effettua il rendering di questo grafico in base ai Settings
46
- *
47
- * @param {AreaChartSettings} settingsCasted Impostazioni di graficazione
48
- * @returns {AreaChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
49
- */
50
- graphicate(settingsCasted: AreaChartSettings): any;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<EsAreaChartComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<EsAreaChartComponent, "es-area-chart", never, { "Data": "Data"; "DataArray": "DataArray"; }, {}, never, never, false, never>;
53
- }
1
+ import { NgZone, ElementRef } from '@angular/core';
2
+ import { LocalizationService } from '@esfaenza/localizations';
3
+ import { BaseAdapter } from '../../adapters/BaseAdapter';
4
+ import { BaseChartComponent } from '../base/base-chart.component';
5
+ import { ChartLoader } from "../../models/core/ChartLoader";
6
+ import { ChartDispatcher } from "../../models/core/ChartDispatcher";
7
+ import { AreaChartSettings } from '../../models/settings/AreaChartSettings';
8
+ import { AreaChartData } from '../../models/data/AreaChartData';
9
+ import { PagedChartData } from '../../models/data/PagedChartData';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * Componente specifico per la graficazione di un grafico ad Area
13
+ */
14
+ export declare class EsAreaChartComponent extends BaseChartComponent {
15
+ private adapter;
16
+ /**
17
+ * Dati specifici per il grafico o di un tipo tramutabile al tipo **AreaChartData** col supporto del **BaseAdapter**
18
+ */
19
+ Data: AreaChartData | any;
20
+ /**
21
+ * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo **AreaChartData** col supporto del **BaseAdapter**
22
+ */
23
+ DataArray: PagedChartData<AreaChartData>[] | PagedChartData<any>[];
24
+ /**
25
+ * @ignore
26
+ */
27
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
28
+ /**
29
+ * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
30
+ */
31
+ getSpecificPropertiesToCheck(): string[];
32
+ /**
33
+ * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
34
+ *
35
+ * @returns {AreaChartSettings} Settings castati al tipo giusto
36
+ */
37
+ getCastedSettings(): AreaChartSettings;
38
+ /**
39
+ * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
40
+ *
41
+ * @param {AreaChartSettings} settingsCasted Settings castati al tipo giusto
42
+ */
43
+ fillSpecificSettings(settingsCasted: AreaChartSettings): void;
44
+ /**
45
+ * Effettua il rendering di questo grafico in base ai Settings
46
+ *
47
+ * @param {AreaChartSettings} settingsCasted Impostazioni di graficazione
48
+ * @returns {AreaChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
49
+ */
50
+ graphicate(settingsCasted: AreaChartSettings): any;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsAreaChartComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<EsAreaChartComponent, "es-area-chart", never, { "Data": { "alias": "Data"; "required": false; }; "DataArray": { "alias": "DataArray"; "required": false; }; }, {}, never, never, false, never>;
53
+ }
@@ -1,71 +1,71 @@
1
- import { NgZone, ElementRef } from '@angular/core';
2
- import { DateService } from "@esfaenza/extensions";
3
- import { LocalizationService } from '@esfaenza/localizations';
4
- import { BaseAdapter } from '../../adapters/BaseAdapter';
5
- import { BaseChartComponent } from '../base/base-chart.component';
6
- import { ChartDispatcher } from "../../models/core/ChartDispatcher";
7
- import { ChartLoader } from "../../models/core/ChartLoader";
8
- import { LineChartData } from "../../models/data/LineChartData";
9
- import { PieChartData } from "../../models/data/PieChartData";
10
- import { VerticalChartData } from "../../models/data/VerticalChartData";
11
- import { Vertical2DChartData } from "../../models/data/Vertical2DChartData";
12
- import { VerticalStackedChartData } from "../../models/data/VerticalStackedChartData";
13
- import { AreaChartData } from "../../models/data/AreaChartData";
14
- import { PagedChartData } from "../../models/data/PagedChartData";
15
- import { PieChartSettings } from "../../models/settings/PieChartSettings";
16
- import { AreaChartSettings } from "../../models/settings/AreaChartSettings";
17
- import { VerticalChartSettings } from "../../models/settings/VerticalChartSettings";
18
- import { Vertical2DChartSettings } from "../../models/settings/Vertical2DChartSettings";
19
- import { VerticalStackedChartSettings } from "../../models/settings/VerticalStackedChartSettings";
20
- import { LineChartSettings } from "../../models/settings/LineChartSettings";
21
- import * as i0 from "@angular/core";
22
- /**
23
- * Componente specifico per la graficazione di un qualsiasi tipo di grafico.
24
- *
25
- * Si basa sul tipo specificato dalla proprietà **Type**
26
- */
27
- export declare class EsChartComponent extends BaseChartComponent {
28
- private dateService;
29
- private adapter;
30
- /**
31
- * Tipologia di grafico da presentare
32
- */
33
- Type: 'pie' | 'line' | 'vertical' | 'vertical-2d' | 'vertical-stacked' | 'area';
34
- /**
35
- * Dati specifici per il grafico o di un tipo tramutabile al tipo giusto col supporto del **BaseAdapter**
36
- */
37
- Data: LineChartData | PieChartData | Vertical2DChartData | VerticalChartData | VerticalStackedChartData | AreaChartData | any;
38
- /**
39
- * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo giusto col supporto del **BaseAdapter**
40
- */
41
- DataArray: PagedChartData<LineChartData>[] | PagedChartData<PieChartData>[] | PagedChartData<Vertical2DChartData>[] | PagedChartData<VerticalChartData>[] | PagedChartData<VerticalStackedChartData>[] | PagedChartData<AreaChartData>[] | PagedChartData<any>[];
42
- /**
43
- * @ignore
44
- */
45
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, dateService: DateService, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
46
- /**
47
- * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
48
- */
49
- getSpecificPropertiesToCheck(): string[];
50
- /**
51
- * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
52
- *
53
- * @returns {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} Settings castati al tipo giusto
54
- */
55
- getCastedSettings(): AreaChartSettings | LineChartSettings | PieChartSettings | Vertical2DChartSettings | VerticalChartSettings | VerticalStackedChartSettings;
56
- /**
57
- * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
58
- *
59
- * @param {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} settingsCasted Settings castati al tipo giusto
60
- */
61
- fillSpecificSettings(settingsCasted: PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings): void;
62
- /**
63
- * Effettua il rendering di questo grafico in base ai Settings
64
- *
65
- * @param {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} settingsCasted Impostazioni di graficazione
66
- * @returns {PieChartService | AreaChartService | LineChartService | VerticalChartService | Vertical2DChartService | VerticalStackedChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
67
- */
68
- graphicate(settings: PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings): any;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<EsChartComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<EsChartComponent, "es-chart", never, { "Type": "Type"; "Data": "Data"; "DataArray": "DataArray"; }, {}, never, never, false, never>;
71
- }
1
+ import { NgZone, ElementRef } from '@angular/core';
2
+ import { DateService } from "@esfaenza/extensions";
3
+ import { LocalizationService } from '@esfaenza/localizations';
4
+ import { BaseAdapter } from '../../adapters/BaseAdapter';
5
+ import { BaseChartComponent } from '../base/base-chart.component';
6
+ import { ChartDispatcher } from "../../models/core/ChartDispatcher";
7
+ import { ChartLoader } from "../../models/core/ChartLoader";
8
+ import { LineChartData } from "../../models/data/LineChartData";
9
+ import { PieChartData } from "../../models/data/PieChartData";
10
+ import { VerticalChartData } from "../../models/data/VerticalChartData";
11
+ import { Vertical2DChartData } from "../../models/data/Vertical2DChartData";
12
+ import { VerticalStackedChartData } from "../../models/data/VerticalStackedChartData";
13
+ import { AreaChartData } from "../../models/data/AreaChartData";
14
+ import { PagedChartData } from "../../models/data/PagedChartData";
15
+ import { PieChartSettings } from "../../models/settings/PieChartSettings";
16
+ import { AreaChartSettings } from "../../models/settings/AreaChartSettings";
17
+ import { VerticalChartSettings } from "../../models/settings/VerticalChartSettings";
18
+ import { Vertical2DChartSettings } from "../../models/settings/Vertical2DChartSettings";
19
+ import { VerticalStackedChartSettings } from "../../models/settings/VerticalStackedChartSettings";
20
+ import { LineChartSettings } from "../../models/settings/LineChartSettings";
21
+ import * as i0 from "@angular/core";
22
+ /**
23
+ * Componente specifico per la graficazione di un qualsiasi tipo di grafico.
24
+ *
25
+ * Si basa sul tipo specificato dalla proprietà **Type**
26
+ */
27
+ export declare class EsChartComponent extends BaseChartComponent {
28
+ private dateService;
29
+ private adapter;
30
+ /**
31
+ * Tipologia di grafico da presentare
32
+ */
33
+ Type: 'pie' | 'line' | 'vertical' | 'vertical-2d' | 'vertical-stacked' | 'area';
34
+ /**
35
+ * Dati specifici per il grafico o di un tipo tramutabile al tipo giusto col supporto del **BaseAdapter**
36
+ */
37
+ Data: LineChartData | PieChartData | Vertical2DChartData | VerticalChartData | VerticalStackedChartData | AreaChartData | any;
38
+ /**
39
+ * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo giusto col supporto del **BaseAdapter**
40
+ */
41
+ DataArray: PagedChartData<LineChartData>[] | PagedChartData<PieChartData>[] | PagedChartData<Vertical2DChartData>[] | PagedChartData<VerticalChartData>[] | PagedChartData<VerticalStackedChartData>[] | PagedChartData<AreaChartData>[] | PagedChartData<any>[];
42
+ /**
43
+ * @ignore
44
+ */
45
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, dateService: DateService, adapter: BaseAdapter, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
46
+ /**
47
+ * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
48
+ */
49
+ getSpecificPropertiesToCheck(): string[];
50
+ /**
51
+ * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
52
+ *
53
+ * @returns {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} Settings castati al tipo giusto
54
+ */
55
+ getCastedSettings(): AreaChartSettings | LineChartSettings | PieChartSettings | Vertical2DChartSettings | VerticalChartSettings | VerticalStackedChartSettings;
56
+ /**
57
+ * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
58
+ *
59
+ * @param {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} settingsCasted Settings castati al tipo giusto
60
+ */
61
+ fillSpecificSettings(settingsCasted: PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings): void;
62
+ /**
63
+ * Effettua il rendering di questo grafico in base ai Settings
64
+ *
65
+ * @param {PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings} settingsCasted Impostazioni di graficazione
66
+ * @returns {PieChartService | AreaChartService | LineChartService | VerticalChartService | Vertical2DChartService | VerticalStackedChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
67
+ */
68
+ graphicate(settings: PieChartSettings | AreaChartSettings | LineChartSettings | VerticalChartSettings | Vertical2DChartSettings | VerticalStackedChartSettings): any;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsChartComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<EsChartComponent, "es-chart", never, { "Type": { "alias": "Type"; "required": false; }; "Data": { "alias": "Data"; "required": false; }; "DataArray": { "alias": "DataArray"; "required": false; }; }, {}, never, never, false, never>;
71
+ }
@@ -1,112 +1,112 @@
1
- import { NgZone, ElementRef } from '@angular/core';
2
- import { DateService } from "@esfaenza/extensions";
3
- import { LocalizationService } from '@esfaenza/localizations';
4
- import { BaseAdapter } from '../../adapters/BaseAdapter';
5
- import { BaseChartComponent } from '../base/base-chart.component';
6
- import { ChartLoader } from "../../models/core/ChartLoader";
7
- import { ChartDispatcher } from "../../models/core/ChartDispatcher";
8
- import { LineChartSettings } from '../../models/settings/LineChartSettings';
9
- import { LineChartData } from '../../models/data/LineChartData';
10
- import { PagedChartData } from '../../models/data/PagedChartData';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Componente specifico per la graficazione di un grafico a Linea su un asse temporale
14
- */
15
- export declare class EsLineChartComponent extends BaseChartComponent {
16
- private adapter;
17
- private dateService;
18
- /**
19
- * Dati specifici per il grafico o di un tipo tramutabile al tipo **LineChartData** col supporto del **BaseAdapter**
20
- */
21
- Data: LineChartData | any;
22
- /**
23
- * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo **LineChartData** col supporto del **BaseAdapter**
24
- */
25
- DataArray: PagedChartData<LineChartData>[] | PagedChartData<any>[];
26
- /**
27
- * Indica se la curva deve collegare direttamente un datapoint all'altro o se deve fare degli step
28
- */
29
- Step: boolean;
30
- /**
31
- * Indica il numero massimo di datapoint visualizzabile in una singola vista del grafico. L'eccedenza viene raggruppata e verrà mostrata sullo zoom.
32
- *
33
- * ATTENZIONE: Utilizzando il sistema di default di raggruppamento di am-charts si rischia di tagliare via pezzi da serie molto ondulate
34
- * in quanto il comportamento di default è quello di eliminare i datapoint che non ci stanno, non di interpolarli
35
- */
36
- DataGroupBucketSize: number;
37
- /**
38
- * Soglia per controllare oltre che numero di datapoint il grafico deve iniziare ad effettuare raggruppamenti considerando l'Input **DataGroupBucketSize**
39
- */
40
- DataGroupingThreshold: number;
41
- /**
42
- * Indica le dimnsioni, in pixel della linea del grafico
43
- */
44
- StrokeSize: number;
45
- /**
46
- * Indica se sono permessi dei Gap fra un valore e l'altro.
47
- *
48
- * Normalmente quando ci sono dei buchi l'ultimo datapoint del buco viene collegato direttamente al primo datapoint disponibile.
49
- *
50
- * Impostando questo Input a true invece, posto di aver assegnato la variabile **interval** della classe **LineChartData**, è possibile
51
- * far apparire il blocco di dati mancanti come un buco vero e proprio, senza alcun collegamento fra i due datapoint estremi
52
- */
53
- AllowGaps: boolean;
54
- /**
55
- * Input che permette di rielaborare i dati del grafico per generare un solo Dataset
56
- *
57
- * Viene utilizzato semplicemente per dare un tooltip molto più bello/avanzato sullo scorrimentodel cursore all'interno del grafico
58
- */
59
- MergeDatasets: boolean;
60
- /**
61
- * Indica se le date che arrivano all'asse X devono essere considerate "Istante finale" e aggiustate di conseguenza.
62
- * Se non è valorizzata la variabile **interval** della classe **LineChartData** non ha alcun effetto
63
- *
64
- * Ad esempio, la data 16/07/2021 con intervallo orario verrebbe trasformata in 15/07/2021 24:00:00 (Ovviamente è utilizzato solo lato presentazione)
65
- */
66
- FinalInstants: boolean;
67
- /**
68
- * Gestisce il minimo dell'asse Y
69
- */
70
- Min: number;
71
- /**
72
- * Gestisce il massimo dell'asse Y
73
- */
74
- Max: number;
75
- /**
76
- * Indica se effettuare il Fill della serie in modo da non vedere solo la linea ma proprio l'area sottessa completamente colorata
77
- */
78
- Fill: boolean;
79
- /**
80
- * Indica se effettuare lo Stack della serie in modo da vedere tutte le linee una sopra l'altra. Implicitamente include anche il **Fill**
81
- */
82
- Stacked: boolean;
83
- /**
84
- * @ignore
85
- */
86
- constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, dateService: DateService, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
87
- /**
88
- * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
89
- */
90
- getSpecificPropertiesToCheck(): string[];
91
- /**
92
- * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
93
- *
94
- * @returns {LineChartSettings} Settings castati al tipo giusto
95
- */
96
- getCastedSettings(): LineChartSettings;
97
- /**
98
- * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
99
- *
100
- * @param {LineChartSettings} settingsCasted Settings castati al tipo giusto
101
- */
102
- fillSpecificSettings(settingsCasted: LineChartSettings): void;
103
- /**
104
- * Effettua il rendering di questo grafico in base ai Settings
105
- *
106
- * @param {LineChartSettings} settingsCasted Impostazioni di graficazione
107
- * @returns {LineChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
108
- */
109
- graphicate(settingsCasted: LineChartSettings): any;
110
- static ɵfac: i0.ɵɵFactoryDeclaration<EsLineChartComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<EsLineChartComponent, "es-line-chart", never, { "Data": "Data"; "DataArray": "DataArray"; "Step": "Step"; "DataGroupBucketSize": "DataGroupBucketSize"; "DataGroupingThreshold": "DataGroupingThreshold"; "StrokeSize": "StrokeSize"; "AllowGaps": "AllowGaps"; "MergeDatasets": "MergeDatasets"; "FinalInstants": "FinalInstants"; "Min": "Min"; "Max": "Max"; "Fill": "Fill"; "Stacked": "Stacked"; }, {}, never, never, false, never>;
112
- }
1
+ import { NgZone, ElementRef } from '@angular/core';
2
+ import { DateService } from "@esfaenza/extensions";
3
+ import { LocalizationService } from '@esfaenza/localizations';
4
+ import { BaseAdapter } from '../../adapters/BaseAdapter';
5
+ import { BaseChartComponent } from '../base/base-chart.component';
6
+ import { ChartLoader } from "../../models/core/ChartLoader";
7
+ import { ChartDispatcher } from "../../models/core/ChartDispatcher";
8
+ import { LineChartSettings } from '../../models/settings/LineChartSettings';
9
+ import { LineChartData } from '../../models/data/LineChartData';
10
+ import { PagedChartData } from '../../models/data/PagedChartData';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * Componente specifico per la graficazione di un grafico a Linea su un asse temporale
14
+ */
15
+ export declare class EsLineChartComponent extends BaseChartComponent {
16
+ private adapter;
17
+ private dateService;
18
+ /**
19
+ * Dati specifici per il grafico o di un tipo tramutabile al tipo **LineChartData** col supporto del **BaseAdapter**
20
+ */
21
+ Data: LineChartData | any;
22
+ /**
23
+ * Lista di Dati specifici per un grafico paginato o di cui ogni blocco dati è tramutabile al tipo **LineChartData** col supporto del **BaseAdapter**
24
+ */
25
+ DataArray: PagedChartData<LineChartData>[] | PagedChartData<any>[];
26
+ /**
27
+ * Indica se la curva deve collegare direttamente un datapoint all'altro o se deve fare degli step
28
+ */
29
+ Step: boolean;
30
+ /**
31
+ * Indica il numero massimo di datapoint visualizzabile in una singola vista del grafico. L'eccedenza viene raggruppata e verrà mostrata sullo zoom.
32
+ *
33
+ * ATTENZIONE: Utilizzando il sistema di default di raggruppamento di am-charts si rischia di tagliare via pezzi da serie molto ondulate
34
+ * in quanto il comportamento di default è quello di eliminare i datapoint che non ci stanno, non di interpolarli
35
+ */
36
+ DataGroupBucketSize: number;
37
+ /**
38
+ * Soglia per controllare oltre che numero di datapoint il grafico deve iniziare ad effettuare raggruppamenti considerando l'Input **DataGroupBucketSize**
39
+ */
40
+ DataGroupingThreshold: number;
41
+ /**
42
+ * Indica le dimnsioni, in pixel della linea del grafico
43
+ */
44
+ StrokeSize: number;
45
+ /**
46
+ * Indica se sono permessi dei Gap fra un valore e l'altro.
47
+ *
48
+ * Normalmente quando ci sono dei buchi l'ultimo datapoint del buco viene collegato direttamente al primo datapoint disponibile.
49
+ *
50
+ * Impostando questo Input a true invece, posto di aver assegnato la variabile **interval** della classe **LineChartData**, è possibile
51
+ * far apparire il blocco di dati mancanti come un buco vero e proprio, senza alcun collegamento fra i due datapoint estremi
52
+ */
53
+ AllowGaps: boolean;
54
+ /**
55
+ * Input che permette di rielaborare i dati del grafico per generare un solo Dataset
56
+ *
57
+ * Viene utilizzato semplicemente per dare un tooltip molto più bello/avanzato sullo scorrimentodel cursore all'interno del grafico
58
+ */
59
+ MergeDatasets: boolean;
60
+ /**
61
+ * Indica se le date che arrivano all'asse X devono essere considerate "Istante finale" e aggiustate di conseguenza.
62
+ * Se non è valorizzata la variabile **interval** della classe **LineChartData** non ha alcun effetto
63
+ *
64
+ * Ad esempio, la data 16/07/2021 con intervallo orario verrebbe trasformata in 15/07/2021 24:00:00 (Ovviamente è utilizzato solo lato presentazione)
65
+ */
66
+ FinalInstants: boolean;
67
+ /**
68
+ * Gestisce il minimo dell'asse Y
69
+ */
70
+ Min: number;
71
+ /**
72
+ * Gestisce il massimo dell'asse Y
73
+ */
74
+ Max: number;
75
+ /**
76
+ * Indica se effettuare il Fill della serie in modo da non vedere solo la linea ma proprio l'area sottessa completamente colorata
77
+ */
78
+ Fill: boolean;
79
+ /**
80
+ * Indica se effettuare lo Stack della serie in modo da vedere tutte le linee una sopra l'altra. Implicitamente include anche il **Fill**
81
+ */
82
+ Stacked: boolean;
83
+ /**
84
+ * @ignore
85
+ */
86
+ constructor(el: ElementRef, ChartLoader: ChartLoader, ChartDispatcher: ChartDispatcher, adapter: BaseAdapter, dateService: DateService, zone: NgZone, platformId: Object, ESC_DEBUG_MODE: boolean, ESC_ANIMATIONS: boolean, ESC_THEME: string, lc: LocalizationService);
87
+ /**
88
+ * Ottiene le proprietà specifiche per questa tipologia di grafico per cui serve rigraficare
89
+ */
90
+ getSpecificPropertiesToCheck(): string[];
91
+ /**
92
+ * Ottiene i Settings (Ereditati dalla classe base, quindi del tipo generico **BaseSettings**) castati al tipo specifico per questo grafico
93
+ *
94
+ * @returns {LineChartSettings} Settings castati al tipo giusto
95
+ */
96
+ getCastedSettings(): LineChartSettings;
97
+ /**
98
+ * Integra i Settings base con tutti gli Input specifici di questo grafico, dando priorità ai Settings se definiti
99
+ *
100
+ * @param {LineChartSettings} settingsCasted Settings castati al tipo giusto
101
+ */
102
+ fillSpecificSettings(settingsCasted: LineChartSettings): void;
103
+ /**
104
+ * Effettua il rendering di questo grafico in base ai Settings
105
+ *
106
+ * @param {LineChartSettings} settingsCasted Impostazioni di graficazione
107
+ * @returns {LineChartService} La service utilizzata per il rendering nello stato subito successivo al rendering effettuato
108
+ */
109
+ graphicate(settingsCasted: LineChartSettings): any;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<EsLineChartComponent, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<EsLineChartComponent, "es-line-chart", never, { "Data": { "alias": "Data"; "required": false; }; "DataArray": { "alias": "DataArray"; "required": false; }; "Step": { "alias": "Step"; "required": false; }; "DataGroupBucketSize": { "alias": "DataGroupBucketSize"; "required": false; }; "DataGroupingThreshold": { "alias": "DataGroupingThreshold"; "required": false; }; "StrokeSize": { "alias": "StrokeSize"; "required": false; }; "AllowGaps": { "alias": "AllowGaps"; "required": false; }; "MergeDatasets": { "alias": "MergeDatasets"; "required": false; }; "FinalInstants": { "alias": "FinalInstants"; "required": false; }; "Min": { "alias": "Min"; "required": false; }; "Max": { "alias": "Max"; "required": false; }; "Fill": { "alias": "Fill"; "required": false; }; "Stacked": { "alias": "Stacked"; "required": false; }; }, {}, never, never, false, never>;
112
+ }