@esfaenza/es-charts 12.2.14 → 13.1.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 (96) hide show
  1. package/esfaenza-es-charts.d.ts +1 -6
  2. package/esm2020/esfaenza-es-charts.mjs +5 -0
  3. package/esm2020/lib/adapters/classes/BaseAdapter.mjs +50 -0
  4. package/{esm2015/lib/adapters/classes/IBaseAdapter.js → esm2020/lib/adapters/classes/IBaseAdapter.mjs} +0 -0
  5. package/{esm2015/lib/adapters/index.js → esm2020/lib/adapters/index.mjs} +0 -0
  6. package/esm2020/lib/components/base/base-chart.component.mjs +325 -0
  7. package/esm2020/lib/components/chart-pager/chart-pager.component.mjs +89 -0
  8. package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
  9. package/esm2020/lib/components/specializations/es-area-chart.component.mjs +78 -0
  10. package/esm2020/lib/components/specializations/es-chart.component.mjs +111 -0
  11. package/esm2020/lib/components/specializations/es-line-chart.component.mjs +110 -0
  12. package/esm2020/lib/components/specializations/es-pie-chart.component.mjs +99 -0
  13. package/esm2020/lib/components/specializations/es-vertical-2d-chart.component.mjs +96 -0
  14. package/esm2020/lib/components/specializations/es-vertical-chart.component.mjs +93 -0
  15. package/esm2020/lib/components/specializations/es-vertical-stacked-chart.component.mjs +93 -0
  16. package/esm2020/lib/es-charts.module.mjs +61 -0
  17. package/{esm2015/lib/models/EsChaartsModuleConfig.js → esm2020/lib/models/EsChaartsModuleConfig.mjs} +0 -0
  18. package/esm2020/lib/models/core/classes/ChartDispatcher.mjs +91 -0
  19. package/{esm2015/lib/models/core/classes/ChartLoader.js → esm2020/lib/models/core/classes/ChartLoader.mjs} +0 -0
  20. package/{esm2015/lib/models/core/classes/ChartThemes.js → esm2020/lib/models/core/classes/ChartThemes.mjs} +0 -0
  21. package/{esm2015/lib/models/core/index.js → esm2020/lib/models/core/index.mjs} +0 -0
  22. package/{esm2015/lib/models/data/classes/AreaChartData.js → esm2020/lib/models/data/classes/AreaChartData.mjs} +0 -0
  23. package/{esm2015/lib/models/data/classes/LineChartData.js → esm2020/lib/models/data/classes/LineChartData.mjs} +0 -0
  24. package/{esm2015/lib/models/data/classes/PagedChartData.js → esm2020/lib/models/data/classes/PagedChartData.mjs} +0 -0
  25. package/{esm2015/lib/models/data/classes/PieChartData.js → esm2020/lib/models/data/classes/PieChartData.mjs} +0 -0
  26. package/{esm2015/lib/models/data/classes/Vertical2DChartData.js → esm2020/lib/models/data/classes/Vertical2DChartData.mjs} +0 -0
  27. package/{esm2015/lib/models/data/classes/VerticalChartData.js → esm2020/lib/models/data/classes/VerticalChartData.mjs} +0 -0
  28. package/{esm2015/lib/models/data/classes/VerticalStackedChartData.js → esm2020/lib/models/data/classes/VerticalStackedChartData.mjs} +0 -0
  29. package/{esm2015/lib/models/data/classes/base/DateValue.js → esm2020/lib/models/data/classes/base/DateValue.mjs} +0 -0
  30. package/{esm2015/lib/models/data/classes/base/KeyValue.js → esm2020/lib/models/data/classes/base/KeyValue.mjs} +0 -0
  31. package/{esm2015/lib/models/data/classes/base/KeyValueColor.js → esm2020/lib/models/data/classes/base/KeyValueColor.mjs} +0 -0
  32. package/{esm2015/lib/models/data/classes/base/Limit.js → esm2020/lib/models/data/classes/base/Limit.mjs} +0 -0
  33. package/{esm2015/lib/models/data/classes/base/LineSerie.js → esm2020/lib/models/data/classes/base/LineSerie.mjs} +0 -0
  34. package/{esm2015/lib/models/data/index.js → esm2020/lib/models/data/index.mjs} +0 -0
  35. package/{esm2015/lib/models/settings/classes/AreaChartSettings.js → esm2020/lib/models/settings/classes/AreaChartSettings.mjs} +0 -0
  36. package/{esm2015/lib/models/settings/classes/LineChartSettings.js → esm2020/lib/models/settings/classes/LineChartSettings.mjs} +0 -0
  37. package/{esm2015/lib/models/settings/classes/PieChartSettings.js → esm2020/lib/models/settings/classes/PieChartSettings.mjs} +0 -0
  38. package/{esm2015/lib/models/settings/classes/Vertical2DChartSettings.js → esm2020/lib/models/settings/classes/Vertical2DChartSettings.mjs} +0 -0
  39. package/{esm2015/lib/models/settings/classes/VerticalChartSettings.js → esm2020/lib/models/settings/classes/VerticalChartSettings.mjs} +0 -0
  40. package/{esm2015/lib/models/settings/classes/VerticalStackedChartSettings.js → esm2020/lib/models/settings/classes/VerticalStackedChartSettings.mjs} +0 -0
  41. package/{esm2015/lib/models/settings/classes/base/BaseInterval.js → esm2020/lib/models/settings/classes/base/BaseInterval.mjs} +0 -0
  42. package/{esm2015/lib/models/settings/classes/base/BaseSettings.js → esm2020/lib/models/settings/classes/base/BaseSettings.mjs} +0 -0
  43. package/{esm2015/lib/models/settings/classes/base/LegendPad.js → esm2020/lib/models/settings/classes/base/LegendPad.mjs} +0 -0
  44. package/{esm2015/lib/models/settings/index.js → esm2020/lib/models/settings/index.mjs} +0 -0
  45. package/esm2020/lib/services/classes/AreaChartService.mjs +134 -0
  46. package/esm2020/lib/services/classes/LineChartService.mjs +324 -0
  47. package/esm2020/lib/services/classes/PieChartService.mjs +111 -0
  48. package/esm2020/lib/services/classes/Vertical2DChartService.mjs +160 -0
  49. package/esm2020/lib/services/classes/VerticalChartService.mjs +103 -0
  50. package/esm2020/lib/services/classes/VerticalStackedChartService.mjs +124 -0
  51. package/{esm2015/lib/services/classes/base/IBaseService.js → esm2020/lib/services/classes/base/IBaseService.mjs} +0 -0
  52. package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
  53. package/{esm2015/lib/tokens.js → esm2020/lib/tokens.mjs} +0 -0
  54. package/esm2020/public-api.mjs +37 -0
  55. package/fesm2015/{esfaenza-es-charts.js → esfaenza-es-charts.mjs} +452 -352
  56. package/fesm2015/esfaenza-es-charts.mjs.map +1 -0
  57. package/fesm2020/esfaenza-es-charts.mjs +2701 -0
  58. package/fesm2020/esfaenza-es-charts.mjs.map +1 -0
  59. package/lib/adapters/classes/BaseAdapter.d.ts +3 -0
  60. package/lib/components/base/base-chart.component.d.ts +3 -0
  61. package/lib/components/chart-pager/chart-pager.component.d.ts +3 -0
  62. package/lib/components/specializations/es-area-chart.component.d.ts +3 -0
  63. package/lib/components/specializations/es-chart.component.d.ts +3 -0
  64. package/lib/components/specializations/es-line-chart.component.d.ts +3 -0
  65. package/lib/components/specializations/es-pie-chart.component.d.ts +3 -0
  66. package/lib/components/specializations/es-vertical-2d-chart.component.d.ts +3 -0
  67. package/lib/components/specializations/es-vertical-chart.component.d.ts +3 -0
  68. package/lib/components/specializations/es-vertical-stacked-chart.component.d.ts +3 -0
  69. package/lib/es-charts.module.d.ts +13 -0
  70. package/lib/models/core/classes/ChartDispatcher.d.ts +3 -0
  71. package/package.json +22 -10
  72. package/public-api.d.ts +1 -0
  73. package/bundles/esfaenza-es-charts.umd.js +0 -3212
  74. package/bundles/esfaenza-es-charts.umd.js.map +0 -1
  75. package/esfaenza-es-charts.metadata.json +0 -1
  76. package/esm2015/esfaenza-es-charts.js +0 -11
  77. package/esm2015/lib/adapters/classes/BaseAdapter.js +0 -47
  78. package/esm2015/lib/components/base/base-chart.component.js +0 -311
  79. package/esm2015/lib/components/chart-pager/chart-pager.component.js +0 -84
  80. package/esm2015/lib/components/specializations/es-area-chart.component.js +0 -75
  81. package/esm2015/lib/components/specializations/es-chart.component.js +0 -108
  82. package/esm2015/lib/components/specializations/es-line-chart.component.js +0 -98
  83. package/esm2015/lib/components/specializations/es-pie-chart.component.js +0 -89
  84. package/esm2015/lib/components/specializations/es-vertical-2d-chart.component.js +0 -87
  85. package/esm2015/lib/components/specializations/es-vertical-chart.component.js +0 -85
  86. package/esm2015/lib/components/specializations/es-vertical-stacked-chart.component.js +0 -85
  87. package/esm2015/lib/es-charts.module.js +0 -42
  88. package/esm2015/lib/models/core/classes/ChartDispatcher.js +0 -88
  89. package/esm2015/lib/services/classes/AreaChartService.js +0 -135
  90. package/esm2015/lib/services/classes/LineChartService.js +0 -326
  91. package/esm2015/lib/services/classes/PieChartService.js +0 -112
  92. package/esm2015/lib/services/classes/Vertical2DChartService.js +0 -163
  93. package/esm2015/lib/services/classes/VerticalChartService.js +0 -105
  94. package/esm2015/lib/services/classes/VerticalStackedChartService.js +0 -127
  95. package/esm2015/public-api.js +0 -36
  96. package/fesm2015/esfaenza-es-charts.js.map +0 -1
@@ -1,8 +1,10 @@
1
- import { Injectable, InjectionToken, Inject, EventEmitter, Directive, ElementRef, NgZone, Input, ContentChild, Output, Component, ChangeDetectionStrategy, PLATFORM_ID, NgModule } from '@angular/core';
2
- import { DateService } from '@esfaenza/extensions';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ContentChild, InjectionToken, Inject, Directive, PLATFORM_ID, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
3
4
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
5
  import * as am4core from '@amcharts/amcharts4/core';
5
6
  import * as am4charts from '@amcharts/amcharts4/charts';
7
+ import * as i2 from '@esfaenza/extensions';
6
8
 
7
9
  /**
8
10
  * Adapter Base da reimplementare per trasformare i dati da una libreria di grafici a questa per evitare di riscrivere tutto il codice di
@@ -46,9 +48,11 @@ class BaseAdapter {
46
48
  return anyData;
47
49
  }
48
50
  }
49
- BaseAdapter.decorators = [
50
- { type: Injectable }
51
- ];
51
+ BaseAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
+ BaseAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseAdapter });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseAdapter, decorators: [{
54
+ type: Injectable
55
+ }] });
52
56
 
53
57
  /**
54
58
  * Dati relativi a un grafico di tipo LineChart
@@ -287,6 +291,92 @@ class LineSerie {
287
291
  }
288
292
  }
289
293
 
294
+ /**
295
+ * Componente che si occupa della paginazione dei grafici qualora servisse
296
+ */
297
+ class PageChartSelector {
298
+ constructor() {
299
+ /**
300
+ * Indica un cambio di pagina ed emette un oggetto con i dati attuali e l'indice attuale.
301
+ *
302
+ * Qualora la proprietà **data** fosse null indica un evento di "loading"
303
+ */
304
+ this.onPageChange = new EventEmitter();
305
+ }
306
+ /**
307
+ * @ignore
308
+ */
309
+ ngOnChanges() {
310
+ if (!(this.Items || this.Dtos) || (this.Items || this.Dtos).length == 0)
311
+ throw new Error("Chart array cannot be empty!");
312
+ var idx = (this.StartIndex || 0);
313
+ this.currentindex = idx;
314
+ this.currentpage = idx + 1;
315
+ this.handlePageChange();
316
+ }
317
+ /**
318
+ * Gestisce un cambio pagina inviando al callback **onPageChange** i dati attuali (siano essi il Dto per il caricamento dati i
319
+ * o i dati già presenti) e l'indice di visualizzazione
320
+ */
321
+ handlePageChange() {
322
+ this.finalIndex = this.currentpage - 1;
323
+ this.currentindex = this.currentpage - 1;
324
+ let data = this.Items && this.Items.length > 0 ? this.Items[this.finalIndex].data : this.Dtos[this.finalIndex];
325
+ this.onPageChange.emit({ data: data, index: this.finalIndex });
326
+ }
327
+ /**
328
+ * Visualizza il grafico successivo
329
+ */
330
+ Next() {
331
+ // Per passare da page a index è sempre un -1
332
+ this.currentpage++;
333
+ this.onPageChange.emit({ data: null, index: this.currentpage - 1 });
334
+ // Delay pseudo-intelligente per click compulsivi.
335
+ // Se dopo questo delay sono andato avanti solo di 1 effettuo il callback altrimenti incremento l'indice
336
+ setTimeout(() => {
337
+ if (this.currentindex == this.currentpage - 2)
338
+ this.handlePageChange();
339
+ else
340
+ this.currentindex++;
341
+ }, this.BrowseDelayMs);
342
+ }
343
+ /**
344
+ * Visualizza il grafico precedente
345
+ */
346
+ Previous() {
347
+ // Per passare da page a index è sempre un -1
348
+ this.currentpage--;
349
+ this.onPageChange.emit({ data: null, index: this.currentpage - 1 });
350
+ // Delay pseudo-intelligente per click compulsivi.
351
+ // Se dopo questo delay sono andato indietro solo di 1 effettuo il callback altrimenti decremento l'indice
352
+ setTimeout(() => {
353
+ if (this.currentindex == this.currentpage)
354
+ this.handlePageChange();
355
+ else
356
+ this.currentindex--;
357
+ }, this.BrowseDelayMs);
358
+ }
359
+ }
360
+ PageChartSelector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PageChartSelector, deps: [], target: i0.ɵɵFactoryTarget.Component });
361
+ PageChartSelector.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: PageChartSelector, selector: "chart-pager", inputs: { Items: "Items", Dtos: "Dtos", BrowseDelayMs: "BrowseDelayMs", StartIndex: "StartIndex" }, outputs: { onPageChange: "onPageChange" }, queries: [{ propertyName: "headerInner_tr", first: true, predicate: ["header_inner"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"(Items || Dtos) && (Items || Dtos).length > 0\" class=\"pcs-no-selection\">\r\n <div class=\"pcs-button pcs-backward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"currentpage != 1 && Previous(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"currentpage == 1 ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-left\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div class=\"pcs-infos\">\r\n <ng-container *ngIf=\"headerInner_tr\">\r\n <ng-container *ngTemplateOutlet=\"headerInner_tr; context : {$implicit: (Items || Dtos)[currentpage - 1]}\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"pcs-button pcs-forward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"(Items || Dtos).length != currentpage && Next(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"(Items || Dtos).length == currentpage ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-right\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div style=\"clear: both;\"></div>\r\n</div>", styles: [".pcs-button{width:60px}.pcs-forward{float:right;text-align:end}.pcs-backward{float:left}.pcs-svg-header{width:57px;height:40px}.pcs-svg-button-container{outline:currentcolor none medium}.pcs-svg-arrow{pointer-events:none;fill:#555}.pcs-svg-arrow-right{transform:translate(44px,36px) rotate(180deg)}.pcs-svg-arrow-left{transform:translate(13px,4px)}.pcs-svg-button{fill:#d9d9d9;stroke:#fff;fill-opacity:1;stroke-opacity:1}.pcs-svg-button:hover{fill:#a3a3a3;cursor:pointer}.pcs-infos{width:calc(100% - 120px);height:44px;float:left}.pcs-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PageChartSelector, decorators: [{
363
+ type: Component,
364
+ args: [{ selector: "chart-pager", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"(Items || Dtos) && (Items || Dtos).length > 0\" class=\"pcs-no-selection\">\r\n <div class=\"pcs-button pcs-backward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"currentpage != 1 && Previous(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"currentpage == 1 ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-left\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div class=\"pcs-infos\">\r\n <ng-container *ngIf=\"headerInner_tr\">\r\n <ng-container *ngTemplateOutlet=\"headerInner_tr; context : {$implicit: (Items || Dtos)[currentpage - 1]}\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"pcs-button pcs-forward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"(Items || Dtos).length != currentpage && Next(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"(Items || Dtos).length == currentpage ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-right\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div style=\"clear: both;\"></div>\r\n</div>", styles: [".pcs-button{width:60px}.pcs-forward{float:right;text-align:end}.pcs-backward{float:left}.pcs-svg-header{width:57px;height:40px}.pcs-svg-button-container{outline:currentcolor none medium}.pcs-svg-arrow{pointer-events:none;fill:#555}.pcs-svg-arrow-right{transform:translate(44px,36px) rotate(180deg)}.pcs-svg-arrow-left{transform:translate(13px,4px)}.pcs-svg-button{fill:#d9d9d9;stroke:#fff;fill-opacity:1;stroke-opacity:1}.pcs-svg-button:hover{fill:#a3a3a3;cursor:pointer}.pcs-infos{width:calc(100% - 120px);height:44px;float:left}.pcs-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}\n"] }]
365
+ }], propDecorators: { Items: [{
366
+ type: Input
367
+ }], Dtos: [{
368
+ type: Input
369
+ }], BrowseDelayMs: [{
370
+ type: Input
371
+ }], StartIndex: [{
372
+ type: Input
373
+ }], onPageChange: [{
374
+ type: Output
375
+ }], headerInner_tr: [{
376
+ type: ContentChild,
377
+ args: ['header_inner', { static: false }]
378
+ }] } });
379
+
290
380
  /**
291
381
  * Token che identifica il Locale di default per tutti i grafici, può essere sovrascritto dalle impostazioni locali (Settings e Input)
292
382
  */
@@ -383,12 +473,16 @@ class ChartDispatcher {
383
473
  console.log("@esfaenza/es-charts: " + text);
384
474
  }
385
475
  }
386
- ChartDispatcher.decorators = [
387
- { type: Injectable }
388
- ];
389
- ChartDispatcher.ctorParameters = () => [
390
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] }
391
- ];
476
+ ChartDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ChartDispatcher, deps: [{ token: ESC_LOGS }], target: i0.ɵɵFactoryTarget.Injectable });
477
+ ChartDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ChartDispatcher });
478
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ChartDispatcher, decorators: [{
479
+ type: Injectable
480
+ }], ctorParameters: function () {
481
+ return [{ type: undefined, decorators: [{
482
+ type: Inject,
483
+ args: [ESC_LOGS]
484
+ }] }];
485
+ } });
392
486
 
393
487
  /** @ignore */
394
488
  const _spiritedaway = 'spiritedaway';
@@ -721,8 +815,8 @@ class BaseChartComponent {
721
815
  * impostate in fase di import del modulo assegnando valori ai token ESC_LOCALE, ESC_ANIMATIONS, ESC_THEME
722
816
  */
723
817
  ngOnInit() {
724
- // Qui servono solo le variabili da conoscere PRE-graficazione per il caricamento dei moduli lazy del grafico
725
818
  var _a, _b, _c, _d, _e, _f;
819
+ // Qui servono solo le variabili da conoscere PRE-graficazione per il caricamento dei moduli lazy del grafico
726
820
  this.Animations = ((_a = this.Settings) === null || _a === void 0 ? void 0 : _a.Animations) != null ? (_b = this.Settings) === null || _b === void 0 ? void 0 : _b.Animations : (this.Animations != null ? this.Animations : this.animations);
727
821
  this.Theme = ((_c = this.Settings) === null || _c === void 0 ? void 0 : _c.Theme) != null ? (_d = this.Settings) === null || _d === void 0 ? void 0 : _d.Theme : (this.Theme != null ? this.Theme : this.theme);
728
822
  this.Locale = ((_e = this.Settings) === null || _e === void 0 ? void 0 : _e.Locale) != null ? (_f = this.Settings) === null || _f === void 0 ? void 0 : _f.Locale : (this.Locale != null ? this.Locale : this.locale);
@@ -804,8 +898,8 @@ class BaseChartComponent {
804
898
  * @param {BaseSettings} settings Impostazioni base ricevute dalla specializzazione del grafico
805
899
  */
806
900
  fillSettings(settings) {
807
- // Merge degli Input con i Settings, dando priorità ai Settings
808
901
  var _a;
902
+ // Merge degli Input con i Settings, dando priorità ai Settings
809
903
  settings.Theme = settings.Theme ? settings.Theme : this.Theme;
810
904
  settings.Locale = settings.Locale ? settings.Locale : this.Locale;
811
905
  settings.Animations = settings.Animations != null ? settings.Animations : this.Animations;
@@ -885,8 +979,11 @@ class BaseChartComponent {
885
979
  * le differenze fra il grafico com'era prima e come deve diventare, in modo da non ricrearlo ma semplicemente modificare quello che già è disegnato
886
980
  */
887
981
  reloadChart() {
888
- this.browserOnly(() => { if (!this.Chart.isDisposed())
889
- this.Chart.dispose(); this.Dispatcher.deregisterGraph(this.name); });
982
+ this.browserOnly(() => {
983
+ if (!this.Chart.isDisposed())
984
+ this.Chart.dispose();
985
+ this.Dispatcher.deregisterGraph(this.name);
986
+ });
890
987
  this.Dispatcher.register(this.name, () => { return this.loadChart(); });
891
988
  }
892
989
  /**
@@ -917,46 +1014,61 @@ class BaseChartComponent {
917
1014
  }
918
1015
  }
919
1016
  }
920
- BaseChartComponent.decorators = [
921
- { type: Directive }
922
- ];
923
- BaseChartComponent.ctorParameters = () => [
924
- { type: ElementRef },
925
- { type: Object },
926
- { type: NgZone },
927
- { type: ChartLoader },
928
- { type: ChartDispatcher },
929
- { type: Boolean },
930
- { type: Boolean },
931
- { type: String },
932
- { type: String }
933
- ];
934
- BaseChartComponent.propDecorators = {
935
- XTitle: [{ type: Input }],
936
- YTitle: [{ type: Input }],
937
- Settings: [{ type: Input }],
938
- Legend: [{ type: Input }],
939
- LegendPosition: [{ type: Input }],
940
- Timeline: [{ type: Input }],
941
- name: [{ type: Input }],
942
- Animations: [{ type: Input }],
943
- Theme: [{ type: Input }],
944
- Locale: [{ type: Input }],
945
- HideSeriesOnLabelClick: [{ type: Input }],
946
- MinGridDistance: [{ type: Input }],
947
- AdaptLabelSizeAndOrientation: [{ type: Input }],
948
- LegendPadding: [{ type: Input }],
949
- DataDtos: [{ type: Input }],
950
- DataDtoStartIndex: [{ type: Input }],
951
- DataRetrieve: [{ type: Input }],
952
- BrowseDelayMs: [{ type: Input }],
953
- header_tr: [{ type: ContentChild, args: ['header', { static: false },] }],
954
- loading_template: [{ type: ContentChild, args: ['loading', { static: false },] }],
955
- onSelectionChanged: [{ type: Output }],
956
- onSeriesClicked: [{ type: Output }],
957
- onLoadStart: [{ type: Output }],
958
- onLoadEnd: [{ type: Output }]
959
- };
1017
+ BaseChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseChartComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
1018
+ BaseChartComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaseChartComponent, inputs: { XTitle: "XTitle", YTitle: "YTitle", Settings: "Settings", Legend: "Legend", LegendPosition: "LegendPosition", Timeline: "Timeline", name: "name", Animations: "Animations", Theme: "Theme", Locale: "Locale", HideSeriesOnLabelClick: "HideSeriesOnLabelClick", MinGridDistance: "MinGridDistance", AdaptLabelSizeAndOrientation: "AdaptLabelSizeAndOrientation", LegendPadding: "LegendPadding", DataDtos: "DataDtos", DataDtoStartIndex: "DataDtoStartIndex", DataRetrieve: "DataRetrieve", BrowseDelayMs: "BrowseDelayMs" }, outputs: { onSelectionChanged: "onSelectionChanged", onSeriesClicked: "onSeriesClicked", onLoadStart: "onLoadStart", onLoadEnd: "onLoadEnd" }, queries: [{ propertyName: "header_tr", first: true, predicate: ["header"], descendants: true }, { propertyName: "loading_template", first: true, predicate: ["loading"], descendants: true }], usesOnChanges: true, ngImport: i0 });
1019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseChartComponent, decorators: [{
1020
+ type: Directive
1021
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: Object }, { type: i0.NgZone }, { type: ChartLoader }, { type: ChartDispatcher }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; }, propDecorators: { XTitle: [{
1022
+ type: Input
1023
+ }], YTitle: [{
1024
+ type: Input
1025
+ }], Settings: [{
1026
+ type: Input
1027
+ }], Legend: [{
1028
+ type: Input
1029
+ }], LegendPosition: [{
1030
+ type: Input
1031
+ }], Timeline: [{
1032
+ type: Input
1033
+ }], name: [{
1034
+ type: Input
1035
+ }], Animations: [{
1036
+ type: Input
1037
+ }], Theme: [{
1038
+ type: Input
1039
+ }], Locale: [{
1040
+ type: Input
1041
+ }], HideSeriesOnLabelClick: [{
1042
+ type: Input
1043
+ }], MinGridDistance: [{
1044
+ type: Input
1045
+ }], AdaptLabelSizeAndOrientation: [{
1046
+ type: Input
1047
+ }], LegendPadding: [{
1048
+ type: Input
1049
+ }], DataDtos: [{
1050
+ type: Input
1051
+ }], DataDtoStartIndex: [{
1052
+ type: Input
1053
+ }], DataRetrieve: [{
1054
+ type: Input
1055
+ }], BrowseDelayMs: [{
1056
+ type: Input
1057
+ }], header_tr: [{
1058
+ type: ContentChild,
1059
+ args: ['header', { static: false }]
1060
+ }], loading_template: [{
1061
+ type: ContentChild,
1062
+ args: ['loading', { static: false }]
1063
+ }], onSelectionChanged: [{
1064
+ type: Output
1065
+ }], onSeriesClicked: [{
1066
+ type: Output
1067
+ }], onLoadStart: [{
1068
+ type: Output
1069
+ }], onLoadEnd: [{
1070
+ type: Output
1071
+ }] } });
960
1072
 
961
1073
  /**
962
1074
  * Classe il cui unico scopo è gestire il setup e rendering di un LineChart
@@ -1987,32 +2099,35 @@ class EsChartComponent extends BaseChartComponent {
1987
2099
  }
1988
2100
  }
1989
2101
  }
1990
- EsChartComponent.decorators = [
1991
- { type: Component, args: [{
1992
- selector: 'es-chart',
1993
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
1994
- changeDetection: ChangeDetectionStrategy.OnPush,
1995
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
1996
- },] }
1997
- ];
1998
- EsChartComponent.ctorParameters = () => [
1999
- { type: ElementRef },
2000
- { type: ChartLoader },
2001
- { type: ChartDispatcher },
2002
- { type: DateService },
2003
- { type: BaseAdapter },
2004
- { type: NgZone },
2005
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2006
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2007
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2008
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2009
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2010
- ];
2011
- EsChartComponent.propDecorators = {
2012
- Type: [{ type: Input }],
2013
- Data: [{ type: Input }],
2014
- DataArray: [{ type: Input }]
2015
- };
2102
+ EsChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: i2.DateService }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2103
+ EsChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsChartComponent, selector: "es-chart", inputs: { Type: "Type", Data: "Data", DataArray: "DataArray" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartComponent, decorators: [{
2105
+ type: Component,
2106
+ args: [{ selector: 'es-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2107
+ }], ctorParameters: function () {
2108
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: i2.DateService }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2109
+ type: Inject,
2110
+ args: [PLATFORM_ID]
2111
+ }] }, { type: undefined, decorators: [{
2112
+ type: Inject,
2113
+ args: [ESC_LOGS]
2114
+ }] }, { type: undefined, decorators: [{
2115
+ type: Inject,
2116
+ args: [ESC_ANIMATIONS]
2117
+ }] }, { type: undefined, decorators: [{
2118
+ type: Inject,
2119
+ args: [ESC_LOCALE]
2120
+ }] }, { type: undefined, decorators: [{
2121
+ type: Inject,
2122
+ args: [ESC_THEME]
2123
+ }] }];
2124
+ }, propDecorators: { Type: [{
2125
+ type: Input
2126
+ }], Data: [{
2127
+ type: Input
2128
+ }], DataArray: [{
2129
+ type: Input
2130
+ }] } });
2016
2131
 
2017
2132
  /**
2018
2133
  * Componente specifico per la graficazione di un grafico ad Area
@@ -2057,30 +2172,33 @@ class EsAreaChartComponent extends BaseChartComponent {
2057
2172
  return new AreaChartService(this.adapter).graphicate(this.Data, settingsCasted);
2058
2173
  }
2059
2174
  }
2060
- EsAreaChartComponent.decorators = [
2061
- { type: Component, args: [{
2062
- selector: 'es-area-chart',
2063
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2064
- changeDetection: ChangeDetectionStrategy.OnPush,
2065
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2066
- },] }
2067
- ];
2068
- EsAreaChartComponent.ctorParameters = () => [
2069
- { type: ElementRef },
2070
- { type: ChartLoader },
2071
- { type: ChartDispatcher },
2072
- { type: BaseAdapter },
2073
- { type: NgZone },
2074
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2075
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2076
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2077
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2078
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2079
- ];
2080
- EsAreaChartComponent.propDecorators = {
2081
- Data: [{ type: Input }],
2082
- DataArray: [{ type: Input }]
2083
- };
2175
+ EsAreaChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsAreaChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2176
+ EsAreaChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsAreaChartComponent, selector: "es-area-chart", inputs: { Data: "Data", DataArray: "DataArray" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsAreaChartComponent, decorators: [{
2178
+ type: Component,
2179
+ args: [{ selector: 'es-area-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2180
+ }], ctorParameters: function () {
2181
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2182
+ type: Inject,
2183
+ args: [PLATFORM_ID]
2184
+ }] }, { type: undefined, decorators: [{
2185
+ type: Inject,
2186
+ args: [ESC_LOGS]
2187
+ }] }, { type: undefined, decorators: [{
2188
+ type: Inject,
2189
+ args: [ESC_ANIMATIONS]
2190
+ }] }, { type: undefined, decorators: [{
2191
+ type: Inject,
2192
+ args: [ESC_LOCALE]
2193
+ }] }, { type: undefined, decorators: [{
2194
+ type: Inject,
2195
+ args: [ESC_THEME]
2196
+ }] }];
2197
+ }, propDecorators: { Data: [{
2198
+ type: Input
2199
+ }], DataArray: [{
2200
+ type: Input
2201
+ }] } });
2084
2202
 
2085
2203
  /**
2086
2204
  * Componente specifico per la graficazione di un grafico a Linea su un asse temporale
@@ -2136,41 +2254,53 @@ class EsLineChartComponent extends BaseChartComponent {
2136
2254
  return new LineChartService(this.adapter, this.dateService).graphicate(this.Data, settingsCasted);
2137
2255
  }
2138
2256
  }
2139
- EsLineChartComponent.decorators = [
2140
- { type: Component, args: [{
2141
- selector: 'es-line-chart',
2142
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2143
- changeDetection: ChangeDetectionStrategy.OnPush,
2144
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2145
- },] }
2146
- ];
2147
- EsLineChartComponent.ctorParameters = () => [
2148
- { type: ElementRef },
2149
- { type: ChartLoader },
2150
- { type: ChartDispatcher },
2151
- { type: BaseAdapter },
2152
- { type: DateService },
2153
- { type: NgZone },
2154
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2155
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2156
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2157
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2158
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2159
- ];
2160
- EsLineChartComponent.propDecorators = {
2161
- Data: [{ type: Input }],
2162
- DataArray: [{ type: Input }],
2163
- Step: [{ type: Input }],
2164
- DataGroupBucketSize: [{ type: Input }],
2165
- DataGroupingThreshold: [{ type: Input }],
2166
- StrokeSize: [{ type: Input }],
2167
- AllowGaps: [{ type: Input }],
2168
- MergeDatasets: [{ type: Input }],
2169
- FinalInstants: [{ type: Input }],
2170
- Min: [{ type: Input }],
2171
- Max: [{ type: Input }],
2172
- Fill: [{ type: Input }]
2173
- };
2257
+ EsLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsLineChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i2.DateService }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2258
+ EsLineChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsLineChartComponent, selector: "es-line-chart", inputs: { Data: "Data", DataArray: "DataArray", Step: "Step", DataGroupBucketSize: "DataGroupBucketSize", DataGroupingThreshold: "DataGroupingThreshold", StrokeSize: "StrokeSize", AllowGaps: "AllowGaps", MergeDatasets: "MergeDatasets", FinalInstants: "FinalInstants", Min: "Min", Max: "Max", Fill: "Fill" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsLineChartComponent, decorators: [{
2260
+ type: Component,
2261
+ args: [{ selector: 'es-line-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2262
+ }], ctorParameters: function () {
2263
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i2.DateService }, { type: i0.NgZone }, { type: Object, decorators: [{
2264
+ type: Inject,
2265
+ args: [PLATFORM_ID]
2266
+ }] }, { type: undefined, decorators: [{
2267
+ type: Inject,
2268
+ args: [ESC_LOGS]
2269
+ }] }, { type: undefined, decorators: [{
2270
+ type: Inject,
2271
+ args: [ESC_ANIMATIONS]
2272
+ }] }, { type: undefined, decorators: [{
2273
+ type: Inject,
2274
+ args: [ESC_LOCALE]
2275
+ }] }, { type: undefined, decorators: [{
2276
+ type: Inject,
2277
+ args: [ESC_THEME]
2278
+ }] }];
2279
+ }, propDecorators: { Data: [{
2280
+ type: Input
2281
+ }], DataArray: [{
2282
+ type: Input
2283
+ }], Step: [{
2284
+ type: Input
2285
+ }], DataGroupBucketSize: [{
2286
+ type: Input
2287
+ }], DataGroupingThreshold: [{
2288
+ type: Input
2289
+ }], StrokeSize: [{
2290
+ type: Input
2291
+ }], AllowGaps: [{
2292
+ type: Input
2293
+ }], MergeDatasets: [{
2294
+ type: Input
2295
+ }], FinalInstants: [{
2296
+ type: Input
2297
+ }], Min: [{
2298
+ type: Input
2299
+ }], Max: [{
2300
+ type: Input
2301
+ }], Fill: [{
2302
+ type: Input
2303
+ }] } });
2174
2304
 
2175
2305
  /**
2176
2306
  * Componente specifico per la graficazione di un grafico a Torta
@@ -2222,37 +2352,47 @@ class EsPieChartComponent extends BaseChartComponent {
2222
2352
  return new PieChartService(this.adapter).graphicate(this.Data, settingsCasted);
2223
2353
  }
2224
2354
  }
2225
- EsPieChartComponent.decorators = [
2226
- { type: Component, args: [{
2227
- selector: 'es-pie-chart',
2228
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2229
- changeDetection: ChangeDetectionStrategy.OnPush,
2230
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2231
- },] }
2232
- ];
2233
- EsPieChartComponent.ctorParameters = () => [
2234
- { type: ElementRef },
2235
- { type: ChartLoader },
2236
- { type: ChartDispatcher },
2237
- { type: BaseAdapter },
2238
- { type: NgZone },
2239
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2240
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2241
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2242
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2243
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2244
- ];
2245
- EsPieChartComponent.propDecorators = {
2246
- Data: [{ type: Input }],
2247
- DataArray: [{ type: Input }],
2248
- HideZeroes: [{ type: Input }],
2249
- Mode3D: [{ type: Input }],
2250
- DonutRadiusPercentage: [{ type: Input }],
2251
- LabelsWrap: [{ type: Input }],
2252
- LabelsTruncate: [{ type: Input }],
2253
- LabelsWidth: [{ type: Input }],
2254
- LabelsVisible: [{ type: Input }]
2255
- };
2355
+ EsPieChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsPieChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2356
+ EsPieChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsPieChartComponent, selector: "es-pie-chart", inputs: { Data: "Data", DataArray: "DataArray", HideZeroes: "HideZeroes", Mode3D: "Mode3D", DonutRadiusPercentage: "DonutRadiusPercentage", LabelsWrap: "LabelsWrap", LabelsTruncate: "LabelsTruncate", LabelsWidth: "LabelsWidth", LabelsVisible: "LabelsVisible" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsPieChartComponent, decorators: [{
2358
+ type: Component,
2359
+ args: [{ selector: 'es-pie-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2360
+ }], ctorParameters: function () {
2361
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2362
+ type: Inject,
2363
+ args: [PLATFORM_ID]
2364
+ }] }, { type: undefined, decorators: [{
2365
+ type: Inject,
2366
+ args: [ESC_LOGS]
2367
+ }] }, { type: undefined, decorators: [{
2368
+ type: Inject,
2369
+ args: [ESC_ANIMATIONS]
2370
+ }] }, { type: undefined, decorators: [{
2371
+ type: Inject,
2372
+ args: [ESC_LOCALE]
2373
+ }] }, { type: undefined, decorators: [{
2374
+ type: Inject,
2375
+ args: [ESC_THEME]
2376
+ }] }];
2377
+ }, propDecorators: { Data: [{
2378
+ type: Input
2379
+ }], DataArray: [{
2380
+ type: Input
2381
+ }], HideZeroes: [{
2382
+ type: Input
2383
+ }], Mode3D: [{
2384
+ type: Input
2385
+ }], DonutRadiusPercentage: [{
2386
+ type: Input
2387
+ }], LabelsWrap: [{
2388
+ type: Input
2389
+ }], LabelsTruncate: [{
2390
+ type: Input
2391
+ }], LabelsWidth: [{
2392
+ type: Input
2393
+ }], LabelsVisible: [{
2394
+ type: Input
2395
+ }] } });
2256
2396
 
2257
2397
  /**
2258
2398
  * Componente specifico per la graficazione di un grafico a Barre con due dimensioni
@@ -2303,36 +2443,45 @@ class EsVertical2DChartComponent extends BaseChartComponent {
2303
2443
  return new Vertical2DChartService(this.adapter).graphicate(this.Data, settingsCasted);
2304
2444
  }
2305
2445
  }
2306
- EsVertical2DChartComponent.decorators = [
2307
- { type: Component, args: [{
2308
- selector: 'es-vertical-2d-chart',
2309
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2310
- changeDetection: ChangeDetectionStrategy.OnPush,
2311
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2312
- },] }
2313
- ];
2314
- EsVertical2DChartComponent.ctorParameters = () => [
2315
- { type: ElementRef },
2316
- { type: ChartLoader },
2317
- { type: ChartDispatcher },
2318
- { type: BaseAdapter },
2319
- { type: NgZone },
2320
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2321
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2322
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2323
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2324
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2325
- ];
2326
- EsVertical2DChartComponent.propDecorators = {
2327
- Data: [{ type: Input }],
2328
- DataArray: [{ type: Input }],
2329
- ColumnWidthPercentage: [{ type: Input }],
2330
- GroupPaddingPercentage: [{ type: Input }],
2331
- LabelWidth: [{ type: Input }],
2332
- LabelVerticalOrientationCutoffWidth: [{ type: Input }],
2333
- LabelRightWhenCompressed: [{ type: Input }],
2334
- LabelTopWhenCompressed: [{ type: Input }]
2335
- };
2446
+ EsVertical2DChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVertical2DChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2447
+ EsVertical2DChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsVertical2DChartComponent, selector: "es-vertical-2d-chart", inputs: { Data: "Data", DataArray: "DataArray", ColumnWidthPercentage: "ColumnWidthPercentage", GroupPaddingPercentage: "GroupPaddingPercentage", LabelWidth: "LabelWidth", LabelVerticalOrientationCutoffWidth: "LabelVerticalOrientationCutoffWidth", LabelRightWhenCompressed: "LabelRightWhenCompressed", LabelTopWhenCompressed: "LabelTopWhenCompressed" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVertical2DChartComponent, decorators: [{
2449
+ type: Component,
2450
+ args: [{ selector: 'es-vertical-2d-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2451
+ }], ctorParameters: function () {
2452
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2453
+ type: Inject,
2454
+ args: [PLATFORM_ID]
2455
+ }] }, { type: undefined, decorators: [{
2456
+ type: Inject,
2457
+ args: [ESC_LOGS]
2458
+ }] }, { type: undefined, decorators: [{
2459
+ type: Inject,
2460
+ args: [ESC_ANIMATIONS]
2461
+ }] }, { type: undefined, decorators: [{
2462
+ type: Inject,
2463
+ args: [ESC_LOCALE]
2464
+ }] }, { type: undefined, decorators: [{
2465
+ type: Inject,
2466
+ args: [ESC_THEME]
2467
+ }] }];
2468
+ }, propDecorators: { Data: [{
2469
+ type: Input
2470
+ }], DataArray: [{
2471
+ type: Input
2472
+ }], ColumnWidthPercentage: [{
2473
+ type: Input
2474
+ }], GroupPaddingPercentage: [{
2475
+ type: Input
2476
+ }], LabelWidth: [{
2477
+ type: Input
2478
+ }], LabelVerticalOrientationCutoffWidth: [{
2479
+ type: Input
2480
+ }], LabelRightWhenCompressed: [{
2481
+ type: Input
2482
+ }], LabelTopWhenCompressed: [{
2483
+ type: Input
2484
+ }] } });
2336
2485
 
2337
2486
  /**
2338
2487
  * Componente specifico per la graficazione di un grafico a Barre
@@ -2382,35 +2531,43 @@ class EsVerticalChartComponent extends BaseChartComponent {
2382
2531
  return new VerticalChartService(this.adapter).graphicate(this.Data, settingsCasted);
2383
2532
  }
2384
2533
  }
2385
- EsVerticalChartComponent.decorators = [
2386
- { type: Component, args: [{
2387
- selector: 'es-vertical-chart',
2388
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2389
- changeDetection: ChangeDetectionStrategy.OnPush,
2390
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2391
- },] }
2392
- ];
2393
- EsVerticalChartComponent.ctorParameters = () => [
2394
- { type: ElementRef },
2395
- { type: ChartLoader },
2396
- { type: ChartDispatcher },
2397
- { type: BaseAdapter },
2398
- { type: NgZone },
2399
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2400
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2401
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2402
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2403
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2404
- ];
2405
- EsVerticalChartComponent.propDecorators = {
2406
- Data: [{ type: Input }],
2407
- DataArray: [{ type: Input }],
2408
- ColumnWidthPercentage: [{ type: Input }],
2409
- LabelWidth: [{ type: Input }],
2410
- LabelVerticalOrientationCutoffWidth: [{ type: Input }],
2411
- LabelRightWhenCompressed: [{ type: Input }],
2412
- LabelTopWhenCompressed: [{ type: Input }]
2413
- };
2534
+ EsVerticalChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2535
+ EsVerticalChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsVerticalChartComponent, selector: "es-vertical-chart", inputs: { Data: "Data", DataArray: "DataArray", ColumnWidthPercentage: "ColumnWidthPercentage", LabelWidth: "LabelWidth", LabelVerticalOrientationCutoffWidth: "LabelVerticalOrientationCutoffWidth", LabelRightWhenCompressed: "LabelRightWhenCompressed", LabelTopWhenCompressed: "LabelTopWhenCompressed" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalChartComponent, decorators: [{
2537
+ type: Component,
2538
+ args: [{ selector: 'es-vertical-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2539
+ }], ctorParameters: function () {
2540
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2541
+ type: Inject,
2542
+ args: [PLATFORM_ID]
2543
+ }] }, { type: undefined, decorators: [{
2544
+ type: Inject,
2545
+ args: [ESC_LOGS]
2546
+ }] }, { type: undefined, decorators: [{
2547
+ type: Inject,
2548
+ args: [ESC_ANIMATIONS]
2549
+ }] }, { type: undefined, decorators: [{
2550
+ type: Inject,
2551
+ args: [ESC_LOCALE]
2552
+ }] }, { type: undefined, decorators: [{
2553
+ type: Inject,
2554
+ args: [ESC_THEME]
2555
+ }] }];
2556
+ }, propDecorators: { Data: [{
2557
+ type: Input
2558
+ }], DataArray: [{
2559
+ type: Input
2560
+ }], ColumnWidthPercentage: [{
2561
+ type: Input
2562
+ }], LabelWidth: [{
2563
+ type: Input
2564
+ }], LabelVerticalOrientationCutoffWidth: [{
2565
+ type: Input
2566
+ }], LabelRightWhenCompressed: [{
2567
+ type: Input
2568
+ }], LabelTopWhenCompressed: [{
2569
+ type: Input
2570
+ }] } });
2414
2571
 
2415
2572
  /**
2416
2573
  * Componente specifico per la graficazione di un grafico a Barre in modalità Stacked (una serie sopra l'altra)
@@ -2460,35 +2617,43 @@ class EsVerticalStackedChartComponent extends BaseChartComponent {
2460
2617
  return new VerticalStackedChartService(this.adapter).graphicate(this.Data, settingsCasted);
2461
2618
  }
2462
2619
  }
2463
- EsVerticalStackedChartComponent.decorators = [
2464
- { type: Component, args: [{
2465
- selector: 'es-vertical-stacked-chart',
2466
- template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>",
2467
- changeDetection: ChangeDetectionStrategy.OnPush,
2468
- styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:bold;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"]
2469
- },] }
2470
- ];
2471
- EsVerticalStackedChartComponent.ctorParameters = () => [
2472
- { type: ElementRef },
2473
- { type: ChartLoader },
2474
- { type: ChartDispatcher },
2475
- { type: BaseAdapter },
2476
- { type: NgZone },
2477
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },
2478
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] },
2479
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_ANIMATIONS,] }] },
2480
- { type: String, decorators: [{ type: Inject, args: [ESC_LOCALE,] }] },
2481
- { type: String, decorators: [{ type: Inject, args: [ESC_THEME,] }] }
2482
- ];
2483
- EsVerticalStackedChartComponent.propDecorators = {
2484
- Data: [{ type: Input }],
2485
- DataArray: [{ type: Input }],
2486
- ColumnWidthPercentage: [{ type: Input }],
2487
- LabelWidth: [{ type: Input }],
2488
- LabelVerticalOrientationCutoffWidth: [{ type: Input }],
2489
- LabelRightWhenCompressed: [{ type: Input }],
2490
- LabelTopWhenCompressed: [{ type: Input }]
2491
- };
2620
+ EsVerticalStackedChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalStackedChartComponent, deps: [{ token: i0.ElementRef }, { token: ChartLoader }, { token: ChartDispatcher }, { token: BaseAdapter }, { token: i0.NgZone }, { token: PLATFORM_ID }, { token: ESC_LOGS }, { token: ESC_ANIMATIONS }, { token: ESC_LOCALE }, { token: ESC_THEME }], target: i0.ɵɵFactoryTarget.Component });
2621
+ EsVerticalStackedChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EsVerticalStackedChartComponent, selector: "es-vertical-stacked-chart", inputs: { Data: "Data", DataArray: "DataArray", ColumnWidthPercentage: "ColumnWidthPercentage", LabelWidth: "LabelWidth", LabelVerticalOrientationCutoffWidth: "LabelVerticalOrientationCutoffWidth", LabelRightWhenCompressed: "LabelRightWhenCompressed", LabelTopWhenCompressed: "LabelTopWhenCompressed" }, usesInheritance: true, ngImport: i0, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"], components: [{ type: PageChartSelector, selector: "chart-pager", inputs: ["Items", "Dtos", "BrowseDelayMs", "StartIndex"], outputs: ["onPageChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalStackedChartComponent, decorators: [{
2623
+ type: Component,
2624
+ args: [{ selector: 'es-vertical-stacked-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<chart-pager *ngIf=\"isPaged\" (onPageChange)=\"changePage($event)\" [Items]=\"DataArray\" [Dtos]=\"DataDtos\" [StartIndex]=\"DataDtoStartIndex\"\r\n [BrowseDelayMs]=\"BrowseDelayMs\">\r\n <ng-template #header_inner let-headerItem>\r\n <ng-container *ngTemplateOutlet=\"header_tr; context : {$implicit: headerItem}\"></ng-container>\r\n </ng-template>\r\n</chart-pager>\r\n\r\n<ng-container *ngIf=\"loadingChart && loading_template\">\r\n <div style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <ng-container *ngTemplateOutlet=\"loading_template\"></ng-container>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"loadingChart && !loading_template\">\r\n <div class=\"esc-loading-overlay\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\">\r\n <p class=\"label\">Loading....</p>\r\n </div>\r\n</ng-container>\r\n\r\n<div [class.hide-block]=\"loadingChart\" id=\"{{name}}\" style=\"width: 100%;\" [style.height]=\"isPaged ? 'calc(100% - 44px)' : '100%'\"></div>", styles: [".esc-loading-overlay{background:#9999;text-transform:uppercase;font-size:30px;font-weight:700;color:#fff;text-align:center;font-family:monospace}.esc-loading-overlay .label{margin:0;padding-top:7%}.hide-block{display:none}\n"] }]
2625
+ }], ctorParameters: function () {
2626
+ return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
2627
+ type: Inject,
2628
+ args: [PLATFORM_ID]
2629
+ }] }, { type: undefined, decorators: [{
2630
+ type: Inject,
2631
+ args: [ESC_LOGS]
2632
+ }] }, { type: undefined, decorators: [{
2633
+ type: Inject,
2634
+ args: [ESC_ANIMATIONS]
2635
+ }] }, { type: undefined, decorators: [{
2636
+ type: Inject,
2637
+ args: [ESC_LOCALE]
2638
+ }] }, { type: undefined, decorators: [{
2639
+ type: Inject,
2640
+ args: [ESC_THEME]
2641
+ }] }];
2642
+ }, propDecorators: { Data: [{
2643
+ type: Input
2644
+ }], DataArray: [{
2645
+ type: Input
2646
+ }], ColumnWidthPercentage: [{
2647
+ type: Input
2648
+ }], LabelWidth: [{
2649
+ type: Input
2650
+ }], LabelVerticalOrientationCutoffWidth: [{
2651
+ type: Input
2652
+ }], LabelRightWhenCompressed: [{
2653
+ type: Input
2654
+ }], LabelTopWhenCompressed: [{
2655
+ type: Input
2656
+ }] } });
2492
2657
 
2493
2658
  /**
2494
2659
  * Classe che identifica i dati per un grafico generico paginato
@@ -2510,89 +2675,6 @@ class PagedChartData {
2510
2675
  }
2511
2676
  }
2512
2677
 
2513
- /**
2514
- * Componente che si occupa della paginazione dei grafici qualora servisse
2515
- */
2516
- class PageChartSelector {
2517
- constructor() {
2518
- /**
2519
- * Indica un cambio di pagina ed emette un oggetto con i dati attuali e l'indice attuale.
2520
- *
2521
- * Qualora la proprietà **data** fosse null indica un evento di "loading"
2522
- */
2523
- this.onPageChange = new EventEmitter();
2524
- }
2525
- /**
2526
- * @ignore
2527
- */
2528
- ngOnChanges() {
2529
- if (!(this.Items || this.Dtos) || (this.Items || this.Dtos).length == 0)
2530
- throw new Error("Chart array cannot be empty!");
2531
- var idx = (this.StartIndex || 0);
2532
- this.currentindex = idx;
2533
- this.currentpage = idx + 1;
2534
- this.handlePageChange();
2535
- }
2536
- /**
2537
- * Gestisce un cambio pagina inviando al callback **onPageChange** i dati attuali (siano essi il Dto per il caricamento dati i
2538
- * o i dati già presenti) e l'indice di visualizzazione
2539
- */
2540
- handlePageChange() {
2541
- this.finalIndex = this.currentpage - 1;
2542
- this.currentindex = this.currentpage - 1;
2543
- let data = this.Items && this.Items.length > 0 ? this.Items[this.finalIndex].data : this.Dtos[this.finalIndex];
2544
- this.onPageChange.emit({ data: data, index: this.finalIndex });
2545
- }
2546
- /**
2547
- * Visualizza il grafico successivo
2548
- */
2549
- Next() {
2550
- // Per passare da page a index è sempre un -1
2551
- this.currentpage++;
2552
- this.onPageChange.emit({ data: null, index: this.currentpage - 1 });
2553
- // Delay pseudo-intelligente per click compulsivi.
2554
- // Se dopo questo delay sono andato avanti solo di 1 effettuo il callback altrimenti incremento l'indice
2555
- setTimeout(() => {
2556
- if (this.currentindex == this.currentpage - 2)
2557
- this.handlePageChange();
2558
- else
2559
- this.currentindex++;
2560
- }, this.BrowseDelayMs);
2561
- }
2562
- /**
2563
- * Visualizza il grafico precedente
2564
- */
2565
- Previous() {
2566
- // Per passare da page a index è sempre un -1
2567
- this.currentpage--;
2568
- this.onPageChange.emit({ data: null, index: this.currentpage - 1 });
2569
- // Delay pseudo-intelligente per click compulsivi.
2570
- // Se dopo questo delay sono andato indietro solo di 1 effettuo il callback altrimenti decremento l'indice
2571
- setTimeout(() => {
2572
- if (this.currentindex == this.currentpage)
2573
- this.handlePageChange();
2574
- else
2575
- this.currentindex--;
2576
- }, this.BrowseDelayMs);
2577
- }
2578
- }
2579
- PageChartSelector.decorators = [
2580
- { type: Component, args: [{
2581
- selector: "chart-pager",
2582
- template: "<div *ngIf=\"(Items || Dtos) && (Items || Dtos).length > 0\" class=\"pcs-no-selection\">\r\n <div class=\"pcs-button pcs-backward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"currentpage != 1 && Previous(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"currentpage == 1 ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-left\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div class=\"pcs-infos\">\r\n <ng-container *ngIf=\"headerInner_tr\">\r\n <ng-container *ngTemplateOutlet=\"headerInner_tr; context : {$implicit: (Items || Dtos)[currentpage - 1]}\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"pcs-button pcs-forward\">\r\n <svg class=\"pcs-svg-header\">\r\n <g class=\"pcs-svg-button-container\" role=\"button\" (click)=\"(Items || Dtos).length != currentpage && Next(); $event.stopPropagation(); $event.preventDefault();\">\r\n <!--Pulsante e freccettina all'interno-->\r\n <g class=\"pcs-svg-button\" [style.cursor]=\"(Items || Dtos).length == currentpage ? 'not-allowed' : 'pointer'\"><path d=\"M3,0 L53.027,0 a3,3 0 0 1 3,3 L56.027,36.817 a3,3 0 0 1 -3,3 L3,39.817 a3,3 0 0 1 -3,-3 L0,3 a3,3 0 0 1 3,-3 Z\"></path></g>\r\n <g class=\"pcs-svg-arrow pcs-svg-arrow-right\"><path d=\"M26,14H10l5.17-6.79A2,2,0,0,0,12,4.79l-7.62,10a2,2,0,0,0,0,2.42l7.62,10a2,2,0,0,0,3.18-2.42L10,18H26a2,2,0,0,0,0-4Z\"></path></g>\r\n </g>\r\n </svg>\r\n </div>\r\n <div style=\"clear: both;\"></div>\r\n</div>",
2583
- changeDetection: ChangeDetectionStrategy.OnPush,
2584
- styles: [".pcs-button{width:60px}.pcs-forward{float:right;text-align:end}.pcs-backward{float:left}.pcs-svg-header{width:57px;height:40px}.pcs-svg-button-container{outline:currentcolor none medium}.pcs-svg-arrow{pointer-events:none;fill:#555}.pcs-svg-arrow-right{transform:translate(44px,36px) rotate(180deg)}.pcs-svg-arrow-left{transform:translate(13px,4px)}.pcs-svg-button{fill:#d9d9d9;stroke:#fff;fill-opacity:1;stroke-opacity:1}.pcs-svg-button:hover{fill:#a3a3a3;cursor:pointer}.pcs-infos{width:calc(100% - 120px);height:44px;float:left}.pcs-no-selection{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-ms-user-select:none}\n"]
2585
- },] }
2586
- ];
2587
- PageChartSelector.propDecorators = {
2588
- Items: [{ type: Input }],
2589
- Dtos: [{ type: Input }],
2590
- BrowseDelayMs: [{ type: Input }],
2591
- StartIndex: [{ type: Input }],
2592
- onPageChange: [{ type: Output }],
2593
- headerInner_tr: [{ type: ContentChild, args: ['header_inner', { static: false },] }]
2594
- };
2595
-
2596
2678
  /** Componenti esportati dal modulo */
2597
2679
  const COMPONENTS = [
2598
2680
  EsChartComponent,
@@ -2620,14 +2702,32 @@ class EsChartsModule {
2620
2702
  };
2621
2703
  }
2622
2704
  }
2623
- EsChartsModule.decorators = [
2624
- { type: NgModule, args: [{
2625
- imports: [CommonModule],
2626
- declarations: [...COMPONENTS],
2627
- providers: [ChartDispatcher],
2628
- exports: [...COMPONENTS]
2629
- },] }
2630
- ];
2705
+ EsChartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2706
+ EsChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, declarations: [EsChartComponent,
2707
+ EsLineChartComponent,
2708
+ EsPieChartComponent,
2709
+ EsVertical2DChartComponent,
2710
+ EsVerticalChartComponent,
2711
+ EsVerticalStackedChartComponent,
2712
+ PageChartSelector,
2713
+ EsAreaChartComponent], imports: [CommonModule], exports: [EsChartComponent,
2714
+ EsLineChartComponent,
2715
+ EsPieChartComponent,
2716
+ EsVertical2DChartComponent,
2717
+ EsVerticalChartComponent,
2718
+ EsVerticalStackedChartComponent,
2719
+ PageChartSelector,
2720
+ EsAreaChartComponent] });
2721
+ EsChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, providers: [ChartDispatcher], imports: [[CommonModule]] });
2722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, decorators: [{
2723
+ type: NgModule,
2724
+ args: [{
2725
+ imports: [CommonModule],
2726
+ declarations: [...COMPONENTS],
2727
+ providers: [ChartDispatcher],
2728
+ exports: [...COMPONENTS]
2729
+ }]
2730
+ }] });
2631
2731
 
2632
2732
  /*
2633
2733
  * Public API Surface of es-charts
@@ -2637,5 +2737,5 @@ EsChartsModule.decorators = [
2637
2737
  * Generated bundle index. Do not edit.
2638
2738
  */
2639
2739
 
2640
- export { AreaChartData, AreaChartSettings, BaseAdapter, BaseInterval, BaseSettings, ChartThemes, DateValue, EsAreaChartComponent, EsChartComponent, EsChartsModule, EsLineChartComponent, EsPieChartComponent, EsVertical2DChartComponent, EsVerticalChartComponent, EsVerticalStackedChartComponent, KeyValue, KeyValueColor, LegendPad, Limit, LineChartData, LineChartSettings, LineSerie, PagedChartData, PieChartData, PieChartSettings, Vertical2DChartData, Vertical2DChartSettings, VerticalChartData, VerticalChartSettings, VerticalStackedChartData, VerticalStackedChartSettings, BaseInterval as ɵa, BaseChartComponent as ɵb, ChartLoader as ɵc, ChartDispatcher as ɵd, ESC_LOCALE as ɵe, ESC_ANIMATIONS as ɵf, ESC_THEME as ɵg, ESC_LOGS as ɵh, BaseAdapter as ɵi, EsChartComponent as ɵj, EsLineChartComponent as ɵk, EsPieChartComponent as ɵl, EsVertical2DChartComponent as ɵm, EsVerticalChartComponent as ɵn, EsVerticalStackedChartComponent as ɵo, PageChartSelector as ɵp, EsAreaChartComponent as ɵq };
2641
- //# sourceMappingURL=esfaenza-es-charts.js.map
2740
+ export { AreaChartData, AreaChartSettings, BaseAdapter, BaseInterval, BaseSettings, ChartThemes, DateValue, EsAreaChartComponent, EsChartComponent, EsChartsModule, EsLineChartComponent, EsPieChartComponent, EsVertical2DChartComponent, EsVerticalChartComponent, EsVerticalStackedChartComponent, KeyValue, KeyValueColor, LegendPad, Limit, LineChartData, LineChartSettings, LineSerie, PageChartSelector, PagedChartData, PieChartData, PieChartSettings, Vertical2DChartData, Vertical2DChartSettings, VerticalChartData, VerticalChartSettings, VerticalStackedChartData, VerticalStackedChartSettings };
2741
+ //# sourceMappingURL=esfaenza-es-charts.mjs.map