@codeplex-sac/graficos 0.0.19 → 0.0.22
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.cjs +32 -158
- package/index.d.ts +22 -5
- package/index.js +5254 -26175
- package/lib/_nucleo/animaciones.d.ts +30 -0
- package/lib/_nucleo/ejes.d.ts +18 -0
- package/lib/_nucleo/grafico-tooltip.d.ts +10 -0
- package/lib/_nucleo/index.d.ts +5 -0
- package/lib/_nucleo/periodo.d.ts +16 -0
- package/lib/_nucleo/tipos.d.ts +57 -0
- package/lib/_nucleo/usar-paleta-grafico.d.ts +10 -0
- package/lib/grafico-area/grafico-area.d.ts +18 -0
- package/lib/grafico-area/index.d.ts +1 -0
- package/lib/grafico-barra-linea/grafico-barra-linea.d.ts +11 -0
- package/lib/grafico-barra-linea/index.d.ts +1 -0
- package/lib/grafico-barras/grafico-barras.d.ts +18 -0
- package/lib/grafico-barras/index.d.ts +1 -0
- package/lib/grafico-barras-apiladas/grafico-barras-apiladas.d.ts +14 -0
- package/lib/grafico-barras-apiladas/index.d.ts +1 -0
- package/lib/grafico-barras-divergentes/grafico-barras-divergentes.d.ts +13 -0
- package/lib/grafico-barras-divergentes/index.d.ts +1 -0
- package/lib/grafico-barras-multiples/grafico-barras-multiples.d.ts +14 -0
- package/lib/grafico-barras-multiples/index.d.ts +1 -0
- package/lib/grafico-burbujas/grafico-burbujas.d.ts +15 -0
- package/lib/grafico-burbujas/index.d.ts +1 -0
- package/lib/grafico-comparativa/grafico-comparativa.d.ts +9 -0
- package/lib/grafico-comparativa/index.d.ts +1 -0
- package/lib/grafico-desglose/grafico-desglose.d.ts +10 -0
- package/lib/grafico-desglose/index.d.ts +1 -0
- package/lib/grafico-dispersion/grafico-dispersion.d.ts +14 -0
- package/lib/grafico-dispersion/index.d.ts +1 -0
- package/lib/grafico-embudo/grafico-embudo.d.ts +10 -0
- package/lib/grafico-embudo/index.d.ts +1 -0
- package/lib/grafico-lineas/grafico-lineas.d.ts +18 -0
- package/lib/grafico-lineas/index.d.ts +1 -0
- package/lib/grafico-mapa-calor/grafico-mapa-calor.d.ts +16 -0
- package/lib/grafico-mapa-calor/index.d.ts +1 -0
- package/lib/grafico-medidor/grafico-medidor.d.ts +11 -0
- package/lib/grafico-medidor/index.d.ts +1 -0
- package/lib/grafico-pastel/grafico-pastel.d.ts +17 -0
- package/lib/grafico-pastel/index.d.ts +1 -0
- package/lib/grafico-puntos-conectados/grafico-puntos-conectados.d.ts +12 -0
- package/lib/grafico-puntos-conectados/index.d.ts +1 -0
- package/lib/grafico-radar/grafico-radar.d.ts +19 -0
- package/lib/grafico-radar/index.d.ts +1 -0
- package/lib/grafico-treemap/grafico-treemap.d.ts +22 -0
- package/lib/grafico-treemap/index.d.ts +1 -0
- package/lib/grafico-velas/grafico-velas.d.ts +11 -0
- package/lib/grafico-velas/index.d.ts +1 -0
- package/package.json +5 -2
- package/lib/area-chart.d.ts +0 -11
- package/lib/area-chart.stories.d.ts +0 -8
- package/lib/bar-chart.d.ts +0 -8
- package/lib/bar-chart.stories.d.ts +0 -7
- package/lib/donut-chart.d.ts +0 -12
- package/lib/donut-chart.stories.d.ts +0 -9
- package/lib/line-chart.d.ts +0 -8
- package/lib/line-chart.stories.d.ts +0 -7
- package/lib/pie-chart.d.ts +0 -8
- package/lib/pie-chart.stories.d.ts +0 -7
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const entradaBarraHorizontal: {
|
|
2
|
+
name: string;
|
|
3
|
+
styles: string;
|
|
4
|
+
anim: 1;
|
|
5
|
+
toString: () => string;
|
|
6
|
+
} & string;
|
|
7
|
+
export declare const entradaBarraVertical: {
|
|
8
|
+
name: string;
|
|
9
|
+
styles: string;
|
|
10
|
+
anim: 1;
|
|
11
|
+
toString: () => string;
|
|
12
|
+
} & string;
|
|
13
|
+
export declare const entradaTrazo: {
|
|
14
|
+
name: string;
|
|
15
|
+
styles: string;
|
|
16
|
+
anim: 1;
|
|
17
|
+
toString: () => string;
|
|
18
|
+
} & string;
|
|
19
|
+
export declare const aparecer: {
|
|
20
|
+
name: string;
|
|
21
|
+
styles: string;
|
|
22
|
+
anim: 1;
|
|
23
|
+
toString: () => string;
|
|
24
|
+
} & string;
|
|
25
|
+
export declare const pulso: {
|
|
26
|
+
name: string;
|
|
27
|
+
styles: string;
|
|
28
|
+
anim: 1;
|
|
29
|
+
toString: () => string;
|
|
30
|
+
} & string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface LineasCuadriculaProps {
|
|
2
|
+
posiciones: number[];
|
|
3
|
+
orientacion?: 'horizontal' | 'vertical';
|
|
4
|
+
}
|
|
5
|
+
export declare const LineasCuadricula: ({ posiciones, orientacion, }: LineasCuadriculaProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export interface MarcaEje {
|
|
7
|
+
posicion: number;
|
|
8
|
+
texto: string;
|
|
9
|
+
anclaje?: 'inicio' | 'centro' | 'fin';
|
|
10
|
+
}
|
|
11
|
+
export interface EjeYProps {
|
|
12
|
+
marcas: MarcaEje[];
|
|
13
|
+
}
|
|
14
|
+
export declare const EjeY: ({ marcas }: EjeYProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface EjeXProps {
|
|
16
|
+
marcas: MarcaEje[];
|
|
17
|
+
}
|
|
18
|
+
export declare const EjeX: ({ marcas }: EjeXProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const CodeplexGraficoTooltip: ({ children }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const GraficoTooltipDisparador: React.ForwardRefExoticComponent<{
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
} & React.RefAttributes<SVGGElement>>;
|
|
8
|
+
export declare const GraficoTooltipContenido: ({ children }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PuntoDato } from './tipos';
|
|
2
|
+
export type CodeplexPeriodo = 'diario' | 'semanal' | 'quincenal' | 'mensual' | 'anual';
|
|
3
|
+
export type CodeplexAgregacion = 'suma' | 'promedio' | 'maximo' | 'minimo' | 'ultimo' | 'primero';
|
|
4
|
+
export interface CodeplexRangoFecha {
|
|
5
|
+
desde?: Date;
|
|
6
|
+
hasta?: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface CodeplexOpcionesPeriodo {
|
|
9
|
+
periodo?: CodeplexPeriodo;
|
|
10
|
+
rango?: CodeplexRangoFecha;
|
|
11
|
+
agregacion?: CodeplexAgregacion;
|
|
12
|
+
}
|
|
13
|
+
export declare const parsearFecha: (texto: string) => Date | null;
|
|
14
|
+
export declare const formatearFecha: (fecha: Date) => string;
|
|
15
|
+
export declare const filtrarPorRango: (datos: PuntoDato[], rango?: CodeplexRangoFecha) => PuntoDato[];
|
|
16
|
+
export declare const agruparPorPeriodo: (datos: PuntoDato[], opciones?: CodeplexOpcionesPeriodo) => PuntoDato[];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CodeplexGraficoColor = 'primario' | 'secundario' | 'exito' | 'error' | 'advertencia' | 'info';
|
|
3
|
+
export interface PuntoDato {
|
|
4
|
+
etiqueta: string | number | Date;
|
|
5
|
+
valor: number;
|
|
6
|
+
icono?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface SerieDato {
|
|
9
|
+
nombre: string;
|
|
10
|
+
datos: PuntoDato[];
|
|
11
|
+
color?: CodeplexGraficoColor;
|
|
12
|
+
}
|
|
13
|
+
export interface PuntoCategoria {
|
|
14
|
+
clave: string;
|
|
15
|
+
valor: number;
|
|
16
|
+
color?: CodeplexGraficoColor;
|
|
17
|
+
icono?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export interface SerieCategoria {
|
|
20
|
+
nombre: string;
|
|
21
|
+
valores: number[];
|
|
22
|
+
color?: CodeplexGraficoColor;
|
|
23
|
+
}
|
|
24
|
+
export interface PuntoDispersion {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
etiqueta?: string;
|
|
28
|
+
color?: CodeplexGraficoColor;
|
|
29
|
+
icono?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export interface SerieDispersion {
|
|
32
|
+
nombre: string;
|
|
33
|
+
puntos: PuntoDispersion[];
|
|
34
|
+
color?: CodeplexGraficoColor;
|
|
35
|
+
}
|
|
36
|
+
export interface PuntoDivergente {
|
|
37
|
+
clave: string;
|
|
38
|
+
valor: number;
|
|
39
|
+
}
|
|
40
|
+
export interface PuntoBarraLinea {
|
|
41
|
+
clave: string;
|
|
42
|
+
barra: number;
|
|
43
|
+
linea: number;
|
|
44
|
+
}
|
|
45
|
+
export interface PuntoOHLC {
|
|
46
|
+
etiqueta: string;
|
|
47
|
+
apertura: number;
|
|
48
|
+
maximo: number;
|
|
49
|
+
minimo: number;
|
|
50
|
+
cierre: number;
|
|
51
|
+
}
|
|
52
|
+
export interface MargenGrafico {
|
|
53
|
+
arriba: number;
|
|
54
|
+
derecha: number;
|
|
55
|
+
abajo: number;
|
|
56
|
+
izquierda: number;
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CodeplexGraficoColor } from './tipos';
|
|
2
|
+
export interface PaletaGrafico {
|
|
3
|
+
color: (nombre?: CodeplexGraficoColor) => string;
|
|
4
|
+
contraste: (nombre?: CodeplexGraficoColor) => string;
|
|
5
|
+
serie: (indice: number) => string;
|
|
6
|
+
cuadricula: string;
|
|
7
|
+
ejeTexto: string;
|
|
8
|
+
superficie: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const usarPaletaGrafico: () => PaletaGrafico;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoDato, SerieDato } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoAreaCurva = 'lineal' | 'suave' | 'escalon';
|
|
3
|
+
export interface CodeplexGraficoAreaProps {
|
|
4
|
+
series?: SerieDato[];
|
|
5
|
+
datos?: PuntoDato[];
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
curva?: CodeplexGraficoAreaCurva;
|
|
10
|
+
color?: CodeplexGraficoColor;
|
|
11
|
+
colorLinea?: CodeplexGraficoColor;
|
|
12
|
+
gradiente?: boolean;
|
|
13
|
+
contorno?: boolean;
|
|
14
|
+
apilado?: boolean;
|
|
15
|
+
conCuadricula?: boolean;
|
|
16
|
+
conPapel?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const CodeplexGraficoArea: ({ series, datos, titulo, subtitulo, alto, curva, color, colorLinea, gradiente, contorno, apilado, conCuadricula, conPapel, }: CodeplexGraficoAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-area';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoBarraLinea } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoBarraLineaProps {
|
|
3
|
+
datos: PuntoBarraLinea[];
|
|
4
|
+
colorBarra?: CodeplexGraficoColor;
|
|
5
|
+
colorLinea?: CodeplexGraficoColor;
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
conPapel?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeplexGraficoBarraLinea: ({ datos, colorBarra, colorLinea, titulo, subtitulo, alto, conPapel, }: CodeplexGraficoBarraLineaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-barra-linea';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoBarrasOrientacion = 'horizontal' | 'vertical';
|
|
3
|
+
export interface CodeplexGraficoBarrasProps {
|
|
4
|
+
datos: PuntoCategoria[];
|
|
5
|
+
titulo?: string;
|
|
6
|
+
subtitulo?: string;
|
|
7
|
+
alto?: number;
|
|
8
|
+
orientacion?: CodeplexGraficoBarrasOrientacion;
|
|
9
|
+
color?: CodeplexGraficoColor;
|
|
10
|
+
gradiente?: boolean;
|
|
11
|
+
animado?: boolean;
|
|
12
|
+
delgado?: boolean;
|
|
13
|
+
mostrarValores?: boolean;
|
|
14
|
+
conCuadricula?: boolean;
|
|
15
|
+
conTooltip?: boolean;
|
|
16
|
+
conPapel?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const CodeplexGraficoBarras: ({ datos, titulo, subtitulo, alto, orientacion, color, gradiente, animado, delgado, mostrarValores, conCuadricula, conTooltip, conPapel, }: CodeplexGraficoBarrasProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-barras';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SerieCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoBarrasApiladasOrientacion = 'horizontal' | 'vertical';
|
|
3
|
+
export interface CodeplexGraficoBarrasApiladasProps {
|
|
4
|
+
categorias: string[];
|
|
5
|
+
series: SerieCategoria[];
|
|
6
|
+
orientacion?: CodeplexGraficoBarrasApiladasOrientacion;
|
|
7
|
+
titulo?: string;
|
|
8
|
+
subtitulo?: string;
|
|
9
|
+
alto?: number;
|
|
10
|
+
conCuadricula?: boolean;
|
|
11
|
+
conLeyenda?: boolean;
|
|
12
|
+
conPapel?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const CodeplexGraficoBarrasApiladas: ({ categorias, series, orientacion, titulo, subtitulo, alto, conCuadricula, conLeyenda, conPapel, }: CodeplexGraficoBarrasApiladasProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-barras-apiladas';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoDivergente } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoBarrasDivergentesProps {
|
|
3
|
+
datos: PuntoDivergente[];
|
|
4
|
+
colorPositivo?: CodeplexGraficoColor;
|
|
5
|
+
colorNegativo?: CodeplexGraficoColor;
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
conCuadricula?: boolean;
|
|
10
|
+
conTooltip?: boolean;
|
|
11
|
+
conPapel?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const CodeplexGraficoBarrasDivergentes: ({ datos, colorPositivo, colorNegativo, titulo, subtitulo, alto, conCuadricula, conTooltip, conPapel, }: CodeplexGraficoBarrasDivergentesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-barras-divergentes';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SerieCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoBarrasMultiplesOrientacion = 'horizontal' | 'vertical';
|
|
3
|
+
export interface CodeplexGraficoBarrasMultiplesProps {
|
|
4
|
+
categorias: string[];
|
|
5
|
+
series: SerieCategoria[];
|
|
6
|
+
orientacion?: CodeplexGraficoBarrasMultiplesOrientacion;
|
|
7
|
+
titulo?: string;
|
|
8
|
+
subtitulo?: string;
|
|
9
|
+
alto?: number;
|
|
10
|
+
conCuadricula?: boolean;
|
|
11
|
+
conLeyenda?: boolean;
|
|
12
|
+
conPapel?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const CodeplexGraficoBarrasMultiples: ({ categorias, series, orientacion, titulo, subtitulo, alto, conCuadricula, conLeyenda, conPapel, }: CodeplexGraficoBarrasMultiplesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-barras-multiples';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CodeplexGraficoColor } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexPuntoBurbuja {
|
|
3
|
+
nombre: string;
|
|
4
|
+
grupo: string;
|
|
5
|
+
valor: number;
|
|
6
|
+
color?: CodeplexGraficoColor;
|
|
7
|
+
}
|
|
8
|
+
export interface CodeplexGraficoBurbujasProps {
|
|
9
|
+
datos: CodeplexPuntoBurbuja[];
|
|
10
|
+
alto?: number;
|
|
11
|
+
titulo?: string;
|
|
12
|
+
subtitulo?: string;
|
|
13
|
+
conPapel?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const CodeplexGraficoBurbujas: ({ datos, alto, titulo, subtitulo, conPapel, }: CodeplexGraficoBurbujasProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-burbujas';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoComparativaProps {
|
|
3
|
+
datos: PuntoCategoria[];
|
|
4
|
+
indiceDestacado?: number;
|
|
5
|
+
titulo?: string;
|
|
6
|
+
subtitulo?: string;
|
|
7
|
+
conPapel?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const CodeplexGraficoComparativa: ({ datos, indiceDestacado, titulo, subtitulo, conPapel, }: CodeplexGraficoComparativaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-comparativa';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoDesgloseVariante = 'grueso' | 'delgado';
|
|
3
|
+
export interface CodeplexGraficoDesgloseProps {
|
|
4
|
+
datos: PuntoCategoria[];
|
|
5
|
+
variante?: CodeplexGraficoDesgloseVariante;
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
conPapel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CodeplexGraficoDesglose: ({ datos, variante, titulo, subtitulo, conPapel, }: CodeplexGraficoDesgloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-desglose';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoDispersion, SerieDispersion } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoDispersionProps {
|
|
3
|
+
datos?: PuntoDispersion[];
|
|
4
|
+
series?: SerieDispersion[];
|
|
5
|
+
titulo?: string;
|
|
6
|
+
subtitulo?: string;
|
|
7
|
+
alto?: number;
|
|
8
|
+
color?: CodeplexGraficoColor;
|
|
9
|
+
conCuadricula?: boolean;
|
|
10
|
+
conTooltip?: boolean;
|
|
11
|
+
conLeyenda?: boolean;
|
|
12
|
+
conPapel?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const CodeplexGraficoDispersion: ({ datos, series, titulo, subtitulo, alto, color, conCuadricula, conTooltip, conLeyenda, conPapel, }: CodeplexGraficoDispersionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-dispersion';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoEmbudoProps {
|
|
3
|
+
datos: PuntoCategoria[];
|
|
4
|
+
gradiente?: boolean;
|
|
5
|
+
alto?: number;
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
conPapel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CodeplexGraficoEmbudo: ({ datos, gradiente, alto, titulo, subtitulo, conPapel, }: CodeplexGraficoEmbudoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-embudo';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoDato, SerieDato } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoLineasCurva = 'lineal' | 'suave' | 'escalon' | 'natural';
|
|
3
|
+
export interface CodeplexGraficoLineasProps {
|
|
4
|
+
series?: SerieDato[];
|
|
5
|
+
datos?: PuntoDato[];
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
curva?: CodeplexGraficoLineasCurva;
|
|
10
|
+
color?: CodeplexGraficoColor;
|
|
11
|
+
gradiente?: boolean;
|
|
12
|
+
mostrarValores?: boolean;
|
|
13
|
+
pulsante?: boolean;
|
|
14
|
+
conCuadricula?: boolean;
|
|
15
|
+
conTooltip?: boolean;
|
|
16
|
+
conPapel?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const CodeplexGraficoLineas: ({ series, datos, titulo, subtitulo, alto, curva, color, gradiente, mostrarValores, pulsante, conCuadricula, conTooltip, conPapel, }: CodeplexGraficoLineasProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-lineas';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CodeplexGraficoColor } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexCeldaMapaCalor {
|
|
3
|
+
fila: string;
|
|
4
|
+
columna: string;
|
|
5
|
+
valor: number;
|
|
6
|
+
}
|
|
7
|
+
export interface CodeplexGraficoMapaCalorProps {
|
|
8
|
+
datos: CodeplexCeldaMapaCalor[];
|
|
9
|
+
color?: CodeplexGraficoColor;
|
|
10
|
+
alto?: number;
|
|
11
|
+
conValores?: boolean;
|
|
12
|
+
titulo?: string;
|
|
13
|
+
subtitulo?: string;
|
|
14
|
+
conPapel?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const CodeplexGraficoMapaCalor: ({ datos, color, alto, conValores, titulo, subtitulo, conPapel, }: CodeplexGraficoMapaCalorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-mapa-calor';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CodeplexGraficoColor } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoMedidorVariante = 'completo' | 'medio';
|
|
3
|
+
export interface CodeplexGraficoMedidorProps {
|
|
4
|
+
valor: number;
|
|
5
|
+
variante?: CodeplexGraficoMedidorVariante;
|
|
6
|
+
color?: CodeplexGraficoColor;
|
|
7
|
+
etiqueta?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
conPapel?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeplexGraficoMedidor: ({ valor, variante, color, etiqueta, alto, conPapel, }: CodeplexGraficoMedidorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-medidor';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export type CodeplexGraficoPastelVariante = 'pastel' | 'dona' | 'media-dona';
|
|
3
|
+
export interface CodeplexGraficoPastelProps {
|
|
4
|
+
datos: PuntoCategoria[];
|
|
5
|
+
variante?: CodeplexGraficoPastelVariante;
|
|
6
|
+
titulo?: string;
|
|
7
|
+
subtitulo?: string;
|
|
8
|
+
alto?: number;
|
|
9
|
+
valorCentral?: string | number;
|
|
10
|
+
etiquetaCentral?: string;
|
|
11
|
+
etiquetasEnPorciones?: boolean;
|
|
12
|
+
gradiente?: boolean;
|
|
13
|
+
conTooltip?: boolean;
|
|
14
|
+
conLeyenda?: boolean;
|
|
15
|
+
conPapel?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const CodeplexGraficoPastel: ({ datos, variante, titulo, subtitulo, alto, valorCentral, etiquetaCentral, etiquetasEnPorciones, gradiente, conTooltip, conLeyenda, conPapel, }: CodeplexGraficoPastelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-pastel';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CodeplexGraficoColor, PuntoCategoria } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoPuntosConectadosProps {
|
|
3
|
+
datos: PuntoCategoria[];
|
|
4
|
+
color?: CodeplexGraficoColor;
|
|
5
|
+
titulo?: string;
|
|
6
|
+
subtitulo?: string;
|
|
7
|
+
alto?: number;
|
|
8
|
+
conCuadricula?: boolean;
|
|
9
|
+
conTooltip?: boolean;
|
|
10
|
+
conPapel?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CodeplexGraficoPuntosConectados: ({ datos, color, titulo, subtitulo, alto, conCuadricula, conTooltip, conPapel, }: CodeplexGraficoPuntosConectadosProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-puntos-conectados';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CodeplexGraficoColor } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexSerieRadar {
|
|
3
|
+
nombre: string;
|
|
4
|
+
valores: number[];
|
|
5
|
+
color?: CodeplexGraficoColor;
|
|
6
|
+
}
|
|
7
|
+
export type CodeplexGraficoRadarVariante = 'lineal' | 'redondeado';
|
|
8
|
+
export interface CodeplexGraficoRadarProps {
|
|
9
|
+
ejes: string[];
|
|
10
|
+
series: CodeplexSerieRadar[];
|
|
11
|
+
variante?: CodeplexGraficoRadarVariante;
|
|
12
|
+
conPuntos?: boolean;
|
|
13
|
+
conLeyenda?: boolean;
|
|
14
|
+
alto?: number;
|
|
15
|
+
titulo?: string;
|
|
16
|
+
subtitulo?: string;
|
|
17
|
+
conPapel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const CodeplexGraficoRadar: ({ ejes, series, variante, conPuntos, conLeyenda, alto, titulo, subtitulo, conPapel, }: CodeplexGraficoRadarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-radar';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CodeplexGraficoColor } from '../_nucleo/tipos';
|
|
3
|
+
export interface CodeplexItemTreemap {
|
|
4
|
+
nombre: string;
|
|
5
|
+
valor: number;
|
|
6
|
+
icono?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface CodeplexGrupoTreemap {
|
|
9
|
+
grupo: string;
|
|
10
|
+
color?: CodeplexGraficoColor;
|
|
11
|
+
items: CodeplexItemTreemap[];
|
|
12
|
+
}
|
|
13
|
+
export type CodeplexGraficoTreemapVariante = 'solido' | 'gradiente' | 'logos';
|
|
14
|
+
export interface CodeplexGraficoTreemapProps {
|
|
15
|
+
datos: CodeplexGrupoTreemap[];
|
|
16
|
+
variante?: CodeplexGraficoTreemapVariante;
|
|
17
|
+
alto?: number;
|
|
18
|
+
titulo?: string;
|
|
19
|
+
subtitulo?: string;
|
|
20
|
+
conPapel?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const CodeplexGraficoTreemap: ({ datos, variante, alto, titulo, subtitulo, conPapel, }: CodeplexGraficoTreemapProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-treemap';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PuntoOHLC } from '../_nucleo/tipos';
|
|
2
|
+
export interface CodeplexGraficoVelasProps {
|
|
3
|
+
datos: PuntoOHLC[];
|
|
4
|
+
titulo?: string;
|
|
5
|
+
subtitulo?: string;
|
|
6
|
+
alto?: number;
|
|
7
|
+
conCuadricula?: boolean;
|
|
8
|
+
conTooltip?: boolean;
|
|
9
|
+
conPapel?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CodeplexGraficoVelas: ({ datos, titulo, subtitulo, alto, conCuadricula, conTooltip, conPapel, }: CodeplexGraficoVelasProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grafico-velas';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeplex-sac/graficos",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"@mui/system": "^7.3.7",
|
|
25
25
|
"@emotion/react": "^11.14.0",
|
|
26
26
|
"@emotion/styled": "^11.14.1",
|
|
27
|
-
"
|
|
27
|
+
"d3-scale": "^4.0.2",
|
|
28
|
+
"d3-shape": "^3.2.0",
|
|
29
|
+
"d3-array": "^3.2.4",
|
|
30
|
+
"d3-hierarchy": "^3.1.2"
|
|
28
31
|
}
|
|
29
32
|
}
|
package/lib/area-chart.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
2
|
-
export interface CodeplexAreaChartProps extends Omit<LineChartProps, 'series'> {
|
|
3
|
-
titulo?: string;
|
|
4
|
-
subtitulo?: string;
|
|
5
|
-
conPapel?: boolean;
|
|
6
|
-
alto?: number;
|
|
7
|
-
series: (LineChartProps['series'][number] & {
|
|
8
|
-
area?: boolean;
|
|
9
|
-
})[];
|
|
10
|
-
}
|
|
11
|
-
export declare const CodeplexAreaChart: ({ titulo, subtitulo, conPapel, alto, sx, series, ...props }: CodeplexAreaChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { CodeplexAreaChart } from './area-chart';
|
|
3
|
-
declare const meta: Meta<typeof CodeplexAreaChart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CodeplexAreaChart>;
|
|
6
|
-
export declare const Basico: Story;
|
|
7
|
-
export declare const MultiplesSeries: Story;
|
|
8
|
-
export declare const SinPapel: Story;
|
package/lib/bar-chart.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
2
|
-
export interface CodeplexBarChartProps extends BarChartProps {
|
|
3
|
-
titulo?: string;
|
|
4
|
-
subtitulo?: string;
|
|
5
|
-
conPapel?: boolean;
|
|
6
|
-
alto?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const CodeplexBarChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexBarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { CodeplexBarChart } from './bar-chart';
|
|
3
|
-
declare const meta: Meta<typeof CodeplexBarChart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CodeplexBarChart>;
|
|
6
|
-
export declare const Basico: Story;
|
|
7
|
-
export declare const Comparativo: Story;
|
package/lib/donut-chart.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PieChartProps } from '@mui/x-charts/PieChart';
|
|
2
|
-
export interface CodeplexDonutChartProps extends PieChartProps {
|
|
3
|
-
titulo?: string;
|
|
4
|
-
subtitulo?: string;
|
|
5
|
-
conPapel?: boolean;
|
|
6
|
-
alto?: number;
|
|
7
|
-
radioInterior?: number;
|
|
8
|
-
etiquetaCentral?: string;
|
|
9
|
-
valorCentral?: string | number;
|
|
10
|
-
}
|
|
11
|
-
export declare const CodeplexDonutChart: ({ titulo, subtitulo, conPapel, alto, radioInterior, etiquetaCentral, valorCentral, sx, series, ...props }: CodeplexDonutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const CodeplexGraficoPastelDonut: ({ titulo, subtitulo, conPapel, alto, radioInterior, etiquetaCentral, valorCentral, sx, series, ...props }: CodeplexDonutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { CodeplexDonutChart } from './donut-chart';
|
|
3
|
-
declare const meta: Meta<typeof CodeplexDonutChart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CodeplexDonutChart>;
|
|
6
|
-
export declare const Basico: Story;
|
|
7
|
-
export declare const ConEtiquetaCentral: Story;
|
|
8
|
-
export declare const RadioGrande: Story;
|
|
9
|
-
export declare const SinPapel: Story;
|
package/lib/line-chart.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
2
|
-
export interface CodeplexLineChartProps extends LineChartProps {
|
|
3
|
-
titulo?: string;
|
|
4
|
-
subtitulo?: string;
|
|
5
|
-
conPapel?: boolean;
|
|
6
|
-
alto?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const CodeplexLineChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexLineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { CodeplexLineChart } from './line-chart';
|
|
3
|
-
declare const meta: Meta<typeof CodeplexLineChart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CodeplexLineChart>;
|
|
6
|
-
export declare const Basico: Story;
|
|
7
|
-
export declare const UnicoSerie: Story;
|
package/lib/pie-chart.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PieChartProps } from '@mui/x-charts/PieChart';
|
|
2
|
-
export interface CodeplexPieChartProps extends PieChartProps {
|
|
3
|
-
titulo?: string;
|
|
4
|
-
subtitulo?: string;
|
|
5
|
-
conPapel?: boolean;
|
|
6
|
-
alto?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const CodeplexPieChart: ({ titulo, subtitulo, conPapel, alto, sx, ...props }: CodeplexPieChartProps) => import("react/jsx-runtime").JSX.Element;
|