@esfaenza/es-charts 11.2.7 → 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.
@@ -449,6 +449,7 @@ class ChartThemes {
449
449
  * 4) Creazione grafico 2
450
450
  *
451
451
  */
452
+ //@Injectable()
452
453
  class ChartLoader {
453
454
  /**
454
455
  * @ignore
@@ -630,13 +631,7 @@ class ChartLoader {
630
631
  if (this.logs)
631
632
  console.log("@esfaenza/es-charts: " + text);
632
633
  }
633
- }
634
- ChartLoader.decorators = [
635
- { type: Injectable }
636
- ];
637
- ChartLoader.ctorParameters = () => [
638
- { type: Boolean, decorators: [{ type: Inject, args: [ESC_LOGS,] }] }
639
- ];
634
+ }
640
635
 
641
636
  /**
642
637
  * Componente Grafico Base che gestisce tutte le cose comuni dei vari grafici istanziabili, come la presenza o menu di una legenda,
@@ -2571,7 +2566,7 @@ class EsChartsModule {
2571
2566
  { provide: ESC_THEME, useValue: (config === null || config === void 0 ? void 0 : config.theme) || 'spiritedaway' },
2572
2567
  { provide: ESC_LOGS, useValue: (config === null || config === void 0 ? void 0 : config.debugMode) == null ? false : config === null || config === void 0 ? void 0 : config.debugMode },
2573
2568
  { provide: BaseAdapter, useClass: (config === null || config === void 0 ? void 0 : config.adapter) || BaseAdapter },
2574
- { provide: ChartLoader, useClass: ChartLoader }
2569
+ { 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) }
2575
2570
  ]
2576
2571
  };
2577
2572
  }