@statisticsfinland/pxvisualizer 1.0.4-d.0 → 1.0.4-d.2
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/tables/exportingUtils.d.ts +0 -5
- package/dist/types/core/tables/index.d.ts +2 -2
- package/dist/types/core/tables/xlsx/xlsxBuilder.d.ts +6 -0
- package/dist/types/core/tables/xlsx/xlsxDataBuilder.d.ts +3 -0
- package/dist/types/core/tables/xlsx/xlsxPropertyConstants.d.ts +2 -0
- package/dist/types/core/tables/xlsx/xlsxTemplates.d.ts +4 -0
- package/dist/types/core/tables/xlsx/xlsxWorksheetBuilder.d.ts +2 -0
- package/package.json +5 -5
- package/dist/types/core/tables/xlsxTable.d.ts +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { renderHtmlTable } from "./htmlTable";
|
|
2
2
|
export { generateCsv } from "./csvTable";
|
|
3
3
|
export { viewToDownloadCSVOption } from "./csvTable";
|
|
4
|
-
export {
|
|
5
|
-
export { viewToDownloadXLSOption } from "./
|
|
4
|
+
export { buildMinimalXlsxBlobAsync } from "./xlsx/xlsxBuilder";
|
|
5
|
+
export { viewToDownloadXLSOption } from "./xlsx/xlsxBuilder";
|
|
@@ -0,0 +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>;
|
|
@@ -0,0 +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>";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statisticsfinland/pxvisualizer",
|
|
3
|
-
"version": "1.0.4-d.
|
|
3
|
+
"version": "1.0.4-d.2",
|
|
4
4
|
"description": "Component library for visualizing PxGraf data",
|
|
5
5
|
"main": "./dist/pxv.cjs",
|
|
6
6
|
"jestSonar": {
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@storybook/test": "^8.1.3",
|
|
59
59
|
"@testing-library/dom": "^9.3.4",
|
|
60
60
|
"@testing-library/react": "^14.3.1",
|
|
61
|
+
"@types/file-saver": "^2.0.7",
|
|
61
62
|
"@types/jest": "^29.5.12",
|
|
62
63
|
"@types/papaparse": "^5.3.14",
|
|
63
64
|
"@types/react": "^18.3.2",
|
|
@@ -83,15 +84,14 @@
|
|
|
83
84
|
"ts-jest": "^29.1.2",
|
|
84
85
|
"ts-node": "^10.9.2",
|
|
85
86
|
"typescript": "^4.9.5",
|
|
86
|
-
"uuid": "^9.0.1"
|
|
87
|
-
"xlsx": "^0.18.5"
|
|
87
|
+
"uuid": "^9.0.1"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"decimal.js": "^10.4.3",
|
|
91
|
+
"fflate": "^0.8.2",
|
|
91
92
|
"highcharts": "^10.3.3",
|
|
92
93
|
"highcharts-react-official": "^3.2.1",
|
|
93
|
-
"uuid": "^9.0.1"
|
|
94
|
-
"xlsx": "^0.18.5"
|
|
94
|
+
"uuid": "^9.0.1"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"react": "^18.2.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { View } from "../types/view";
|
|
2
|
-
export declare const generateExcel: (view: View, locale: string) => any;
|
|
3
|
-
export declare const buildStringTableForExcel: (view: View, locale: string) => (string | null)[][];
|
|
4
|
-
export declare const viewToDownloadXLSOption: (view: View, locale: string) => {
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
text: string;
|
|
7
|
-
};
|