@visionaris-bruno/vs-echarts 8.5.1 → 8.6.0

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/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import * as i0 from '@angular/core';
2
- import { OnChanges, OnDestroy, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
3
1
  import * as echarts from 'echarts';
4
2
  import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption, FunnelSeriesOption, SunburstSeriesOption, SankeySeriesOption, BoxplotSeriesOption, EChartsOption, SeriesOption } from 'echarts';
5
3
  import { CategoryAxisBaseOption, ValueAxisBaseOption } from 'echarts/types/src/coord/axisCommonTypes.js';
6
4
  import { TooltipOption } from 'echarts/types/dist/shared';
5
+ import * as i0 from '@angular/core';
6
+ import { OnChanges, OnDestroy, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
7
+ import * as _visionaris_bruno_vs_echarts from '@visionaris-bruno/vs-echarts';
7
8
 
8
9
  interface ISeriesLayoutOpts {
9
10
  coordinateSystem?: 'cartesian2d' | 'polar';
@@ -137,6 +138,11 @@ type NGXEchartsSelectChangeEventData = {
137
138
  }[];
138
139
  escapeConnect: unknown;
139
140
  };
141
+ type VSEchartsLocale = 'ZH' | 'EN' | 'AR' | 'CS' | 'DE' | 'EL' | 'ES' | 'FA' | 'FI' | 'FR' | 'HU' | 'IT' | 'JA' | 'KO' | 'LV' | 'nb-NO' | 'NL' | 'PL' | 'PT-br' | 'RO' | 'RU' | 'SI' | 'SV' | 'TH' | 'TR' | 'UK' | 'VI';
142
+ interface VSEchartsConfig {
143
+ renderer?: 'canvas' | 'svg';
144
+ locale?: VSEchartsLocale;
145
+ }
140
146
 
141
147
  /**
142
148
  * IEChartDataNode
@@ -189,14 +195,17 @@ interface IOptionsOverridesWrapper extends IOptionsOverrides {
189
195
  hBoxplot: IHBoxplotOptionsOverrides;
190
196
  }
191
197
 
192
- declare function initializeEcharts(): void;
193
- /**
194
- * Provee la configuración de ECharts para ngx-echarts.
195
- * Llama automáticamente a la inicialización de módulos.
196
- */
197
- declare function provideVSEcharts(): i0.Provider;
198
198
  declare function defaultOptionsOverrides(): IOptionsOverridesWrapper;
199
199
 
200
+ declare class VSEchartsConfigService {
201
+ private vsEchartsConfig;
202
+ private readonly mapping;
203
+ constructor(vsEchartsConfig: VSEchartsConfig);
204
+ setLocale(language: string): void;
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<VSEchartsConfigService, never>;
206
+ static ɵprov: i0.ɵɵInjectableDeclaration<VSEchartsConfigService>;
207
+ }
208
+
200
209
  type MakeOpts = {
201
210
  valueFormatter?: EChartValueFormatter;
202
211
  palette?: string[];
@@ -267,12 +276,14 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
267
276
  */
268
277
  protected abstract baseSeriesOptions: SeriesOption;
269
278
  protected chartInstance?: echarts.ECharts;
279
+ protected vsEchartsConfig: _visionaris_bruno_vs_echarts.VSEchartsConfig | null;
270
280
  /** Opciones de inicializacion de echarts
271
281
  *
272
282
  * NgxEchartsDirective.initOpts
273
283
  */
274
284
  initOptions: {
275
- renderer: string;
285
+ renderer: "canvas" | "svg";
286
+ locale: _visionaris_bruno_vs_echarts.VSEchartsLocale | undefined;
276
287
  };
277
288
  constructor();
278
289
  ngOnChanges(changes: SimpleChanges): void;
@@ -755,5 +766,5 @@ declare class EChartsHBoxplotComponent extends BaseEchartsComponent {
755
766
  static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHBoxplotComponent, "vs-echarts-hboxplot", never, {}, {}, never, never, true, never>;
756
767
  }
757
768
 
758
- export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, defaultOptionsOverrides, initializeEcharts, provideVSEcharts };
759
- export type { ChartColorResolver, ChartOrientation, EChartClickType, EChartValueFormatter, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IBoxplotOptionsOverrides, IEChartBuilder, IEChartData, IEChartDataNode, IEChartDimension, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, IHBoxplotOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, ISankeyOptionsOverrides, IScatterOptionsOverrides, ISeriesLayoutOpts, ISunburstOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct };
769
+ export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides };
770
+ export type { ChartColorResolver, ChartOrientation, EChartClickType, EChartValueFormatter, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IBoxplotOptionsOverrides, IEChartBuilder, IEChartData, IEChartDataNode, IEChartDimension, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, IHBoxplotOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, ISankeyOptionsOverrides, IScatterOptionsOverrides, ISeriesLayoutOpts, ISunburstOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct, VSEchartsConfig, VSEchartsLocale };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visionaris-bruno/vs-echarts",
3
- "version": "8.5.1",
3
+ "version": "8.6.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",