@opengis/bi 1.0.17 → 1.0.19
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 +110 -50
- package/config.js +12 -12
- package/dist/bi.js +1 -1
- package/dist/bi.umd.cjs +68 -76
- package/dist/{import-file-CJYiO_4_.js → import-file-BJjgK8Hl.js} +11072 -11065
- package/dist/{map-component-mixin-zHwqWXJY.js → map-component-mixin-BDeshFZi.js} +3803 -5455
- package/dist/style.css +1 -1
- package/dist/{vs-calendar-BAPnMYRd.js → vs-calendar-D98bcwCO.js} +36 -30
- package/dist/{vs-funnel-bar-DCK7gSj4.js → vs-funnel-bar-Ps4AevXk.js} +1 -1
- package/dist/{vs-heatmap-kd6FKOrT.js → vs-heatmap-DQ4l7XOD.js} +1 -1
- package/dist/{vs-map-BNm381mR.js → vs-map-C36n66Hj.js} +25 -24
- package/dist/vs-map-cluster-Bcjcul0f.js +76 -0
- package/dist/{vs-number-DH5bYG7m.js → vs-number-XzxJiWRu.js} +1 -1
- package/dist/{vs-text-DXkA7s1D.js → vs-text-DWhTWJlt.js} +2 -2
- package/package.json +94 -87
- package/plugin.js +14 -14
- package/server/migrations/bi.dataset.sql +32 -26
- package/server/migrations/bi.sql +93 -93
- package/server/plugins/docs.js +48 -48
- package/server/plugins/hook.js +89 -89
- package/server/plugins/vite.js +69 -69
- package/server/routes/dashboard/controllers/dashboard.delete.js +38 -38
- package/server/routes/dashboard/controllers/dashboard.js +118 -118
- package/server/routes/dashboard/controllers/dashboard.list.js +30 -30
- package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
- package/server/routes/dashboard/index.mjs +25 -25
- package/server/routes/data/controllers/data.js +167 -167
- package/server/routes/data/controllers/util/chartSQL.js +42 -42
- package/server/routes/data/controllers/util/normalizeData.js +59 -59
- package/server/routes/data/index.mjs +29 -29
- package/server/routes/dataset/controllers/bi.dataset.add.js +86 -0
- package/server/routes/dataset/controllers/bi.dataset.data.add.js +49 -0
- package/server/routes/dataset/controllers/bi.dataset.data.del.js +54 -0
- package/server/routes/dataset/controllers/bi.dataset.data.edit.js +55 -0
- package/server/routes/dataset/controllers/bi.dataset.data.list.js +71 -0
- package/server/routes/dataset/controllers/bi.dataset.del.js +48 -0
- package/server/routes/dataset/controllers/bi.dataset.demo.add.js +2 -2
- package/server/routes/dataset/controllers/bi.dataset.edit.js +83 -0
- package/server/routes/dataset/controllers/bi.dataset.list.js +29 -0
- package/server/routes/dataset/controllers/bi.db.list.js +19 -0
- package/server/routes/dataset/controllers/util/create.table.js +2 -3
- package/server/routes/dataset/controllers/util/prepare.data.js +5 -5
- package/server/routes/dataset/index.mjs +75 -19
- package/server/routes/db/controllers/dbTablePreview.js +63 -63
- package/server/routes/db/controllers/dbTables.js +36 -36
- package/server/routes/db/index.mjs +17 -17
- package/server/routes/edit/controllers/dashboard.add.js +26 -26
- package/server/routes/edit/controllers/dashboard.edit.js +46 -46
- package/server/routes/edit/controllers/widget.add.js +75 -75
- package/server/routes/edit/controllers/widget.del.js +69 -69
- package/server/routes/edit/controllers/widget.edit.js +54 -54
- package/server/routes/edit/index.mjs +31 -31
- package/server/routes/map/controllers/cluster.js +109 -109
- package/server/routes/map/controllers/clusterVtile.js +166 -166
- package/server/routes/map/controllers/geojson.js +127 -127
- package/server/routes/map/controllers/map.js +60 -60
- package/server/routes/map/controllers/utils/downloadClusterData.js +42 -42
- package/server/routes/map/controllers/vtile.js +183 -183
- package/server/routes/map/index.mjs +25 -25
- package/server/utils/getWidget.js +85 -85
- package/utils.js +12 -12
- package/dist/vs-map-cluster-D3jk7J8D.js +0 -106
- package/server/routes/dataset/controllers/bi.dataset.import.js +0 -67
package/README.md
CHANGED
|
@@ -1,50 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@opengis/bi)
|
|
4
|
+
[]()
|
|
5
|
+
[]()
|
|
6
|
+
[](http://standardjs.com/)
|
|
7
|
+
|
|
8
|
+
A subsystem for creating interactive graphical representations of key information, displayed as widgets and charts.
|
|
9
|
+
|
|
10
|
+
### Features ✨
|
|
11
|
+
|
|
12
|
+
- Data visualization in the form of charts, graphs, maps, and other widgets
|
|
13
|
+
- Interactive analysis – allows users to interact with data and manipulate charts to obtain more detailed information
|
|
14
|
+
- Data filters
|
|
15
|
+
- Dashboard, Widget Editor
|
|
16
|
+
- Integration with @opengis/admin
|
|
17
|
+
|
|
18
|
+
### Charts 📈
|
|
19
|
+
| Bar | Heat Map |
|
|
20
|
+
|:------------:|:------------:|
|
|
21
|
+
|  |  |
|
|
22
|
+
|
|
23
|
+
| Map |
|
|
24
|
+
|:------------:|
|
|
25
|
+
|  |
|
|
26
|
+
|
|
27
|
+
### Full List
|
|
28
|
+
|
|
29
|
+
- Bar
|
|
30
|
+
- Calendar
|
|
31
|
+
- Funnel
|
|
32
|
+
- Heatmap
|
|
33
|
+
- Line
|
|
34
|
+
- List Bar
|
|
35
|
+
- Map cluster
|
|
36
|
+
- Number
|
|
37
|
+
- Pie / Donut
|
|
38
|
+
- Pivot table
|
|
39
|
+
- Progress Bar
|
|
40
|
+
- Stacked Bar
|
|
41
|
+
- Text
|
|
42
|
+
|
|
43
|
+
### Examples
|
|
44
|
+
|
|
45
|
+
- http://bi.local.softpro.ua/dashboard
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### Install
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm i @opengis/bi
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Usage
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
fastify.register(import('@opengis/bi'), config);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### Documenation
|
|
64
|
+
|
|
65
|
+
For a detailed understanding of `bi`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/bi-dev/).
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### Technology stack
|
|
70
|
+
|
|
71
|
+
<a href="https://fastify.dev/" target="_blank">
|
|
72
|
+
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
|
73
|
+
|
|
74
|
+
<a href="https://vuejs.org/" target="_blank">
|
|
75
|
+
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
|
76
|
+
|
|
77
|
+
<a href="https://vite.dev/" target="_blank">
|
|
78
|
+
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
|
79
|
+
|
|
80
|
+
<a href="https://www.postgresql.org/" target="_blank">
|
|
81
|
+
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
|
82
|
+
|
|
83
|
+
<a href="https://maplibre.org/" target="_blank">
|
|
84
|
+
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### Contribute
|
|
89
|
+
|
|
90
|
+
Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email info@softpro.ua
|
|
91
|
+
|
|
92
|
+
- Report bugs
|
|
93
|
+
- Share your ideas
|
|
94
|
+
- Ask questions
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Follow Us
|
|
98
|
+
|
|
99
|
+
[Official site](https://softpro.ua)
|
|
100
|
+
|
|
101
|
+
<p>
|
|
102
|
+
<a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>
|
|
103
|
+
<a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>
|
|
104
|
+
<a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>
|
|
105
|
+
<a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
### License
|
|
109
|
+
|
|
110
|
+
Copyright © SOFTPRO. All rights reserved.
|
package/config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from 'fs';
|
|
2
|
-
|
|
3
|
-
const fileName = ['/data/local/config.json', 'config.json'].find((el) =>
|
|
4
|
-
existsSync(el) ? el : null
|
|
5
|
-
);
|
|
6
|
-
const config = fileName ? JSON.parse(readFileSync(fileName), '{}') : {};
|
|
7
|
-
|
|
8
|
-
Object.assign(config, {
|
|
9
|
-
allTemplates: config?.allTemplates || {},
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export default config;
|
|
1
|
+
import { existsSync, readFileSync } from 'fs';
|
|
2
|
+
|
|
3
|
+
const fileName = ['/data/local/config.json', 'config.json'].find((el) =>
|
|
4
|
+
existsSync(el) ? el : null
|
|
5
|
+
);
|
|
6
|
+
const config = fileName ? JSON.parse(readFileSync(fileName), '{}') : {};
|
|
7
|
+
|
|
8
|
+
Object.assign(config, {
|
|
9
|
+
allTemplates: config?.allTemplates || {},
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export default config;
|
package/dist/bi.js
CHANGED