@opengis/bi 1.2.30 → 1.2.32
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 +92 -92
- package/dist/bi.js +1 -1
- package/dist/bi.umd.cjs +88 -86
- package/dist/{import-file-B4o9p2_2.js → import-file-D-ISqB7l.js} +1772 -1593
- package/dist/style.css +1 -1
- package/dist/{vs-funnel-bar-BOWwPnjW.js → vs-funnel-bar-aoZzvriV.js} +3 -3
- package/dist/{vs-list-D8jGusRT.js → vs-list-CBkyJSBj.js} +53 -32
- package/dist/{vs-map-BGplOwpB.js → vs-map-C3C11qmT.js} +102 -91
- package/dist/{vs-map-cluster-CHQJV2As.js → vs-map-cluster-BsPmHIMx.js} +91 -81
- package/dist/{vs-number-jPqxFQ6d.js → vs-number-d58ftpH5.js} +3 -3
- package/dist/{vs-table-BDgIvJbY.js → vs-table-BHa5Velm.js} +6 -6
- package/dist/{vs-text-DcHOffy9.js → vs-text-Bq87gMTx.js} +4 -4
- package/package.json +77 -75
- package/plugin.js +21 -22
- package/server/helpers/mdToHTML.js +17 -17
- package/server/migrations/bi.dataset.sql +46 -46
- package/server/migrations/bi.sql +115 -112
- package/server/plugins/docs.js +48 -48
- package/server/plugins/hook.js +89 -89
- package/server/plugins/vite.js +81 -81
- package/server/routes/dashboard/controllers/dashboard.import.js +103 -103
- package/server/routes/dashboard/controllers/dashboard.js +158 -157
- package/server/routes/dashboard/controllers/dashboard.list.js +60 -60
- package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
- package/server/routes/dashboard/index.mjs +26 -26
- package/server/routes/data/controllers/data.js +230 -229
- package/server/routes/data/controllers/util/chartSQL.js +49 -49
- package/server/routes/data/controllers/util/normalizeData.js +65 -65
- package/server/routes/data/index.mjs +38 -38
- package/server/routes/dataset/controllers/bi.dataset.list.js +29 -29
- package/server/routes/dataset/controllers/bi.db.list.js +19 -19
- package/server/routes/dataset/controllers/comment.js +55 -55
- package/server/routes/dataset/controllers/createDatasetPost.js +134 -134
- package/server/routes/dataset/controllers/data.js +149 -149
- package/server/routes/dataset/controllers/dbTablePreview.js +58 -58
- package/server/routes/dataset/controllers/dbTables.js +34 -34
- package/server/routes/dataset/controllers/delete.js +40 -40
- package/server/routes/dataset/controllers/deleteDataset.js +52 -52
- package/server/routes/dataset/controllers/editDataset.js +90 -90
- package/server/routes/dataset/controllers/export.js +214 -214
- package/server/routes/dataset/controllers/form.js +99 -99
- package/server/routes/dataset/controllers/format.js +46 -46
- package/server/routes/dataset/controllers/insert.js +47 -47
- package/server/routes/dataset/controllers/table.js +68 -68
- package/server/routes/dataset/controllers/update.js +43 -43
- package/server/routes/dataset/index.mjs +132 -132
- package/server/routes/dataset/utils/convertJSONToCSV.js +17 -17
- package/server/routes/dataset/utils/convertJSONToXls.js +47 -47
- package/server/routes/dataset/utils/createTableQuery.js +59 -59
- package/server/routes/dataset/utils/datasetForms.js +1 -1
- package/server/routes/dataset/utils/descriptionList.js +45 -45
- package/server/routes/dataset/utils/downloadRemoteFile.js +58 -58
- package/server/routes/dataset/utils/executeQuery.js +46 -46
- package/server/routes/dataset/utils/getLayersData.js +106 -106
- package/server/routes/dataset/utils/getTableData.js +46 -46
- package/server/routes/dataset/utils/insertDataQuery.js +12 -12
- package/server/routes/dataset/utils/metaFormat.js +24 -24
- package/server/routes/edit/controllers/dashboard.add.js +36 -36
- package/server/routes/edit/controllers/dashboard.delete.js +39 -39
- package/server/routes/edit/controllers/dashboard.edit.js +61 -61
- package/server/routes/edit/controllers/widget.add.js +78 -78
- package/server/routes/edit/controllers/widget.del.js +58 -58
- package/server/routes/edit/controllers/widget.edit.js +115 -115
- package/server/routes/edit/index.mjs +33 -33
- package/server/routes/map/controllers/cluster.js +125 -125
- package/server/routes/map/controllers/clusterVtile.js +166 -166
- package/server/routes/map/controllers/geojson.js +127 -127
- package/server/routes/map/controllers/heatmap.js +118 -118
- package/server/routes/map/controllers/map.js +69 -69
- package/server/routes/map/controllers/utils/downloadClusterData.js +44 -44
- package/server/routes/map/controllers/vtile.js +183 -183
- package/server/routes/map/index.mjs +32 -32
- package/server/templates/page/login.html +58 -58
- package/server/utils/getWidget.js +118 -117
- package/utils.js +12 -12
package/README.md
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
# SOFTPRO: BI
|
|
2
|
-
|
|
3
|
-
**Softpro BI** is an open-source JavaScript data visualization library that enables users to build interactive dashboards and visual analytics. It provides tools to display key business or operational data using widgets, charts, and maps, helping organizations analyze information and make data-driven decisions.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- **Interactive dashboards** – Create dashboards that present key metrics and insights through visual widgets and charts.
|
|
8
|
-
- **BI Editor** – A built-in editor for designing and configuring custom dashboards.
|
|
9
|
-
- **Flexible filtering system** – Apply dashboard-level and widget-level filters to control which data is displayed.
|
|
10
|
-
- **Multiple visualization widgets** – Includes charts such as bar, line, pie, KPI, funnel, table, progress bars, and geographic maps.
|
|
11
|
-
- **Geospatial visualization** – Support for map-based widgets such as point maps and choropleth maps for geographic data analysis.
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm i @opengis/bi
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
```vue
|
|
22
|
-
<template>
|
|
23
|
-
<!--$route.params.id-->
|
|
24
|
-
<BiDashboard :id="'home'" />
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script setup lang="ts">
|
|
28
|
-
const BiDashboard = defineAsyncComponent(() =>
|
|
29
|
-
import('@opengis/bi').then((m) => m.Dashboard)
|
|
30
|
-
);
|
|
31
|
-
</script>
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Usage Admin
|
|
35
|
-
|
|
36
|
-
```js
|
|
37
|
-
// router.config
|
|
38
|
-
export default [
|
|
39
|
-
{
|
|
40
|
-
path: '/bi.editor/:id?',
|
|
41
|
-
component: () => import('@opengis/bi').then((m) => m.Editor),
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Documentation
|
|
47
|
-
|
|
48
|
-
For a detailed understanding of `bi`, its features, and how to use them, refer to our [Documentation](https://bi.opengis.info/).
|
|
49
|
-
|
|
50
|
-
## Демо
|
|
51
|
-
|
|
52
|
-

|
|
53
|
-
|
|
54
|
-
## Стек технологій
|
|
55
|
-
|
|
56
|
-
<a href="https://vuejs.org/" target="_blank">
|
|
57
|
-
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
|
58
|
-
<a href="https://vite.dev/" target="_blank">
|
|
59
|
-
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
|
60
|
-
<a href="https://www.postgresql.org/" target="_blank">
|
|
61
|
-
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
|
62
|
-
<a href="https://maplibre.org/" target="_blank">
|
|
63
|
-
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
|
64
|
-
<a href="https://nodejs.org/" target="_blank">
|
|
65
|
-
<img src="https://img.shields.io/badge/Node%20js-323330?style=for-the-badge&logo=nodedotjs&logoColor=4FC08D" /></a>
|
|
66
|
-
<a href="https://fastify.dev/" target="_blank">
|
|
67
|
-
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
|
68
|
-
<a href="https://echarts.apache.org" target="_blank">
|
|
69
|
-
<img src="https://img.shields.io/badge/Apache%20ECharts-323330?style=for-the-badge&logo=Apache-ECharts&logoColor=4FC08D" /></a>
|
|
70
|
-
|
|
71
|
-
## Контакти
|
|
72
|
-
|
|
73
|
-
Ви можете зв’язатися з нами за посиланням на офіційний сайт: SOFTPRO.UA або за допомогою електронної пошти info@softpro.ua, якщо у вас виникли:
|
|
74
|
-
|
|
75
|
-
- технічні несправності;
|
|
76
|
-
- помилки під час користування;
|
|
77
|
-
- запитання чи пропозиції.
|
|
78
|
-
|
|
79
|
-
## Слідкуйте за нами
|
|
80
|
-
|
|
81
|
-
[Офіційний сайт](https://softpro.ua)
|
|
82
|
-
|
|
83
|
-
<p>
|
|
84
|
-
<a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="Softpro Instagram"></a>
|
|
85
|
-
<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>
|
|
86
|
-
<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>
|
|
87
|
-
<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>
|
|
88
|
-
</p>
|
|
89
|
-
|
|
90
|
-
### License
|
|
91
|
-
|
|
92
|
-
Copyright © 2025 SOFTPRO. All rights reserved.
|
|
1
|
+
# SOFTPRO: BI
|
|
2
|
+
|
|
3
|
+
**Softpro BI** is an open-source JavaScript data visualization library that enables users to build interactive dashboards and visual analytics. It provides tools to display key business or operational data using widgets, charts, and maps, helping organizations analyze information and make data-driven decisions.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Interactive dashboards** – Create dashboards that present key metrics and insights through visual widgets and charts.
|
|
8
|
+
- **BI Editor** – A built-in editor for designing and configuring custom dashboards.
|
|
9
|
+
- **Flexible filtering system** – Apply dashboard-level and widget-level filters to control which data is displayed.
|
|
10
|
+
- **Multiple visualization widgets** – Includes charts such as bar, line, pie, KPI, funnel, table, progress bars, and geographic maps.
|
|
11
|
+
- **Geospatial visualization** – Support for map-based widgets such as point maps and choropleth maps for geographic data analysis.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm i @opengis/bi
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```vue
|
|
22
|
+
<template>
|
|
23
|
+
<!--$route.params.id-->
|
|
24
|
+
<BiDashboard :id="'home'" />
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
const BiDashboard = defineAsyncComponent(() =>
|
|
29
|
+
import('@opengis/bi').then((m) => m.Dashboard)
|
|
30
|
+
);
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage Admin
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// router.config
|
|
38
|
+
export default [
|
|
39
|
+
{
|
|
40
|
+
path: '/bi.editor/:id?',
|
|
41
|
+
component: () => import('@opengis/bi').then((m) => m.Editor),
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
For a detailed understanding of `bi`, its features, and how to use them, refer to our [Documentation](https://bi.opengis.info/).
|
|
49
|
+
|
|
50
|
+
## Демо
|
|
51
|
+
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
## Стек технологій
|
|
55
|
+
|
|
56
|
+
<a href="https://vuejs.org/" target="_blank">
|
|
57
|
+
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
|
58
|
+
<a href="https://vite.dev/" target="_blank">
|
|
59
|
+
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
|
60
|
+
<a href="https://www.postgresql.org/" target="_blank">
|
|
61
|
+
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
|
62
|
+
<a href="https://maplibre.org/" target="_blank">
|
|
63
|
+
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
|
64
|
+
<a href="https://nodejs.org/" target="_blank">
|
|
65
|
+
<img src="https://img.shields.io/badge/Node%20js-323330?style=for-the-badge&logo=nodedotjs&logoColor=4FC08D" /></a>
|
|
66
|
+
<a href="https://fastify.dev/" target="_blank">
|
|
67
|
+
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
|
68
|
+
<a href="https://echarts.apache.org" target="_blank">
|
|
69
|
+
<img src="https://img.shields.io/badge/Apache%20ECharts-323330?style=for-the-badge&logo=Apache-ECharts&logoColor=4FC08D" /></a>
|
|
70
|
+
|
|
71
|
+
## Контакти
|
|
72
|
+
|
|
73
|
+
Ви можете зв’язатися з нами за посиланням на офіційний сайт: SOFTPRO.UA або за допомогою електронної пошти info@softpro.ua, якщо у вас виникли:
|
|
74
|
+
|
|
75
|
+
- технічні несправності;
|
|
76
|
+
- помилки під час користування;
|
|
77
|
+
- запитання чи пропозиції.
|
|
78
|
+
|
|
79
|
+
## Слідкуйте за нами
|
|
80
|
+
|
|
81
|
+
[Офіційний сайт](https://softpro.ua)
|
|
82
|
+
|
|
83
|
+
<p>
|
|
84
|
+
<a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="Softpro Instagram"></a>
|
|
85
|
+
<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>
|
|
86
|
+
<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>
|
|
87
|
+
<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>
|
|
88
|
+
</p>
|
|
89
|
+
|
|
90
|
+
### License
|
|
91
|
+
|
|
92
|
+
Copyright © 2025 SOFTPRO. All rights reserved.
|
package/dist/bi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t,
|
|
1
|
+
import { j as t, k as V, R as e, U as i, V as P, l as d, v as g, n as l, o as p, p as E, q as b, r as m, s as n, t as B, u as D } from "./import-file-D-ISqB7l.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
export {
|