@statisticsfinland/pxvisualizer 1.1.4-t.0 → 1.2.0-d.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/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +19 -19
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/core/chartOptions/Utility/formatters.d.ts +17 -17
- package/dist/types/core/chartOptions/Utility/ordinalIntervals.d.ts +3 -3
- package/dist/types/core/chartOptions/Utility/patternFill.d.ts +4 -4
- package/dist/types/core/chartOptions/Utility/seriesDataBuilder.d.ts +5 -5
- package/dist/types/core/chartOptions/Utility/tickPositionerUtilities.d.ts +9 -9
- package/dist/types/core/chartOptions/Utility/tickPositioners.d.ts +7 -7
- package/dist/types/core/chartOptions/Utility/timeIntervals.d.ts +5 -5
- package/dist/types/core/chartOptions/basicHorizontalBarchartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/basicVerticalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/chartOptions.d.ts +13 -13
- package/dist/types/core/chartOptions/groupHorizontalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/groupVerticalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/lineChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/percentHorizontalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/percentVerticalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/pieChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/pyramidChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/scatterPlotOptions.d.ts +3 -3
- package/dist/types/core/chartOptions/stackedHorizontalBarChartOptions.d.ts +4 -4
- package/dist/types/core/chartOptions/stackedVerticalBarChartOptions.d.ts +4 -4
- package/dist/types/core/conversion/helpers.d.ts +7 -7
- package/dist/types/core/conversion/index.d.ts +4 -4
- package/dist/types/core/conversion/pxGrafDataConverter.d.ts +4 -4
- package/dist/types/core/conversion/seriesBuilder.d.ts +31 -31
- package/dist/types/core/conversion/seriesBuilderUtilities.d.ts +4 -4
- package/dist/types/core/conversion/translations/defaultTranslations.d.ts +3 -3
- package/dist/types/core/conversion/translations/index.d.ts +6 -6
- package/dist/types/core/conversion/translations/translationManager.d.ts +8 -8
- package/dist/types/core/conversion/utilityFunctions.d.ts +5 -5
- package/dist/types/core/conversion/viewSorting.d.ts +28 -28
- package/dist/types/core/conversion/viewUtils.d.ts +10 -10
- package/dist/types/core/highcharts/defaultColors.d.ts +5 -5
- package/dist/types/core/highcharts/drawChart.d.ts +6 -6
- package/dist/types/core/highcharts/fillPatterns.d.ts +1 -1
- package/dist/types/core/highcharts/index.d.ts +4 -4
- package/dist/types/core/highcharts/themes.d.ts +1 -1
- package/dist/types/core/index.d.ts +4 -4
- package/dist/types/core/tables/csvTable.d.ts +6 -6
- package/dist/types/core/tables/exportingUtils.d.ts +1 -1
- package/dist/types/core/tables/htmlTable.d.ts +3 -3
- package/dist/types/core/tables/index.d.ts +5 -5
- package/dist/types/core/tables/tableUtils.d.ts +2 -2
- package/dist/types/core/tables/xlsx/xlsxBuilder.d.ts +6 -6
- package/dist/types/core/tables/xlsx/xlsxDataBuilder.d.ts +3 -3
- package/dist/types/core/tables/xlsx/xlsxPropertyConstants.d.ts +2 -2
- package/dist/types/core/tables/xlsx/xlsxTemplates.d.ts +4 -4
- package/dist/types/core/tables/xlsx/xlsxUtils.d.ts +1 -1
- package/dist/types/core/tables/xlsx/xlsxWorksheetBuilder.d.ts +2 -2
- package/dist/types/core/types/icon.d.ts +2 -2
- package/dist/types/core/types/index.d.ts +2 -2
- package/dist/types/core/types/queryVisualizationResponse.d.ts +96 -96
- package/dist/types/core/types/view.d.ts +37 -37
- package/dist/types/index.d.ts +2 -2
- package/dist/types/react/components/ErrorBoundary/ErrorBoundary.d.ts +17 -17
- package/dist/types/react/components/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/react/components/burgerMenu/burgerMenu.d.ts +36 -36
- package/dist/types/react/components/burgerMenu/index.d.ts +2 -2
- package/dist/types/react/components/burgerMenu/menuItem/index.d.ts +1 -1
- package/dist/types/react/components/burgerMenu/menuItem/menuItem.d.ts +19 -19
- package/dist/types/react/components/chart/ErrorInfo.d.ts +5 -5
- package/dist/types/react/components/chart/chart.d.ts +22 -22
- package/dist/types/react/components/chart/index.d.ts +1 -1
- package/dist/types/react/components/chart/tableView.d.ts +11 -11
- package/dist/types/react/components/globalStyle/globalStyle.d.ts +1 -1
- package/dist/types/react/components/globalStyle/index.d.ts +1 -1
- package/dist/types/react/components/icon/icon.d.ts +8 -8
- package/dist/types/react/components/icon/index.d.ts +1 -1
- package/dist/types/react/components/index.d.ts +5 -5
- package/dist/types/react/index.d.ts +1 -1
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { renderHtmlTable } from "./htmlTable";
|
|
2
|
-
export { generateCsv } from "./csvTable";
|
|
3
|
-
export { viewToDownloadCSVOption } from "./csvTable";
|
|
4
|
-
export { buildMinimalXlsxBlobAsync } from "./xlsx/xlsxBuilder";
|
|
5
|
-
export { viewToDownloadXLSOption } from "./xlsx/xlsxBuilder";
|
|
1
|
+
export { renderHtmlTable } from "./htmlTable";
|
|
2
|
+
export { generateCsv } from "./csvTable";
|
|
3
|
+
export { viewToDownloadCSVOption } from "./csvTable";
|
|
4
|
+
export { buildMinimalXlsxBlobAsync } from "./xlsx/xlsxBuilder";
|
|
5
|
+
export { viewToDownloadXLSOption } from "./xlsx/xlsxBuilder";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function formatNumericValue(value: number | null, precision: number, locale: string, addThousandSeparator?: boolean): string;
|
|
2
|
-
export declare function formatMissingData(missingCode: number | undefined, locale: string, htmlTable?: boolean): string;
|
|
1
|
+
export declare function formatNumericValue(value: number | null, precision: number, locale: string, addThousandSeparator?: boolean): string;
|
|
2
|
+
export declare function formatMissingData(missingCode: number | undefined, locale: string, htmlTable?: boolean): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { View } from '../../types/view';
|
|
2
|
-
export declare const viewToDownloadXLSOption: (view: View, locale: string) => {
|
|
3
|
-
onClick: () => Promise<void>;
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function buildMinimalXlsxBlobAsync(view: View, locale: string): Promise<Blob>;
|
|
1
|
+
import { View } from '../../types/view';
|
|
2
|
+
export declare const viewToDownloadXLSOption: (view: View, locale: string) => {
|
|
3
|
+
onClick: () => Promise<void>;
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function buildMinimalXlsxBlobAsync(view: View, locale: string): Promise<Blob>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { View } from "../../types/view";
|
|
2
|
-
import { TCell } from "./xlsxTypes";
|
|
3
|
-
export declare const buildCellRows: (view: View, locale: string) => TCell[][];
|
|
1
|
+
import { View } from "../../types/view";
|
|
2
|
+
import { TCell } from "./xlsxTypes";
|
|
3
|
+
export declare const buildCellRows: (view: View, locale: string) => TCell[][];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const workbookProperties: string[];
|
|
2
|
-
export declare const worksheetProperties: string[];
|
|
1
|
+
export declare const workbookProperties: string[];
|
|
2
|
+
export declare const worksheetProperties: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const workbookTemplate: string;
|
|
2
|
-
export declare const relationsTemplate = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships\nxmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"\n>\n <Relationship\n Id=\"rId1\"\n Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\"\n Target=\"xl/workbook.xml\"\n />\n</Relationships>";
|
|
3
|
-
export declare const workbookRelationsTemplate = "<?xml version=\"1.0\" ?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship\n Id=\"rId3\"\n Target=\"worksheets/sheet1.xml\" \n Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\"\n />\n</Relationships>";
|
|
4
|
-
export declare const contentTypesTemplate = "<?xml version=\"1.0\" ?>\n<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default ContentType=\"application/xml\" Extension=\"xml\"/>\n <Default ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" Extension=\"rels\"/>\n <Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\" PartName=\"/xl/worksheets/sheet1.xml\"/>\n <Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" PartName=\"/xl/workbook.xml\"/>\n</Types>";
|
|
1
|
+
export declare const workbookTemplate: string;
|
|
2
|
+
export declare const relationsTemplate = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships\nxmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"\n>\n <Relationship\n Id=\"rId1\"\n Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\"\n Target=\"xl/workbook.xml\"\n />\n</Relationships>";
|
|
3
|
+
export declare const workbookRelationsTemplate = "<?xml version=\"1.0\" ?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship\n Id=\"rId3\"\n Target=\"worksheets/sheet1.xml\" \n Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\"\n />\n</Relationships>";
|
|
4
|
+
export declare const contentTypesTemplate = "<?xml version=\"1.0\" ?>\n<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default ContentType=\"application/xml\" Extension=\"xml\"/>\n <Default ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" Extension=\"rels\"/>\n <Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\" PartName=\"/xl/worksheets/sheet1.xml\"/>\n <Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" PartName=\"/xl/workbook.xml\"/>\n</Types>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function escapeXmlFunctionChars(input: string): string;
|
|
1
|
+
export declare function escapeXmlFunctionChars(input: string): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TCell } from "./xlsxTypes";
|
|
2
|
-
export declare const buildXMLSheet: (rows: TCell[][]) => string;
|
|
1
|
+
import { TCell } from "./xlsxTypes";
|
|
2
|
+
export declare const buildXMLSheet: (rows: TCell[][]) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type TIcon = typeof allIcons[number];
|
|
2
|
-
export declare const allIcons: readonly ["Bars", "Times", "Download", "ExternalLink", "Copy"];
|
|
1
|
+
export type TIcon = typeof allIcons[number];
|
|
2
|
+
export declare const allIcons: readonly ["Bars", "Times", "Download", "ExternalLink", "Copy"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IQueryVisualizationResponse, EVisualizationType, TVisualizationType, ETimeVariableInterval, TTimeVariableInterval, EVariableType, TVariableType } from './queryVisualizationResponse';
|
|
2
|
-
export { IChartOptions } from './chartOptions';
|
|
1
|
+
export { IQueryVisualizationResponse, EVisualizationType, TVisualizationType, ETimeVariableInterval, TTimeVariableInterval, EVariableType, TVariableType } from './queryVisualizationResponse';
|
|
2
|
+
export { IChartOptions } from './chartOptions';
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
export interface IQueryVisualizationResponse {
|
|
2
|
-
tableReference: ITableReference;
|
|
3
|
-
data: (number | null)[];
|
|
4
|
-
dataNotes: {
|
|
5
|
-
[key: number]: TMultiLanguageString;
|
|
6
|
-
};
|
|
7
|
-
missingDataInfo: {
|
|
8
|
-
[key: number]: number;
|
|
9
|
-
};
|
|
10
|
-
metaData: IVariableMeta[];
|
|
11
|
-
selectableVariableCodes: string[];
|
|
12
|
-
rowVariableCodes: string[];
|
|
13
|
-
columnVariableCodes: string[];
|
|
14
|
-
header: TMultiLanguageString;
|
|
15
|
-
visualizationSettings: IVisualizationSettings;
|
|
16
|
-
}
|
|
17
|
-
export interface ITableReference {
|
|
18
|
-
name: string;
|
|
19
|
-
hierarchy: string[];
|
|
20
|
-
}
|
|
21
|
-
export type TVisualizationType = 'VerticalBarChart' | 'GroupVerticalBarChart' | 'StackedVerticalBarChart' | 'PercentVerticalBarChart' | 'HorizontalBarChart' | 'GroupHorizontalBarChart' | 'StackedHorizontalBarChart' | 'PercentHorizontalBarChart' | 'PyramidChart' | 'PieChart' | 'LineChart' | 'ScatterPlot' | 'Table';
|
|
22
|
-
export declare enum EVisualizationType {
|
|
23
|
-
VerticalBarChart = "VerticalBarChart",
|
|
24
|
-
GroupVerticalBarChart = "GroupVerticalBarChart",
|
|
25
|
-
StackedVerticalBarChart = "StackedVerticalBarChart",
|
|
26
|
-
PercentVerticalBarChart = "PercentVerticalBarChart",
|
|
27
|
-
HorizontalBarChart = "HorizontalBarChart",
|
|
28
|
-
GroupHorizontalBarChart = "GroupHorizontalBarChart",
|
|
29
|
-
StackedHorizontalBarChart = "StackedHorizontalBarChart",
|
|
30
|
-
PercentHorizontalBarChart = "PercentHorizontalBarChart",
|
|
31
|
-
PyramidChart = "PyramidChart",
|
|
32
|
-
PieChart = "PieChart",
|
|
33
|
-
LineChart = "LineChart",
|
|
34
|
-
ScatterPlot = "ScatterPlot",
|
|
35
|
-
Table = "Table"
|
|
36
|
-
}
|
|
37
|
-
export type TVariableType = 'N' | 'T' | 'P' | 'G' | 'C' | 'F';
|
|
38
|
-
export declare enum EVariableType {
|
|
39
|
-
Unknown = "N",
|
|
40
|
-
Time = "T",
|
|
41
|
-
Ordinal = "P",
|
|
42
|
-
Geological = "G",
|
|
43
|
-
Content = "C",
|
|
44
|
-
OtherClassificatory = "F"
|
|
45
|
-
}
|
|
46
|
-
export type TTimeVariableInterval = 'Week' | 'Month' | 'Quarter' | 'HalfYear' | 'Year' | 'Decade' | 'Irregular';
|
|
47
|
-
export declare enum ETimeVariableInterval {
|
|
48
|
-
Week = "Week",
|
|
49
|
-
Month = "Month",
|
|
50
|
-
Quarter = "Quarter",
|
|
51
|
-
HalfYear = "HalfYear",
|
|
52
|
-
Year = "Year",
|
|
53
|
-
Decade = "Decade",
|
|
54
|
-
Irregular = "Irregular"
|
|
55
|
-
}
|
|
56
|
-
export type TMultiLanguageString = {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
};
|
|
59
|
-
export type TMultiLanguageStringArray = {
|
|
60
|
-
[key: string]: string[];
|
|
61
|
-
};
|
|
62
|
-
export interface IVariableMeta {
|
|
63
|
-
code: string;
|
|
64
|
-
name: TMultiLanguageString;
|
|
65
|
-
note: TMultiLanguageString | null;
|
|
66
|
-
type: EVariableType;
|
|
67
|
-
values: IVariableValueMeta[];
|
|
68
|
-
}
|
|
69
|
-
export interface IContentComponent {
|
|
70
|
-
unit: TMultiLanguageString;
|
|
71
|
-
source: TMultiLanguageString;
|
|
72
|
-
numberOfDecimals: number;
|
|
73
|
-
lastUpdated: string;
|
|
74
|
-
}
|
|
75
|
-
export interface IVariableValueMeta {
|
|
76
|
-
code: string;
|
|
77
|
-
name: TMultiLanguageString;
|
|
78
|
-
note: TMultiLanguageString | null;
|
|
79
|
-
isSum: boolean;
|
|
80
|
-
contentComponent: IContentComponent | null;
|
|
81
|
-
}
|
|
82
|
-
export interface IVisualizationSettings {
|
|
83
|
-
visualizationType: EVisualizationType;
|
|
84
|
-
defaultSelectableVariableCodes?: {
|
|
85
|
-
[key: string]: string[];
|
|
86
|
-
} | null;
|
|
87
|
-
multiselectableVariableCode?: string;
|
|
88
|
-
timeVariableIntervals: ETimeVariableInterval;
|
|
89
|
-
timeSeriesStartingPoint?: string;
|
|
90
|
-
cutValueAxis?: boolean;
|
|
91
|
-
showLastLabel?: boolean;
|
|
92
|
-
sorting?: string;
|
|
93
|
-
markerSize?: number;
|
|
94
|
-
cutYAxis?: boolean;
|
|
95
|
-
showDataPoints?: boolean;
|
|
96
|
-
}
|
|
1
|
+
export interface IQueryVisualizationResponse {
|
|
2
|
+
tableReference: ITableReference;
|
|
3
|
+
data: (number | null)[];
|
|
4
|
+
dataNotes: {
|
|
5
|
+
[key: number]: TMultiLanguageString;
|
|
6
|
+
};
|
|
7
|
+
missingDataInfo: {
|
|
8
|
+
[key: number]: number;
|
|
9
|
+
};
|
|
10
|
+
metaData: IVariableMeta[];
|
|
11
|
+
selectableVariableCodes: string[];
|
|
12
|
+
rowVariableCodes: string[];
|
|
13
|
+
columnVariableCodes: string[];
|
|
14
|
+
header: TMultiLanguageString;
|
|
15
|
+
visualizationSettings: IVisualizationSettings;
|
|
16
|
+
}
|
|
17
|
+
export interface ITableReference {
|
|
18
|
+
name: string;
|
|
19
|
+
hierarchy: string[];
|
|
20
|
+
}
|
|
21
|
+
export type TVisualizationType = 'VerticalBarChart' | 'GroupVerticalBarChart' | 'StackedVerticalBarChart' | 'PercentVerticalBarChart' | 'HorizontalBarChart' | 'GroupHorizontalBarChart' | 'StackedHorizontalBarChart' | 'PercentHorizontalBarChart' | 'PyramidChart' | 'PieChart' | 'LineChart' | 'ScatterPlot' | 'Table';
|
|
22
|
+
export declare enum EVisualizationType {
|
|
23
|
+
VerticalBarChart = "VerticalBarChart",
|
|
24
|
+
GroupVerticalBarChart = "GroupVerticalBarChart",
|
|
25
|
+
StackedVerticalBarChart = "StackedVerticalBarChart",
|
|
26
|
+
PercentVerticalBarChart = "PercentVerticalBarChart",
|
|
27
|
+
HorizontalBarChart = "HorizontalBarChart",
|
|
28
|
+
GroupHorizontalBarChart = "GroupHorizontalBarChart",
|
|
29
|
+
StackedHorizontalBarChart = "StackedHorizontalBarChart",
|
|
30
|
+
PercentHorizontalBarChart = "PercentHorizontalBarChart",
|
|
31
|
+
PyramidChart = "PyramidChart",
|
|
32
|
+
PieChart = "PieChart",
|
|
33
|
+
LineChart = "LineChart",
|
|
34
|
+
ScatterPlot = "ScatterPlot",
|
|
35
|
+
Table = "Table"
|
|
36
|
+
}
|
|
37
|
+
export type TVariableType = 'N' | 'T' | 'P' | 'G' | 'C' | 'F';
|
|
38
|
+
export declare enum EVariableType {
|
|
39
|
+
Unknown = "N",
|
|
40
|
+
Time = "T",
|
|
41
|
+
Ordinal = "P",
|
|
42
|
+
Geological = "G",
|
|
43
|
+
Content = "C",
|
|
44
|
+
OtherClassificatory = "F"
|
|
45
|
+
}
|
|
46
|
+
export type TTimeVariableInterval = 'Week' | 'Month' | 'Quarter' | 'HalfYear' | 'Year' | 'Decade' | 'Irregular';
|
|
47
|
+
export declare enum ETimeVariableInterval {
|
|
48
|
+
Week = "Week",
|
|
49
|
+
Month = "Month",
|
|
50
|
+
Quarter = "Quarter",
|
|
51
|
+
HalfYear = "HalfYear",
|
|
52
|
+
Year = "Year",
|
|
53
|
+
Decade = "Decade",
|
|
54
|
+
Irregular = "Irregular"
|
|
55
|
+
}
|
|
56
|
+
export type TMultiLanguageString = {
|
|
57
|
+
[key: string]: string;
|
|
58
|
+
};
|
|
59
|
+
export type TMultiLanguageStringArray = {
|
|
60
|
+
[key: string]: string[];
|
|
61
|
+
};
|
|
62
|
+
export interface IVariableMeta {
|
|
63
|
+
code: string;
|
|
64
|
+
name: TMultiLanguageString;
|
|
65
|
+
note: TMultiLanguageString | null;
|
|
66
|
+
type: EVariableType;
|
|
67
|
+
values: IVariableValueMeta[];
|
|
68
|
+
}
|
|
69
|
+
export interface IContentComponent {
|
|
70
|
+
unit: TMultiLanguageString;
|
|
71
|
+
source: TMultiLanguageString;
|
|
72
|
+
numberOfDecimals: number;
|
|
73
|
+
lastUpdated: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IVariableValueMeta {
|
|
76
|
+
code: string;
|
|
77
|
+
name: TMultiLanguageString;
|
|
78
|
+
note: TMultiLanguageString | null;
|
|
79
|
+
isSum: boolean;
|
|
80
|
+
contentComponent: IContentComponent | null;
|
|
81
|
+
}
|
|
82
|
+
export interface IVisualizationSettings {
|
|
83
|
+
visualizationType: EVisualizationType;
|
|
84
|
+
defaultSelectableVariableCodes?: {
|
|
85
|
+
[key: string]: string[];
|
|
86
|
+
} | null;
|
|
87
|
+
multiselectableVariableCode?: string;
|
|
88
|
+
timeVariableIntervals: ETimeVariableInterval;
|
|
89
|
+
timeSeriesStartingPoint?: string;
|
|
90
|
+
cutValueAxis?: boolean;
|
|
91
|
+
showLastLabel?: boolean;
|
|
92
|
+
sorting?: string;
|
|
93
|
+
markerSize?: number;
|
|
94
|
+
cutYAxis?: boolean;
|
|
95
|
+
showDataPoints?: boolean;
|
|
96
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { IVisualizationSettings, TMultiLanguageString } from "./queryVisualizationResponse";
|
|
2
|
-
export declare enum ESeriesType {
|
|
3
|
-
Time = 0,
|
|
4
|
-
Ordinal = 1,
|
|
5
|
-
Nominal = 2
|
|
6
|
-
}
|
|
7
|
-
export interface IUnitInfo {
|
|
8
|
-
name: TMultiLanguageString;
|
|
9
|
-
unit: TMultiLanguageString;
|
|
10
|
-
}
|
|
11
|
-
export interface View {
|
|
12
|
-
tableReferenceName: string;
|
|
13
|
-
header: TMultiLanguageString;
|
|
14
|
-
subheaderValues: TMultiLanguageString[];
|
|
15
|
-
units: IUnitInfo[];
|
|
16
|
-
sources: TMultiLanguageString[];
|
|
17
|
-
columnNameGroups: TMultiLanguageString[][];
|
|
18
|
-
series: IDataSeries[];
|
|
19
|
-
colVarNames: TMultiLanguageString[];
|
|
20
|
-
rowVarNames: TMultiLanguageString[];
|
|
21
|
-
selectableVarNames: TMultiLanguageString[];
|
|
22
|
-
visualizationSettings: IVisualizationSettings;
|
|
23
|
-
seriesType: ESeriesType;
|
|
24
|
-
}
|
|
25
|
-
export interface IDataCell {
|
|
26
|
-
value: number | null;
|
|
27
|
-
missingCode?: number;
|
|
28
|
-
precision: number;
|
|
29
|
-
preliminary: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface IDataSeries {
|
|
32
|
-
rowNameGroup: TMultiLanguageString[];
|
|
33
|
-
series: IDataCell[];
|
|
34
|
-
}
|
|
35
|
-
export type TValueSelectionAmounts = {
|
|
36
|
-
[key: string]: number;
|
|
37
|
-
};
|
|
1
|
+
import { IVisualizationSettings, TMultiLanguageString } from "./queryVisualizationResponse";
|
|
2
|
+
export declare enum ESeriesType {
|
|
3
|
+
Time = 0,
|
|
4
|
+
Ordinal = 1,
|
|
5
|
+
Nominal = 2
|
|
6
|
+
}
|
|
7
|
+
export interface IUnitInfo {
|
|
8
|
+
name: TMultiLanguageString;
|
|
9
|
+
unit: TMultiLanguageString;
|
|
10
|
+
}
|
|
11
|
+
export interface View {
|
|
12
|
+
tableReferenceName: string;
|
|
13
|
+
header: TMultiLanguageString;
|
|
14
|
+
subheaderValues: TMultiLanguageString[];
|
|
15
|
+
units: IUnitInfo[];
|
|
16
|
+
sources: TMultiLanguageString[];
|
|
17
|
+
columnNameGroups: TMultiLanguageString[][];
|
|
18
|
+
series: IDataSeries[];
|
|
19
|
+
colVarNames: TMultiLanguageString[];
|
|
20
|
+
rowVarNames: TMultiLanguageString[];
|
|
21
|
+
selectableVarNames: TMultiLanguageString[];
|
|
22
|
+
visualizationSettings: IVisualizationSettings;
|
|
23
|
+
seriesType: ESeriesType;
|
|
24
|
+
}
|
|
25
|
+
export interface IDataCell {
|
|
26
|
+
value: number | null;
|
|
27
|
+
missingCode?: number;
|
|
28
|
+
precision: number;
|
|
29
|
+
preliminary: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface IDataSeries {
|
|
32
|
+
rowNameGroup: TMultiLanguageString[];
|
|
33
|
+
series: IDataCell[];
|
|
34
|
+
}
|
|
35
|
+
export type TValueSelectionAmounts = {
|
|
36
|
+
[key: string]: number;
|
|
37
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './react';
|
|
2
|
-
export * from './core';
|
|
1
|
+
export * from './react';
|
|
2
|
+
export * from './core';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Component, ErrorInfo, ReactNode } from "react";
|
|
2
|
-
interface IErrorBoundaryState {
|
|
3
|
-
hasError: boolean;
|
|
4
|
-
}
|
|
5
|
-
interface IErrorBoundaryProps {
|
|
6
|
-
fallback: ReactNode;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
|
|
10
|
-
constructor(props: IErrorBoundaryProps);
|
|
11
|
-
static getDerivedStateFromError(): {
|
|
12
|
-
hasError: boolean;
|
|
13
|
-
};
|
|
14
|
-
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
15
|
-
render(): ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from "react";
|
|
2
|
+
interface IErrorBoundaryState {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface IErrorBoundaryProps {
|
|
6
|
+
fallback: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
|
|
10
|
+
constructor(props: IErrorBoundaryProps);
|
|
11
|
+
static getDerivedStateFromError(): {
|
|
12
|
+
hasError: boolean;
|
|
13
|
+
};
|
|
14
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
15
|
+
render(): ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ErrorBoundary';
|
|
1
|
+
export * from './ErrorBoundary';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import HighchartsReact, { HighchartsReactRefObject } from "highcharts-react-official";
|
|
3
|
-
import { View } from "../../../core/types/view";
|
|
4
|
-
import { TIcon } from "../../../core/types/icon";
|
|
5
|
-
export interface IBurgerMenuProps {
|
|
6
|
-
viewData: View;
|
|
7
|
-
currentChartRef?: HighchartsReact.RefObject | null;
|
|
8
|
-
locale: string;
|
|
9
|
-
tableToggle?: {
|
|
10
|
-
toggleHandler: () => void;
|
|
11
|
-
tableMode: boolean;
|
|
12
|
-
};
|
|
13
|
-
menuItemDefinitions?: (IFunctionalMenuItem | ILinkMenuItem)[];
|
|
14
|
-
menuIconInheritColor?: boolean;
|
|
15
|
-
toggleAccessibilityMode?: () => void;
|
|
16
|
-
accessibilityMode?: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface IBaseMenuItem {
|
|
19
|
-
text: string;
|
|
20
|
-
prefixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
21
|
-
suffixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
22
|
-
}
|
|
23
|
-
export interface IFunctionalMenuItem extends IBaseMenuItem {
|
|
24
|
-
onClick: () => void;
|
|
25
|
-
}
|
|
26
|
-
export interface ILinkMenuItem extends IBaseMenuItem {
|
|
27
|
-
url: string;
|
|
28
|
-
isExternal?: boolean;
|
|
29
|
-
openNewTab?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function calculateExportDimensions(chartRef: HighchartsReactRefObject): {
|
|
32
|
-
finalWidth: number;
|
|
33
|
-
finalHeight: number;
|
|
34
|
-
};
|
|
35
|
-
export declare const BurgerMenu: React.FC<IBurgerMenuProps>;
|
|
36
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import HighchartsReact, { HighchartsReactRefObject } from "highcharts-react-official";
|
|
3
|
+
import { View } from "../../../core/types/view";
|
|
4
|
+
import { TIcon } from "../../../core/types/icon";
|
|
5
|
+
export interface IBurgerMenuProps {
|
|
6
|
+
viewData: View;
|
|
7
|
+
currentChartRef?: HighchartsReact.RefObject | null;
|
|
8
|
+
locale: string;
|
|
9
|
+
tableToggle?: {
|
|
10
|
+
toggleHandler: () => void;
|
|
11
|
+
tableMode: boolean;
|
|
12
|
+
};
|
|
13
|
+
menuItemDefinitions?: (IFunctionalMenuItem | ILinkMenuItem)[];
|
|
14
|
+
menuIconInheritColor?: boolean;
|
|
15
|
+
toggleAccessibilityMode?: () => void;
|
|
16
|
+
accessibilityMode?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface IBaseMenuItem {
|
|
19
|
+
text: string;
|
|
20
|
+
prefixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
21
|
+
suffixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
22
|
+
}
|
|
23
|
+
export interface IFunctionalMenuItem extends IBaseMenuItem {
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface ILinkMenuItem extends IBaseMenuItem {
|
|
27
|
+
url: string;
|
|
28
|
+
isExternal?: boolean;
|
|
29
|
+
openNewTab?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function calculateExportDimensions(chartRef: HighchartsReactRefObject): {
|
|
32
|
+
finalWidth: number;
|
|
33
|
+
finalHeight: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const BurgerMenu: React.FC<IBurgerMenuProps>;
|
|
36
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './burgerMenu';
|
|
2
|
-
export * from './menuItem';
|
|
1
|
+
export * from './burgerMenu';
|
|
2
|
+
export * from './menuItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './menuItem';
|
|
1
|
+
export * from './menuItem';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TIcon } from "../../../../core/types/icon";
|
|
3
|
-
export interface IMenuItemProps {
|
|
4
|
-
text: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
url?: string;
|
|
7
|
-
openNewTab?: boolean;
|
|
8
|
-
isExternal?: boolean;
|
|
9
|
-
prefixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
10
|
-
suffixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
11
|
-
locale: string;
|
|
12
|
-
bottomSeparator?: boolean;
|
|
13
|
-
isFirst?: boolean;
|
|
14
|
-
isLast?: boolean;
|
|
15
|
-
tabIndex?: number;
|
|
16
|
-
index?: number;
|
|
17
|
-
idPrefix: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const MenuItem: React.ForwardRefExoticComponent<IMenuItemProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TIcon } from "../../../../core/types/icon";
|
|
3
|
+
export interface IMenuItemProps {
|
|
4
|
+
text: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
url?: string;
|
|
7
|
+
openNewTab?: boolean;
|
|
8
|
+
isExternal?: boolean;
|
|
9
|
+
prefixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
10
|
+
suffixIcon?: TIcon | Exclude<React.ReactNode, string>;
|
|
11
|
+
locale: string;
|
|
12
|
+
bottomSeparator?: boolean;
|
|
13
|
+
isFirst?: boolean;
|
|
14
|
+
isLast?: boolean;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
index?: number;
|
|
17
|
+
idPrefix: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<IMenuItemProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface IErrorInfoProps {
|
|
3
|
-
locale: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const ErrorInfo: React.FC<IErrorInfoProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IErrorInfoProps {
|
|
3
|
+
locale: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ErrorInfo: React.FC<IErrorInfoProps>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IQueryVisualizationResponse } from "../../../core";
|
|
3
|
-
import "highcharts/modules/accessibility.js";
|
|
4
|
-
import 'highcharts/modules/exporting.js';
|
|
5
|
-
import 'highcharts/modules/offline-exporting.js';
|
|
6
|
-
import 'highcharts/modules/pattern-fill.js';
|
|
7
|
-
import { IFunctionalMenuItem, ILinkMenuItem } from "../burgerMenu/burgerMenu";
|
|
8
|
-
export interface IChartProps {
|
|
9
|
-
pxGraphData: IQueryVisualizationResponse;
|
|
10
|
-
locale: string;
|
|
11
|
-
selectedVariableCodes?: {
|
|
12
|
-
[key: string]: string[];
|
|
13
|
-
};
|
|
14
|
-
showContextMenu?: boolean;
|
|
15
|
-
menuItemDefinitions?: (IFunctionalMenuItem | ILinkMenuItem)[];
|
|
16
|
-
menuIconInheritColor?: boolean;
|
|
17
|
-
showTableTitles?: boolean;
|
|
18
|
-
showTableUnits?: boolean;
|
|
19
|
-
showTableSources?: boolean;
|
|
20
|
-
footnote?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const Chart: React.FC<IChartProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IQueryVisualizationResponse } from "../../../core";
|
|
3
|
+
import "highcharts/modules/accessibility.js";
|
|
4
|
+
import 'highcharts/modules/exporting.js';
|
|
5
|
+
import 'highcharts/modules/offline-exporting.js';
|
|
6
|
+
import 'highcharts/modules/pattern-fill.js';
|
|
7
|
+
import { IFunctionalMenuItem, ILinkMenuItem } from "../burgerMenu/burgerMenu";
|
|
8
|
+
export interface IChartProps {
|
|
9
|
+
pxGraphData: IQueryVisualizationResponse;
|
|
10
|
+
locale: string;
|
|
11
|
+
selectedVariableCodes?: {
|
|
12
|
+
[key: string]: string[];
|
|
13
|
+
};
|
|
14
|
+
showContextMenu?: boolean;
|
|
15
|
+
menuItemDefinitions?: (IFunctionalMenuItem | ILinkMenuItem)[];
|
|
16
|
+
menuIconInheritColor?: boolean;
|
|
17
|
+
showTableTitles?: boolean;
|
|
18
|
+
showTableUnits?: boolean;
|
|
19
|
+
showTableSources?: boolean;
|
|
20
|
+
footnote?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Chart: React.FC<IChartProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './chart';
|
|
1
|
+
export * from './chart';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "../../../core/types/view";
|
|
3
|
-
export interface ITableViewProps {
|
|
4
|
-
view: View;
|
|
5
|
-
locale: string;
|
|
6
|
-
showTitles?: boolean;
|
|
7
|
-
showUnits?: boolean;
|
|
8
|
-
showSources?: boolean;
|
|
9
|
-
footnote?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const TableView: React.FC<ITableViewProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View } from "../../../core/types/view";
|
|
3
|
+
export interface ITableViewProps {
|
|
4
|
+
view: View;
|
|
5
|
+
locale: string;
|
|
6
|
+
showTitles?: boolean;
|
|
7
|
+
showUnits?: boolean;
|
|
8
|
+
showSources?: boolean;
|
|
9
|
+
footnote?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableView: React.FC<ITableViewProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GlobalStyle: import("
|
|
1
|
+
export declare const GlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './globalStyle';
|
|
1
|
+
export * from './globalStyle';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TIcon } from '../../../core/types/icon';
|
|
3
|
-
interface IIconProps {
|
|
4
|
-
icon: TIcon;
|
|
5
|
-
inheritColor?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const Icon: React.FC<IIconProps>;
|
|
8
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TIcon } from '../../../core/types/icon';
|
|
3
|
+
interface IIconProps {
|
|
4
|
+
icon: TIcon;
|
|
5
|
+
inheritColor?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Icon: React.FC<IIconProps>;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './icon';
|
|
1
|
+
export * from './icon';
|