@opengis/bi 1.0.18 → 1.0.20

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 +117 -50
  2. package/config.js +12 -12
  3. package/dist/bi.js +1 -1
  4. package/dist/bi.umd.cjs +100 -92
  5. package/dist/{import-file-BdjSLXH1.js → import-file-DZ6_fy43.js} +20610 -20541
  6. package/dist/{map-component-mixin-BPiLgT8e.js → map-component-mixin-idLNEtH8.js} +3754 -5423
  7. package/dist/style.css +1 -1
  8. package/dist/{vs-calendar-CQIKItUs.js → vs-calendar-BCLE37OZ.js} +1 -1
  9. package/dist/{vs-funnel-bar-ChdzKfzS.js → vs-funnel-bar-CihmuMT1.js} +1 -1
  10. package/dist/{vs-heatmap-l5NqfXmF.js → vs-heatmap-BsM5Qee_.js} +1 -1
  11. package/dist/{vs-map-BYaGp0Cy.js → vs-map-BjBId3Ma.js} +25 -24
  12. package/dist/vs-map-cluster-Bj8JfS0x.js +76 -0
  13. package/dist/{vs-number-DN6VsgHi.js → vs-number-C-pgztKR.js} +1 -1
  14. package/dist/{vs-text-7pOGGSJS.js → vs-text-CXZ2Oldb.js} +5 -5
  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 +129 -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 +181 -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 +56 -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-CeVIRHf6.js +0 -106
  63. package/server/routes/dataset/controllers/bi.dataset.import.js +0 -67
package/README.md CHANGED
@@ -1,50 +1,117 @@
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
+
17
+ ### Charts 📈
18
+ | Bar | Heat Map |
19
+ |:------------:|:------------:|
20
+ | ![demo_bar](https://cdn.softpro.ua/data/npm/bi/demo_bar.gif) | ![demo_heatmap](https://cdn.softpro.ua/data/npm/bi/demo_heatmap.gif) |
21
+
22
+ | Map |
23
+ |:------------:|
24
+ | ![demo_map](https://cdn.softpro.ua/data/npm/bi/demo_map.gif) |
25
+
26
+ ### Full List
27
+
28
+ - Bar
29
+ - Calendar
30
+ - Funnel
31
+ - Heatmap
32
+ - Line
33
+ - List Bar
34
+ - Map cluster
35
+ - Number
36
+ - Pie / Donut
37
+ - Pivot table
38
+ - Progress Bar
39
+ - Stacked Bar
40
+ - Text
41
+
42
+ ### Examples
43
+
44
+ - http://bi.local.softpro.ua/dashboard
45
+
46
+ ---
47
+
48
+ ### Install
49
+
50
+ ```bash
51
+ npm i @opengis/bi
52
+ ```
53
+
54
+ ### Usage
55
+
56
+ ```js
57
+ fastify.register(import('@opengis/bi'), config);
58
+ ```
59
+
60
+ ```ts
61
+ import v3Bi from '@opengis/bi';
62
+ v3Bi.install(app)
63
+ ```
64
+
65
+ ---
66
+
67
+ ### Documenation
68
+
69
+ For a detailed understanding of `bi`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/bi-dev/).
70
+
71
+ ---
72
+
73
+ ### Technology stack
74
+
75
+ <a href="https://fastify.dev/" target="_blank">
76
+ <img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
77
+
78
+ <a href="https://vuejs.org/" target="_blank">
79
+ <img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
80
+
81
+ <a href="https://vite.dev/" target="_blank">
82
+ <img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
83
+
84
+ <a href="https://echarts.apache.org/en/index.html" target="_blank">
85
+ <img src="https://img.shields.io/badge/echarts-323330?style=for-the-badge&logo=apacheecharts&logoColor=E43C64" /></a>
86
+
87
+ <a href="https://www.postgresql.org/" target="_blank">
88
+ <img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
89
+
90
+ <a href="https://maplibre.org/" target="_blank">
91
+ <img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
92
+
93
+ ---
94
+
95
+ ### Contribute
96
+
97
+ Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email info@softpro.ua
98
+
99
+ - Report bugs
100
+ - Share your ideas
101
+ - Ask questions
102
+
103
+
104
+ ### Follow Us
105
+
106
+ [Official site](https://softpro.ua)
107
+
108
+ <p>
109
+ <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;
110
+ <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;
111
+ <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;
112
+ <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;
113
+ </p>
114
+
115
+ ### License
116
+
117
+ 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-BdjSLXH1.js";
1
+ import { l as f } from "./import-file-DZ6_fy43.js";
2
2
  export {
3
3
  f as default
4
4
  };