@visionaris-bruno/vs-echarts 9.1.0 → 9.2.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
|
@@ -5,6 +5,7 @@ import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption
|
|
|
5
5
|
import { CategoryAxisBaseOption, ValueAxisBaseOption } from 'echarts/types/src/coord/axisCommonTypes.js';
|
|
6
6
|
import { TooltipOption } from 'echarts/types/dist/shared';
|
|
7
7
|
import * as _visionaris_bruno_vs_echarts from '@visionaris-bruno/vs-echarts';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
|
|
9
10
|
type ChartKey = keyof Omit<IOptionsOverridesWrapper, "axis" | "tooltip">;
|
|
10
11
|
type ISeriesLayoutOpts = {
|
|
@@ -21,7 +22,7 @@ type VSEChartProduct = {
|
|
|
21
22
|
chartKey: ChartKey;
|
|
22
23
|
baseOptions: EChartsOption;
|
|
23
24
|
};
|
|
24
|
-
interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, DatasetConfigOptions = any> {
|
|
25
|
+
interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, DatasetConfigOptions = any, DataZoomConfigOptions = any> {
|
|
25
26
|
/** producto base */
|
|
26
27
|
baseProduct: VSEChartProduct;
|
|
27
28
|
reset(): void;
|
|
@@ -36,7 +37,7 @@ interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, D
|
|
|
36
37
|
addLegend(): void;
|
|
37
38
|
addCommons(): void;
|
|
38
39
|
addGraphic(): void;
|
|
39
|
-
addDataZoom(): void;
|
|
40
|
+
addDataZoom(opts?: DataZoomConfigOptions): void;
|
|
40
41
|
setValueFormatter(formatter: ChartValueFormatter): void;
|
|
41
42
|
setPalette(palette: string[]): void;
|
|
42
43
|
setColorResolver(resolver: ChartColorResolver): void;
|
|
@@ -122,7 +123,7 @@ interface IOptionsOverrides {
|
|
|
122
123
|
/** sankey options overrides */
|
|
123
124
|
sankey: ISankeyOptionsOverrides;
|
|
124
125
|
/** boxplot options overrides */
|
|
125
|
-
|
|
126
|
+
boxplot: IBoxplotOptionsOverrides;
|
|
126
127
|
/** heatmap calendar options overrides */
|
|
127
128
|
heatmapCalendar: IHeatmapCalendarOptionsOverrides;
|
|
128
129
|
}
|
|
@@ -178,7 +179,7 @@ interface IEChartData {
|
|
|
178
179
|
*
|
|
179
180
|
* Callback para formatear los valores numéricos de las celdas/series.
|
|
180
181
|
*/
|
|
181
|
-
type ChartValueFormatter = (value: number, key
|
|
182
|
+
type ChartValueFormatter = (value: number, key?: string) => string;
|
|
182
183
|
/**
|
|
183
184
|
* ChartColorResolver
|
|
184
185
|
*
|
|
@@ -207,6 +208,8 @@ interface IOptionsOverridesWrapper extends IOptionsOverrides {
|
|
|
207
208
|
declare function provideVSEcharts(): i0.Provider;
|
|
208
209
|
declare function defaultOptionsOverrides(): IOptionsOverridesWrapper;
|
|
209
210
|
|
|
211
|
+
declare function getActiveLocale(): VSEchartsLocale | undefined;
|
|
212
|
+
declare function setActiveLocale(locale: VSEchartsLocale | undefined): void;
|
|
210
213
|
declare class VSEchartsConfigService {
|
|
211
214
|
private vsEchartsConfig;
|
|
212
215
|
private readonly mapping;
|
|
@@ -763,12 +766,65 @@ declare class EchartsSankeyComponent extends BaseEchartsComponent {
|
|
|
763
766
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsSankeyComponent, "vs-echarts-sankey", never, {}, {}, never, never, true, never>;
|
|
764
767
|
}
|
|
765
768
|
|
|
766
|
-
declare class
|
|
769
|
+
declare class EChartsBoxplotComponent extends BaseEchartsComponent {
|
|
767
770
|
protected baseSeriesOptions: BoxplotSeriesOption;
|
|
768
771
|
protected baseProduct: VSEChartProduct;
|
|
769
772
|
protected builder: IEChartBuilder<BoxplotSeriesOption>;
|
|
770
773
|
protected director: VSECDirector;
|
|
771
774
|
protected make(): void;
|
|
775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsBoxplotComponent, never>;
|
|
776
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsBoxplotComponent, "vs-echarts-boxplot", never, {}, {}, never, never, true, never>;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
type BoxplotBuilderDatasetConfigOpts = {};
|
|
780
|
+
type BoxplotBuilderSeriesConfigOpts = Pick<ISeriesLayoutOpts, 'axisTypes'> & {};
|
|
781
|
+
type BoxplotBuilderDataZoomConfigOpts = {
|
|
782
|
+
axisTypes: {
|
|
783
|
+
x: 'value' | 'category';
|
|
784
|
+
y: 'category' | 'value';
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
declare class BoxplotBuilder implements IEChartBuilder<BoxplotSeriesOption, BoxplotBuilderSeriesConfigOpts, BoxplotBuilderDatasetConfigOpts, BoxplotBuilderDataZoomConfigOpts> {
|
|
788
|
+
baseProduct: VSEChartProduct;
|
|
789
|
+
protected translateService?: TranslateService;
|
|
790
|
+
protected valueFormatter: ChartValueFormatter;
|
|
791
|
+
protected palette: string[];
|
|
792
|
+
protected colorResolver?: ChartColorResolver;
|
|
793
|
+
protected result: EChartsOption;
|
|
794
|
+
constructor(baseProduct: VSEChartProduct);
|
|
795
|
+
reset(): void;
|
|
796
|
+
addDataset(data: IEChartData, opts?: BoxplotBuilderDatasetConfigOpts): void;
|
|
797
|
+
addCommons(): void;
|
|
798
|
+
addSeries(data: IEChartData, overrides: BoxplotSeriesOption, opts?: any): void;
|
|
799
|
+
addTooltip(data: IEChartData, overrides: ITooltipOptionsOverrides): void;
|
|
800
|
+
addDataZoom(opts?: BoxplotBuilderDataZoomConfigOpts): void;
|
|
801
|
+
addXAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type?: "category" | "value"): void;
|
|
802
|
+
addYAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type?: "category" | "value"): void;
|
|
803
|
+
addRadiusAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
804
|
+
addAngleAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
805
|
+
addLegend(): void;
|
|
806
|
+
addGraphic(): void;
|
|
807
|
+
addPolar(): void;
|
|
808
|
+
/**
|
|
809
|
+
* Permite inyectar un formateador de valores externo.
|
|
810
|
+
*/
|
|
811
|
+
setValueFormatter(formatter: ChartValueFormatter | undefined): void;
|
|
812
|
+
/**
|
|
813
|
+
* Permite inyectar una paleta de colores básica.
|
|
814
|
+
*/
|
|
815
|
+
setPalette(palette: string[] | undefined): void;
|
|
816
|
+
/**
|
|
817
|
+
* Permite inyectar un resolver de colores dinámico.
|
|
818
|
+
*/
|
|
819
|
+
setColorResolver(resolver: ChartColorResolver | undefined): void;
|
|
820
|
+
getResult(): EChartsOption;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare class EChartsHBoxplotComponent extends EChartsBoxplotComponent {
|
|
824
|
+
protected baseProduct: VSEChartProduct;
|
|
825
|
+
protected builder: BoxplotBuilder;
|
|
826
|
+
protected director: VSECDirector;
|
|
827
|
+
protected make(): void;
|
|
772
828
|
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsHBoxplotComponent, never>;
|
|
773
829
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHBoxplotComponent, "vs-echarts-hboxplot", never, {}, {}, never, never, true, never>;
|
|
774
830
|
}
|
|
@@ -787,5 +843,5 @@ declare class EChartsHeatmapCalendar extends BaseEchartsComponent {
|
|
|
787
843
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHeatmapCalendar, "vs-echarts-heatmapCalendar", never, {}, {}, never, never, true, never>;
|
|
788
844
|
}
|
|
789
845
|
|
|
790
|
-
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsHeatmapCalendar, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides, provideVSEcharts };
|
|
846
|
+
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsBoxplotComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsHeatmapCalendar, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides, getActiveLocale, provideVSEcharts, setActiveLocale };
|
|
791
847
|
export type { ChartColorResolver, ChartOrientation, ChartValueFormatter, EChartClickType, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IBoxplotOptionsOverrides, IEChartBuilder, IEChartData, IEChartDataNode, IEChartDimension, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, IHBoxplotOptionsOverrides, IHeatmapCalendarOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, ISankeyOptionsOverrides, IScatterOptionsOverrides, ISeriesLayoutOpts, ISunburstOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct, VSEchartsConfig, VSEchartsLocale };
|