@opengis/admin 0.1.65 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +29 -29
- package/config.js +4 -4
- package/dist/{add-page-Dl_bGhPC.js → add-page-YonHQsF2.js} +1 -1
- package/dist/{admin-interface-Dma-D4A9.js → admin-interface-DSR1im5I.js} +67 -65
- package/dist/{admin-view-TeTAUVK1.js → admin-view-WZhYBXYw.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +46 -46
- package/dist/{card-page-D-3aubBo.js → card-page-BH8lGOKk.js} +2 -2
- package/dist/{card-view-CZjPaUKx.js → card-view-DYhMgpIH.js} +1 -1
- package/dist/{edit-page-RhKgRai9.js → edit-page-D8fMSwEp.js} +1 -1
- package/dist/{import-file-DgJqxKyF.js → import-file-Do-GQQHc.js} +3203 -3234
- package/dist/style.css +1 -1
- package/module/settings/card/admin.roles.table/access.hbs +27 -27
- package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
- package/module/settings/card/admin.roles.table/index.yml +14 -14
- package/module/settings/card/admin.roles.table/users.hbs +27 -27
- package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
- package/module/settings/card/admin.routes.table/index.yml +8 -8
- package/module/settings/card/admin.routes.table/users.hbs +33 -33
- package/module/settings/card/admin.users.table/general_info.hbs +25 -25
- package/module/settings/card/admin.users.table/index.yml +12 -12
- package/module/settings/card/admin.users.table/logs.hbs +30 -30
- package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
- package/module/settings/cls/core.actions.json +13 -13
- 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/form/admin.access.form.json +36 -36
- 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 +19 -19
- package/module/settings/form/admin.routes.form.json +25 -25
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +21 -21
- package/module/settings/form/admin.users.form.json +150 -150
- 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 +50 -50
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.access.table.json +77 -77
- package/module/settings/table/admin.custom_column.table.json +94 -94
- package/module/settings/table/admin.properties.table.json +33 -33
- package/module/settings/table/admin.roles.table.json +58 -58
- package/module/settings/table/admin.routes.table.json +67 -67
- package/module/settings/table/admin.user_properties.table.json +28 -28
- package/module/settings/table/admin.user_roles.table.json +66 -66
- package/module/settings/table/admin.users.table.json +119 -119
- package/package.json +80 -80
- package/plugin.js +100 -100
- package/server/helpers/controllers/badge.js +11 -11
- package/server/helpers/controllers/hb.js +2 -2
- package/server/helpers/controllers/map.js +2 -2
- package/server/helpers/controllers/mls.js +2 -2
- package/server/helpers/controllers/vue.js +2 -2
- package/server/helpers/index.mjs +13 -13
- package/server/plugins/adminHook.js +165 -165
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/plugins/hook.js +185 -194
- package/server/plugins/vite.js +69 -69
- package/server/routes/calendar/controllers/calendar.data.js +88 -88
- package/server/routes/calendar/index.mjs +17 -17
- package/server/routes/data/controllers/cardData.js +57 -57
- 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 +112 -112
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +63 -63
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/getColumns.js +8 -8
- package/server/routes/data/index.mjs +15 -15
- package/server/routes/data/schema.js +7 -7
- package/server/routes/menu/controllers/getMenu.js +51 -34
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +30 -30
- package/server/routes/notifications/controllers/userNotifications.js +64 -64
- package/server/routes/notifications/hook/onWidgetSet.js +57 -63
- package/server/routes/notifications/index.mjs +40 -40
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +34 -34
- 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 +26 -26
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +22 -22
- package/server/routes/templates/index.mjs +14 -14
- 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 +21 -21
package/README.md
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
# admin
|
2
|
-
|
3
|
-
[![NPM version](https://img.shields.io/npm/v/@opengis/admin)](https://www.npmjs.com/package/@opengis/admin)
|
4
|
-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
|
5
|
-
|
6
|
-
It standardizes the entire web-site administration
|
7
|
-
|
8
|
-
## Install
|
9
|
-
|
10
|
-
```bash
|
11
|
-
npm i @opengis/admin
|
12
|
-
```
|
13
|
-
|
14
|
-
## Publish
|
15
|
-
|
16
|
-
```bash
|
17
|
-
npm run build
|
18
|
-
npm publish
|
19
|
-
```
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
```js
|
24
|
-
fastify.register(import('@opengis/admin'), config);
|
25
|
-
```
|
26
|
-
|
27
|
-
## Documenation
|
28
|
-
|
29
|
-
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/opengis/plugin/).
|
1
|
+
# admin
|
2
|
+
|
3
|
+
[![NPM version](https://img.shields.io/npm/v/@opengis/admin)](https://www.npmjs.com/package/@opengis/admin)
|
4
|
+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
|
5
|
+
|
6
|
+
It standardizes the entire web-site administration
|
7
|
+
|
8
|
+
## Install
|
9
|
+
|
10
|
+
```bash
|
11
|
+
npm i @opengis/admin
|
12
|
+
```
|
13
|
+
|
14
|
+
## Publish
|
15
|
+
|
16
|
+
```bash
|
17
|
+
npm run build
|
18
|
+
npm publish
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```js
|
24
|
+
fastify.register(import('@opengis/admin'), config);
|
25
|
+
```
|
26
|
+
|
27
|
+
## Documenation
|
28
|
+
|
29
|
+
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/opengis/plugin/).
|
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 m, u as b, a as c } from "./import-file-
|
1
|
+
import { _ as m, u as b, a as c } from "./import-file-Do-GQQHc.js";
|
2
2
|
import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as p, createCommentVNode as f } from "vue";
|
3
3
|
const g = {
|
4
4
|
data() {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as m, b as ue, a as A, c as he, d as pe, e as be, f as fe, I as me, u as te } from "./import-file-
|
2
|
-
import { openBlock as s, createElementBlock as i, createTextVNode as F, toDisplayString as I, createCommentVNode as v, createStaticVNode as j, Fragment as C, createElementVNode as l, resolveComponent as
|
1
|
+
import { _ as m, b as ue, a as A, c as he, d as pe, e as be, f as fe, I as me, u as te } from "./import-file-Do-GQQHc.js";
|
2
|
+
import { openBlock as s, createElementBlock as i, createTextVNode as F, toDisplayString as I, createCommentVNode as v, createStaticVNode as j, Fragment as C, createElementVNode as l, resolveComponent as d, createVNode as b, withCtx as y, createBlock as x, withModifiers as ge, renderList as T, withDirectives as z, vModelCheckbox as xe, resolveDynamicComponent as ye, Transition as B, renderSlot as _e, vShow as ne, normalizeClass as S, normalizeStyle as re } from "vue";
|
3
3
|
const ke = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -88,7 +88,7 @@ function Te(t, e, r, a, n, o) {
|
|
88
88
|
key: 0,
|
89
89
|
type: "button",
|
90
90
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
|
91
|
-
onClick: e[0] || (e[0] = (
|
91
|
+
onClick: e[0] || (e[0] = (c) => o.handleClickSortBtn(n.currentSort))
|
92
92
|
}, [
|
93
93
|
F(I(o.label) + " ", 1),
|
94
94
|
(s(), i("svg", ve, [
|
@@ -120,7 +120,7 @@ const De = /* @__PURE__ */ m(Ve, [["render", Fe]]), Me = {
|
|
120
120
|
color: { type: String, default: "black" }
|
121
121
|
}
|
122
122
|
}, je = { style: { display: "none" } }, ze = ["height", "width", "fill"];
|
123
|
-
function
|
123
|
+
function Be(t, e, r, a, n, o) {
|
124
124
|
return s(), i(C, null, [
|
125
125
|
(s(), i("svg", je, e[0] || (e[0] = [
|
126
126
|
l("symbol", {
|
@@ -139,11 +139,11 @@ function Pe(t, e, r, a, n, o) {
|
|
139
139
|
]), 8, ze))
|
140
140
|
], 64);
|
141
141
|
}
|
142
|
-
const
|
142
|
+
const Pe = /* @__PURE__ */ m(Me, [["render", Be]]), qe = {
|
143
143
|
components: {
|
144
144
|
IconMore: ue,
|
145
145
|
IconDelete: De,
|
146
|
-
IconEdit:
|
146
|
+
IconEdit: Pe
|
147
147
|
},
|
148
148
|
emits: ["updateTable"],
|
149
149
|
props: {
|
@@ -202,7 +202,7 @@ const qe = /* @__PURE__ */ m(Me, [["render", Pe]]), Be = {
|
|
202
202
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
203
203
|
}, Ne = { class: "p-4" }, He = { class: "flex justify-end mt-4 gap-x-3" };
|
204
204
|
function We(t, e, r, a, n, o) {
|
205
|
-
const
|
205
|
+
const c = d("IconMore"), p = d("IconEdit"), h = d("router-link"), u = d("IconDelete"), _ = d("VsPopover"), w = d("VsDialog");
|
206
206
|
return s(), i(C, null, [
|
207
207
|
l("div", Le, [
|
208
208
|
b(_, {
|
@@ -211,7 +211,7 @@ function We(t, e, r, a, n, o) {
|
|
211
211
|
}, {
|
212
212
|
reference: y(() => [
|
213
213
|
l("button", Ue, [
|
214
|
-
b(
|
214
|
+
b(c, {
|
215
215
|
height: "16",
|
216
216
|
width: "16"
|
217
217
|
})
|
@@ -273,7 +273,7 @@ function We(t, e, r, a, n, o) {
|
|
273
273
|
}, 8, ["visible"])
|
274
274
|
], 64);
|
275
275
|
}
|
276
|
-
const Re = /* @__PURE__ */ m(
|
276
|
+
const Re = /* @__PURE__ */ m(qe, [["render", We]]), Ge = {}, Ze = {
|
277
277
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
278
278
|
xmlns: "http://www.w3.org/2000/svg",
|
279
279
|
viewBox: "0 0 24 24",
|
@@ -337,13 +337,13 @@ const Ke = /* @__PURE__ */ m(Ge, [["render", Je]]), Qe = {
|
|
337
337
|
}
|
338
338
|
}, Xe = { class: "p-4" }, Ye = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, et = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, tt = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, rt = { class: "mt-2 space-y-2" }, nt = ["id", "onChange"], lt = ["for"], st = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
339
339
|
function ot(t, e, r, a, n, o) {
|
340
|
-
const
|
340
|
+
const c = d("IconExport"), p = d("VsCheckbox"), h = d("VsDialog");
|
341
341
|
return s(), i(C, null, [
|
342
342
|
l("button", {
|
343
343
|
onClick: e[0] || (e[0] = (u) => n.isOpen = !0),
|
344
344
|
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"
|
345
345
|
}, [
|
346
|
-
b(
|
346
|
+
b(c, {
|
347
347
|
height: "16",
|
348
348
|
width: "16"
|
349
349
|
}),
|
@@ -431,7 +431,7 @@ function ot(t, e, r, a, n, o) {
|
|
431
431
|
}, 8, ["visible"])
|
432
432
|
], 64);
|
433
433
|
}
|
434
|
-
const at = /* @__PURE__ */ m(Qe, [["render", ot]]), it = {},
|
434
|
+
const at = /* @__PURE__ */ m(Qe, [["render", ot]]), it = {}, dt = {
|
435
435
|
xmlns: "http://www.w3.org/2000/svg",
|
436
436
|
viewBox: "0 0 24 24",
|
437
437
|
fill: "none",
|
@@ -441,12 +441,12 @@ const at = /* @__PURE__ */ m(Qe, [["render", ot]]), it = {}, ct = {
|
|
441
441
|
"stroke-linejoin": "round",
|
442
442
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
443
443
|
};
|
444
|
-
function
|
445
|
-
return s(), i("svg",
|
444
|
+
function ct(t, e, r, a, n, o) {
|
445
|
+
return s(), i("svg", dt, e[0] || (e[0] = [
|
446
446
|
j('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
447
447
|
]));
|
448
448
|
}
|
449
|
-
const ut = /* @__PURE__ */ m(it, [["render",
|
449
|
+
const ut = /* @__PURE__ */ m(it, [["render", ct]]), ht = {
|
450
450
|
props: { column: Object },
|
451
451
|
emits: ["update-column"],
|
452
452
|
data() {
|
@@ -465,7 +465,7 @@ const ut = /* @__PURE__ */ m(it, [["render", dt]]), ht = {
|
|
465
465
|
}
|
466
466
|
}, pt = { class: "flex w-full gap-[8px] items-centr" };
|
467
467
|
function bt(t, e, r, a, n, o) {
|
468
|
-
var
|
468
|
+
var c, p;
|
469
469
|
return s(), i("label", pt, [
|
470
470
|
z(l("input", {
|
471
471
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
@@ -473,7 +473,7 @@ function bt(t, e, r, a, n, o) {
|
|
473
473
|
}, null, 512), [
|
474
474
|
[xe, n.value]
|
475
475
|
]),
|
476
|
-
F(" " + I(((
|
476
|
+
F(" " + I(((c = r.column) == null ? void 0 : c.ua) || ((p = r.column) == null ? void 0 : p.title)), 1)
|
477
477
|
]);
|
478
478
|
}
|
479
479
|
const ft = /* @__PURE__ */ m(ht, [["render", bt]]), mt = {
|
@@ -488,14 +488,14 @@ const ft = /* @__PURE__ */ m(ht, [["render", bt]]), mt = {
|
|
488
488
|
}
|
489
489
|
}, 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" }, xt = { class: "py-[10px] px-[10px] w-[260px]" }, yt = { 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" };
|
490
490
|
function _t(t, e, r, a, n, o) {
|
491
|
-
const
|
491
|
+
const c = d("IconColumns"), p = d("AdminTableColumnsHiddenItem"), h = d("VsPopover");
|
492
492
|
return s(), x(h, {
|
493
493
|
trigger: "click",
|
494
494
|
placement: "bottom"
|
495
495
|
}, {
|
496
496
|
reference: y(() => [
|
497
497
|
l("button", gt, [
|
498
|
-
b(
|
498
|
+
b(c, {
|
499
499
|
height: "20",
|
500
500
|
width: "16"
|
501
501
|
})
|
@@ -542,9 +542,9 @@ const St = /* @__PURE__ */ m($t, [["render", Tt]]), Vt = {
|
|
542
542
|
props: { row: Object, column: Object, table: String }
|
543
543
|
};
|
544
544
|
function At(t, e, r, a, n, o) {
|
545
|
-
var
|
545
|
+
var c, p, h, u, _, w, k, $;
|
546
546
|
return s(), x(ye(
|
547
|
-
((
|
547
|
+
((c = r.column) == null ? void 0 : c.format) === "custom" ? (p = r.column) == null ? void 0 : p.component : t.$componentsConfig[`table-format-${((u = (h = r.column) == null ? void 0 : h.format) == null ? void 0 : u.toLowerCase()) || "text"}`]
|
548
548
|
), {
|
549
549
|
onUpdateTable: e[0] || (e[0] = (g) => t.$emit("update-table")),
|
550
550
|
name: (_ = r.column) == null ? void 0 : _.name,
|
@@ -581,18 +581,18 @@ const jt = /* @__PURE__ */ m(Ft, [["render", Mt]]), zt = {
|
|
581
581
|
data() {
|
582
582
|
return { expanded: !1 };
|
583
583
|
}
|
584
|
-
},
|
584
|
+
}, Bt = { class: "hs-accordion" }, Pt = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, qt = { class: "text-sm font-medium" }, Lt = { class: "w-full duration-150 before:block before:absolute relative inline-block b cursor-pointer" };
|
585
585
|
function Ut(t, e, r, a, n, o) {
|
586
|
-
const
|
586
|
+
const c = d("IconPlus"), p = d("IconMinus");
|
587
587
|
return s(), i("div", null, [
|
588
588
|
l("div", null, [
|
589
|
-
l("div",
|
590
|
-
l("div",
|
589
|
+
l("div", Bt, [
|
590
|
+
l("div", Pt, [
|
591
591
|
l("div", {
|
592
592
|
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
593
593
|
class: "grow rounded-md cursor-pointer"
|
594
594
|
}, [
|
595
|
-
l("span",
|
595
|
+
l("span", qt, I(r.title), 1)
|
596
596
|
]),
|
597
597
|
l("button", {
|
598
598
|
class: "size-6 flex justify-center items-center hover:bg-gray-100 rounded-md",
|
@@ -601,10 +601,10 @@ function Ut(t, e, r, a, n, o) {
|
|
601
601
|
n.expanded ? (s(), x(p, {
|
602
602
|
key: 1,
|
603
603
|
width: "14"
|
604
|
-
})) : (s(), x(
|
604
|
+
})) : (s(), x(c, { key: 0 }))
|
605
605
|
])
|
606
606
|
]),
|
607
|
-
b(
|
607
|
+
b(B, { name: "fade" }, {
|
608
608
|
default: y(() => [
|
609
609
|
z(l("div", Lt, [
|
610
610
|
_e(t.$slots, "default", {}, void 0, !0)
|
@@ -618,7 +618,7 @@ function Ut(t, e, r, a, n, o) {
|
|
618
618
|
])
|
619
619
|
]);
|
620
620
|
}
|
621
|
-
const Ot = /* @__PURE__ */ m(zt, [["render", Ut], ["__scopeId", "data-v-
|
621
|
+
const Ot = /* @__PURE__ */ m(zt, [["render", Ut], ["__scopeId", "data-v-f5ecdb9a"]]), Et = {
|
622
622
|
components: {
|
623
623
|
AdminComponentIs: se,
|
624
624
|
AdminTree: Ot,
|
@@ -637,7 +637,7 @@ const Ot = /* @__PURE__ */ m(zt, [["render", Ut], ["__scopeId", "data-v-4139bc00
|
|
637
637
|
}, Wt = { class: "flex items-center justify-between py-1 gap-x-4" }, Rt = { class: "col-span-1" }, Gt = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, Zt = { class: "col-span-2" }, Jt = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Kt = { class: "table-info-card" }, Qt = { class: "table-info-card" };
|
638
638
|
function Xt(t, e, r, a, n, o) {
|
639
639
|
var k, $;
|
640
|
-
const
|
640
|
+
const c = d("AdminComponentIs"), p = d("AdminTree"), h = d("VsWidgetMap"), u = d("VsNoData"), _ = d("VsWidgetComments"), w = d("VsWidgetFileList");
|
641
641
|
return s(), i("div", Nt, [
|
642
642
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
643
643
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
@@ -656,7 +656,7 @@ function Xt(t, e, r, a, n, o) {
|
|
656
656
|
]),
|
657
657
|
l("dd", Zt, [
|
658
658
|
l("p", Jt, [
|
659
|
-
b(
|
659
|
+
b(c, {
|
660
660
|
row: r.row,
|
661
661
|
column: g,
|
662
662
|
table: r.table
|
@@ -780,25 +780,25 @@ const ar = /* @__PURE__ */ m(lr, [["render", or]]), ir = {
|
|
780
780
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
781
781
|
}
|
782
782
|
}
|
783
|
-
},
|
783
|
+
}, dr = {
|
784
784
|
key: 0,
|
785
785
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
786
|
-
},
|
786
|
+
}, cr = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-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" };
|
787
787
|
function ur(t, e, r, a, n, o) {
|
788
|
-
const
|
788
|
+
const c = d("IconFilter"), p = d("VsFilter");
|
789
789
|
return s(), i(C, null, [
|
790
790
|
l("button", {
|
791
791
|
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
792
792
|
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"
|
793
793
|
}, [
|
794
|
-
b(
|
794
|
+
b(c, {
|
795
795
|
height: "16",
|
796
796
|
width: "16"
|
797
797
|
}),
|
798
798
|
e[4] || (e[4] = F(" Фільтри ")),
|
799
|
-
r.onFilters ? (s(), i("span",
|
799
|
+
r.onFilters ? (s(), i("span", dr, I(r.onFilters), 1)) : v("", !0)
|
800
800
|
]),
|
801
|
-
b(
|
801
|
+
b(B, { name: "fade" }, {
|
802
802
|
default: y(() => {
|
803
803
|
var h;
|
804
804
|
return [
|
@@ -807,7 +807,7 @@ function ur(t, e, r, a, n, o) {
|
|
807
807
|
style: { height: "100vh" },
|
808
808
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
809
809
|
}, [
|
810
|
-
l("div",
|
810
|
+
l("div", cr, [
|
811
811
|
(h = r.scheme) != null && h.length ? (s(), x(p, {
|
812
812
|
key: 0,
|
813
813
|
ref: "filter",
|
@@ -840,12 +840,12 @@ const hr = /* @__PURE__ */ m(ir, [["render", ur]]), pr = {
|
|
840
840
|
}, fr = ["onClick"];
|
841
841
|
function mr(t, e, r, a, n, o) {
|
842
842
|
return s(), i("nav", br, [
|
843
|
-
(s(!0), i(C, null, T(r.tabsList, (
|
844
|
-
onClick: (p) => t.$emit("update:filterState",
|
843
|
+
(s(!0), i(C, null, T(r.tabsList, (c) => (s(), i("button", {
|
844
|
+
onClick: (p) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
845
845
|
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", {
|
846
|
-
" 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": (
|
846
|
+
" 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) === r.filterState
|
847
847
|
}])
|
848
|
-
}, I(
|
848
|
+
}, I(c == null ? void 0 : c.label), 11, fr))), 256))
|
849
849
|
]);
|
850
850
|
}
|
851
851
|
const gr = /* @__PURE__ */ m(pr, [["render", mr]]), xr = {}, yr = {
|
@@ -873,14 +873,14 @@ const kr = /* @__PURE__ */ m(xr, [["render", _r]]), wr = {
|
|
873
873
|
props: { filterCustom: String, customList: Array }
|
874
874
|
}, vr = { 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" }, Cr = { class: "flex flex-col gap-[4px]" }, $r = ["onClick"];
|
875
875
|
function Ir(t, e, r, a, n, o) {
|
876
|
-
const
|
876
|
+
const c = d("IconFilter2"), p = d("VsPopover");
|
877
877
|
return s(), x(p, {
|
878
878
|
ref: "popover",
|
879
879
|
placement: "bottom"
|
880
880
|
}, {
|
881
881
|
reference: y(() => [
|
882
882
|
l("button", vr, [
|
883
|
-
b(
|
883
|
+
b(c, {
|
884
884
|
height: "20",
|
885
885
|
width: "20"
|
886
886
|
})
|
@@ -1007,8 +1007,8 @@ const Tr = /* @__PURE__ */ m(wr, [["render", Ir]]), Sr = {
|
|
1007
1007
|
},
|
1008
1008
|
methods: {
|
1009
1009
|
async checkUrlMounted() {
|
1010
|
-
var t, e, r, a, n, o,
|
1011
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : a.limit) || 20, this.filterState = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filterState) || null, this.filterCustom = ((p = (
|
1010
|
+
var t, e, r, a, n, o, c, p, h;
|
1011
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : a.limit) || 20, this.filterState = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filterState) || null, this.filterCustom = ((p = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : p.filterCustom) || null, (h = this.$route) != null && h.query.card && (this.isVisibleCardInfo = !0);
|
1012
1012
|
},
|
1013
1013
|
rowWidth(t) {
|
1014
1014
|
var r, a;
|
@@ -1089,26 +1089,26 @@ const Tr = /* @__PURE__ */ m(wr, [["render", Ir]]), Sr = {
|
|
1089
1089
|
}, Vr = { class: "w-[calc(100vw - 320px)]" }, Ar = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, Fr = { class: "text-xl font-medium h-[20px]" }, Dr = {
|
1090
1090
|
style: { height: "calc(100vh - 140px)", width: "calc(100vw - 260px)" },
|
1091
1091
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1092
|
-
}, Mr = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, jr = { class: "flex" }, zr = { class: "flex gap-[6px] ml-auto" },
|
1092
|
+
}, Mr = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, jr = { class: "flex" }, zr = { class: "flex gap-[6px] ml-auto" }, Br = { class: "inline-block w-full align-middle" }, Pr = {
|
1093
1093
|
key: 0,
|
1094
1094
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
|
1095
|
-
},
|
1095
|
+
}, qr = { class: "sticky top-0 bg-white w-full after:absolute after:content-[''] z-[1] after:block after:w-full after:h-px after:bg-stone-200" }, Lr = { class: "right-0 border-t border-stone-200" }, Ur = { class: "divide-y divide-gray-200" }, Or = { class: "text-sm text-gray-600 px-4 py-3" }, Er = ["onClick"], Nr = ["onClick"], Hr = {
|
1096
1096
|
key: 0,
|
1097
1097
|
class: "text-center sticky right-0 bg-white w-[80px] px-[10px]"
|
1098
1098
|
}, Wr = { class: "p-[20px] flex justify-end w-full" };
|
1099
1099
|
function Rr(t, e, r, a, n, o) {
|
1100
|
-
var
|
1101
|
-
const
|
1100
|
+
var P, q, L, U, O, E, N, H, W, R, G, Z, J, K;
|
1101
|
+
const c = d("IconPlus"), p = d("router-link"), h = d("AdminTableTabs"), u = d("IconSearch"), _ = d("VsText"), w = d("AdminTableCustomFilters"), k = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), g = d("AdminTableFilters"), V = d("IconOpenCard"), D = d("AdminTableColumn"), M = d("AdminComponentIs"), oe = d("AdminTableControl"), ae = d("AdminNodata"), ie = d("VsPagination"), de = d("AdminTableCardInfo");
|
1102
1102
|
return s(), i("div", Vr, [
|
1103
1103
|
l("div", Ar, [
|
1104
1104
|
l("h2", Fr, I(r.title), 1),
|
1105
1105
|
o.isForm ? (s(), x(p, {
|
1106
1106
|
key: 0,
|
1107
|
-
to: `/add?table=${(
|
1107
|
+
to: `/add?table=${(q = (P = t.$route) == null ? void 0 : P.params) == null ? void 0 : q.catchAll}`,
|
1108
1108
|
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"
|
1109
1109
|
}, {
|
1110
1110
|
default: y(() => [
|
1111
|
-
b(
|
1111
|
+
b(c, {
|
1112
1112
|
height: "16",
|
1113
1113
|
width: "16"
|
1114
1114
|
}),
|
@@ -1183,14 +1183,16 @@ function Rr(t, e, r, a, n, o) {
|
|
1183
1183
|
}),
|
1184
1184
|
class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
1185
1185
|
}, [
|
1186
|
-
l("div",
|
1187
|
-
o.isNoData ? (s(), x(ae, { key: 1 })) : (s(), i("table",
|
1188
|
-
l("thead",
|
1186
|
+
l("div", Br, [
|
1187
|
+
o.isNoData ? (s(), x(ae, { key: 1 })) : (s(), i("table", Pr, [
|
1188
|
+
l("thead", qr, [
|
1189
1189
|
l("tr", Lr, [
|
1190
1190
|
(s(!0), i(C, null, T(o.columns, (f) => (s(), x(D, {
|
1191
1191
|
key: f.name,
|
1192
1192
|
style: re({
|
1193
|
-
width: o.rowWidth(f == null ? void 0 : f.name)
|
1193
|
+
width: o.rowWidth(f == null ? void 0 : f.name),
|
1194
|
+
textAlign: f == null ? void 0 : f.align,
|
1195
|
+
wordBreak: f.wrap
|
1194
1196
|
}),
|
1195
1197
|
data: f,
|
1196
1198
|
activeColumn: n.activeColumn,
|
@@ -1200,9 +1202,9 @@ function Rr(t, e, r, a, n, o) {
|
|
1200
1202
|
])
|
1201
1203
|
]),
|
1202
1204
|
l("tbody", Ur, [
|
1203
|
-
(s(!0), i(C, null, T((J = n.tableData) == null ? void 0 : J.rows, (f,
|
1205
|
+
(s(!0), i(C, null, T((J = n.tableData) == null ? void 0 : J.rows, (f, ce) => {
|
1204
1206
|
var Q, X, Y;
|
1205
|
-
return s(), i("tr", { key:
|
1207
|
+
return s(), i("tr", { key: ce }, [
|
1206
1208
|
l("td", Or, [
|
1207
1209
|
l("button", {
|
1208
1210
|
onClick: () => o.pushToCard(f == null ? void 0 : f.id),
|
@@ -1260,9 +1262,9 @@ function Rr(t, e, r, a, n, o) {
|
|
1260
1262
|
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
|
1261
1263
|
])
|
1262
1264
|
], 2),
|
1263
|
-
b(
|
1265
|
+
b(B, { name: "slide-fade" }, {
|
1264
1266
|
default: y(() => [
|
1265
|
-
n.isVisibleCardInfo ? (s(), x(
|
1267
|
+
n.isVisibleCardInfo ? (s(), x(de, {
|
1266
1268
|
key: 0,
|
1267
1269
|
table: r.table,
|
1268
1270
|
columns: o.columns,
|
@@ -1276,7 +1278,7 @@ function Rr(t, e, r, a, n, o) {
|
|
1276
1278
|
])
|
1277
1279
|
]);
|
1278
1280
|
}
|
1279
|
-
const Gr = /* @__PURE__ */ m(Sr, [["render", Rr], ["__scopeId", "data-v-
|
1281
|
+
const Gr = /* @__PURE__ */ m(Sr, [["render", Rr], ["__scopeId", "data-v-09c7ed19"]]), Zr = {
|
1280
1282
|
components: { AdminTable: Gr },
|
1281
1283
|
data() {
|
1282
1284
|
return {
|
@@ -1312,8 +1314,8 @@ const Gr = /* @__PURE__ */ m(Sr, [["render", Rr], ["__scopeId", "data-v-9b255a47
|
|
1312
1314
|
const t = this.flattenMenu(te.value);
|
1313
1315
|
t != null && t.length || this.$router.replace("/404");
|
1314
1316
|
const e = t == null ? void 0 : t.find((o) => {
|
1315
|
-
var
|
1316
|
-
return (o == null ? void 0 : o.path) == ((p = (
|
1317
|
+
var c, p;
|
1318
|
+
return (o == null ? void 0 : o.path) == ((p = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : p.catchAll);
|
1317
1319
|
});
|
1318
1320
|
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : n.catchAll);
|
1319
1321
|
const r = e == null ? void 0 : e.table;
|
@@ -1333,8 +1335,8 @@ const Gr = /* @__PURE__ */ m(Sr, [["render", Rr], ["__scopeId", "data-v-9b255a47
|
|
1333
1335
|
}
|
1334
1336
|
}, Jr = ["innerHTML"];
|
1335
1337
|
function Kr(t, e, r, a, n, o) {
|
1336
|
-
const
|
1337
|
-
return n.table ? (s(), x(
|
1338
|
+
const c = d("AdminTable");
|
1339
|
+
return n.table ? (s(), x(c, {
|
1338
1340
|
key: 0,
|
1339
1341
|
table: n.table,
|
1340
1342
|
title: n.title
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as v, I as F, u as B, V as P, a as O } from "./import-file-
|
1
|
+
import { _ as v, I as F, u as B, V as P, a as O } from "./import-file-Do-GQQHc.js";
|
2
2
|
import { openBlock as s, createElementBlock as r, createElementVNode as t, createStaticVNode as R, resolveComponent as b, normalizeClass as E, createTextVNode as M, toDisplayString as y, createVNode as u, Transition as T, withCtx as $, withDirectives as q, Fragment as N, renderList as S, vShow as G, ref as D, createCommentVNode as V, watch as J, onBeforeUnmount as K, createBlock as W, withModifiers as X } from "vue";
|
3
3
|
const Y = {}, ee = {
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -634,7 +634,7 @@ function It(o, e, n, a, l, i) {
|
|
634
634
|
])
|
635
635
|
]);
|
636
636
|
}
|
637
|
-
const Et = /* @__PURE__ */ v(Mt, [["render", It], ["__scopeId", "data-v-
|
637
|
+
const Et = /* @__PURE__ */ v(Mt, [["render", It], ["__scopeId", "data-v-59305fb1"]]);
|
638
638
|
export {
|
639
639
|
Et as default
|
640
640
|
};
|
package/dist/admin.js
CHANGED