@visionaris-bruno/vs-echarts 6.0.0 → 6.1.1
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
|
@@ -3,7 +3,7 @@ import { OnChanges, OnDestroy, ElementRef, EventEmitter, SimpleChanges } from '@
|
|
|
3
3
|
import * as echarts from 'echarts';
|
|
4
4
|
import { LineSeriesOption, BarSeriesOption, PieSeriesOption, EChartsOption, SeriesOption } from 'echarts';
|
|
5
5
|
import { CategoryAxisBaseOption, ValueAxisBaseOption } from 'echarts/types/src/coord/axisCommonTypes.js';
|
|
6
|
-
import { TooltipOption } from 'echarts/types/dist/shared';
|
|
6
|
+
import { TooltipOption, ECBasicOption } from 'echarts/types/dist/shared';
|
|
7
7
|
|
|
8
8
|
type ChartKey = keyof Omit<IOptionsOverridesWrapper, "axis" | "tooltip">;
|
|
9
9
|
/** los recibira el director
|
|
@@ -14,7 +14,8 @@ type VSEChartProduct = {
|
|
|
14
14
|
baseOptions: EChartsOption;
|
|
15
15
|
};
|
|
16
16
|
interface IEChartBuilder {
|
|
17
|
-
|
|
17
|
+
/** producto base */
|
|
18
|
+
baseProduct: VSEChartProduct;
|
|
18
19
|
reset(): void;
|
|
19
20
|
addSeries(data: IEChartData, overrides: SeriesOption & BarSeriesOption & LineSeriesOption): void;
|
|
20
21
|
addTooltip(data: IEChartData, overrides: ITooltipOptionsOverrides): void;
|
|
@@ -181,7 +182,7 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
181
182
|
/**
|
|
182
183
|
* producto base/inicial para el builder.
|
|
183
184
|
*/
|
|
184
|
-
protected abstract
|
|
185
|
+
protected abstract baseProduct: VSEChartProduct;
|
|
185
186
|
protected abstract builder: IEChartBuilder;
|
|
186
187
|
/**
|
|
187
188
|
* director de construcción.
|
|
@@ -203,8 +204,16 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
203
204
|
/** Estado de selección para filtros cruzados */
|
|
204
205
|
protected selectedCategoryIndex: number | null;
|
|
205
206
|
protected selectedSeriesIndex: number | null;
|
|
207
|
+
/** Opciones de inicializacion de echarts
|
|
208
|
+
*
|
|
209
|
+
* NgxEchartsDirective.initOpts
|
|
210
|
+
*/
|
|
211
|
+
initOptions: {
|
|
212
|
+
renderer: string;
|
|
213
|
+
};
|
|
206
214
|
/** Opciones configuradas para ngx-echarts */
|
|
207
215
|
chartOptions: any;
|
|
216
|
+
mergeOptions: ECBasicOption;
|
|
208
217
|
constructor();
|
|
209
218
|
ngOnChanges(changes: SimpleChanges): void;
|
|
210
219
|
ngOnDestroy(): void;
|
|
@@ -241,7 +250,9 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
241
250
|
* el comportamiento base (detectar inputs relevantes y actualizar el chart).
|
|
242
251
|
*/
|
|
243
252
|
protected onInputChanges(changes: SimpleChanges): void;
|
|
244
|
-
protected abstract updateChartOptions(
|
|
253
|
+
protected abstract updateChartOptions(opts?: {
|
|
254
|
+
notMerge?: boolean;
|
|
255
|
+
}): void;
|
|
245
256
|
/**
|
|
246
257
|
* Gatilla actualización en ngx-echarts
|
|
247
258
|
*/
|
|
@@ -262,12 +273,12 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
262
273
|
*
|
|
263
274
|
*/
|
|
264
275
|
declare class RingBuilder implements IEChartBuilder {
|
|
265
|
-
|
|
276
|
+
baseProduct: VSEChartProduct;
|
|
266
277
|
protected valueFormatter: EChartValueFormatter;
|
|
267
278
|
protected palette: string[];
|
|
268
279
|
protected colorResolver?: ChartColorResolver;
|
|
269
280
|
protected result: EChartsOption;
|
|
270
|
-
constructor(
|
|
281
|
+
constructor(baseProduct: VSEChartProduct);
|
|
271
282
|
reset(): void;
|
|
272
283
|
addCommons(): void;
|
|
273
284
|
addSeries(data: IEChartData, overrides: SeriesOption): void;
|
|
@@ -298,7 +309,7 @@ declare class RingBuilder implements IEChartBuilder {
|
|
|
298
309
|
*/
|
|
299
310
|
declare class EchartsRingComponent extends BaseEchartsComponent {
|
|
300
311
|
protected baseSeriesOptions: PieSeriesOption;
|
|
301
|
-
protected
|
|
312
|
+
protected baseProduct: VSEChartProduct;
|
|
302
313
|
protected builder: RingBuilder;
|
|
303
314
|
protected director: VSECDirector;
|
|
304
315
|
private lastSelectedSeriesIndex;
|
|
@@ -323,7 +334,9 @@ declare class EchartsRingComponent extends BaseEchartsComponent {
|
|
|
323
334
|
* Actualiza el texto del Graphic central y persiste la selección en el modelo de opciones.
|
|
324
335
|
*/
|
|
325
336
|
private setGraphicText;
|
|
326
|
-
protected updateChartOptions(
|
|
337
|
+
protected updateChartOptions(opts?: {
|
|
338
|
+
notMerge?: boolean;
|
|
339
|
+
}): void;
|
|
327
340
|
static ɵfac: i0.ɵɵFactoryDeclaration<EchartsRingComponent, never>;
|
|
328
341
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsRingComponent, "vs-echarts-ring", never, {}, {}, never, never, true, never>;
|
|
329
342
|
}
|
|
@@ -336,12 +349,12 @@ declare class EchartsRingComponent extends BaseEchartsComponent {
|
|
|
336
349
|
* Puede verse utilizado en graficos como Lineas y Bars. Siempre que se pueda priorizar utilizar este.
|
|
337
350
|
*/
|
|
338
351
|
declare class EChartBuilder implements IEChartBuilder {
|
|
339
|
-
|
|
352
|
+
baseProduct: VSEChartProduct;
|
|
340
353
|
protected valueFormatter: EChartValueFormatter;
|
|
341
354
|
protected palette: string[];
|
|
342
355
|
protected colorResolver?: ChartColorResolver;
|
|
343
356
|
protected result: EChartsOption;
|
|
344
|
-
constructor(
|
|
357
|
+
constructor(baseProduct: VSEChartProduct);
|
|
345
358
|
reset(): void;
|
|
346
359
|
addCommons(): void;
|
|
347
360
|
/**
|
|
@@ -398,8 +411,12 @@ declare abstract class EchartsBarComponent extends BaseEchartsComponent {
|
|
|
398
411
|
* Opciones escenciales inmutables estaticas comunes a todos los charts de barras.
|
|
399
412
|
*/
|
|
400
413
|
protected baseSeriesOptions: BarSeriesOption;
|
|
401
|
-
|
|
402
|
-
|
|
414
|
+
/** variante de producto base/inicial para el builder.
|
|
415
|
+
*
|
|
416
|
+
* Utilizar para crear una variante (extender) un base producto.
|
|
417
|
+
*/
|
|
418
|
+
protected abstract variantBaseProduct: VSEChartProduct;
|
|
419
|
+
protected baseProduct: VSEChartProduct;
|
|
403
420
|
protected builder: EChartBuilder;
|
|
404
421
|
protected director: VSECDirector;
|
|
405
422
|
constructor();
|
|
@@ -417,7 +434,7 @@ declare abstract class EchartsBarComponent extends BaseEchartsComponent {
|
|
|
417
434
|
|
|
418
435
|
declare class EChartsHBarComponent extends EchartsBarComponent {
|
|
419
436
|
private variantSeriesOptionsBase;
|
|
420
|
-
protected
|
|
437
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
421
438
|
protected builder: EChartBuilder;
|
|
422
439
|
protected director: VSECDirector;
|
|
423
440
|
protected make(makeOpts: MakeBarOpts): void;
|
|
@@ -427,7 +444,7 @@ declare class EChartsHBarComponent extends EchartsBarComponent {
|
|
|
427
444
|
|
|
428
445
|
declare class EChartsBarStackedComponent extends EchartsBarComponent {
|
|
429
446
|
private variantSeriesOptionsBase;
|
|
430
|
-
protected
|
|
447
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
431
448
|
protected builder: EChartBuilder;
|
|
432
449
|
protected director: VSECDirector;
|
|
433
450
|
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsBarStackedComponent, never>;
|
|
@@ -436,7 +453,7 @@ declare class EChartsBarStackedComponent extends EchartsBarComponent {
|
|
|
436
453
|
|
|
437
454
|
declare class EChartsHBarStackedComponent extends EchartsBarComponent {
|
|
438
455
|
private variantSeriesOptionsBase;
|
|
439
|
-
protected
|
|
456
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
440
457
|
protected builder: EChartBuilder;
|
|
441
458
|
protected director: VSECDirector;
|
|
442
459
|
protected make(makeOpts: MakeBarOpts): void;
|
|
@@ -446,7 +463,7 @@ declare class EChartsHBarStackedComponent extends EchartsBarComponent {
|
|
|
446
463
|
|
|
447
464
|
declare class EChartsBarStackedRadialComponent extends EchartsBarComponent {
|
|
448
465
|
private variantSeriesOptionsBase;
|
|
449
|
-
protected
|
|
466
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
450
467
|
protected builder: EChartBuilder;
|
|
451
468
|
protected director: VSECDirector;
|
|
452
469
|
protected make(makeOpts: MakeBarOpts): void;
|
|
@@ -454,11 +471,16 @@ declare class EChartsBarStackedRadialComponent extends EchartsBarComponent {
|
|
|
454
471
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsBarStackedRadialComponent, "vs-echarts-bar", never, {}, {}, never, never, true, never>;
|
|
455
472
|
}
|
|
456
473
|
|
|
457
|
-
declare class EchartsLineComponent extends BaseEchartsComponent {
|
|
474
|
+
declare abstract class EchartsLineComponent extends BaseEchartsComponent {
|
|
458
475
|
protected baseSeriesOptions: LineSeriesOption;
|
|
459
|
-
protected
|
|
476
|
+
protected baseProduct: VSEChartProduct;
|
|
460
477
|
protected builder: EChartBuilder;
|
|
461
478
|
protected director: VSECDirector;
|
|
479
|
+
/** variante de producto base/inicial para el builder.
|
|
480
|
+
*
|
|
481
|
+
* Utilizar para crear una variante (extender) un base producto.
|
|
482
|
+
*/
|
|
483
|
+
protected abstract variantBaseProduct: VSEChartProduct;
|
|
462
484
|
constructor();
|
|
463
485
|
protected onInputChanges(changes: SimpleChanges): void;
|
|
464
486
|
protected make(makeOpts: MakeLineOpts): void;
|
|
@@ -469,7 +491,7 @@ declare class EchartsLineComponent extends BaseEchartsComponent {
|
|
|
469
491
|
|
|
470
492
|
declare class EChartsAreaComponent extends EchartsLineComponent {
|
|
471
493
|
private variantSeriesOptionsBase;
|
|
472
|
-
protected
|
|
494
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
473
495
|
protected builder: EChartBuilder;
|
|
474
496
|
protected director: VSECDirector;
|
|
475
497
|
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsAreaComponent, never>;
|
|
@@ -478,7 +500,7 @@ declare class EChartsAreaComponent extends EchartsLineComponent {
|
|
|
478
500
|
|
|
479
501
|
declare class EChartsAreaStackComponent extends EchartsLineComponent {
|
|
480
502
|
private variantSeriesOptionsBase;
|
|
481
|
-
protected
|
|
503
|
+
protected variantBaseProduct: VSEChartProduct;
|
|
482
504
|
protected builder: EChartBuilder;
|
|
483
505
|
protected director: VSECDirector;
|
|
484
506
|
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsAreaStackComponent, never>;
|