@esfaenza/es-charts 12.2.13 → 13.1.4
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.
- package/esfaenza-es-charts.d.ts +1 -6
- package/esm2020/esfaenza-es-charts.mjs +5 -0
- package/esm2020/lib/adapters/classes/BaseAdapter.mjs +50 -0
- package/{esm2015/lib/adapters/classes/IBaseAdapter.js → esm2020/lib/adapters/classes/IBaseAdapter.mjs} +0 -0
- package/{esm2015/lib/adapters/index.js → esm2020/lib/adapters/index.mjs} +0 -0
- package/esm2020/lib/components/base/base-chart.component.mjs +339 -0
- package/esm2020/lib/components/chart-pager/chart-pager.component.mjs +89 -0
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/esm2020/lib/components/specializations/es-area-chart.component.mjs +78 -0
- package/esm2020/lib/components/specializations/es-chart.component.mjs +111 -0
- package/esm2020/lib/components/specializations/es-line-chart.component.mjs +110 -0
- package/esm2020/lib/components/specializations/es-pie-chart.component.mjs +99 -0
- package/esm2020/lib/components/specializations/es-vertical-2d-chart.component.mjs +96 -0
- package/esm2020/lib/components/specializations/es-vertical-chart.component.mjs +93 -0
- package/esm2020/lib/components/specializations/es-vertical-stacked-chart.component.mjs +93 -0
- package/esm2020/lib/es-charts.module.mjs +61 -0
- package/{esm2015/lib/models/EsChaartsModuleConfig.js → esm2020/lib/models/EsChaartsModuleConfig.mjs} +0 -0
- package/esm2020/lib/models/core/classes/ChartDispatcher.mjs +91 -0
- package/{esm2015/lib/models/core/classes/ChartLoader.js → esm2020/lib/models/core/classes/ChartLoader.mjs} +0 -0
- package/{esm2015/lib/models/core/classes/ChartThemes.js → esm2020/lib/models/core/classes/ChartThemes.mjs} +0 -0
- package/{esm2015/lib/models/core/index.js → esm2020/lib/models/core/index.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/AreaChartData.js → esm2020/lib/models/data/classes/AreaChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/LineChartData.js → esm2020/lib/models/data/classes/LineChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/PagedChartData.js → esm2020/lib/models/data/classes/PagedChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/PieChartData.js → esm2020/lib/models/data/classes/PieChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/Vertical2DChartData.js → esm2020/lib/models/data/classes/Vertical2DChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/VerticalChartData.js → esm2020/lib/models/data/classes/VerticalChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/VerticalStackedChartData.js → esm2020/lib/models/data/classes/VerticalStackedChartData.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/base/DateValue.js → esm2020/lib/models/data/classes/base/DateValue.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/base/KeyValue.js → esm2020/lib/models/data/classes/base/KeyValue.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/base/KeyValueColor.js → esm2020/lib/models/data/classes/base/KeyValueColor.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/base/Limit.js → esm2020/lib/models/data/classes/base/Limit.mjs} +0 -0
- package/{esm2015/lib/models/data/classes/base/LineSerie.js → esm2020/lib/models/data/classes/base/LineSerie.mjs} +0 -0
- package/{esm2015/lib/models/data/index.js → esm2020/lib/models/data/index.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/AreaChartSettings.js → esm2020/lib/models/settings/classes/AreaChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/LineChartSettings.js → esm2020/lib/models/settings/classes/LineChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/PieChartSettings.js → esm2020/lib/models/settings/classes/PieChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/Vertical2DChartSettings.js → esm2020/lib/models/settings/classes/Vertical2DChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/VerticalChartSettings.js → esm2020/lib/models/settings/classes/VerticalChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/VerticalStackedChartSettings.js → esm2020/lib/models/settings/classes/VerticalStackedChartSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/base/BaseInterval.js → esm2020/lib/models/settings/classes/base/BaseInterval.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/base/BaseSettings.js → esm2020/lib/models/settings/classes/base/BaseSettings.mjs} +0 -0
- package/{esm2015/lib/models/settings/classes/base/LegendPad.js → esm2020/lib/models/settings/classes/base/LegendPad.mjs} +0 -0
- package/{esm2015/lib/models/settings/index.js → esm2020/lib/models/settings/index.mjs} +0 -0
- package/esm2020/lib/services/classes/AreaChartService.mjs +134 -0
- package/esm2020/lib/services/classes/LineChartService.mjs +356 -0
- package/esm2020/lib/services/classes/PieChartService.mjs +111 -0
- package/esm2020/lib/services/classes/Vertical2DChartService.mjs +160 -0
- package/esm2020/lib/services/classes/VerticalChartService.mjs +103 -0
- package/esm2020/lib/services/classes/VerticalStackedChartService.mjs +124 -0
- package/{esm2015/lib/services/classes/base/IBaseService.js → esm2020/lib/services/classes/base/IBaseService.mjs} +0 -0
- package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
- package/{esm2015/lib/tokens.js → esm2020/lib/tokens.mjs} +0 -0
- package/esm2020/public-api.mjs +38 -0
- package/fesm2015/{esfaenza-es-charts.js → esfaenza-es-charts.mjs} +530 -384
- package/fesm2015/esfaenza-es-charts.mjs.map +1 -0
- package/fesm2020/esfaenza-es-charts.mjs +2747 -0
- package/fesm2020/esfaenza-es-charts.mjs.map +1 -0
- package/lib/adapters/classes/BaseAdapter.d.ts +3 -0
- package/lib/components/base/base-chart.component.d.ts +12 -0
- package/lib/components/chart-pager/chart-pager.component.d.ts +3 -0
- package/lib/components/specializations/es-area-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-line-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-pie-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-vertical-2d-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-vertical-chart.component.d.ts +3 -0
- package/lib/components/specializations/es-vertical-stacked-chart.component.d.ts +3 -0
- package/lib/es-charts.module.d.ts +13 -0
- package/lib/models/core/classes/ChartDispatcher.d.ts +3 -0
- package/lib/services/classes/LineChartService.d.ts +4 -0
- package/package.json +22 -10
- package/public-api.d.ts +2 -0
- package/bundles/esfaenza-es-charts.umd.js +0 -3212
- package/bundles/esfaenza-es-charts.umd.js.map +0 -1
- package/esfaenza-es-charts.metadata.json +0 -1
- package/esm2015/esfaenza-es-charts.js +0 -11
- package/esm2015/lib/adapters/classes/BaseAdapter.js +0 -47
- package/esm2015/lib/components/base/base-chart.component.js +0 -311
- package/esm2015/lib/components/chart-pager/chart-pager.component.js +0 -84
- package/esm2015/lib/components/specializations/es-area-chart.component.js +0 -75
- package/esm2015/lib/components/specializations/es-chart.component.js +0 -108
- package/esm2015/lib/components/specializations/es-line-chart.component.js +0 -98
- package/esm2015/lib/components/specializations/es-pie-chart.component.js +0 -89
- package/esm2015/lib/components/specializations/es-vertical-2d-chart.component.js +0 -87
- package/esm2015/lib/components/specializations/es-vertical-chart.component.js +0 -85
- package/esm2015/lib/components/specializations/es-vertical-stacked-chart.component.js +0 -85
- package/esm2015/lib/es-charts.module.js +0 -42
- package/esm2015/lib/models/core/classes/ChartDispatcher.js +0 -88
- package/esm2015/lib/services/classes/AreaChartService.js +0 -135
- package/esm2015/lib/services/classes/LineChartService.js +0 -326
- package/esm2015/lib/services/classes/PieChartService.js +0 -112
- package/esm2015/lib/services/classes/Vertical2DChartService.js +0 -163
- package/esm2015/lib/services/classes/VerticalChartService.js +0 -105
- package/esm2015/lib/services/classes/VerticalStackedChartService.js +0 -127
- package/esm2015/public-api.js +0 -36
- package/fesm2015/esfaenza-es-charts.js.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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
|
|
50
|
-
|
|
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
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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';
|
|
@@ -705,6 +799,11 @@ class BaseChartComponent {
|
|
|
705
799
|
* Evento lanciato al termine del caricamento di una nuova pagina del grafico
|
|
706
800
|
*/
|
|
707
801
|
this.onLoadEnd = new EventEmitter();
|
|
802
|
+
/**
|
|
803
|
+
* Evento lanciato al termine della creazione del grafico referenziando l'istanza nativa del grafico creato in modo da poter effettuare modifiche
|
|
804
|
+
* post inizializzazione lato applicativo
|
|
805
|
+
*/
|
|
806
|
+
this.chartLoaded = new EventEmitter();
|
|
708
807
|
/**
|
|
709
808
|
* Serve a decidere se sarà presente l'interfaccia di paginazione
|
|
710
809
|
*/
|
|
@@ -721,8 +820,8 @@ class BaseChartComponent {
|
|
|
721
820
|
* impostate in fase di import del modulo assegnando valori ai token ESC_LOCALE, ESC_ANIMATIONS, ESC_THEME
|
|
722
821
|
*/
|
|
723
822
|
ngOnInit() {
|
|
724
|
-
// Qui servono solo le variabili da conoscere PRE-graficazione per il caricamento dei moduli lazy del grafico
|
|
725
823
|
var _a, _b, _c, _d, _e, _f;
|
|
824
|
+
// Qui servono solo le variabili da conoscere PRE-graficazione per il caricamento dei moduli lazy del grafico
|
|
726
825
|
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
826
|
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
827
|
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);
|
|
@@ -793,7 +892,7 @@ class BaseChartComponent {
|
|
|
793
892
|
this.Chart = this.ChartService.ChartInstance;
|
|
794
893
|
if (!this.Chart)
|
|
795
894
|
this.log("Chart " + this.name + ": Could not create graph");
|
|
796
|
-
return this.Charter.applyLocale(this.Chart, this.Locale).then(() => this.initDone = true);
|
|
895
|
+
return this.Charter.applyLocale(this.Chart, this.Locale).then(() => { this.initDone = true; this.chartLoaded.emit(this); });
|
|
797
896
|
})
|
|
798
897
|
]);
|
|
799
898
|
}
|
|
@@ -804,8 +903,8 @@ class BaseChartComponent {
|
|
|
804
903
|
* @param {BaseSettings} settings Impostazioni base ricevute dalla specializzazione del grafico
|
|
805
904
|
*/
|
|
806
905
|
fillSettings(settings) {
|
|
807
|
-
// Merge degli Input con i Settings, dando priorità ai Settings
|
|
808
906
|
var _a;
|
|
907
|
+
// Merge degli Input con i Settings, dando priorità ai Settings
|
|
809
908
|
settings.Theme = settings.Theme ? settings.Theme : this.Theme;
|
|
810
909
|
settings.Locale = settings.Locale ? settings.Locale : this.Locale;
|
|
811
910
|
settings.Animations = settings.Animations != null ? settings.Animations : this.Animations;
|
|
@@ -885,10 +984,20 @@ class BaseChartComponent {
|
|
|
885
984
|
* 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
985
|
*/
|
|
887
986
|
reloadChart() {
|
|
888
|
-
this.browserOnly(() => {
|
|
889
|
-
this.Chart.
|
|
987
|
+
this.browserOnly(() => {
|
|
988
|
+
if (!this.Chart.isDisposed())
|
|
989
|
+
this.Chart.dispose();
|
|
990
|
+
this.Dispatcher.deregisterGraph(this.name);
|
|
991
|
+
});
|
|
890
992
|
this.Dispatcher.register(this.name, () => { return this.loadChart(); });
|
|
891
993
|
}
|
|
994
|
+
/**
|
|
995
|
+
* Permette di aggiungere un blocco di dati in maniera "live" ad un grafico
|
|
996
|
+
*/
|
|
997
|
+
addData(chartData) {
|
|
998
|
+
this.ChartService.refreshData(chartData);
|
|
999
|
+
}
|
|
1000
|
+
;
|
|
892
1001
|
/**
|
|
893
1002
|
* Funzione che si occupa di caricare i temi necessari per il grafico in oggetto. Prima applica il tema, poi, se serve, applica le animazioni
|
|
894
1003
|
*/
|
|
@@ -917,46 +1026,63 @@ class BaseChartComponent {
|
|
|
917
1026
|
}
|
|
918
1027
|
}
|
|
919
1028
|
}
|
|
920
|
-
BaseChartComponent
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1029
|
+
BaseChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseChartComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
1030
|
+
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", chartLoaded: "chartLoaded" }, queries: [{ propertyName: "header_tr", first: true, predicate: ["header"], descendants: true }, { propertyName: "loading_template", first: true, predicate: ["loading"], descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseChartComponent, decorators: [{
|
|
1032
|
+
type: Directive
|
|
1033
|
+
}], 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: [{
|
|
1034
|
+
type: Input
|
|
1035
|
+
}], YTitle: [{
|
|
1036
|
+
type: Input
|
|
1037
|
+
}], Settings: [{
|
|
1038
|
+
type: Input
|
|
1039
|
+
}], Legend: [{
|
|
1040
|
+
type: Input
|
|
1041
|
+
}], LegendPosition: [{
|
|
1042
|
+
type: Input
|
|
1043
|
+
}], Timeline: [{
|
|
1044
|
+
type: Input
|
|
1045
|
+
}], name: [{
|
|
1046
|
+
type: Input
|
|
1047
|
+
}], Animations: [{
|
|
1048
|
+
type: Input
|
|
1049
|
+
}], Theme: [{
|
|
1050
|
+
type: Input
|
|
1051
|
+
}], Locale: [{
|
|
1052
|
+
type: Input
|
|
1053
|
+
}], HideSeriesOnLabelClick: [{
|
|
1054
|
+
type: Input
|
|
1055
|
+
}], MinGridDistance: [{
|
|
1056
|
+
type: Input
|
|
1057
|
+
}], AdaptLabelSizeAndOrientation: [{
|
|
1058
|
+
type: Input
|
|
1059
|
+
}], LegendPadding: [{
|
|
1060
|
+
type: Input
|
|
1061
|
+
}], DataDtos: [{
|
|
1062
|
+
type: Input
|
|
1063
|
+
}], DataDtoStartIndex: [{
|
|
1064
|
+
type: Input
|
|
1065
|
+
}], DataRetrieve: [{
|
|
1066
|
+
type: Input
|
|
1067
|
+
}], BrowseDelayMs: [{
|
|
1068
|
+
type: Input
|
|
1069
|
+
}], header_tr: [{
|
|
1070
|
+
type: ContentChild,
|
|
1071
|
+
args: ['header', { static: false }]
|
|
1072
|
+
}], loading_template: [{
|
|
1073
|
+
type: ContentChild,
|
|
1074
|
+
args: ['loading', { static: false }]
|
|
1075
|
+
}], onSelectionChanged: [{
|
|
1076
|
+
type: Output
|
|
1077
|
+
}], onSeriesClicked: [{
|
|
1078
|
+
type: Output
|
|
1079
|
+
}], onLoadStart: [{
|
|
1080
|
+
type: Output
|
|
1081
|
+
}], onLoadEnd: [{
|
|
1082
|
+
type: Output
|
|
1083
|
+
}], chartLoaded: [{
|
|
1084
|
+
type: Output
|
|
1085
|
+
}] } });
|
|
960
1086
|
|
|
961
1087
|
/**
|
|
962
1088
|
* Classe il cui unico scopo è gestire il setup e rendering di un LineChart
|
|
@@ -970,6 +1096,8 @@ class LineChartService {
|
|
|
970
1096
|
this.DataGroupBucketSize = 1500;
|
|
971
1097
|
/** @ignore */
|
|
972
1098
|
this.OpacityOnSelected = 0.3;
|
|
1099
|
+
/** @ignore */
|
|
1100
|
+
this.singleDataSet = false;
|
|
973
1101
|
//******************** Funzione di throttling per non spammare richieste in caso di animazioni attivate
|
|
974
1102
|
//TODO: spostarla in un metodo di utilità (esfaenza/extensions)
|
|
975
1103
|
/** @ignore */
|
|
@@ -982,7 +1110,7 @@ class LineChartService {
|
|
|
982
1110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
983
1111
|
let dataConverted = this.Adapter ? this.Adapter.adaptDataForLineChart(data) : data;
|
|
984
1112
|
let threshold = (_a = settings.DataGroupingThreshold) !== null && _a !== void 0 ? _a : 3000;
|
|
985
|
-
|
|
1113
|
+
this.singleDataSet = (_b = settings.MergeDatasets) !== null && _b !== void 0 ? _b : false;
|
|
986
1114
|
let showTicks = settings.ShowTicks == null ? true : settings === null || settings === void 0 ? void 0 : settings.ShowTicks;
|
|
987
1115
|
let dataShouldBeGrouped = Math.max(...dataConverted.series.map(t => t.values.length)) > threshold;
|
|
988
1116
|
let showTimeline = settings.Timeline || dataShouldBeGrouped;
|
|
@@ -1061,31 +1189,9 @@ class LineChartService {
|
|
|
1061
1189
|
let seriesColors = [];
|
|
1062
1190
|
let defaultIndex = 0;
|
|
1063
1191
|
//-- Generazione di un unico dataset invece che N, per poter gestire un unico tooltip
|
|
1064
|
-
if (singleDataSet) {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
for (let i = 0; i < vs.values.length; i++) {
|
|
1068
|
-
var dataitem = vs.values[i];
|
|
1069
|
-
var indexer = new Date(dataitem.d).valueOf();
|
|
1070
|
-
if (!dto[indexer])
|
|
1071
|
-
dto[indexer] = {};
|
|
1072
|
-
dto[indexer]['v' + index] = dataitem.v;
|
|
1073
|
-
}
|
|
1074
|
-
});
|
|
1075
|
-
var dates = Object.keys(dto);
|
|
1076
|
-
let singleDS = [];
|
|
1077
|
-
for (let i = 0; i < dates.length; i++) {
|
|
1078
|
-
let values = dto[dates[i]];
|
|
1079
|
-
let item = { d: new Date(parseInt(dates[i])) };
|
|
1080
|
-
var vals = Object.keys(values);
|
|
1081
|
-
for (let ii = 0; ii < vals.length; ii++) {
|
|
1082
|
-
let series = vals[ii];
|
|
1083
|
-
let singleVal = values[series];
|
|
1084
|
-
item[series] = singleVal;
|
|
1085
|
-
}
|
|
1086
|
-
singleDS.push(item);
|
|
1087
|
-
}
|
|
1088
|
-
this.ChartInstance.data = singleDS;
|
|
1192
|
+
if (this.singleDataSet) {
|
|
1193
|
+
this.ChartInstance.data = this.generateSingleDataset(dataConverted);
|
|
1194
|
+
;
|
|
1089
1195
|
dateAxis.cursorTooltipEnabled = false;
|
|
1090
1196
|
}
|
|
1091
1197
|
//-- Fine generazione
|
|
@@ -1109,14 +1215,14 @@ class LineChartService {
|
|
|
1109
1215
|
s.values.sort((d1, d2) => d1.d.getTime() - d2.d.getTime());
|
|
1110
1216
|
let fill = s.fill != null && s.fill != undefined ? s.fill : ((_a = settings === null || settings === void 0 ? void 0 : settings.Fill) !== null && _a !== void 0 ? _a : false);
|
|
1111
1217
|
let series = (settings === null || settings === void 0 ? void 0 : settings.Step) ? new am4charts.StepLineSeries() : new am4charts.LineSeries();
|
|
1112
|
-
series.dataFields.valueY = "v" + (singleDataSet ? index : "");
|
|
1218
|
+
series.dataFields.valueY = "v" + (this.singleDataSet ? index : "");
|
|
1113
1219
|
series.dataFields.dateX = "d";
|
|
1114
1220
|
series.dataFields.measureUnit = s.uom;
|
|
1115
1221
|
series.name = s.name;
|
|
1116
1222
|
series.strokeWidth = (_b = settings === null || settings === void 0 ? void 0 : settings.StrokeSize) !== null && _b !== void 0 ? _b : 1;
|
|
1117
1223
|
series.connect = !gapsAllowed;
|
|
1118
1224
|
series.minBulletDistance = 10;
|
|
1119
|
-
series.tooltipText = singleDataSet ? "" : "{name}: [bold]{valueY}[/]";
|
|
1225
|
+
series.tooltipText = this.singleDataSet ? "" : "{name}: [bold]{valueY}[/]";
|
|
1120
1226
|
series.tooltip.pointerOrientation = "vertical";
|
|
1121
1227
|
series.tooltip.background.fillOpacity = 0.5;
|
|
1122
1228
|
series.tooltip.label.padding(12, 12, 12, 12);
|
|
@@ -1124,7 +1230,7 @@ class LineChartService {
|
|
|
1124
1230
|
series.stacked = fill;
|
|
1125
1231
|
//Dataset singolo, i dati sono registrati a livello di chart, creo il tooltip che permette di vederli tutti insieme
|
|
1126
1232
|
//altrimenti assegno i dati della serie direttamente alla serie
|
|
1127
|
-
if (singleDataSet) {
|
|
1233
|
+
if (this.singleDataSet) {
|
|
1128
1234
|
series.tooltip.getFillFromObject = false;
|
|
1129
1235
|
series.tooltip.background.fill = am4core.color("#eee");
|
|
1130
1236
|
series.tooltip.label.fill = am4core.color("#00");
|
|
@@ -1214,7 +1320,7 @@ class LineChartService {
|
|
|
1214
1320
|
//******************************************************************************************************************************
|
|
1215
1321
|
this.ChartInstance.cursor.xAxis = dateAxis;
|
|
1216
1322
|
this.ChartInstance.cursor.yAxis = yAxis;
|
|
1217
|
-
if (singleDataSet)
|
|
1323
|
+
if (this.singleDataSet)
|
|
1218
1324
|
this.ChartInstance.cursor.maxTooltipDistance = -1;
|
|
1219
1325
|
//TODO: Cercare di capire perché è figlio di puttana......
|
|
1220
1326
|
dateAxis.events.on("startchanged", t => this.emitSelectionChanged(t, settings));
|
|
@@ -1223,7 +1329,59 @@ class LineChartService {
|
|
|
1223
1329
|
}
|
|
1224
1330
|
/** @ignore */
|
|
1225
1331
|
refreshData(data) {
|
|
1226
|
-
|
|
1332
|
+
let dataConverted = this.Adapter ? this.Adapter.adaptDataForLineChart(data) : data;
|
|
1333
|
+
if (this.singleDataSet) {
|
|
1334
|
+
var data = this.generateSingleDataset(dataConverted);
|
|
1335
|
+
this.ChartInstance.addData(data);
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
this.ChartInstance.series.each(s => {
|
|
1339
|
+
var relativeSerie = dataConverted.series.find(t => t.name == s.name);
|
|
1340
|
+
// Una serie del grafico è stata ggiornata, ordino i datapoint e li aggiungo
|
|
1341
|
+
var correctOrder = true;
|
|
1342
|
+
var prevDate = null;
|
|
1343
|
+
for (let v = 0; v < relativeSerie.values.length; v++) {
|
|
1344
|
+
if (!prevDate)
|
|
1345
|
+
prevDate = relativeSerie.values[v].d;
|
|
1346
|
+
else if (relativeSerie.values[v].d < prevDate) {
|
|
1347
|
+
correctOrder = false;
|
|
1348
|
+
break;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
if (!correctOrder)
|
|
1352
|
+
relativeSerie.values.sort((d1, d2) => d1.d.getTime() - d2.d.getTime());
|
|
1353
|
+
for (let v = 0; v < relativeSerie.values.length; v++) {
|
|
1354
|
+
let obj = relativeSerie.values[v];
|
|
1355
|
+
s.addData({ date: obj.d, value: obj.v });
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
/** Partendo da dati divisi per seriue genera un dataset unito con la data come chiave e i vari valori dopo */
|
|
1360
|
+
generateSingleDataset(data) {
|
|
1361
|
+
let dto = {};
|
|
1362
|
+
data.series.forEach((vs, index) => {
|
|
1363
|
+
for (let i = 0; i < vs.values.length; i++) {
|
|
1364
|
+
var dataitem = vs.values[i];
|
|
1365
|
+
var indexer = new Date(dataitem.d).valueOf();
|
|
1366
|
+
if (!dto[indexer])
|
|
1367
|
+
dto[indexer] = {};
|
|
1368
|
+
dto[indexer]['v' + index] = dataitem.v;
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
var dates = Object.keys(dto);
|
|
1372
|
+
var ret = [];
|
|
1373
|
+
for (let i = 0; i < dates.length; i++) {
|
|
1374
|
+
let values = dto[dates[i]];
|
|
1375
|
+
let item = { d: new Date(parseInt(dates[i])) };
|
|
1376
|
+
var vals = Object.keys(values);
|
|
1377
|
+
for (let ii = 0; ii < vals.length; ii++) {
|
|
1378
|
+
let series = vals[ii];
|
|
1379
|
+
let singleVal = values[series];
|
|
1380
|
+
item[series] = singleVal;
|
|
1381
|
+
}
|
|
1382
|
+
ret.push(item);
|
|
1383
|
+
}
|
|
1384
|
+
return ret;
|
|
1227
1385
|
}
|
|
1228
1386
|
/** @ignore */
|
|
1229
1387
|
emitSelectionChanged(ev, settings) {
|
|
@@ -1987,32 +2145,35 @@ class EsChartComponent extends BaseChartComponent {
|
|
|
1987
2145
|
}
|
|
1988
2146
|
}
|
|
1989
2147
|
}
|
|
1990
|
-
EsChartComponent
|
|
1991
|
-
{ type:
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
]
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2148
|
+
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 });
|
|
2149
|
+
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 });
|
|
2150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartComponent, decorators: [{
|
|
2151
|
+
type: Component,
|
|
2152
|
+
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"] }]
|
|
2153
|
+
}], ctorParameters: function () {
|
|
2154
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: i2.DateService }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2155
|
+
type: Inject,
|
|
2156
|
+
args: [PLATFORM_ID]
|
|
2157
|
+
}] }, { type: undefined, decorators: [{
|
|
2158
|
+
type: Inject,
|
|
2159
|
+
args: [ESC_LOGS]
|
|
2160
|
+
}] }, { type: undefined, decorators: [{
|
|
2161
|
+
type: Inject,
|
|
2162
|
+
args: [ESC_ANIMATIONS]
|
|
2163
|
+
}] }, { type: undefined, decorators: [{
|
|
2164
|
+
type: Inject,
|
|
2165
|
+
args: [ESC_LOCALE]
|
|
2166
|
+
}] }, { type: undefined, decorators: [{
|
|
2167
|
+
type: Inject,
|
|
2168
|
+
args: [ESC_THEME]
|
|
2169
|
+
}] }];
|
|
2170
|
+
}, propDecorators: { Type: [{
|
|
2171
|
+
type: Input
|
|
2172
|
+
}], Data: [{
|
|
2173
|
+
type: Input
|
|
2174
|
+
}], DataArray: [{
|
|
2175
|
+
type: Input
|
|
2176
|
+
}] } });
|
|
2016
2177
|
|
|
2017
2178
|
/**
|
|
2018
2179
|
* Componente specifico per la graficazione di un grafico ad Area
|
|
@@ -2057,30 +2218,33 @@ class EsAreaChartComponent extends BaseChartComponent {
|
|
|
2057
2218
|
return new AreaChartService(this.adapter).graphicate(this.Data, settingsCasted);
|
|
2058
2219
|
}
|
|
2059
2220
|
}
|
|
2060
|
-
EsAreaChartComponent
|
|
2061
|
-
{ type:
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2221
|
+
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 });
|
|
2222
|
+
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 });
|
|
2223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsAreaChartComponent, decorators: [{
|
|
2224
|
+
type: Component,
|
|
2225
|
+
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"] }]
|
|
2226
|
+
}], ctorParameters: function () {
|
|
2227
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2228
|
+
type: Inject,
|
|
2229
|
+
args: [PLATFORM_ID]
|
|
2230
|
+
}] }, { type: undefined, decorators: [{
|
|
2231
|
+
type: Inject,
|
|
2232
|
+
args: [ESC_LOGS]
|
|
2233
|
+
}] }, { type: undefined, decorators: [{
|
|
2234
|
+
type: Inject,
|
|
2235
|
+
args: [ESC_ANIMATIONS]
|
|
2236
|
+
}] }, { type: undefined, decorators: [{
|
|
2237
|
+
type: Inject,
|
|
2238
|
+
args: [ESC_LOCALE]
|
|
2239
|
+
}] }, { type: undefined, decorators: [{
|
|
2240
|
+
type: Inject,
|
|
2241
|
+
args: [ESC_THEME]
|
|
2242
|
+
}] }];
|
|
2243
|
+
}, propDecorators: { Data: [{
|
|
2244
|
+
type: Input
|
|
2245
|
+
}], DataArray: [{
|
|
2246
|
+
type: Input
|
|
2247
|
+
}] } });
|
|
2084
2248
|
|
|
2085
2249
|
/**
|
|
2086
2250
|
* Componente specifico per la graficazione di un grafico a Linea su un asse temporale
|
|
@@ -2136,41 +2300,53 @@ class EsLineChartComponent extends BaseChartComponent {
|
|
|
2136
2300
|
return new LineChartService(this.adapter, this.dateService).graphicate(this.Data, settingsCasted);
|
|
2137
2301
|
}
|
|
2138
2302
|
}
|
|
2139
|
-
EsLineChartComponent
|
|
2140
|
-
{ type:
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
]
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
}
|
|
2303
|
+
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 });
|
|
2304
|
+
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 });
|
|
2305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsLineChartComponent, decorators: [{
|
|
2306
|
+
type: Component,
|
|
2307
|
+
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"] }]
|
|
2308
|
+
}], ctorParameters: function () {
|
|
2309
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i2.DateService }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2310
|
+
type: Inject,
|
|
2311
|
+
args: [PLATFORM_ID]
|
|
2312
|
+
}] }, { type: undefined, decorators: [{
|
|
2313
|
+
type: Inject,
|
|
2314
|
+
args: [ESC_LOGS]
|
|
2315
|
+
}] }, { type: undefined, decorators: [{
|
|
2316
|
+
type: Inject,
|
|
2317
|
+
args: [ESC_ANIMATIONS]
|
|
2318
|
+
}] }, { type: undefined, decorators: [{
|
|
2319
|
+
type: Inject,
|
|
2320
|
+
args: [ESC_LOCALE]
|
|
2321
|
+
}] }, { type: undefined, decorators: [{
|
|
2322
|
+
type: Inject,
|
|
2323
|
+
args: [ESC_THEME]
|
|
2324
|
+
}] }];
|
|
2325
|
+
}, propDecorators: { Data: [{
|
|
2326
|
+
type: Input
|
|
2327
|
+
}], DataArray: [{
|
|
2328
|
+
type: Input
|
|
2329
|
+
}], Step: [{
|
|
2330
|
+
type: Input
|
|
2331
|
+
}], DataGroupBucketSize: [{
|
|
2332
|
+
type: Input
|
|
2333
|
+
}], DataGroupingThreshold: [{
|
|
2334
|
+
type: Input
|
|
2335
|
+
}], StrokeSize: [{
|
|
2336
|
+
type: Input
|
|
2337
|
+
}], AllowGaps: [{
|
|
2338
|
+
type: Input
|
|
2339
|
+
}], MergeDatasets: [{
|
|
2340
|
+
type: Input
|
|
2341
|
+
}], FinalInstants: [{
|
|
2342
|
+
type: Input
|
|
2343
|
+
}], Min: [{
|
|
2344
|
+
type: Input
|
|
2345
|
+
}], Max: [{
|
|
2346
|
+
type: Input
|
|
2347
|
+
}], Fill: [{
|
|
2348
|
+
type: Input
|
|
2349
|
+
}] } });
|
|
2174
2350
|
|
|
2175
2351
|
/**
|
|
2176
2352
|
* Componente specifico per la graficazione di un grafico a Torta
|
|
@@ -2222,37 +2398,47 @@ class EsPieChartComponent extends BaseChartComponent {
|
|
|
2222
2398
|
return new PieChartService(this.adapter).graphicate(this.Data, settingsCasted);
|
|
2223
2399
|
}
|
|
2224
2400
|
}
|
|
2225
|
-
EsPieChartComponent
|
|
2226
|
-
{ type:
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}
|
|
2401
|
+
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 });
|
|
2402
|
+
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 });
|
|
2403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsPieChartComponent, decorators: [{
|
|
2404
|
+
type: Component,
|
|
2405
|
+
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"] }]
|
|
2406
|
+
}], ctorParameters: function () {
|
|
2407
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2408
|
+
type: Inject,
|
|
2409
|
+
args: [PLATFORM_ID]
|
|
2410
|
+
}] }, { type: undefined, decorators: [{
|
|
2411
|
+
type: Inject,
|
|
2412
|
+
args: [ESC_LOGS]
|
|
2413
|
+
}] }, { type: undefined, decorators: [{
|
|
2414
|
+
type: Inject,
|
|
2415
|
+
args: [ESC_ANIMATIONS]
|
|
2416
|
+
}] }, { type: undefined, decorators: [{
|
|
2417
|
+
type: Inject,
|
|
2418
|
+
args: [ESC_LOCALE]
|
|
2419
|
+
}] }, { type: undefined, decorators: [{
|
|
2420
|
+
type: Inject,
|
|
2421
|
+
args: [ESC_THEME]
|
|
2422
|
+
}] }];
|
|
2423
|
+
}, propDecorators: { Data: [{
|
|
2424
|
+
type: Input
|
|
2425
|
+
}], DataArray: [{
|
|
2426
|
+
type: Input
|
|
2427
|
+
}], HideZeroes: [{
|
|
2428
|
+
type: Input
|
|
2429
|
+
}], Mode3D: [{
|
|
2430
|
+
type: Input
|
|
2431
|
+
}], DonutRadiusPercentage: [{
|
|
2432
|
+
type: Input
|
|
2433
|
+
}], LabelsWrap: [{
|
|
2434
|
+
type: Input
|
|
2435
|
+
}], LabelsTruncate: [{
|
|
2436
|
+
type: Input
|
|
2437
|
+
}], LabelsWidth: [{
|
|
2438
|
+
type: Input
|
|
2439
|
+
}], LabelsVisible: [{
|
|
2440
|
+
type: Input
|
|
2441
|
+
}] } });
|
|
2256
2442
|
|
|
2257
2443
|
/**
|
|
2258
2444
|
* Componente specifico per la graficazione di un grafico a Barre con due dimensioni
|
|
@@ -2303,36 +2489,45 @@ class EsVertical2DChartComponent extends BaseChartComponent {
|
|
|
2303
2489
|
return new Vertical2DChartService(this.adapter).graphicate(this.Data, settingsCasted);
|
|
2304
2490
|
}
|
|
2305
2491
|
}
|
|
2306
|
-
EsVertical2DChartComponent
|
|
2307
|
-
{ type:
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2492
|
+
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 });
|
|
2493
|
+
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 });
|
|
2494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVertical2DChartComponent, decorators: [{
|
|
2495
|
+
type: Component,
|
|
2496
|
+
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"] }]
|
|
2497
|
+
}], ctorParameters: function () {
|
|
2498
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2499
|
+
type: Inject,
|
|
2500
|
+
args: [PLATFORM_ID]
|
|
2501
|
+
}] }, { type: undefined, decorators: [{
|
|
2502
|
+
type: Inject,
|
|
2503
|
+
args: [ESC_LOGS]
|
|
2504
|
+
}] }, { type: undefined, decorators: [{
|
|
2505
|
+
type: Inject,
|
|
2506
|
+
args: [ESC_ANIMATIONS]
|
|
2507
|
+
}] }, { type: undefined, decorators: [{
|
|
2508
|
+
type: Inject,
|
|
2509
|
+
args: [ESC_LOCALE]
|
|
2510
|
+
}] }, { type: undefined, decorators: [{
|
|
2511
|
+
type: Inject,
|
|
2512
|
+
args: [ESC_THEME]
|
|
2513
|
+
}] }];
|
|
2514
|
+
}, propDecorators: { Data: [{
|
|
2515
|
+
type: Input
|
|
2516
|
+
}], DataArray: [{
|
|
2517
|
+
type: Input
|
|
2518
|
+
}], ColumnWidthPercentage: [{
|
|
2519
|
+
type: Input
|
|
2520
|
+
}], GroupPaddingPercentage: [{
|
|
2521
|
+
type: Input
|
|
2522
|
+
}], LabelWidth: [{
|
|
2523
|
+
type: Input
|
|
2524
|
+
}], LabelVerticalOrientationCutoffWidth: [{
|
|
2525
|
+
type: Input
|
|
2526
|
+
}], LabelRightWhenCompressed: [{
|
|
2527
|
+
type: Input
|
|
2528
|
+
}], LabelTopWhenCompressed: [{
|
|
2529
|
+
type: Input
|
|
2530
|
+
}] } });
|
|
2336
2531
|
|
|
2337
2532
|
/**
|
|
2338
2533
|
* Componente specifico per la graficazione di un grafico a Barre
|
|
@@ -2382,35 +2577,43 @@ class EsVerticalChartComponent extends BaseChartComponent {
|
|
|
2382
2577
|
return new VerticalChartService(this.adapter).graphicate(this.Data, settingsCasted);
|
|
2383
2578
|
}
|
|
2384
2579
|
}
|
|
2385
|
-
EsVerticalChartComponent
|
|
2386
|
-
{ type:
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
}
|
|
2580
|
+
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 });
|
|
2581
|
+
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 });
|
|
2582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalChartComponent, decorators: [{
|
|
2583
|
+
type: Component,
|
|
2584
|
+
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"] }]
|
|
2585
|
+
}], ctorParameters: function () {
|
|
2586
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2587
|
+
type: Inject,
|
|
2588
|
+
args: [PLATFORM_ID]
|
|
2589
|
+
}] }, { type: undefined, decorators: [{
|
|
2590
|
+
type: Inject,
|
|
2591
|
+
args: [ESC_LOGS]
|
|
2592
|
+
}] }, { type: undefined, decorators: [{
|
|
2593
|
+
type: Inject,
|
|
2594
|
+
args: [ESC_ANIMATIONS]
|
|
2595
|
+
}] }, { type: undefined, decorators: [{
|
|
2596
|
+
type: Inject,
|
|
2597
|
+
args: [ESC_LOCALE]
|
|
2598
|
+
}] }, { type: undefined, decorators: [{
|
|
2599
|
+
type: Inject,
|
|
2600
|
+
args: [ESC_THEME]
|
|
2601
|
+
}] }];
|
|
2602
|
+
}, propDecorators: { Data: [{
|
|
2603
|
+
type: Input
|
|
2604
|
+
}], DataArray: [{
|
|
2605
|
+
type: Input
|
|
2606
|
+
}], ColumnWidthPercentage: [{
|
|
2607
|
+
type: Input
|
|
2608
|
+
}], LabelWidth: [{
|
|
2609
|
+
type: Input
|
|
2610
|
+
}], LabelVerticalOrientationCutoffWidth: [{
|
|
2611
|
+
type: Input
|
|
2612
|
+
}], LabelRightWhenCompressed: [{
|
|
2613
|
+
type: Input
|
|
2614
|
+
}], LabelTopWhenCompressed: [{
|
|
2615
|
+
type: Input
|
|
2616
|
+
}] } });
|
|
2414
2617
|
|
|
2415
2618
|
/**
|
|
2416
2619
|
* Componente specifico per la graficazione di un grafico a Barre in modalità Stacked (una serie sopra l'altra)
|
|
@@ -2460,35 +2663,43 @@ class EsVerticalStackedChartComponent extends BaseChartComponent {
|
|
|
2460
2663
|
return new VerticalStackedChartService(this.adapter).graphicate(this.Data, settingsCasted);
|
|
2461
2664
|
}
|
|
2462
2665
|
}
|
|
2463
|
-
EsVerticalStackedChartComponent
|
|
2464
|
-
{ type:
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
}
|
|
2666
|
+
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 });
|
|
2667
|
+
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 });
|
|
2668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsVerticalStackedChartComponent, decorators: [{
|
|
2669
|
+
type: Component,
|
|
2670
|
+
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"] }]
|
|
2671
|
+
}], ctorParameters: function () {
|
|
2672
|
+
return [{ type: i0.ElementRef }, { type: ChartLoader }, { type: ChartDispatcher }, { type: BaseAdapter }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
2673
|
+
type: Inject,
|
|
2674
|
+
args: [PLATFORM_ID]
|
|
2675
|
+
}] }, { type: undefined, decorators: [{
|
|
2676
|
+
type: Inject,
|
|
2677
|
+
args: [ESC_LOGS]
|
|
2678
|
+
}] }, { type: undefined, decorators: [{
|
|
2679
|
+
type: Inject,
|
|
2680
|
+
args: [ESC_ANIMATIONS]
|
|
2681
|
+
}] }, { type: undefined, decorators: [{
|
|
2682
|
+
type: Inject,
|
|
2683
|
+
args: [ESC_LOCALE]
|
|
2684
|
+
}] }, { type: undefined, decorators: [{
|
|
2685
|
+
type: Inject,
|
|
2686
|
+
args: [ESC_THEME]
|
|
2687
|
+
}] }];
|
|
2688
|
+
}, propDecorators: { Data: [{
|
|
2689
|
+
type: Input
|
|
2690
|
+
}], DataArray: [{
|
|
2691
|
+
type: Input
|
|
2692
|
+
}], ColumnWidthPercentage: [{
|
|
2693
|
+
type: Input
|
|
2694
|
+
}], LabelWidth: [{
|
|
2695
|
+
type: Input
|
|
2696
|
+
}], LabelVerticalOrientationCutoffWidth: [{
|
|
2697
|
+
type: Input
|
|
2698
|
+
}], LabelRightWhenCompressed: [{
|
|
2699
|
+
type: Input
|
|
2700
|
+
}], LabelTopWhenCompressed: [{
|
|
2701
|
+
type: Input
|
|
2702
|
+
}] } });
|
|
2492
2703
|
|
|
2493
2704
|
/**
|
|
2494
2705
|
* Classe che identifica i dati per un grafico generico paginato
|
|
@@ -2510,89 +2721,6 @@ class PagedChartData {
|
|
|
2510
2721
|
}
|
|
2511
2722
|
}
|
|
2512
2723
|
|
|
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
2724
|
/** Componenti esportati dal modulo */
|
|
2597
2725
|
const COMPONENTS = [
|
|
2598
2726
|
EsChartComponent,
|
|
@@ -2620,14 +2748,32 @@ class EsChartsModule {
|
|
|
2620
2748
|
};
|
|
2621
2749
|
}
|
|
2622
2750
|
}
|
|
2623
|
-
EsChartsModule
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2751
|
+
EsChartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2752
|
+
EsChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, declarations: [EsChartComponent,
|
|
2753
|
+
EsLineChartComponent,
|
|
2754
|
+
EsPieChartComponent,
|
|
2755
|
+
EsVertical2DChartComponent,
|
|
2756
|
+
EsVerticalChartComponent,
|
|
2757
|
+
EsVerticalStackedChartComponent,
|
|
2758
|
+
PageChartSelector,
|
|
2759
|
+
EsAreaChartComponent], imports: [CommonModule], exports: [EsChartComponent,
|
|
2760
|
+
EsLineChartComponent,
|
|
2761
|
+
EsPieChartComponent,
|
|
2762
|
+
EsVertical2DChartComponent,
|
|
2763
|
+
EsVerticalChartComponent,
|
|
2764
|
+
EsVerticalStackedChartComponent,
|
|
2765
|
+
PageChartSelector,
|
|
2766
|
+
EsAreaChartComponent] });
|
|
2767
|
+
EsChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, providers: [ChartDispatcher], imports: [[CommonModule]] });
|
|
2768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsChartsModule, decorators: [{
|
|
2769
|
+
type: NgModule,
|
|
2770
|
+
args: [{
|
|
2771
|
+
imports: [CommonModule],
|
|
2772
|
+
declarations: [...COMPONENTS],
|
|
2773
|
+
providers: [ChartDispatcher],
|
|
2774
|
+
exports: [...COMPONENTS]
|
|
2775
|
+
}]
|
|
2776
|
+
}] });
|
|
2631
2777
|
|
|
2632
2778
|
/*
|
|
2633
2779
|
* Public API Surface of es-charts
|
|
@@ -2637,5 +2783,5 @@ EsChartsModule.decorators = [
|
|
|
2637
2783
|
* Generated bundle index. Do not edit.
|
|
2638
2784
|
*/
|
|
2639
2785
|
|
|
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
|
|
2641
|
-
//# sourceMappingURL=esfaenza-es-charts.
|
|
2786
|
+
export { AreaChartData, AreaChartSettings, BaseAdapter, BaseChartComponent, 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 };
|
|
2787
|
+
//# sourceMappingURL=esfaenza-es-charts.mjs.map
|