@opengis/admin 0.2.113 → 0.2.114
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-BH6RXRcE.js → add-page-DBiLRC6C.js} +1 -1
- package/dist/{admin-interface-crBtXD5Z.js → admin-interface-X48rcfn-.js} +59 -57
- package/dist/{admin-view-BlFQ5MAm.js → admin-view-CHDjJda8.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +49 -49
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-CQBLU6QA.js → card-view-ComFWFMM.js} +1 -1
- package/dist/{edit-page-8HoFhOIT.js → edit-page-C7lGT-fU.js} +1 -1
- package/dist/{import-file-BJbIy5cf.js → import-file-CpEg7H-h.js} +6128 -6127
- package/dist/{profile-page-BYj-liZM.js → profile-page-DQSOt1nm.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/index.yml +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 +3 -3
- 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 +31 -31
- 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/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/cardData.js +117 -117
- 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/tableFilter.js +101 -101
- 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/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 +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 +134 -134
- package/server/routes/properties/funcs/getSettings.js +56 -56
- 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.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- 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/setting/test.json +5 -5
- 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/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, e as u } from "./import-file-
|
1
|
+
import { _ as h, u as p, e as u } from "./import-file-CpEg7H-h.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,4 +1,4 @@
|
|
1
|
-
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as rt } from "./import-file-
|
1
|
+
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as rt } from "./import-file-CpEg7H-h.js";
|
2
2
|
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as r, normalizeClass as S, createCommentVNode as v, resolveComponent as b, Fragment as C, createVNode as g, withCtx as I, createBlock as k, renderList as D, withModifiers as lt, withDirectives as M, vModelRadio as ot, createStaticVNode as at, vModelCheckbox as it, Transition as z, vModelText as dt, renderSlot as ut, vShow as U, Teleport as ct, getCurrentInstance as ze, ref as q, resolveDynamicComponent as O, defineComponent as pt, normalizeStyle as Fe } from "vue";
|
3
3
|
const bt = {
|
4
4
|
data() {
|
@@ -183,7 +183,7 @@ const xt = /* @__PURE__ */ T(bt, [["render", gt]]), yt = {
|
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
184
184
|
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
185
|
function At(t, e, n, a, s, l) {
|
186
|
-
const c = b("IconMore"),
|
186
|
+
const c = b("IconMore"), f = b("IconEdit"), d = b("router-link"), h = b("IconDelete"), u = b("VsPopover"), _ = b("VsConfirm");
|
187
187
|
return o(), i(C, null, [
|
188
188
|
r("div", kt, [
|
189
189
|
g(u, {
|
@@ -199,16 +199,16 @@ function At(t, e, n, a, s, l) {
|
|
199
199
|
])
|
200
200
|
]),
|
201
201
|
default: I(() => {
|
202
|
-
var x,
|
202
|
+
var x, m, w, y, A;
|
203
203
|
return [
|
204
204
|
r("div", _t, [
|
205
205
|
(x = n.actions) != null && x.includes("edit") && n.isForm ? (o(), k(d, {
|
206
206
|
key: 0,
|
207
|
-
to: `/edit?table=${(w = (
|
207
|
+
to: `/edit?table=${(w = (m = t.$route) == null ? void 0 : m.params) == null ? void 0 : w.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
|
208
208
|
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"
|
209
209
|
}, {
|
210
210
|
default: I(() => [
|
211
|
-
g(
|
211
|
+
g(f, { color: "#000" }),
|
212
212
|
e[4] || (e[4] = P(" Редагувати "))
|
213
213
|
]),
|
214
214
|
_: 1
|
@@ -422,7 +422,7 @@ const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
423
423
|
};
|
424
424
|
function Kt(t, e, n, a, s, l) {
|
425
|
-
const c = b("IconExport"),
|
425
|
+
const c = b("IconExport"), f = b("IconSuccess"), d = b("VsCheckbox"), h = b("VsDialog");
|
426
426
|
return o(), i(C, null, [
|
427
427
|
r("button", {
|
428
428
|
onClick: e[0] || (e[0] = (u) => s.isOpen = !0),
|
@@ -468,7 +468,7 @@ function Kt(t, e, n, a, s, l) {
|
|
468
468
|
]),
|
469
469
|
default: I(() => [
|
470
470
|
s.isSuccessTemplate ? (o(), i("div", Mt, [
|
471
|
-
g(
|
471
|
+
g(f, {
|
472
472
|
height: "100",
|
473
473
|
width: "100",
|
474
474
|
class: "text-green-200 mb-[20px]"
|
@@ -574,7 +574,7 @@ const Qt = /* @__PURE__ */ T(Lt, [["render", Kt]]), Xt = {
|
|
574
574
|
class: "w-[400px] h-[400px] border ml-4 flex items-center justify-center text-gray-600 text-lg font-medium"
|
575
575
|
}, ls = ["src"], os = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
576
576
|
function as(t, e, n, a, s, l) {
|
577
|
-
const c = b("IconExport"),
|
577
|
+
const c = b("IconExport"), f = b("VsDialog");
|
578
578
|
return o(), i(C, null, [
|
579
579
|
r("button", {
|
580
580
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
@@ -586,7 +586,7 @@ function as(t, e, n, a, s, l) {
|
|
586
586
|
}),
|
587
587
|
e[9] || (e[9] = P(" Друк "))
|
588
588
|
]),
|
589
|
-
g(
|
589
|
+
g(f, {
|
590
590
|
visible: s.isOpen,
|
591
591
|
"onUpdate:visible": [
|
592
592
|
e[8] || (e[8] = (d) => s.isOpen = d),
|
@@ -710,11 +710,11 @@ const ps = /* @__PURE__ */ T(ds, [["render", cs]]), bs = {
|
|
710
710
|
}
|
711
711
|
}, hs = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, fs = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
712
712
|
function ms(t, e, n, a, s, l) {
|
713
|
-
var
|
713
|
+
var f, d;
|
714
714
|
const c = b("IconCheck2");
|
715
715
|
return o(), i("div", hs, [
|
716
716
|
r("label", fs, [
|
717
|
-
P($(((
|
717
|
+
P($(((f = n.column) == null ? void 0 : f.ua) || ((d = n.column) == null ? void 0 : d.title)) + " ", 1),
|
718
718
|
M(r("input", {
|
719
719
|
type: "checkbox",
|
720
720
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => s.value = h),
|
@@ -748,8 +748,8 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
748
748
|
var t;
|
749
749
|
return (t = this.columns) == null ? void 0 : t.filter(
|
750
750
|
(e) => {
|
751
|
-
var n, a, s, l, c,
|
752
|
-
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((
|
751
|
+
var n, a, s, l, c, f;
|
752
|
+
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((f = (l = e == null ? void 0 : e.title) == null ? void 0 : l.toLowerCase()) == null ? void 0 : f.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
753
753
|
}
|
754
754
|
);
|
755
755
|
}
|
@@ -784,7 +784,7 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
784
784
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
785
785
|
};
|
786
786
|
function Ts(t, e, n, a, s, l) {
|
787
|
-
const c = b("IconColumns"),
|
787
|
+
const c = b("IconColumns"), f = b("AdminTableColumnsHiddenItem");
|
788
788
|
return o(), i("div", ys, [
|
789
789
|
r("button", {
|
790
790
|
onClick: e[0] || (e[0] = (...d) => l.toggleVisible && l.toggleVisible(...d)),
|
@@ -815,7 +815,7 @@ function Ts(t, e, n, a, s, l) {
|
|
815
815
|
r("div", _s, [
|
816
816
|
(d = l.filteredColumn) != null && d.length ? (o(), i("span", ws, " Оберіть колонки для відображення ")) : v("", !0),
|
817
817
|
r("div", Cs, [
|
818
|
-
(h = l.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(l.filteredColumn, (u, _) => (o(), k(
|
818
|
+
(h = l.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(l.filteredColumn, (u, _) => (o(), k(f, {
|
819
819
|
key: _,
|
820
820
|
column: u,
|
821
821
|
onUpdateColumn: l.updateColumn
|
@@ -860,7 +860,7 @@ const Ds = /* @__PURE__ */ T(Ss, [["render", Vs]]), Ps = {
|
|
860
860
|
}
|
861
861
|
}, js = { class: "hs-accordion" }, Fs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Ls = { class: "text-sm font-medium" }, Ms = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
862
862
|
function zs(t, e, n, a, s, l) {
|
863
|
-
const c = b("IconPlus"),
|
863
|
+
const c = b("IconPlus"), f = b("IconMinus");
|
864
864
|
return o(), i("div", null, [
|
865
865
|
r("div", null, [
|
866
866
|
r("div", js, [
|
@@ -875,7 +875,7 @@ function zs(t, e, n, a, s, l) {
|
|
875
875
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
876
876
|
onClick: e[1] || (e[1] = (d) => s.expanded = !s.expanded)
|
877
877
|
}, [
|
878
|
-
s.expanded ? (o(), k(
|
878
|
+
s.expanded ? (o(), k(f, {
|
879
879
|
key: 1,
|
880
880
|
width: "14"
|
881
881
|
})) : (o(), k(c, { key: 0 }))
|
@@ -895,7 +895,7 @@ function zs(t, e, n, a, s, l) {
|
|
895
895
|
])
|
896
896
|
]);
|
897
897
|
}
|
898
|
-
const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-
|
898
|
+
const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-e1f274c9"]]), Os = {
|
899
899
|
components: {
|
900
900
|
AdminComponentIs: N,
|
901
901
|
AdminTree: qs,
|
@@ -913,15 +913,15 @@ const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-c6318482
|
|
913
913
|
style: { height: "calc(100vh - 360px)" }
|
914
914
|
}, Us = { class: "flow-root mt-[10px]" }, Es = { class: "-my-3 text-sm divide-y divide-gray-100" }, Hs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ws = { class: "font-medium text-black w-[50%]" }, Rs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Js = { class: "table-info-card" }, Gs = { class: "table-info-card" };
|
915
915
|
function Ks(t, e, n, a, s, l) {
|
916
|
-
var x,
|
917
|
-
const c = b("AdminComponentIs"),
|
916
|
+
var x, m, w;
|
917
|
+
const c = b("AdminComponentIs"), f = b("AdminTree"), d = b("VsWidgetMap"), h = b("VsNoData"), u = b("VsWidgetComments"), _ = b("VsWidgetFileList");
|
918
918
|
return o(), i("div", Bs, [
|
919
919
|
e[0] || (e[0] = r("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
920
920
|
r("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
921
921
|
], -1)),
|
922
922
|
r("div", Ns, [
|
923
|
-
(
|
924
|
-
n.row ? (o(), k(
|
923
|
+
(m = (x = t.$route) == null ? void 0 : x.query) != null && m.card ? (o(), i(C, { key: 0 }, [
|
924
|
+
n.row ? (o(), k(f, {
|
925
925
|
key: 0,
|
926
926
|
defaultValue: !0,
|
927
927
|
title: "Основна інформація",
|
@@ -945,7 +945,7 @@ function Ks(t, e, n, a, s, l) {
|
|
945
945
|
]),
|
946
946
|
_: 1
|
947
947
|
})) : v("", !0),
|
948
|
-
(w = n.row) != null && w.geom ? (o(), k(
|
948
|
+
(w = n.row) != null && w.geom ? (o(), k(f, {
|
949
949
|
key: 1,
|
950
950
|
title: "Карта",
|
951
951
|
class: "border-b p-[10px] py-[16px]"
|
@@ -967,7 +967,7 @@ function Ks(t, e, n, a, s, l) {
|
|
967
967
|
}),
|
968
968
|
_: 1
|
969
969
|
})) : v("", !0),
|
970
|
-
g(
|
970
|
+
g(f, {
|
971
971
|
title: "Коментарі",
|
972
972
|
class: "border-b p-[10px] py-[16px]"
|
973
973
|
}, {
|
@@ -983,7 +983,7 @@ function Ks(t, e, n, a, s, l) {
|
|
983
983
|
}),
|
984
984
|
_: 1
|
985
985
|
}),
|
986
|
-
g(
|
986
|
+
g(f, {
|
987
987
|
title: "Файли",
|
988
988
|
class: "border-b p-[10px] py-[16px]"
|
989
989
|
}, {
|
@@ -1030,7 +1030,7 @@ const Qs = /* @__PURE__ */ T(Os, [["render", Ks]]), Xs = {
|
|
1030
1030
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
1031
1031
|
}, Zs = { 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" };
|
1032
1032
|
function en(t, e, n, a, s, l) {
|
1033
|
-
const c = b("IconFilter"),
|
1033
|
+
const c = b("IconFilter"), f = b("VsFilter");
|
1034
1034
|
return o(), i(C, null, [
|
1035
1035
|
r("button", {
|
1036
1036
|
onClick: e[0] || (e[0] = (d) => s.isFilters = !s.isFilters),
|
@@ -1054,7 +1054,7 @@ function en(t, e, n, a, s, l) {
|
|
1054
1054
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
1055
1055
|
}, [
|
1056
1056
|
r("div", Zs, [
|
1057
|
-
(d = n.scheme) != null && d.length ? (o(), k(
|
1057
|
+
(d = n.scheme) != null && d.length ? (o(), k(f, {
|
1058
1058
|
key: 0,
|
1059
1059
|
ref: "filter",
|
1060
1060
|
scheme: n.scheme,
|
@@ -1091,7 +1091,7 @@ const tn = /* @__PURE__ */ T(Xs, [["render", en]]), sn = {
|
|
1091
1091
|
function ln(t, e, n, a, s, l) {
|
1092
1092
|
return o(), i("nav", nn, [
|
1093
1093
|
(o(!0), i(C, null, D(n.tabsList, (c) => (o(), i("button", {
|
1094
|
-
onClick: (
|
1094
|
+
onClick: (f) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
1095
1095
|
class: S(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
1096
1096
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (c == null ? void 0 : c.name) === n.filterState
|
1097
1097
|
}])
|
@@ -1123,7 +1123,7 @@ const cn = /* @__PURE__ */ T(an, [["render", un]]), pn = {
|
|
1123
1123
|
props: { filterCustom: String, customList: Array }
|
1124
1124
|
}, bn = { class: "py-2 max-h-[34px] 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" }, hn = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, fn = ["onClick"], mn = { class: "text-sm text-gray-800" };
|
1125
1125
|
function gn(t, e, n, a, s, l) {
|
1126
|
-
const c = b("IconFilter2"),
|
1126
|
+
const c = b("IconFilter2"), f = b("IconCheck2"), d = b("VsPopover");
|
1127
1127
|
return o(), k(d, {
|
1128
1128
|
ref: "popover",
|
1129
1129
|
placement: "bottom"
|
@@ -1147,7 +1147,7 @@ function gn(t, e, n, a, s, l) {
|
|
1147
1147
|
class: S(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
|
1148
1148
|
}, [
|
1149
1149
|
r("span", mn, $(h == null ? void 0 : h.label), 1),
|
1150
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(
|
1150
|
+
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(f, {
|
1151
1151
|
key: 0,
|
1152
1152
|
class: "ml-auto size-3 shrink-0"
|
1153
1153
|
})) : v("", !0)
|
@@ -1170,10 +1170,10 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1170
1170
|
slots: Object
|
1171
1171
|
},
|
1172
1172
|
setup(t) {
|
1173
|
-
var
|
1174
|
-
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (
|
1175
|
-
var x,
|
1176
|
-
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (
|
1173
|
+
var f, d, h, u, _;
|
1174
|
+
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (f = ze()) == null ? void 0 : f.appContext) == null ? void 0 : d.app) == null ? void 0 : h.config) == null ? void 0 : u.globalProperties) == null ? void 0 : _.utils, n = q(""), a = q(""), s = t, l = () => {
|
1175
|
+
var x, m, w, y, A;
|
1176
|
+
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (m = s.slots) == null ? void 0 : m.panelLeft) != null && w.includes("<")) {
|
1177
1177
|
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
1178
1178
|
"name"
|
1179
1179
|
]);
|
@@ -1181,8 +1181,8 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1181
1181
|
} else
|
1182
1182
|
a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
|
1183
1183
|
}, c = () => {
|
1184
|
-
var x,
|
1185
|
-
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (
|
1184
|
+
var x, m, w, y, A;
|
1185
|
+
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (m = s.slots) == null ? void 0 : m.panelRight) != null && w.includes("<")) {
|
1186
1186
|
const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
|
1187
1187
|
"name"
|
1188
1188
|
]);
|
@@ -1190,7 +1190,7 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1190
1190
|
} else
|
1191
1191
|
n.value = (A = s.slots) == null ? void 0 : A.panelRight;
|
1192
1192
|
};
|
1193
|
-
return l(), c(), (x,
|
1193
|
+
return l(), c(), (x, m) => (o(), i("div", yn, [
|
1194
1194
|
(o(), k(O(a.value))),
|
1195
1195
|
(o(), k(O(n.value)))
|
1196
1196
|
]));
|
@@ -1208,12 +1208,12 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1208
1208
|
slots: Object
|
1209
1209
|
},
|
1210
1210
|
setup(t) {
|
1211
|
-
var l, c,
|
1212
|
-
const { asyncTemplateSlot: e } = (h = (d = (
|
1211
|
+
var l, c, f, d, h;
|
1212
|
+
const { asyncTemplateSlot: e } = (h = (d = (f = (c = (l = ze()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : f.config) == null ? void 0 : d.globalProperties) == null ? void 0 : h.utils, n = q(""), a = t;
|
1213
1213
|
return (() => {
|
1214
|
-
var u, _, x,
|
1214
|
+
var u, _, x, m, w;
|
1215
1215
|
if ((u = a.slots) != null && u.addButton || (n.value = "div"), (x = (_ = a.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
|
1216
|
-
const y = e("addButton", (
|
1216
|
+
const y = e("addButton", (m = a.slots) == null ? void 0 : m.addButton, [
|
1217
1217
|
"IconPlus"
|
1218
1218
|
]);
|
1219
1219
|
n.value = y;
|
@@ -1362,7 +1362,7 @@ const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
|
1362
1362
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1363
1363
|
}, Ln = { class: "relative" }, Mn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, zn = ["onClick"];
|
1364
1364
|
function qn(t, e, n, a, s, l) {
|
1365
|
-
const c = b("IconChevronDown"),
|
1365
|
+
const c = b("IconChevronDown"), f = b("IconCheck");
|
1366
1366
|
return o(), i("nav", Dn, [
|
1367
1367
|
r("button", {
|
1368
1368
|
type: "button",
|
@@ -1405,7 +1405,7 @@ function qn(t, e, n, a, s, l) {
|
|
1405
1405
|
onClick: (h) => t.pageSizeLocal = d
|
1406
1406
|
}, [
|
1407
1407
|
P($(d) + " ", 1),
|
1408
|
-
d === t.pageSizeLocal ? (o(), k(
|
1408
|
+
d === t.pageSizeLocal ? (o(), k(f, {
|
1409
1409
|
key: 0,
|
1410
1410
|
width: "14",
|
1411
1411
|
height: "14",
|
@@ -1559,8 +1559,8 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1559
1559
|
},
|
1560
1560
|
methods: {
|
1561
1561
|
async checkUrlMounted() {
|
1562
|
-
var t, e, n, a, s, l, c,
|
1563
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((c = decodeURI((l = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : l.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (
|
1562
|
+
var t, e, n, a, s, l, c, f, d, h, u, _, x, m, w, y, A, V, L;
|
1563
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((c = decodeURI((l = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : l.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((u = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : u.filterState) || null, this.filterCustom = ((x = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : x.custom) || null, this.searchValue = ((w = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((V = (A = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : A.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
|
1564
1564
|
},
|
1565
1565
|
rowWidth(t) {
|
1566
1566
|
var n, a;
|
@@ -1574,7 +1574,7 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1574
1574
|
this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0, this.searchValue = "";
|
1575
1575
|
},
|
1576
1576
|
async getTableData() {
|
1577
|
-
var t, e, n, a, s, l, c,
|
1577
|
+
var t, e, n, a, s, l, c, f, d, h, u;
|
1578
1578
|
try {
|
1579
1579
|
const { data: _ } = await F.get(`/api/template/table/${this.table}`), x = await F.get(`/api/table-data/${this.table}`, {
|
1580
1580
|
params: {
|
@@ -1590,10 +1590,10 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1590
1590
|
this.tableData = {
|
1591
1591
|
..._,
|
1592
1592
|
...(x == null ? void 0 : x.data) || {}
|
1593
|
-
}, this.initialHiddenColumns = (l = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((
|
1593
|
+
}, this.initialHiddenColumns = (l = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((m) => (m == null ? void 0 : m.hidden) !== !0)) == null ? void 0 : s.map((m) => m == null ? void 0 : m.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (f = this.tableData) == null || f.columns.forEach((m) => {
|
1594
1594
|
var w;
|
1595
|
-
(w = this.visibleColumns) != null && w.includes(
|
1596
|
-
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((
|
1595
|
+
(w = this.visibleColumns) != null && w.includes(m == null ? void 0 : m.name) ? m.hidden = !1 : m.hidden = !0;
|
1596
|
+
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((m) => (m == null ? void 0 : m.hidden) !== !0)) == null ? void 0 : u.map((m) => m == null ? void 0 : m.name);
|
1597
1597
|
} catch {
|
1598
1598
|
}
|
1599
1599
|
},
|
@@ -1663,7 +1663,7 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1663
1663
|
};
|
1664
1664
|
function ir(t, e, n, a, s, l) {
|
1665
1665
|
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne, re, le, oe, ae, ie, de, ue, ce, pe, be, he, fe, me, ge, xe, ye, ke;
|
1666
|
-
const c = b("AdminCustomButtonAdd"),
|
1666
|
+
const c = b("AdminCustomButtonAdd"), f = b("IconPlus"), d = b("router-link"), h = b("AdminTableTabs"), u = b("IconSearch"), _ = b("VsText"), x = b("AdminTableCustomButtons"), m = b("AdminTableCustomFilters"), w = b("AdminTableColumnsHidden"), y = b("AdminTablePrint"), A = b("AdminTableExport"), V = b("AdminTableFilters"), L = b("IconOpenCard"), E = b("AdminTableColumn"), H = b("AdminComponentIs"), Be = b("AdminTableControl"), Ne = b("AdminTableTotalsList"), Ue = b("AdminNodata"), Ee = b("AdminTablePagination"), He = b("AdminTableCardInfo");
|
1667
1667
|
return o(), i("div", Nn, [
|
1668
1668
|
r("div", Un, [
|
1669
1669
|
r("h2", En, $(n.title), 1),
|
@@ -1677,7 +1677,7 @@ function ir(t, e, n, a, s, l) {
|
|
1677
1677
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
1678
1678
|
}, {
|
1679
1679
|
default: I(() => [
|
1680
|
-
g(
|
1680
|
+
g(f, {
|
1681
1681
|
height: "16",
|
1682
1682
|
width: "16"
|
1683
1683
|
}),
|
@@ -1719,7 +1719,7 @@ function ir(t, e, n, a, s, l) {
|
|
1719
1719
|
key: 0,
|
1720
1720
|
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
1721
1721
|
}, null, 8, ["slots"])) : v("", !0),
|
1722
|
-
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(
|
1722
|
+
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(m, {
|
1723
1723
|
key: 1,
|
1724
1724
|
customList: (ne = s.tableData) == null ? void 0 : ne.filterCustom,
|
1725
1725
|
filterCustom: s.filterCustom,
|
@@ -1934,14 +1934,16 @@ const dr = /* @__PURE__ */ T(Bn, [["render", ir], ["__scopeId", "data-v-4cadd511
|
|
1934
1934
|
}), e;
|
1935
1935
|
},
|
1936
1936
|
async checkPageType() {
|
1937
|
-
var
|
1937
|
+
var a, s;
|
1938
1938
|
const t = this.flattenMenu(je.value);
|
1939
1939
|
t != null && t.length || this.$router.replace("/404");
|
1940
|
-
const e = t == null ? void 0 : t.find((
|
1941
|
-
var
|
1942
|
-
return (
|
1940
|
+
const e = t == null ? void 0 : t.find((l) => {
|
1941
|
+
var c, f;
|
1942
|
+
return (l == null ? void 0 : l.path) == ((f = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : f.catchAll);
|
1943
1943
|
});
|
1944
|
-
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((
|
1944
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : s.catchAll);
|
1945
|
+
const n = e == null ? void 0 : e.table;
|
1946
|
+
this.table = n || !1, this.search = (e == null ? void 0 : e.search) || "", !n && this.getInterface();
|
1945
1947
|
},
|
1946
1948
|
async getInterface() {
|
1947
1949
|
var t, e;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as C, I as J, s as v, a as K, u as A, b as W, c as X, d as Y, e as T, f as ee } from "./import-file-
|
1
|
+
import { _ as C, I as J, s as v, a as K, u as A, b as W, c as X, d as Y, e as T, f as ee } from "./import-file-CpEg7H-h.js";
|
2
2
|
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as P, 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 F, vShow as le, createBlock as U, resolveDynamicComponent as S, withModifiers as oe } from "vue";
|
3
3
|
import { u as ne } from "./user-B_2kh6ic.js";
|
4
4
|
const se = {}, ae = {
|
@@ -712,7 +712,7 @@ function b1(e, t, l, u, n, r) {
|
|
712
712
|
])
|
713
713
|
]);
|
714
714
|
}
|
715
|
-
const v1 = /* @__PURE__ */ C(g1, [["render", b1], ["__scopeId", "data-v-
|
715
|
+
const v1 = /* @__PURE__ */ C(g1, [["render", b1], ["__scopeId", "data-v-79c10cab"]]);
|
716
716
|
export {
|
717
717
|
v1 as default
|
718
718
|
};
|
package/dist/admin.js
CHANGED