@opengis/admin 0.3.12 → 0.3.14
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-gRyZm0JC.js → add-page-BwdOUFm9.js} +1 -1
- package/dist/{admin-interface-BHtCxXnV.js → admin-interface-DsH8_h_D.js} +28 -26
- package/dist/{admin-view-Bl78Kfwl.js → admin-view-DzFmkB5P.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +50 -50
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-BjkpFcAx.js → card-view-CYV4C7Pe.js} +1 -1
- package/dist/{edit-page-TTlOepi_.js → edit-page-B2n9Y_xg.js} +1 -1
- package/dist/{import-file-BRqYVyK0.js → import-file-B9K5DZsU.js} +5047 -4991
- package/dist/{profile-page-Bl6zzoIA.js → profile-page-Lr3JyVmY.js} +1 -1
- 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.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- 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.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.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/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.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +1 -1
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/coalesce.js +7 -7
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/list/buttonHelper.js +21 -21
- 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/mdToHTML.js +17 -17
- 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/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +54 -54
- package/server/routes/access/index.mjs +11 -11
- package/server/routes/access/schema.mjs +67 -67
- package/server/routes/calendar/controllers/calendar.data.js +125 -125
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- 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 +31 -31
- package/server/routes/data/controllers/tableDataId.js +27 -27
- 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 +20 -20
- package/server/routes/data/schema.js +54 -54
- 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 +56 -56
- package/server/routes/notifications/index.mjs +26 -26
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +135 -135
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/report/controllers/data.js +76 -76
- package/server/routes/report/controllers/list.js +18 -18
- package/server/routes/report/index.mjs +7 -7
- package/server/routes/report/utils/formatValue.js +179 -179
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +44 -44
- 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 +72 -72
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/util/controllers/code.generator.js +89 -89
- package/server/routes/widget/controllers/widget.del.js +47 -47
- package/server/routes/widget/controllers/widget.set.js +84 -84
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +16 -16
- 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/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/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 h, u as p, f as u } from "./import-file-
|
1
|
+
import { _ as h, u as p, f as u } from "./import-file-B9K5DZsU.js";
|
2
2
|
import { resolveComponent as d, openBlock as b, createElementBlock as g, createElementVNode as n, createBlock as f, normalizeStyle as x, createCommentVNode as w } from "vue";
|
3
3
|
const y = {
|
4
4
|
data() {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as A, g as
|
2
|
-
import { openBlock as r, createElementBlock as i, createTextVNode as F, toDisplayString as T, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as $, createVNode as x, withCtx as S, createBlock as k, renderList as V, withModifiers as tt, createStaticVNode as st, withDirectives as z, vModelCheckbox as nt, Transition as
|
1
|
+
import { _ as A, g as Be, h as Ne, i as Ue, f as j, I as Ee, j as Fe, k as U, A as E, V as He, l as Re, m as We, n as Je, o as Ge, p as Ke, q as Qe, a as Xe, r as Ye, t as Ze, u as Ve, s as et } from "./import-file-B9K5DZsU.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as F, toDisplayString as T, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as $, createVNode as x, withCtx as S, createBlock as k, renderList as V, withModifiers as tt, createStaticVNode as st, withDirectives as z, vModelCheckbox as nt, Transition as O, vModelText as lt, renderSlot as at, vShow as H, Teleport as rt, getCurrentInstance as je, ref as B, resolveDynamicComponent as N, defineComponent as ot, normalizeStyle as Pe } from "vue";
|
3
3
|
const it = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -97,7 +97,7 @@ function pt(t, e, s, o, n, a) {
|
|
97
97
|
}
|
98
98
|
const ht = /* @__PURE__ */ A(it, [["render", pt]]), bt = {
|
99
99
|
components: {
|
100
|
-
IconMore:
|
100
|
+
IconMore: Be,
|
101
101
|
IconDelete: Ne,
|
102
102
|
IconEdit: Ue
|
103
103
|
},
|
@@ -414,7 +414,7 @@ const Vt = /* @__PURE__ */ A(St, [["render", Dt]]), Pt = {
|
|
414
414
|
}, Lt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Mt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, zt = ["onClick"], qt = {
|
415
415
|
key: 0,
|
416
416
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
417
|
-
},
|
417
|
+
}, Ot = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Bt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Nt = { class: "mt-2 space-y-2" }, Ut = ["id", "onChange"], Et = ["for"], Ht = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
420
420
|
}, Rt = {
|
@@ -491,7 +491,7 @@ function Wt(t, e, s, o, n, a) {
|
|
491
491
|
F(" " + T(d == null ? void 0 : d.label), 1)
|
492
492
|
], 8, zt))), 128))
|
493
493
|
]),
|
494
|
-
l("div",
|
494
|
+
l("div", Ot, [
|
495
495
|
(r(!0), i($, null, V(s.columns, (d, _) => (r(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
@@ -507,7 +507,7 @@ function Wt(t, e, s, o, n, a) {
|
|
507
507
|
]))), 128))
|
508
508
|
])
|
509
509
|
]),
|
510
|
-
l("div",
|
510
|
+
l("div", Bt, [
|
511
511
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
512
|
l("div", Nt, [
|
513
513
|
(r(!0), i($, null, V(n.tableFormats, (d, _) => (r(), i("div", {
|
@@ -656,7 +656,7 @@ function cs(t, e, s, o, n, a) {
|
|
656
656
|
width: "16"
|
657
657
|
})
|
658
658
|
]),
|
659
|
-
x(
|
659
|
+
x(O, { name: "fade" }, {
|
660
660
|
default: S(() => {
|
661
661
|
var h, b;
|
662
662
|
return [
|
@@ -742,7 +742,7 @@ function _s(t, e, s, o, n, a) {
|
|
742
742
|
})) : (r(), k(u, { key: 0 }))
|
743
743
|
])
|
744
744
|
]),
|
745
|
-
x(
|
745
|
+
x(O, { name: "fade" }, {
|
746
746
|
default: S(() => [
|
747
747
|
z(l("div", vs, [
|
748
748
|
at(t.$slots, "default", {}, void 0, !0)
|
@@ -756,7 +756,7 @@ function _s(t, e, s, o, n, a) {
|
|
756
756
|
])
|
757
757
|
]);
|
758
758
|
}
|
759
|
-
const Cs = /* @__PURE__ */ A(ms, [["render", _s], ["__scopeId", "data-v-
|
759
|
+
const Cs = /* @__PURE__ */ A(ms, [["render", _s], ["__scopeId", "data-v-c6318482"]]), ws = {
|
760
760
|
components: {
|
761
761
|
AdminComponentIs: E,
|
762
762
|
AdminTree: Cs,
|
@@ -890,7 +890,7 @@ const Ls = /* @__PURE__ */ A(ws, [["render", js]]), Ms = {
|
|
890
890
|
key: 0,
|
891
891
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
892
892
|
}, qs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-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" };
|
893
|
-
function
|
893
|
+
function Os(t, e, s, o, n, a) {
|
894
894
|
const u = p("IconFilter"), f = p("VsFilter");
|
895
895
|
return r(), i($, null, [
|
896
896
|
l("button", {
|
@@ -904,7 +904,7 @@ function Bs(t, e, s, o, n, a) {
|
|
904
904
|
e[4] || (e[4] = F(" Фільтри ")),
|
905
905
|
s.onFilters ? (r(), i("span", zs, T(s.onFilters), 1)) : v("", !0)
|
906
906
|
]),
|
907
|
-
x(
|
907
|
+
x(O, { name: "fade" }, {
|
908
908
|
default: S(() => {
|
909
909
|
var h;
|
910
910
|
return [
|
@@ -941,7 +941,7 @@ function Bs(t, e, s, o, n, a) {
|
|
941
941
|
})
|
942
942
|
], 64);
|
943
943
|
}
|
944
|
-
const
|
944
|
+
const Bs = /* @__PURE__ */ A(Ms, [["render", Os]]), Ns = {
|
945
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
946
946
|
}, Us = {
|
947
947
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
@@ -1028,11 +1028,12 @@ function tn(t, e, s, o, n, a) {
|
|
1028
1028
|
const sn = /* @__PURE__ */ A(Qs, [["render", tn]]), nn = { class: "flex items-center gap-x-2" }, ln = {
|
1029
1029
|
__name: "admin-table-custom-buttons",
|
1030
1030
|
props: {
|
1031
|
-
slots: Object
|
1031
|
+
slots: Object,
|
1032
|
+
data: Object
|
1032
1033
|
},
|
1033
1034
|
setup(t) {
|
1034
1035
|
var f, h, b, d, _;
|
1035
|
-
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = je()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s =
|
1036
|
+
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = je()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s = B(""), o = B(""), n = t, a = () => {
|
1036
1037
|
var m, g, C, y, w;
|
1037
1038
|
if ((m = n.slots) != null && m.panelLeft || (o.value = "div"), (C = (g = n.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
|
1038
1039
|
const D = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
@@ -1052,8 +1053,8 @@ const sn = /* @__PURE__ */ A(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1052
1053
|
s.value = (w = n.slots) == null ? void 0 : w.panelRight;
|
1053
1054
|
};
|
1054
1055
|
return a(), u(), (m, g) => (r(), i("div", nn, [
|
1055
|
-
(r(), k(N(o.value))),
|
1056
|
-
(r(), k(N(s.value)))
|
1056
|
+
(r(), k(N(o.value), { data: t.data }, null, 8, ["data"])),
|
1057
|
+
(r(), k(N(s.value), { data: t.data }, null, 8, ["data"]))
|
1057
1058
|
]));
|
1058
1059
|
}
|
1059
1060
|
}, an = {
|
@@ -1063,7 +1064,7 @@ const sn = /* @__PURE__ */ A(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1063
1064
|
},
|
1064
1065
|
setup(t) {
|
1065
1066
|
var a, u, f, h, b;
|
1066
|
-
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a = je()) == null ? void 0 : a.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s =
|
1067
|
+
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a = je()) == null ? void 0 : a.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s = B(""), o = t;
|
1067
1068
|
return (() => {
|
1068
1069
|
var d, _, m, g, C;
|
1069
1070
|
if ((d = o.slots) != null && d.addButton || (s.value = "div"), (m = (_ = o.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
|
@@ -1299,7 +1300,7 @@ const Cn = /* @__PURE__ */ A(bn, [["render", _n]]), wn = {
|
|
1299
1300
|
AdminTableCardInfo: Ls,
|
1300
1301
|
IconOpenCard: Ye,
|
1301
1302
|
AdminComponentIs: E,
|
1302
|
-
AdminTableFilters:
|
1303
|
+
AdminTableFilters: Bs,
|
1303
1304
|
AdminTableTabs: Rs,
|
1304
1305
|
AdminTableCustomFilters: sn,
|
1305
1306
|
AdminTableCustomButtons: ln,
|
@@ -1515,7 +1516,7 @@ const Cn = /* @__PURE__ */ A(bn, [["render", _n]]), wn = {
|
|
1515
1516
|
}, jn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Ln = { class: "right-0" }, Mn = {
|
1516
1517
|
key: 0,
|
1517
1518
|
class: "w-[70px] sticky right-0 top-0"
|
1518
|
-
}, zn = { class: "divide-y divide-gray-200 z-[1] relative" }, qn = ["onClick"],
|
1519
|
+
}, zn = { class: "divide-y divide-gray-200 z-[1] relative" }, qn = ["onClick"], On = ["onClick"], Bn = ["onClick"], Nn = { class: "p-[10px] flex justify-start items-end w-full" }, Un = { class: "w-[200px] md:inline-flex hidden" }, En = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Hn = { class: "font-semibold text-gray-800 dark:text-neutral-200" };
|
1519
1520
|
function Rn(t, e, s, o, n, a) {
|
1520
1521
|
var R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, pe, he, be, fe, ge, me, xe;
|
1521
1522
|
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), w = p("AdminTableFilters"), D = p("IconOpenCard"), L = p("AdminTableColumn"), M = p("AdminComponentIs"), q = p("AdminTableControl"), Le = p("AdminTableTotalsList"), Me = p("AdminNodata"), ze = p("AdminTablePagination"), qe = p("AdminTableCardInfo");
|
@@ -1572,8 +1573,9 @@ function Rn(t, e, s, o, n, a) {
|
|
1572
1573
|
l("div", Vn, [
|
1573
1574
|
(Z = n.tableData) != null && Z.slots ? (r(), k(m, {
|
1574
1575
|
key: 0,
|
1576
|
+
data: n.tableData,
|
1575
1577
|
slots: (ee = n.tableData) == null ? void 0 : ee.slots
|
1576
|
-
}, null, 8, ["slots"])) : v("", !0),
|
1578
|
+
}, null, 8, ["data", "slots"])) : v("", !0),
|
1577
1579
|
(se = (te = n.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (r(), k(g, {
|
1578
1580
|
key: 1,
|
1579
1581
|
customList: (ne = n.tableData) == null ? void 0 : ne.filterCustom,
|
@@ -1640,10 +1642,10 @@ function Rn(t, e, s, o, n, a) {
|
|
1640
1642
|
])
|
1641
1643
|
]),
|
1642
1644
|
l("tbody", zn, [
|
1643
|
-
(r(!0), i($, null, V((pe = n.tableData) == null ? void 0 : pe.rows, (c,
|
1645
|
+
(r(!0), i($, null, V((pe = n.tableData) == null ? void 0 : pe.rows, (c, Oe) => {
|
1644
1646
|
var ye, ke, ve, _e, Ce, we, $e, Ae, Te, Se, Ie, De;
|
1645
1647
|
return r(), i("tr", {
|
1646
|
-
key: (c == null ? void 0 : c.id) ||
|
1648
|
+
key: (c == null ? void 0 : c.id) || Oe,
|
1647
1649
|
class: I({
|
1648
1650
|
"bg-gray-50": ((ke = (ye = t.$route) == null ? void 0 : ye.query) == null ? void 0 : ke.card) === (c == null ? void 0 : c.id)
|
1649
1651
|
})
|
@@ -1669,7 +1671,7 @@ function Rn(t, e, s, o, n, a) {
|
|
1669
1671
|
table: s.table,
|
1670
1672
|
onUpdateTable: a.getTableData
|
1671
1673
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1672
|
-
], 10,
|
1674
|
+
], 10, On)
|
1673
1675
|
], 10, qn),
|
1674
1676
|
(r(!0), i($, null, V((we = a.columns) == null ? void 0 : we.slice(1), (P) => (r(), i("td", {
|
1675
1677
|
onClick: (Qn) => {
|
@@ -1684,7 +1686,7 @@ function Rn(t, e, s, o, n, a) {
|
|
1684
1686
|
table: s.table,
|
1685
1687
|
onUpdateTable: a.getTableData
|
1686
1688
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1687
|
-
], 10,
|
1689
|
+
], 10, Bn))), 128)),
|
1688
1690
|
(Ae = ($e = a.getActions) == null ? void 0 : $e.filter(
|
1689
1691
|
(P) => P !== "add" && P !== "view"
|
1690
1692
|
)) != null && Ae.length ? (r(), i("td", {
|
@@ -1730,7 +1732,7 @@ function Rn(t, e, s, o, n, a) {
|
|
1730
1732
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
1731
1733
|
])
|
1732
1734
|
], 2),
|
1733
|
-
x(
|
1735
|
+
x(O, { name: "slide-fade" }, {
|
1734
1736
|
default: S(() => {
|
1735
1737
|
var c;
|
1736
1738
|
return [
|
@@ -1749,7 +1751,7 @@ function Rn(t, e, s, o, n, a) {
|
|
1749
1751
|
])
|
1750
1752
|
]);
|
1751
1753
|
}
|
1752
|
-
const Wn = /* @__PURE__ */ A(wn, [["render", Rn], ["__scopeId", "data-v-
|
1754
|
+
const Wn = /* @__PURE__ */ A(wn, [["render", Rn], ["__scopeId", "data-v-5492963d"]]), Jn = {
|
1753
1755
|
components: { AdminTable: Wn },
|
1754
1756
|
data() {
|
1755
1757
|
return {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as C, I as G, s as v, a as J, u as T, b as K, c as W, d as X, e as Y, f as ee } from "./import-file-
|
1
|
+
import { _ as C, I as G, s as v, a as J, u as T, b as K, c as W, d as X, e as Y, f as ee } from "./import-file-B9K5DZsU.js";
|
2
2
|
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as A, resolveComponent as g, normalizeClass as p, createTextVNode as L, toDisplayString as V, createCommentVNode as _, createVNode as d, Transition as te, withCtx as k, withDirectives as re, Fragment as Z, renderList as P, vShow as le, createBlock as U, resolveDynamicComponent as S, withModifiers as oe } from "vue";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const ne = {}, se = {
|
@@ -697,7 +697,7 @@ function f1(t, e, l, u, n, r) {
|
|
697
697
|
])
|
698
698
|
]);
|
699
699
|
}
|
700
|
-
const k1 = /* @__PURE__ */ C(h1, [["render", f1], ["__scopeId", "data-v-
|
700
|
+
const k1 = /* @__PURE__ */ C(h1, [["render", f1], ["__scopeId", "data-v-34da2042"]]);
|
701
701
|
export {
|
702
702
|
k1 as default
|
703
703
|
};
|
package/dist/admin.js
CHANGED