@esfaenza/es-charts 11.2.4 → 11.2.8
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/bundles/esfaenza-es-charts.umd.js +9 -17
- package/bundles/esfaenza-es-charts.umd.js.map +1 -1
- package/bundles/esfaenza-es-charts.umd.min.js +1 -1
- package/bundles/esfaenza-es-charts.umd.min.js.map +1 -1
- package/esfaenza-es-charts.metadata.json +1 -1
- package/esm2015/lib/components/specializations/es-area-chart.component.js +2 -5
- package/esm2015/lib/es-charts.module.js +4 -3
- package/esm2015/lib/models/core/classes/ChartLoader.js +4 -13
- package/esm2015/lib/tokens.js +2 -2
- package/fesm2015/esfaenza-es-charts.js +9 -17
- package/fesm2015/esfaenza-es-charts.js.map +1 -1
- package/lib/components/specializations/es-area-chart.component.d.ts +1 -3
- package/package.json +1 -1
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
/**
|
|
669
669
|
* Token che identifica l'utilizzo o meno del sistema di Log per l'intera libreria
|
|
670
670
|
*/
|
|
671
|
-
var ESC_LOGS = new core.InjectionToken('
|
|
671
|
+
var ESC_LOGS = new core.InjectionToken('ESC_LOGS');
|
|
672
672
|
|
|
673
673
|
/**
|
|
674
674
|
* Classe che si occupa del dispatch delle operazioni di rendering dei grafici utilizzando una coda per permettere ad ogni grafico di avere temi e localizzazione custom
|
|
@@ -911,6 +911,7 @@
|
|
|
911
911
|
* 4) Creazione grafico 2
|
|
912
912
|
*
|
|
913
913
|
*/
|
|
914
|
+
//@Injectable()
|
|
914
915
|
var ChartLoader = /** @class */ (function () {
|
|
915
916
|
/**
|
|
916
917
|
* @ignore
|
|
@@ -943,11 +944,10 @@
|
|
|
943
944
|
ChartLoader.prototype.applyAnimations = function (chartsCore) {
|
|
944
945
|
var _this = this;
|
|
945
946
|
if (!this.AnimationsAreLoaded) {
|
|
946
|
-
var thisref_1 = this;
|
|
947
947
|
return this.importIfNeeded('themes', ChartThemes.animated).then(function () {
|
|
948
948
|
_this.log("CORE: Applying theme " + ChartThemes.animated);
|
|
949
949
|
chartsCore.useTheme(_this.themeCache[ChartThemes.animated]);
|
|
950
|
-
|
|
950
|
+
_this.AnimationsAreLoaded = true;
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
else {
|
|
@@ -993,11 +993,10 @@
|
|
|
993
993
|
return new Promise(function (resolve) { resolve(true); });
|
|
994
994
|
}
|
|
995
995
|
// Il tema è diverso dal precedente e non è il tema vuoto --> Importo il tema specificato se non presente in memoria e lo applico al grafico attuale
|
|
996
|
-
var thisref = this;
|
|
997
996
|
return this.importIfNeeded('themes', theme).then(function () {
|
|
998
997
|
_this.log("CORE: Applying theme " + theme);
|
|
999
998
|
chartsCore.useTheme(_this.themeCache[theme]);
|
|
1000
|
-
|
|
999
|
+
_this.LastLoadedTheme = theme;
|
|
1001
1000
|
});
|
|
1002
1001
|
};
|
|
1003
1002
|
/**
|
|
@@ -1099,13 +1098,7 @@
|
|
|
1099
1098
|
console.log("@esfaenza/es-charts: " + text);
|
|
1100
1099
|
};
|
|
1101
1100
|
return ChartLoader;
|
|
1102
|
-
}());
|
|
1103
|
-
ChartLoader.decorators = [
|
|
1104
|
-
{ type: core.Injectable }
|
|
1105
|
-
];
|
|
1106
|
-
ChartLoader.ctorParameters = function () { return [
|
|
1107
|
-
{ type: Boolean, decorators: [{ type: core.Inject, args: [ESC_LOGS,] }] }
|
|
1108
|
-
]; };
|
|
1101
|
+
}());
|
|
1109
1102
|
|
|
1110
1103
|
/**
|
|
1111
1104
|
* Componente Grafico Base che gestisce tutte le cose comuni dei vari grafici istanziabili, come la presenza o menu di una legenda,
|
|
@@ -2477,10 +2470,9 @@
|
|
|
2477
2470
|
/**
|
|
2478
2471
|
* @ignore
|
|
2479
2472
|
*/
|
|
2480
|
-
function EsAreaChartComponent(el, ChartLoader, ChartDispatcher, adapter,
|
|
2473
|
+
function EsAreaChartComponent(el, ChartLoader, ChartDispatcher, adapter, zone, platformId, ESC_LOGS, ESC_ANIMATIONS, ESC_LOCALE, ESC_THEME) {
|
|
2481
2474
|
var _this = _super.call(this, el, platformId, zone, ChartLoader, ChartDispatcher, ESC_LOGS, ESC_ANIMATIONS, ESC_LOCALE, ESC_THEME) || this;
|
|
2482
2475
|
_this.adapter = adapter;
|
|
2483
|
-
_this.dateService = dateService;
|
|
2484
2476
|
return _this;
|
|
2485
2477
|
}
|
|
2486
2478
|
/**
|
|
@@ -2529,7 +2521,6 @@
|
|
|
2529
2521
|
{ type: ChartLoader },
|
|
2530
2522
|
{ type: ChartDispatcher },
|
|
2531
2523
|
{ type: BaseAdapter },
|
|
2532
|
-
{ type: extensions.DateService },
|
|
2533
2524
|
{ type: core.NgZone },
|
|
2534
2525
|
{ type: Object, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
|
|
2535
2526
|
{ type: Boolean, decorators: [{ type: core.Inject, args: [ESC_LOGS,] }] },
|
|
@@ -3094,7 +3085,8 @@
|
|
|
3094
3085
|
{ provide: ESC_ANIMATIONS, useValue: (config === null || config === void 0 ? void 0 : config.animations) == null ? true : config === null || config === void 0 ? void 0 : config.animations },
|
|
3095
3086
|
{ provide: ESC_THEME, useValue: (config === null || config === void 0 ? void 0 : config.theme) || 'spiritedaway' },
|
|
3096
3087
|
{ provide: ESC_LOGS, useValue: (config === null || config === void 0 ? void 0 : config.debugMode) == null ? false : config === null || config === void 0 ? void 0 : config.debugMode },
|
|
3097
|
-
{ provide: BaseAdapter, useClass: (config === null || config === void 0 ? void 0 : config.adapter) || BaseAdapter }
|
|
3088
|
+
{ provide: BaseAdapter, useClass: (config === null || config === void 0 ? void 0 : config.adapter) || BaseAdapter },
|
|
3089
|
+
{ provide: ChartLoader, useValue: new ChartLoader((config === null || config === void 0 ? void 0 : config.debugMode) == null ? false : config === null || config === void 0 ? void 0 : config.debugMode) }
|
|
3098
3090
|
]
|
|
3099
3091
|
};
|
|
3100
3092
|
};
|
|
@@ -3104,7 +3096,7 @@
|
|
|
3104
3096
|
{ type: core.NgModule, args: [{
|
|
3105
3097
|
imports: [common.CommonModule],
|
|
3106
3098
|
declarations: __spread(COMPONENTS),
|
|
3107
|
-
providers: [
|
|
3099
|
+
providers: [ChartDispatcher],
|
|
3108
3100
|
exports: __spread(COMPONENTS)
|
|
3109
3101
|
},] }
|
|
3110
3102
|
];
|