@datosgeo-atdt/core-ui 0.1.0 → 0.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/dist/App.d.ts +4 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/components/BarLineChart/BarLineChart.d.ts +23 -0
- package/dist/components/BarLineChart/BarLineChart.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/utils/helpers/helpers.d.ts +37 -0
- package/dist/utils/helpers/helpers.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,iBAAS,GAAG,4CA2BX;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SeriesKey {
|
|
3
|
+
key: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
map: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
invert?: boolean;
|
|
9
|
+
yAxisIndex?: number;
|
|
10
|
+
}
|
|
11
|
+
interface GraphLinesProps {
|
|
12
|
+
data: Record<string, any>[];
|
|
13
|
+
xAxisInfo: string[];
|
|
14
|
+
mapKey: string;
|
|
15
|
+
yAxisInfo?: any;
|
|
16
|
+
barSeriesKeys?: SeriesKey[];
|
|
17
|
+
lineSeriesKeys?: SeriesKey[];
|
|
18
|
+
showSecondaryYAxis?: boolean;
|
|
19
|
+
portrait?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const BarLineChart: React.FC<GraphLinesProps>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=BarLineChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarLineChart.d.ts","sourceRoot":"","sources":["../../../src/components/BarLineChart/BarLineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAuB1D,UAAU,SAAS;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAC,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CAEpB;AAgCD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0NlD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {}
|
|
1
|
+
export { BarLineChart } from "./components/BarLineChart/BarLineChart";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wCAAwC,CAAC"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface optionsObject {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface unidadesObject extends optionsObject {
|
|
6
|
+
unitLabel: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const apiURL: any;
|
|
9
|
+
export declare const dummyTableData: any[];
|
|
10
|
+
export declare function formatNumberWithCommas(number: any): any;
|
|
11
|
+
export declare const capitalizar: (str: any) => any;
|
|
12
|
+
export declare function formatDateMMAA(dateStr: string): string;
|
|
13
|
+
export declare function obtenerDiasDelMes(date: string): number;
|
|
14
|
+
export declare const sortDataByDate: (data: any[]) => any[];
|
|
15
|
+
export declare const obtenerRangoUltimoAño: (arr: string[]) => {
|
|
16
|
+
year: string;
|
|
17
|
+
first: string;
|
|
18
|
+
last: string;
|
|
19
|
+
} | null;
|
|
20
|
+
export declare const productOptions: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: number;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const timeOptions: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: number;
|
|
27
|
+
}[];
|
|
28
|
+
export declare const monthOptions: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: number;
|
|
31
|
+
}[];
|
|
32
|
+
export declare const unidadesOptions: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: number;
|
|
35
|
+
unitLabel: string;
|
|
36
|
+
}[];
|
|
37
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/helpers.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,MAAM,KAA+B,CAAC;AAEnD,eAAO,MAAM,cAAc,OASzB,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,OAOjD;AACM,eAAO,MAAM,WAAW,GAAI,KAAI,GAAG,QAA+C,CAAC;AAE1F,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,UAmB7C;AACD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAqB7C;AAMD,eAAO,MAAM,cAAc,GAAI,MAAM,GAAG,EAAE,UAIzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,EAAE;;;;QAwClD,CAAC;AAEF,eAAO,MAAM,cAAc;;;GAS1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;GAGvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;GAaxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAI3B,CAAC"}
|