@opengis/admin 0.2.32 → 0.2.33
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 +97 -97
- package/config.js +4 -4
- package/dist/{add-page-DcHUQydX.js → add-page-BFPGmX_3.js} +4 -7
- package/dist/{admin-interface-Z17hrxJr.js → admin-interface-BJI5A_2y.js} +24 -25
- package/dist/{admin-view-WhE1WieA.js → admin-view-4LzEF9pi.js} +167 -153
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +85 -85
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-gCu0o8An.js → card-view-C2FVP4ZE.js} +1 -1
- package/dist/{edit-page-CZkY59po.js → edit-page-saR1IOOC.js} +22 -25
- package/dist/{import-file-B-xks7r_.js → import-file-CtZxhUM8.js} +6030 -5990
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.roles.table/access.hbs +3 -3
- package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
- package/module/settings/card/admin.roles.table/index.yml +21 -21
- package/module/settings/card/admin.roles.table/users.hbs +6 -6
- package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/index.yml +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/card/admin.users.table/context.hbs +14 -14
- package/module/settings/card/admin.users.table/general_info.hbs +12 -12
- package/module/settings/card/admin.users.table/index.yml +22 -22
- package/module/settings/card/admin.users.table/last_login.hbs +9 -9
- package/module/settings/card/admin.users.table/logs.hbs +10 -10
- package/module/settings/card/admin.users.table/routes.hbs +7 -7
- package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/users.user_type.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.custom_column.form.json +71 -71
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.routes.form.json +25 -25
- package/module/settings/form/admin.rules.form.json +30 -30
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +13 -13
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/form/admin.users.form.json +153 -153
- package/module/settings/form/context.account_grants.form.json +23 -23
- package/module/settings/form/context.account_users.form.json +12 -12
- package/module/settings/form/user.user_roles.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/menu.json +84 -84
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.accounts.table.json +42 -42
- package/module/settings/table/admin.custom_column.table.json +99 -99
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.roles.table.json +64 -64
- package/module/settings/table/admin.routes.table.json +73 -73
- package/module/settings/table/admin.rules.table.json +76 -76
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/module/settings/table/admin.user_roles.table.json +72 -72
- package/module/settings/table/admin.users.table.json +132 -132
- package/module/settings/table/context.account_grants.table.json +67 -67
- package/module/settings/table/context.account_users.table.json +37 -37
- package/package.json +91 -91
- package/plugin.js +29 -29
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +29 -29
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/descriptionList.js +43 -43
- package/server/helpers/list/tableList.js +81 -81
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/helpers/utils/buttonAdd.js +5 -5
- package/server/helpers/utils/buttonDel.js +5 -5
- package/server/helpers/utils/buttonEdit.js +5 -5
- package/server/plugins/access/funcs/getAdminAccess.js +12 -12
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/plugins/hook.js +236 -236
- package/server/plugins/vite.js +71 -71
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +49 -49
- package/server/routes/access/index.mjs +8 -8
- package/server/routes/access/schema.mjs +57 -57
- package/server/routes/calendar/controllers/calendar.data.js +87 -87
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardData.js +106 -106
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +29 -29
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +67 -67
- package/server/routes/data/controllers/tokenInfo.js +9 -9
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/server/routes/data/controllers/utils/getColumns.js +8 -8
- package/server/routes/data/index.mjs +17 -17
- package/server/routes/data/schema.js +54 -54
- package/server/routes/menu/controllers/getMenu.js +58 -58
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +57 -57
- package/server/routes/notifications/index.mjs +27 -27
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +30 -30
- package/server/routes/properties/controllers/user.properties.post.js +30 -30
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/funcs/setSettings.js +44 -44
- package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
- package/server/routes/properties/index.mjs +14 -14
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +49 -49
- package/server/routes/templates/index.mjs +16 -16
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +71 -71
- package/server/routes/user/controllers/user.cls.post.js +52 -52
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
- package/server/routes/widget/controllers/utils/obj2db.js +13 -13
- package/server/routes/widget/controllers/widget.del.js +41 -41
- package/server/routes/widget/controllers/widget.get.js +96 -96
- package/server/routes/widget/controllers/widget.set.js +76 -76
- package/server/routes/widget/index.mjs +11 -11
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/cp_building.form.json +32 -32
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/utils.js +29 -29
- package/dist/IconChevronDown-DGC3CCge.js +0 -26
package/README.md
CHANGED
@@ -1,97 +1,97 @@
|
|
1
|
-

|
2
|
-
|
3
|
-
[](https://www.npmjs.com/package/@opengis/admin)
|
4
|
-
[]()
|
5
|
-
[]()
|
6
|
-
[](http://standardjs.com/)
|
7
|
-
|
8
|
-
This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
|
9
|
-
|
10
|
-
### Features
|
11
|
-
|
12
|
-
- **Real-time Editing** - Simplifies and accelerates the development process.
|
13
|
-
- **Customization** - Enabling developers to add custom components, templates, and modules.
|
14
|
-
- **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
|
15
|
-
- **Base Theme** - A clean and practical design inspired by Preline.
|
16
|
-
- **Info Cards** - Easily created using pre-built layouts or custom Vue components.
|
17
|
-
- **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
|
18
|
-
- **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
|
19
|
-
|
20
|
-
---
|
21
|
-
|
22
|
-
### Install
|
23
|
-
|
24
|
-
```bash
|
25
|
-
npm i @opengis/admin
|
26
|
-
```
|
27
|
-
|
28
|
-
### Usage
|
29
|
-
|
30
|
-
```js
|
31
|
-
fastify.register(import('@opengis/admin'), config);
|
32
|
-
```
|
33
|
-
|
34
|
-
```js
|
35
|
-
import v3admin from '@opengis/admin';
|
36
|
-
import '@opengis/admin/dist/style.css';
|
37
|
-
v3admin.install(app);
|
38
|
-
```
|
39
|
-
|
40
|
-
---
|
41
|
-
|
42
|
-
### Documentation
|
43
|
-
|
44
|
-
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
|
45
|
-
|
46
|
-
---
|
47
|
-
|
48
|
-
### Technology stack
|
49
|
-
|
50
|
-
<a href="https://fastify.dev/" target="_blank">
|
51
|
-
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
52
|
-
|
53
|
-
<a href="https://vuejs.org/" target="_blank">
|
54
|
-
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
55
|
-
|
56
|
-
<a href="https://vite.dev/" target="_blank">
|
57
|
-
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
58
|
-
|
59
|
-
<a href="https://tiptap.dev/" target="_blank">
|
60
|
-
<img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
|
61
|
-
|
62
|
-
<a href="https://www.postgresql.org/" target="_blank">
|
63
|
-
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
64
|
-
|
65
|
-
<a href="https://maplibre.org/" target="_blank">
|
66
|
-
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
67
|
-
|
68
|
-
<a href="https://handlebarsjs.com/" target="_blank">
|
69
|
-
<img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
|
70
|
-
|
71
|
-
<a href="https://redis.io/" target="_blank">
|
72
|
-
<img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
|
73
|
-
|
74
|
-
---
|
75
|
-
|
76
|
-
### Contribute
|
77
|
-
|
78
|
-
Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
|
79
|
-
|
80
|
-
- Report bugs
|
81
|
-
- Share your ideas
|
82
|
-
- Ask questions
|
83
|
-
|
84
|
-
### Follow Us
|
85
|
-
|
86
|
-
[Official site](https://softpro.ua)
|
87
|
-
|
88
|
-
<p>
|
89
|
-
<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>
|
90
|
-
<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>
|
91
|
-
<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>
|
92
|
-
<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>
|
93
|
-
</p>
|
94
|
-
|
95
|
-
### License
|
96
|
-
|
97
|
-
Copyright © SOFTPRO. All rights reserved.
|
1
|
+

|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/@opengis/admin)
|
4
|
+
[]()
|
5
|
+
[]()
|
6
|
+
[](http://standardjs.com/)
|
7
|
+
|
8
|
+
This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
- **Real-time Editing** - Simplifies and accelerates the development process.
|
13
|
+
- **Customization** - Enabling developers to add custom components, templates, and modules.
|
14
|
+
- **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
|
15
|
+
- **Base Theme** - A clean and practical design inspired by Preline.
|
16
|
+
- **Info Cards** - Easily created using pre-built layouts or custom Vue components.
|
17
|
+
- **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
|
18
|
+
- **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
### Install
|
23
|
+
|
24
|
+
```bash
|
25
|
+
npm i @opengis/admin
|
26
|
+
```
|
27
|
+
|
28
|
+
### Usage
|
29
|
+
|
30
|
+
```js
|
31
|
+
fastify.register(import('@opengis/admin'), config);
|
32
|
+
```
|
33
|
+
|
34
|
+
```js
|
35
|
+
import v3admin from '@opengis/admin';
|
36
|
+
import '@opengis/admin/dist/style.css';
|
37
|
+
v3admin.install(app);
|
38
|
+
```
|
39
|
+
|
40
|
+
---
|
41
|
+
|
42
|
+
### Documentation
|
43
|
+
|
44
|
+
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
|
45
|
+
|
46
|
+
---
|
47
|
+
|
48
|
+
### Technology stack
|
49
|
+
|
50
|
+
<a href="https://fastify.dev/" target="_blank">
|
51
|
+
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
52
|
+
|
53
|
+
<a href="https://vuejs.org/" target="_blank">
|
54
|
+
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
55
|
+
|
56
|
+
<a href="https://vite.dev/" target="_blank">
|
57
|
+
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
58
|
+
|
59
|
+
<a href="https://tiptap.dev/" target="_blank">
|
60
|
+
<img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
|
61
|
+
|
62
|
+
<a href="https://www.postgresql.org/" target="_blank">
|
63
|
+
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
64
|
+
|
65
|
+
<a href="https://maplibre.org/" target="_blank">
|
66
|
+
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
67
|
+
|
68
|
+
<a href="https://handlebarsjs.com/" target="_blank">
|
69
|
+
<img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
|
70
|
+
|
71
|
+
<a href="https://redis.io/" target="_blank">
|
72
|
+
<img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
### Contribute
|
77
|
+
|
78
|
+
Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
|
79
|
+
|
80
|
+
- Report bugs
|
81
|
+
- Share your ideas
|
82
|
+
- Ask questions
|
83
|
+
|
84
|
+
### Follow Us
|
85
|
+
|
86
|
+
[Official site](https://softpro.ua)
|
87
|
+
|
88
|
+
<p>
|
89
|
+
<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>
|
90
|
+
<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>
|
91
|
+
<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>
|
92
|
+
<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>
|
93
|
+
</p>
|
94
|
+
|
95
|
+
### License
|
96
|
+
|
97
|
+
Copyright © SOFTPRO. All rights reserved.
|
package/config.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { readFile } from 'fs/promises';
|
2
|
-
import fs from 'fs';
|
3
|
-
const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
|
4
|
-
|
1
|
+
import { readFile } from 'fs/promises';
|
2
|
+
import fs from 'fs';
|
3
|
+
const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
|
4
|
+
|
5
5
|
export default config;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as g, u as f,
|
1
|
+
import { _ as g, u as f, d as u } from "./import-file-CtZxhUM8.js";
|
2
2
|
import { resolveComponent as x, openBlock as d, createElementBlock as w, createElementVNode as n, createBlock as k, createCommentVNode as y } from "vue";
|
3
3
|
const v = {
|
4
4
|
data() {
|
@@ -62,12 +62,9 @@ const v = {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
}
|
65
|
-
}, V = {
|
66
|
-
style: {
|
67
|
-
class: "bg-gray-50"
|
68
|
-
}, _ = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, $ = { class: "flex items-center gap-[6px]" }, j = {
|
69
|
-
style: { height: "calc(100vh - 165px)", width: "calc(100vw - 260px)" },
|
70
|
-
class: "bg-gray-50 p-[20px] flex"
|
65
|
+
}, V = { class: "bg-gray-50 lg:w-[calc(100vw-260px)] w-[100vw]" }, _ = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, $ = { class: "flex items-center gap-[6px]" }, j = {
|
66
|
+
style: { height: "calc(100vh - 165px)" },
|
67
|
+
class: "bg-gray-50 p-[20px] flex lg:w-[calc(100vw-260px)] w-[100vw]"
|
71
68
|
}, E = { class: "bg-white w-full rounded-xl border p-[20px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
72
69
|
function O(t, e, o, i, a, r) {
|
73
70
|
const s = x("VsForm");
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { _ as C,
|
2
|
-
import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as T, createCommentVNode as w, resolveComponent as p, Fragment as I, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as
|
3
|
-
import { I as Ge } from "./IconChevronDown-DGC3CCge.js";
|
1
|
+
import { _ as C, e as qe, f as Pe, g as Be, d as F, I as Le, V as ze, h as Ue, i as Oe, j as Ne, A as Ee, a as He, u as Ce, s as Re } from "./import-file-CtZxhUM8.js";
|
2
|
+
import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as T, createCommentVNode as w, resolveComponent as p, Fragment as I, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as We, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as Ze, resolveDynamicComponent as q, Transition as U, renderSlot as Ge, vShow as Ie, getCurrentInstance as Te, ref as L, normalizeStyle as $e } from "vue";
|
4
3
|
const Je = {
|
5
4
|
data() {
|
6
5
|
return {
|
@@ -228,7 +227,7 @@ function bt(t, e, s, a, n, r) {
|
|
228
227
|
s.isForm ? (o(), c("div", ct)) : w("", !0),
|
229
228
|
(A = s.actions) != null && A.includes("del") ? (o(), c("button", {
|
230
229
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] =
|
230
|
+
onClick: e[0] || (e[0] = We((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
|
232
231
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
233
232
|
}, [
|
234
233
|
y(m),
|
@@ -309,7 +308,7 @@ function _t(t, e, s, a, n, r) {
|
|
309
308
|
]));
|
310
309
|
}
|
311
310
|
const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
|
312
|
-
components: { IconExport: gt, IconChevronDown:
|
311
|
+
components: { IconExport: gt, IconChevronDown: Le, IconSuccess: vt },
|
313
312
|
props: {
|
314
313
|
table: String,
|
315
314
|
columns: Array,
|
@@ -428,7 +427,7 @@ function Bt(t, e, s, a, n, r) {
|
|
428
427
|
return o(), c(I, null, [
|
429
428
|
l("button", {
|
430
429
|
onClick: e[0] || (e[0] = (i) => n.isOpen = !0),
|
431
|
-
class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
430
|
+
class: "py-2 px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
432
431
|
}, [
|
433
432
|
y(u, {
|
434
433
|
height: "16",
|
@@ -582,7 +581,7 @@ function Rt(t, e, s, a, n, r) {
|
|
582
581
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
583
582
|
type: "checkbox"
|
584
583
|
}, null, 512), [
|
585
|
-
[
|
584
|
+
[Ze, n.value]
|
586
585
|
]),
|
587
586
|
j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
588
587
|
]);
|
@@ -597,7 +596,7 @@ const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Zt = {
|
|
597
596
|
s[e] = t, this.$emit("update-columns", [...s]);
|
598
597
|
}
|
599
598
|
}
|
600
|
-
}, Gt = { class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Jt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
599
|
+
}, Gt = { class: "py-2 px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Jt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
601
600
|
function Qt(t, e, s, a, n, r) {
|
602
601
|
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
|
603
602
|
return o(), _(h, {
|
@@ -715,7 +714,7 @@ function hn(t, e, s, a, n, r) {
|
|
715
714
|
y(U, { name: "fade" }, {
|
716
715
|
default: $(() => [
|
717
716
|
z(l("div", pn, [
|
718
|
-
|
717
|
+
Ge(t.$slots, "default", {}, void 0, !0)
|
719
718
|
], 512), [
|
720
719
|
[Ie, n.expanded]
|
721
720
|
])
|
@@ -726,14 +725,14 @@ function hn(t, e, s, a, n, r) {
|
|
726
725
|
])
|
727
726
|
]);
|
728
727
|
}
|
729
|
-
const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-
|
728
|
+
const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-c6318482"]]), mn = {
|
730
729
|
components: {
|
731
730
|
AdminComponentIs: Se,
|
732
731
|
AdminTree: fn,
|
733
|
-
VsNoData:
|
734
|
-
VsWidgetComments:
|
735
|
-
VsWidgetMap:
|
736
|
-
VsWidgetFileList:
|
732
|
+
VsNoData: ze,
|
733
|
+
VsWidgetComments: Ue,
|
734
|
+
VsWidgetMap: Oe,
|
735
|
+
VsWidgetFileList: Ne
|
737
736
|
},
|
738
737
|
props: { table: String, columns: Array, row: Object }
|
739
738
|
}, gn = {
|
@@ -838,7 +837,7 @@ function An(t, e, s, a, n, r) {
|
|
838
837
|
]);
|
839
838
|
}
|
840
839
|
const In = /* @__PURE__ */ C(mn, [["render", An]]), Tn = {}, Sn = {
|
841
|
-
class: "
|
840
|
+
class: "size-4",
|
842
841
|
xmlns: "http://www.w3.org/2000/svg",
|
843
842
|
viewBox: "0 0 24 24",
|
844
843
|
fill: "none",
|
@@ -1086,9 +1085,9 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
|
|
1086
1085
|
AdminTableExport: Lt,
|
1087
1086
|
AdminTableColumnsHidden: Xt,
|
1088
1087
|
AdminTableColumn: nt,
|
1089
|
-
AdminNodata:
|
1088
|
+
AdminNodata: Ee,
|
1090
1089
|
IconPlus: O,
|
1091
|
-
IconSearch:
|
1090
|
+
IconSearch: He,
|
1092
1091
|
AdminTableCardInfo: In,
|
1093
1092
|
IconOpenCard: Dn,
|
1094
1093
|
AdminComponentIs: Se,
|
@@ -1281,15 +1280,15 @@ const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-ce
|
|
1281
1280
|
}
|
1282
1281
|
}
|
1283
1282
|
}, as = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, is = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, cs = { class: "text-xl font-medium" }, us = {
|
1284
|
-
style: { height: "calc(100vh - 155px)"
|
1285
|
-
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1283
|
+
style: { height: "calc(100vh - 155px)" },
|
1284
|
+
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1286
1285
|
}, ds = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, bs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, hs = { class: "inline-block w-full align-middle" }, fs = {
|
1287
1286
|
key: 0,
|
1288
1287
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1289
1288
|
}, ms = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, gs = { class: "right-0 border-t border-stone-200" }, xs = {
|
1290
1289
|
key: 0,
|
1291
1290
|
class: "w-[70px] sticky right-0 top-0"
|
1292
|
-
}, ys = { class: "divide-y divide-gray-200" }, _s = { class: "px-4 py-3 text-sm text-gray-600" }, vs = ["onClick"], ks = ["onClick"], ws = { class: "p-[20px] flex justify-start items-center w-full" }, Cs = { class: "w-[200px]" }, $s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, As = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Is = { key: 0 }, Ts = {
|
1291
|
+
}, ys = { class: "divide-y divide-gray-200" }, _s = { class: "px-4 py-3 text-sm text-gray-600" }, vs = ["onClick"], ks = ["onClick"], ws = { class: "p-[20px] flex justify-start items-center w-full" }, Cs = { class: "w-[200px] md:inline-flex hidden" }, $s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, As = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Is = { key: 0 }, Ts = {
|
1293
1292
|
key: 0,
|
1294
1293
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1295
1294
|
};
|
@@ -1378,7 +1377,7 @@ function Ss(t, e, s, a, n, r) {
|
|
1378
1377
|
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
|
1379
1378
|
l("button", {
|
1380
1379
|
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1381
|
-
class: "py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1380
|
+
class: "py-2 px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1382
1381
|
}, [
|
1383
1382
|
y(S, {
|
1384
1383
|
class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
|
@@ -1518,7 +1517,7 @@ function Ss(t, e, s, a, n, r) {
|
|
1518
1517
|
])
|
1519
1518
|
]);
|
1520
1519
|
}
|
1521
|
-
const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-
|
1520
|
+
const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-c086c7f4"]]), Ds = {
|
1522
1521
|
components: { AdminTable: Vs },
|
1523
1522
|
data() {
|
1524
1523
|
return {
|
@@ -1537,7 +1536,7 @@ const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-0f9841fe
|
|
1537
1536
|
},
|
1538
1537
|
title(t) {
|
1539
1538
|
var e;
|
1540
|
-
t && (document.title = (((e =
|
1539
|
+
t && (document.title = (((e = Re.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1541
1540
|
}
|
1542
1541
|
},
|
1543
1542
|
async mounted() {
|
@@ -1588,7 +1587,7 @@ function js(t, e, s, a, n, r) {
|
|
1588
1587
|
innerHTML: n.interface
|
1589
1588
|
}, null, 8, Fs));
|
1590
1589
|
}
|
1591
|
-
const
|
1590
|
+
const Bs = /* @__PURE__ */ C(Ds, [["render", js]]);
|
1592
1591
|
export {
|
1593
|
-
|
1592
|
+
Bs as default
|
1594
1593
|
};
|