sea-chart 0.0.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/README.md +4 -0
- package/lib/assets/icons/area-chart.svg +10 -0
- package/lib/assets/icons/bar-chart.svg +12 -0
- package/lib/assets/icons/card.svg +22 -0
- package/lib/assets/icons/combination-chart.svg +17 -0
- package/lib/assets/icons/dtable-logo.svg +16 -0
- package/lib/assets/icons/facet-chart.svg +12 -0
- package/lib/assets/icons/gauge.svg +18 -0
- package/lib/assets/icons/heat-map.svg +14 -0
- package/lib/assets/icons/histogram.svg +12 -0
- package/lib/assets/icons/line-chart.svg +12 -0
- package/lib/assets/icons/map.svg +20 -0
- package/lib/assets/icons/pie-chart.svg +11 -0
- package/lib/assets/icons/rectangular-tree-diagram.svg +10 -0
- package/lib/assets/icons/scatter-chart.svg +15 -0
- package/lib/assets/icons/type-change.svg +17 -0
- package/lib/assets/img/area-chart.png +0 -0
- package/lib/assets/img/area-group-chart.png +0 -0
- package/lib/assets/img/bar-group.png +0 -0
- package/lib/assets/img/bar-stack.png +0 -0
- package/lib/assets/img/bar.png +0 -0
- package/lib/assets/img/combination-chart.png +0 -0
- package/lib/assets/img/compared-chart.png +0 -0
- package/lib/assets/img/completeness-chart.png +0 -0
- package/lib/assets/img/custom-bar.png +0 -0
- package/lib/assets/img/dashboard-chart.png +0 -0
- package/lib/assets/img/group-completeness-chart.png +0 -0
- package/lib/assets/img/group_line.png +0 -0
- package/lib/assets/img/heat-map.png +0 -0
- package/lib/assets/img/horizontal-bar.png +0 -0
- package/lib/assets/img/horizontal-group-bar.png +0 -0
- package/lib/assets/img/line.png +0 -0
- package/lib/assets/img/map-bubble.png +0 -0
- package/lib/assets/img/map.png +0 -0
- package/lib/assets/img/mirror.png +0 -0
- package/lib/assets/img/number-card.png +0 -0
- package/lib/assets/img/pie.png +0 -0
- package/lib/assets/img/pivot-table.png +0 -0
- package/lib/assets/img/ring.png +0 -0
- package/lib/assets/img/scatter.png +0 -0
- package/lib/assets/img/stacked-horizontal-bar.png +0 -0
- package/lib/assets/img/treemap.png +0 -0
- package/lib/assets/img/trend-chart.png +0 -0
- package/lib/assets/img/world-map-bubble.png +0 -0
- package/lib/assets/img/world-map.png +0 -0
- package/lib/components/collaborator/index.js +24 -0
- package/lib/components/formatter/area.js +162 -0
- package/lib/components/formatter/bar-group.js +160 -0
- package/lib/components/formatter/bar.js +150 -0
- package/lib/components/formatter/basic-number-card.js +138 -0
- package/lib/components/formatter/chart-component.js +266 -0
- package/lib/components/formatter/combination.js +407 -0
- package/lib/components/formatter/dashboard.js +182 -0
- package/lib/components/formatter/horizontal-bar-group.js +161 -0
- package/lib/components/formatter/horizontal-bar.js +152 -0
- package/lib/components/formatter/horizontal-component.js +91 -0
- package/lib/components/formatter/index.js +181 -0
- package/lib/components/formatter/line-group.js +157 -0
- package/lib/components/formatter/line.js +170 -0
- package/lib/components/formatter/pie.js +201 -0
- package/lib/components/formatter/ring.js +277 -0
- package/lib/components/formatter/table/index.css +103 -0
- package/lib/components/formatter/table/index.js +42 -0
- package/lib/components/formatter/table/one-dimension-table-no-numeric-columns.js +145 -0
- package/lib/components/formatter/table/one-dimension-table-with-numeric-columns.js +193 -0
- package/lib/components/formatter/table/pivot-table-display-name.js +249 -0
- package/lib/components/formatter/table/two-dimension-table.js +241 -0
- package/lib/components/formatter/treemap.js +213 -0
- package/lib/components/icon/index.css +5 -0
- package/lib/components/icon/index.js +22 -0
- package/lib/components/index.js +5 -0
- package/lib/components/loading/index.css +54 -0
- package/lib/components/loading/index.js +10 -0
- package/lib/components/number-input/index.js +31 -0
- package/lib/components/pixel-editor/index.css +29 -0
- package/lib/components/pixel-editor/index.js +42 -0
- package/lib/components/select-group/index.css +67 -0
- package/lib/components/select-group/index.js +63 -0
- package/lib/components/settings/advance-bar-settings/data-settings.js +120 -0
- package/lib/components/settings/advance-bar-settings/index.js +3 -0
- package/lib/components/settings/advance-bar-settings/style-settings.js +149 -0
- package/lib/components/settings/bar-settings/data-settings.js +137 -0
- package/lib/components/settings/bar-settings/index.js +3 -0
- package/lib/components/settings/bar-settings/style-settings.js +163 -0
- package/lib/components/settings/basic-number-card/data-settings.js +121 -0
- package/lib/components/settings/basic-number-card/index.js +3 -0
- package/lib/components/settings/basic-number-card/style-settings.js +42 -0
- package/lib/components/settings/combination-settings/data-settings.js +256 -0
- package/lib/components/settings/combination-settings/index.js +3 -0
- package/lib/components/settings/combination-settings/style-settings.js +183 -0
- package/lib/components/settings/dashboard-settings/data-settings.js +167 -0
- package/lib/components/settings/dashboard-settings/index.js +2 -0
- package/lib/components/settings/data-settings.js +67 -0
- package/lib/components/settings/horizontal-bar-settings/data-settings.js +45 -0
- package/lib/components/settings/horizontal-bar-settings/index.js +3 -0
- package/lib/components/settings/horizontal-bar-settings/style-settings.js +38 -0
- package/lib/components/settings/index.css +73 -0
- package/lib/components/settings/index.js +74 -0
- package/lib/components/settings/pie-settings/data-settings.js +123 -0
- package/lib/components/settings/pie-settings/index.js +3 -0
- package/lib/components/settings/pie-settings/style-settings.js +123 -0
- package/lib/components/settings/style-settings.js +100 -0
- package/lib/components/settings/table-settings/data-settings.js +488 -0
- package/lib/components/settings/table-settings/index.js +2 -0
- package/lib/components/settings/time-comparison-settings/data-settings.js +157 -0
- package/lib/components/settings/time-comparison-settings/index.js +3 -0
- package/lib/components/settings/time-comparison-settings/style-settings.js +191 -0
- package/lib/components/settings/widgets/basic-summary/index.css +12 -0
- package/lib/components/settings/widgets/basic-summary/index.js +173 -0
- package/lib/components/settings/widgets/common-data-settings.js +42 -0
- package/lib/components/settings/widgets/data-filter/index.css +17 -0
- package/lib/components/settings/widgets/data-filter/index.js +76 -0
- package/lib/components/settings/widgets/data-sort.js +38 -0
- package/lib/components/settings/widgets/date-summary-item.js +126 -0
- package/lib/components/settings/widgets/display-values-settings/index.css +13 -0
- package/lib/components/settings/widgets/display-values-settings/index.js +37 -0
- package/lib/components/settings/widgets/divider/index.css +4 -0
- package/lib/components/settings/widgets/divider/index.js +10 -0
- package/lib/components/settings/widgets/font-settings/font-size-settings.js +31 -0
- package/lib/components/settings/widgets/font-settings/font-weight-settings.js +46 -0
- package/lib/components/settings/widgets/font-settings/index.js +3 -0
- package/lib/components/settings/widgets/group-by.js +168 -0
- package/lib/components/settings/widgets/label-color.js +30 -0
- package/lib/components/settings/widgets/min-max-setting.js +64 -0
- package/lib/components/settings/widgets/mininum-slice-percent.js +72 -0
- package/lib/components/settings/widgets/numeric-summary-item.js +109 -0
- package/lib/components/settings/widgets/select-table/index.css +0 -0
- package/lib/components/settings/widgets/select-table/index.js +49 -0
- package/lib/components/settings/widgets/stack.js +58 -0
- package/lib/components/settings/widgets/statistic-type/index.css +31 -0
- package/lib/components/settings/widgets/statistic-type/index.js +54 -0
- package/lib/components/settings/widgets/summary-method-setting.js +80 -0
- package/lib/components/settings/widgets/summary-settings.js +394 -0
- package/lib/components/settings/widgets/switch/index.css +37 -0
- package/lib/components/settings/widgets/switch/index.js +21 -0
- package/lib/components/settings/widgets/text-horizontal-settings.js +23 -0
- package/lib/components/settings/widgets/time-picker.js +182 -0
- package/lib/components/settings/widgets/title-settings/index.js +58 -0
- package/lib/components/settings/widgets/title-settings/title-text.js +31 -0
- package/lib/components/settings/widgets/x-axios.js +0 -0
- package/lib/components/settings/widgets/y-axis-group-settings.js +399 -0
- package/lib/components/types-dialog/index.css +97 -0
- package/lib/components/types-dialog/index.js +127 -0
- package/lib/constants/geolocation.js +11 -0
- package/lib/constants/index.js +164 -0
- package/lib/constants/model.js +167 -0
- package/lib/constants/style.js +13 -0
- package/lib/constants/type-image.js +32 -0
- package/lib/constants/type.js +97 -0
- package/lib/context.js +49 -0
- package/lib/index.js +6 -0
- package/lib/intl.js +37 -0
- package/lib/layout/index.js +4 -0
- package/lib/layout/statistic/index.css +53 -0
- package/lib/layout/statistic/index.js +190 -0
- package/lib/layout/title/index.css +3 -0
- package/lib/layout/title/index.js +41 -0
- package/lib/locale/index.js +11 -0
- package/lib/locale/lang/de.js +141 -0
- package/lib/locale/lang/en.js +143 -0
- package/lib/locale/lang/es.js +141 -0
- package/lib/locale/lang/fr.js +141 -0
- package/lib/locale/lang/pt.js +141 -0
- package/lib/locale/lang/ru.js +141 -0
- package/lib/locale/lang/zh_CN.js +143 -0
- package/lib/model/area-group.js +51 -0
- package/lib/model/area.js +42 -0
- package/lib/model/bar-group.js +54 -0
- package/lib/model/bar-stack.js +51 -0
- package/lib/model/bar.js +48 -0
- package/lib/model/base-model.js +11 -0
- package/lib/model/basic-number-card.js +32 -0
- package/lib/model/combination.js +48 -0
- package/lib/model/compare-bar.js +49 -0
- package/lib/model/completeness-group.js +34 -0
- package/lib/model/completeness.js +28 -0
- package/lib/model/dashboard.js +26 -0
- package/lib/model/generic-model.js +235 -0
- package/lib/model/heat-map.js +33 -0
- package/lib/model/horizontal-bar.js +48 -0
- package/lib/model/horizontal-group-bar.js +53 -0
- package/lib/model/index.js +36 -0
- package/lib/model/line-group.js +54 -0
- package/lib/model/line.js +48 -0
- package/lib/model/map-bubble.js +37 -0
- package/lib/model/map.js +37 -0
- package/lib/model/mirror.js +36 -0
- package/lib/model/pie.js +36 -0
- package/lib/model/ring.js +36 -0
- package/lib/model/scatter.js +29 -0
- package/lib/model/stacked-horizontal-bar.js +42 -0
- package/lib/model/statistic.js +22 -0
- package/lib/model/table.js +33 -0
- package/lib/model/tree-map.js +30 -0
- package/lib/model/trend.js +34 -0
- package/lib/model/user.js +22 -0
- package/lib/model/world-map-bubble.js +36 -0
- package/lib/model/world-map.js +36 -0
- package/lib/utils/cell-format-utils.js +41 -0
- package/lib/utils/chart.js +6 -0
- package/lib/utils/collaborator-utils.js +40 -0
- package/lib/utils/column-utils.js +247 -0
- package/lib/utils/custom-g2.js +612 -0
- package/lib/utils/data-filter/filter-item-utils.js +80 -0
- package/lib/utils/data-filter/filters-utils.js +406 -0
- package/lib/utils/data-filter/index.js +3 -0
- package/lib/utils/date-translate.js +66 -0
- package/lib/utils/index.js +50 -0
- package/lib/utils/key-generator.js +13 -0
- package/lib/utils/object-utils.js +61 -0
- package/lib/utils/options-utils.js +61 -0
- package/lib/utils/statistic-column-2-sql-column-utils.js +499 -0
- package/lib/utils/statistic-utils.js +1685 -0
- package/package.json +160 -0
package/package.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sea-chart",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@antv/data-set": "0.11.8",
|
|
7
|
+
"@antv/g2": "4.1.46",
|
|
8
|
+
"@seafile/seafile-calendar": "0.0.24",
|
|
9
|
+
"babel-plugin-on-demand-loading": "^0.0.9",
|
|
10
|
+
"classnames": "^2.3.2",
|
|
11
|
+
"dayjs": "1.10.7",
|
|
12
|
+
"dtable-ui-component": "4.3.2",
|
|
13
|
+
"dtable-utils": "4.3.5",
|
|
14
|
+
"is-hotkey": "0.2.0",
|
|
15
|
+
"react": "17.0.2",
|
|
16
|
+
"react-dom": "17.0.2",
|
|
17
|
+
"reactstrap": "8.9.0",
|
|
18
|
+
"shallowequal": "^1.1.0",
|
|
19
|
+
"style-loader": "0.23.1",
|
|
20
|
+
"svg-sprite-loader": "^6.0.11",
|
|
21
|
+
"svgo-loader": "^3.0.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@antv/scale": "0.3.14"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "node scripts/build.js",
|
|
28
|
+
"build-storybook": "build-storybook -c .storybook -o docs",
|
|
29
|
+
"lint": "lint-staged",
|
|
30
|
+
"clean:esm": "rm -rf es && mkdir es",
|
|
31
|
+
"clean:lib": "rm -rf lib && mkdir lib",
|
|
32
|
+
"clean:dist": "rm -rf dist && mkdir dist",
|
|
33
|
+
"eslint": "eslint --ext .jsx,.js src --max-warnings=0",
|
|
34
|
+
"pub:esm": "npm run clean:esm && export BABEL_ENV=node && ./node_modules/.bin/babel src --out-dir es --copy-files",
|
|
35
|
+
"pub:lib": "npm run clean:lib && export BABEL_ENV=production && ./node_modules/.bin/babel src --out-dir lib --copy-files",
|
|
36
|
+
"pub:umd": "npm run build",
|
|
37
|
+
"pub:optimized": "rm lib/index.local.js && rm -rf lib/app",
|
|
38
|
+
"push-translate": "tx push -s",
|
|
39
|
+
"pull-translate": "tx pull -f",
|
|
40
|
+
"prepare": "husky install",
|
|
41
|
+
"prepublishOnly": "npm run pub:lib && npm run pub:umd && npm run pub:optimized",
|
|
42
|
+
"release": "release-it",
|
|
43
|
+
"start": "node scripts/start.js",
|
|
44
|
+
"storybook": "start-storybook -p 6006",
|
|
45
|
+
"test": "node scripts/test.js"
|
|
46
|
+
},
|
|
47
|
+
"lint-staged": {
|
|
48
|
+
"src/**/*.js": [
|
|
49
|
+
"eslint --ext .tsx,.ts,.js ./src",
|
|
50
|
+
"git add"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"assets",
|
|
55
|
+
"dist",
|
|
56
|
+
"lib",
|
|
57
|
+
"es",
|
|
58
|
+
"index.js",
|
|
59
|
+
"packagge.json"
|
|
60
|
+
],
|
|
61
|
+
"browserslist": {
|
|
62
|
+
"production": [
|
|
63
|
+
">0.2%",
|
|
64
|
+
"not dead",
|
|
65
|
+
"not op_mini all"
|
|
66
|
+
],
|
|
67
|
+
"development": [
|
|
68
|
+
"last 1 chrome version",
|
|
69
|
+
"last 1 firefox version",
|
|
70
|
+
"last 1 safari version"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@babel/cli": "^7.8.4",
|
|
75
|
+
"@babel/core": "^7.8.4",
|
|
76
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
77
|
+
"@babel/plugin-proposal-export-default-from": "^7.8.3",
|
|
78
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
|
|
79
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
|
|
80
|
+
"@babel/plugin-transform-runtime": "^7.10.1",
|
|
81
|
+
"@babel/polyfill": "^7.10.1",
|
|
82
|
+
"@babel/preset-env": "^7.9.5",
|
|
83
|
+
"@babel/runtime": "^7.14.0",
|
|
84
|
+
"@storybook/addon-actions": "^5.3.14",
|
|
85
|
+
"@storybook/addon-info": "^5.3.19",
|
|
86
|
+
"@storybook/addon-knobs": "^5.3.19",
|
|
87
|
+
"@storybook/addon-links": "^5.3.14",
|
|
88
|
+
"@storybook/addons": "^5.3.14",
|
|
89
|
+
"@storybook/react": "^7.5.0",
|
|
90
|
+
"@svgr/webpack": "4.3.3",
|
|
91
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
92
|
+
"@testing-library/react": "^9.5.0",
|
|
93
|
+
"@testing-library/user-event": "^7.2.1",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
95
|
+
"@typescript-eslint/parser": "^2.10.0",
|
|
96
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
97
|
+
"babel-eslint": "10.0.3",
|
|
98
|
+
"babel-jest": "^24.9.0",
|
|
99
|
+
"babel-loader": "8.0.6",
|
|
100
|
+
"babel-plugin-import": "^1.13.6",
|
|
101
|
+
"babel-plugin-named-asset-import": "^0.3.6",
|
|
102
|
+
"babel-preset-react-app": "^9.1.1",
|
|
103
|
+
"camelcase": "^5.3.1",
|
|
104
|
+
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
105
|
+
"css-loader": "3.4.2",
|
|
106
|
+
"dotenv": "8.2.0",
|
|
107
|
+
"dotenv-expand": "5.1.0",
|
|
108
|
+
"enzyme": "^3.11.0",
|
|
109
|
+
"eslint": "^6.6.0",
|
|
110
|
+
"eslint-config-react-app": "^5.2.0",
|
|
111
|
+
"eslint-loader": "3.0.3",
|
|
112
|
+
"eslint-plugin-flowtype": "4.6.0",
|
|
113
|
+
"eslint-plugin-import": "2.20.0",
|
|
114
|
+
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
115
|
+
"eslint-plugin-react": "7.18.0",
|
|
116
|
+
"eslint-plugin-react-hooks": "^1.6.1",
|
|
117
|
+
"file-loader": "4.3.0",
|
|
118
|
+
"fs-extra": "^8.1.0",
|
|
119
|
+
"html-webpack-plugin": "4.0.0-beta.11",
|
|
120
|
+
"husky": "^6.0.0",
|
|
121
|
+
"i18next": "22.4.9",
|
|
122
|
+
"i18next-browser-languagedetector": "7.0.1",
|
|
123
|
+
"i18next-xhr-backend": "3.2.2",
|
|
124
|
+
"identity-obj-proxy": "3.0.0",
|
|
125
|
+
"jest": "24.9.0",
|
|
126
|
+
"jest-environment-jsdom-fourteen": "1.0.1",
|
|
127
|
+
"jest-resolve": "24.9.0",
|
|
128
|
+
"jest-watch-typeahead": "0.4.2",
|
|
129
|
+
"lint-staged": "14.0.0",
|
|
130
|
+
"mini-css-extract-plugin": "0.9.0",
|
|
131
|
+
"optimize-css-assets-webpack-plugin": "5.0.3",
|
|
132
|
+
"pnp-webpack-plugin": "1.6.0",
|
|
133
|
+
"postcss-flexbugs-fixes": "4.1.0",
|
|
134
|
+
"postcss-loader": "3.0.0",
|
|
135
|
+
"postcss-normalize": "8.0.1",
|
|
136
|
+
"postcss-preset-env": "6.7.0",
|
|
137
|
+
"postcss-safe-parser": "4.0.1",
|
|
138
|
+
"react-app-polyfill": "^3.0.0",
|
|
139
|
+
"react-dev-utils": "^12.0.1",
|
|
140
|
+
"react-dom": "17.0.2",
|
|
141
|
+
"react-element-to-jsx-string": "^14.3.1",
|
|
142
|
+
"react-i18next": "^10.12.2",
|
|
143
|
+
"react-responsive": "^8.0.3",
|
|
144
|
+
"react-select": "5.7.0",
|
|
145
|
+
"react-sweet-progress": "^1.1.2",
|
|
146
|
+
"react-transition-group": "^4.4.1",
|
|
147
|
+
"release-it": "16.2.1",
|
|
148
|
+
"resolve": "1.15.0",
|
|
149
|
+
"resolve-url-loader": "3.1.5",
|
|
150
|
+
"sass-loader": "8.0.2",
|
|
151
|
+
"semver": "6.3.1",
|
|
152
|
+
"terser-webpack-plugin": "2.3.4",
|
|
153
|
+
"ts-pnp": "1.1.5",
|
|
154
|
+
"url-loader": "2.3.0",
|
|
155
|
+
"webpack": "4.41.5",
|
|
156
|
+
"webpack-dev-server": "3.11.3",
|
|
157
|
+
"webpack-manifest-plugin": "2.2.0",
|
|
158
|
+
"workbox-webpack-plugin": "4.3.1"
|
|
159
|
+
}
|
|
160
|
+
}
|