@statisticsfinland/pxvisualizer 0.1.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.
Files changed (65) hide show
  1. package/LICENSE.md +202 -0
  2. package/README.md +77 -0
  3. package/dist/pxv.cjs +2 -0
  4. package/dist/pxv.cjs.map +1 -0
  5. package/dist/pxv.modern.js +165 -0
  6. package/dist/pxv.modern.js.map +1 -0
  7. package/dist/pxv.module.js +2 -0
  8. package/dist/pxv.module.js.map +1 -0
  9. package/dist/pxv.umd.js +2 -0
  10. package/dist/pxv.umd.js.map +1 -0
  11. package/dist/types/core/chartOptions/Utility/formatters.d.ts +14 -0
  12. package/dist/types/core/chartOptions/Utility/ordinalIntervals.d.ts +3 -0
  13. package/dist/types/core/chartOptions/Utility/seriesDataBuilder.d.ts +15 -0
  14. package/dist/types/core/chartOptions/Utility/tickPositionerUtilities.d.ts +9 -0
  15. package/dist/types/core/chartOptions/Utility/tickPositioners.d.ts +7 -0
  16. package/dist/types/core/chartOptions/Utility/timeIntervals.d.ts +5 -0
  17. package/dist/types/core/chartOptions/basicHorizontalBarchartOptions.d.ts +3 -0
  18. package/dist/types/core/chartOptions/basicVerticalBarChartOptions.d.ts +3 -0
  19. package/dist/types/core/chartOptions/groupHorizontalBarChartOptions.d.ts +3 -0
  20. package/dist/types/core/chartOptions/groupVerticalBarChartOptions.d.ts +3 -0
  21. package/dist/types/core/chartOptions/lineChartOptions.d.ts +3 -0
  22. package/dist/types/core/chartOptions/percentHorizontalBarChartOptions.d.ts +3 -0
  23. package/dist/types/core/chartOptions/percentVerticalBarChartOptions.d.ts +3 -0
  24. package/dist/types/core/chartOptions/pieChartOptions.d.ts +3 -0
  25. package/dist/types/core/chartOptions/pyramidChartOptions.d.ts +3 -0
  26. package/dist/types/core/chartOptions/scatterPlotOptions.d.ts +3 -0
  27. package/dist/types/core/chartOptions/stackedHorizontalBarChartOptions.d.ts +3 -0
  28. package/dist/types/core/chartOptions/stackedVerticalBarChartOptions.d.ts +3 -0
  29. package/dist/types/core/conversion/helpers.d.ts +7 -0
  30. package/dist/types/core/conversion/index.d.ts +4 -0
  31. package/dist/types/core/conversion/pxGrafDataConverter.d.ts +3 -0
  32. package/dist/types/core/conversion/translations/defaultTranslations.d.ts +3 -0
  33. package/dist/types/core/conversion/translations/index.d.ts +7 -0
  34. package/dist/types/core/conversion/translations/translationManager.d.ts +8 -0
  35. package/dist/types/core/conversion/utilityFunctions.d.ts +5 -0
  36. package/dist/types/core/conversion/viewSorting.d.ts +10 -0
  37. package/dist/types/core/conversion/viewUtils.d.ts +10 -0
  38. package/dist/types/core/highcharts/drawChart.d.ts +4 -0
  39. package/dist/types/core/highcharts/index.d.ts +2 -0
  40. package/dist/types/core/highcharts/themes.d.ts +1 -0
  41. package/dist/types/core/index.d.ts +4 -0
  42. package/dist/types/core/tables/csvTable.d.ts +6 -0
  43. package/dist/types/core/tables/exportingUtils.d.ts +6 -0
  44. package/dist/types/core/tables/htmlTable.d.ts +3 -0
  45. package/dist/types/core/tables/index.d.ts +5 -0
  46. package/dist/types/core/tables/tableUtils.d.ts +3 -0
  47. package/dist/types/core/tables/xlsxTable.d.ts +7 -0
  48. package/dist/types/core/types/icon.d.ts +2 -0
  49. package/dist/types/core/types/index.d.ts +1 -0
  50. package/dist/types/core/types/queryVisualizationResponse.d.ts +96 -0
  51. package/dist/types/core/types/view.d.ts +40 -0
  52. package/dist/types/index.d.ts +2 -0
  53. package/dist/types/react/components/ErrorBoundary/ErrorBoundary.d.ts +17 -0
  54. package/dist/types/react/components/burgerMenu/burgerMenu.d.ts +36 -0
  55. package/dist/types/react/components/burgerMenu/menuItem/menuItem.d.ts +17 -0
  56. package/dist/types/react/components/chart/ErrorInfo.d.ts +5 -0
  57. package/dist/types/react/components/chart/chart.d.ts +19 -0
  58. package/dist/types/react/components/chart/index.d.ts +1 -0
  59. package/dist/types/react/components/chart/tableView.d.ts +11 -0
  60. package/dist/types/react/components/globalStyle/globalStyle.d.ts +2 -0
  61. package/dist/types/react/components/globalStyle/index.d.ts +1 -0
  62. package/dist/types/react/components/icon/icon.d.ts +8 -0
  63. package/dist/types/react/components/index.d.ts +1 -0
  64. package/dist/types/react/index.d.ts +1 -0
  65. package/package.json +99 -0
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@statisticsfinland/pxvisualizer",
3
+ "version": "0.1.0",
4
+ "description": "Component library for visualizing PxGraf data",
5
+ "main": "./dist/pxv.cjs",
6
+ "jestSonar": {
7
+ "reportPath": "reports",
8
+ "reportFile": "test-reporter.xml",
9
+ "indent": 4
10
+ },
11
+ "types": "./dist/types/index.d.ts",
12
+ "module": "./dist/pxv.module.js",
13
+ "unpkg": "./dist/pxv.umd.js",
14
+ "type": "module",
15
+ "source": "src/index.ts",
16
+ "exports": {
17
+ "require": "./dist/pxv.cjs",
18
+ "default": "./dist/pxv.modern.js"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "clean-publish": {
24
+ "fields": [
25
+ "scripts"
26
+ ],
27
+ "tempDir": "package"
28
+ },
29
+ "scripts": {
30
+ "test": "jest",
31
+ "test:ci": "jest --reporters=default --reporters=jest-junit",
32
+ "test:watch": "jest --watchAll=true",
33
+ "build": "microbundle --globals highcharts/modules/accessibility.js=highchartsAccessibility,highcharts/modules/exporting.js=highchartsExporting,highcharts/modules/export-data.js=highchartsExportData,highcharts/modules/offline-exporting.js=highchartsOfflineExporting",
34
+ "dev": "microbundle watch",
35
+ "storybook": "set NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 6006",
36
+ "storybook_legacy": "start-storybook -p 6006",
37
+ "build-storybook": "set NODE_OPTIONS=--openssl-legacy-provider && build-storybook",
38
+ "prepublishOnly": "npm run build",
39
+ "asd": "npm run build && clean-publish --without-publish && npm --prefix package/ pack",
40
+ "publish": "clean-publish"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": ""
45
+ },
46
+ "author": "Statistics Finland",
47
+ "license": "Apache-2.0",
48
+ "devDependencies": {
49
+ "@babel/core": "^7.24.4",
50
+ "@storybook/addon-a11y": "^6.5.16",
51
+ "@storybook/addon-actions": "^6.5.16",
52
+ "@storybook/addon-essentials": "^6.5.16",
53
+ "@storybook/addon-interactions": "^6.5.16",
54
+ "@storybook/addon-links": "^6.5.16",
55
+ "@storybook/builder-webpack4": "^6.5.16",
56
+ "@storybook/manager-webpack4": "^6.5.16",
57
+ "@storybook/react": "^6.5.16",
58
+ "@storybook/testing-library": "^0.0.13",
59
+ "@testing-library/dom": "^9.3.4",
60
+ "@testing-library/react": "^14.3.1",
61
+ "@types/jest": "^29.5.12",
62
+ "@types/papaparse": "^5.3.14",
63
+ "@types/react": "^18.2.79",
64
+ "@types/styled-components": "^5.1.34",
65
+ "@types/uuid": "^9.0.8",
66
+ "babel-loader": "^8.3.0",
67
+ "clean-publish": "^4.4.0",
68
+ "jest": "^29.7.0",
69
+ "jest-environment-jsdom": "^29.7.0",
70
+ "jest-junit": "^15.0.0",
71
+ "jest-sonar-reporter": "^2.0.0",
72
+ "jest-styled-components": "^7.2.0",
73
+ "microbundle": "^0.15.1",
74
+ "papaparse": "^5.4.1",
75
+ "react": "^18.2.0",
76
+ "react-dom": "^18.2.0",
77
+ "semver": "^7.6.0",
78
+ "styled-components": "^5.3.11",
79
+ "ts-jest": "^29.1.2",
80
+ "ts-node": "^10.9.2",
81
+ "typescript": "^4.9.5"
82
+ },
83
+ "dependencies": {
84
+ "decimal.js": "^10.4.3",
85
+ "highcharts": "^10.3.3",
86
+ "highcharts-react-official": "^3.2.1",
87
+ "uuid": "^9.0.1",
88
+ "xlsx": "^0.18.5"
89
+ },
90
+ "peerDependencies": {
91
+ "react": "^18.2.0",
92
+ "react-dom": "^18.2.0"
93
+ },
94
+ "keywords": [
95
+ "px-file",
96
+ "px",
97
+ "visualization"
98
+ ]
99
+ }