@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.
Files changed (63) hide show
  1. package/README.md +110 -50
  2. package/config.js +12 -12
  3. package/dist/bi.js +1 -1
  4. package/dist/bi.umd.cjs +68 -76
  5. package/dist/{import-file-CJYiO_4_.js → import-file-BJjgK8Hl.js} +11072 -11065
  6. package/dist/{map-component-mixin-zHwqWXJY.js → map-component-mixin-BDeshFZi.js} +3803 -5455
  7. package/dist/style.css +1 -1
  8. package/dist/{vs-calendar-BAPnMYRd.js → vs-calendar-D98bcwCO.js} +36 -30
  9. package/dist/{vs-funnel-bar-DCK7gSj4.js → vs-funnel-bar-Ps4AevXk.js} +1 -1
  10. package/dist/{vs-heatmap-kd6FKOrT.js → vs-heatmap-DQ4l7XOD.js} +1 -1
  11. package/dist/{vs-map-BNm381mR.js → vs-map-C36n66Hj.js} +25 -24
  12. package/dist/vs-map-cluster-Bcjcul0f.js +76 -0
  13. package/dist/{vs-number-DH5bYG7m.js → vs-number-XzxJiWRu.js} +1 -1
  14. package/dist/{vs-text-DXkA7s1D.js → vs-text-DWhTWJlt.js} +2 -2
  15. package/package.json +94 -87
  16. package/plugin.js +14 -14
  17. package/server/migrations/bi.dataset.sql +32 -26
  18. package/server/migrations/bi.sql +93 -93
  19. package/server/plugins/docs.js +48 -48
  20. package/server/plugins/hook.js +89 -89
  21. package/server/plugins/vite.js +69 -69
  22. package/server/routes/dashboard/controllers/dashboard.delete.js +38 -38
  23. package/server/routes/dashboard/controllers/dashboard.js +118 -118
  24. package/server/routes/dashboard/controllers/dashboard.list.js +30 -30
  25. package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
  26. package/server/routes/dashboard/index.mjs +25 -25
  27. package/server/routes/data/controllers/data.js +167 -167
  28. package/server/routes/data/controllers/util/chartSQL.js +42 -42
  29. package/server/routes/data/controllers/util/normalizeData.js +59 -59
  30. package/server/routes/data/index.mjs +29 -29
  31. package/server/routes/dataset/controllers/bi.dataset.add.js +86 -0
  32. package/server/routes/dataset/controllers/bi.dataset.data.add.js +49 -0
  33. package/server/routes/dataset/controllers/bi.dataset.data.del.js +54 -0
  34. package/server/routes/dataset/controllers/bi.dataset.data.edit.js +55 -0
  35. package/server/routes/dataset/controllers/bi.dataset.data.list.js +71 -0
  36. package/server/routes/dataset/controllers/bi.dataset.del.js +48 -0
  37. package/server/routes/dataset/controllers/bi.dataset.demo.add.js +2 -2
  38. package/server/routes/dataset/controllers/bi.dataset.edit.js +83 -0
  39. package/server/routes/dataset/controllers/bi.dataset.list.js +29 -0
  40. package/server/routes/dataset/controllers/bi.db.list.js +19 -0
  41. package/server/routes/dataset/controllers/util/create.table.js +2 -3
  42. package/server/routes/dataset/controllers/util/prepare.data.js +5 -5
  43. package/server/routes/dataset/index.mjs +75 -19
  44. package/server/routes/db/controllers/dbTablePreview.js +63 -63
  45. package/server/routes/db/controllers/dbTables.js +36 -36
  46. package/server/routes/db/index.mjs +17 -17
  47. package/server/routes/edit/controllers/dashboard.add.js +26 -26
  48. package/server/routes/edit/controllers/dashboard.edit.js +46 -46
  49. package/server/routes/edit/controllers/widget.add.js +75 -75
  50. package/server/routes/edit/controllers/widget.del.js +69 -69
  51. package/server/routes/edit/controllers/widget.edit.js +54 -54
  52. package/server/routes/edit/index.mjs +31 -31
  53. package/server/routes/map/controllers/cluster.js +109 -109
  54. package/server/routes/map/controllers/clusterVtile.js +166 -166
  55. package/server/routes/map/controllers/geojson.js +127 -127
  56. package/server/routes/map/controllers/map.js +60 -60
  57. package/server/routes/map/controllers/utils/downloadClusterData.js +42 -42
  58. package/server/routes/map/controllers/vtile.js +183 -183
  59. package/server/routes/map/index.mjs +25 -25
  60. package/server/utils/getWidget.js +85 -85
  61. package/utils.js +12 -12
  62. package/dist/vs-map-cluster-D3jk7J8D.js +0 -106
  63. package/server/routes/dataset/controllers/bi.dataset.import.js +0 -67
package/README.md CHANGED
@@ -1,50 +1,110 @@
1
- # Аналітичний модуль - BI
2
-
3
- BI (Business Intelligence) - поняття, яке поєднує в собі бізнес-аналітику, інтелектуальний аналіз даних, візуалізацію даних, інструменти та інфраструктуру для роботи з даними.
4
-
5
- [![NPM version](https://img.shields.io/npm/v/@opengis/bi)](https://www.npmjs.com/package/@opengis/bi)
6
- [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
7
-
8
- ## Короткий опис
9
-
10
- Підсистема для створення інтерактивних графічних представлень ключової інформації, яка відображається у вигляді віджетів та графіків.
11
-
12
- Модуль містить реєстри:
13
-
14
- - Панель управління (Dashboard)
15
- - Набір даних (Dataset)
16
-
17
- Та забезпечує можливості:
18
-
19
- - Візуалізації даних у вигляді графіків, діаграм, карт та інших віджетів;
20
- - Інтерактивного аналізу - дозволяє користувачам взаємодіяти з даними та маніпулювати графіками для отримання більш докладної інформації;
21
- - підтримки реєстрів дашбордів та наборів даних.
22
-
23
- ![Інтерфейс](/assets/image/interface.png)
24
-
25
- ## Встновлення
26
-
27
- ```bash
28
- npm i @opengis/bi
29
- ```
30
-
31
- ## Використання
32
-
33
- ```js
34
- fastify.register(import('@opengis/bi'), config);
35
- ```
36
-
37
- ## Приклади впроваджень:
38
-
39
- - Підсистема «Аналітичний модуль» Червоноградської міської ради.
40
-
41
- ## Документація
42
-
43
- [BI - Аналітичний модуль](https://docs.softpro.ua/bi/#bi)
44
- [apidocs/bi](https://apidocs.softpro.ua/bi/api/).
45
-
46
- ## License
47
-
48
- Copyright © SOFTPRO. Усі права захищено.
49
-
50
- [SOFTPRO](https://softpro.ua)
1
+ ![alt text](https://cdn.softpro.ua/data/npm/bi/opengis-bi.png)
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@opengis/bi)](https://www.npmjs.com/package/@opengis/bi)
4
+ [![NPM last update](https://img.shields.io/npm/last-update/@opengis/bi?style=plain)]()
5
+ [![NPM downloads](https://img.shields.io/npm/dw/@opengis/bi?style=plain)]()
6
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](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
+ | ![demo_bar](https://cdn.softpro.ua/data/npm/bi/demo_bar.gif) | ![demo_heatmap](https://cdn.softpro.ua/data/npm/bi/demo_heatmap.gif) |
22
+
23
+ | Map |
24
+ |:------------:|
25
+ | ![demo_map](https://cdn.softpro.ua/data/npm/bi/demo_map.gif) |
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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
@@ -1,4 +1,4 @@
1
- import { l as f } from "./import-file-CJYiO_4_.js";
1
+ import { l as f } from "./import-file-BJjgK8Hl.js";
2
2
  export {
3
3
  f as default
4
4
  };