@opengis/admin 0.1.36 → 0.1.37
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 +29 -29
- package/config.js +4 -4
- package/dist/IconSearch-BtomZb8r.js +26 -0
- package/dist/{add-page-C5g2yN5N.js → add-page-B2luTaID.js} +1 -1
- package/dist/{admin-interface-zpEN5ODZ.js → admin-interface-BTkZcKR5.js} +155 -154
- package/dist/{admin-view-DD8_bEjC.js → admin-view--m-d7PyT.js} +75 -74
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +85 -85
- package/dist/{card-page-BpMHxKbw.js → card-page-DD80MOw6.js} +21 -21
- package/dist/{card-view-Ddro0nc4.js → card-view-BGniLwQl.js} +1 -1
- package/dist/{edit-page-BL9SogVY.js → edit-page-DS2vRs3y.js} +1 -1
- package/dist/{import-file-DBSDU17c.js → import-file-ChmncuMJ.js} +14232 -14736
- 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.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.table_properties.form.json +70 -70
- 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 +45 -50
- package/module/settings/select/core.roles.json +2 -2
- 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.properties.table.json +33 -33
- package/module/settings/table/admin.roles.table.json +58 -58
- package/module/settings/table/admin.routes.table.json +55 -55
- package/module/settings/table/admin.table_properties.table.json +81 -81
- 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 +74 -74
- package/plugin.js +101 -102
- 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/docs.js +28 -28
- package/server/plugins/hook.js +166 -166
- package/server/plugins/vite.js +69 -69
- package/server/routes/data/controllers/cardData.js +56 -56
- package/server/routes/data/controllers/cardTabData.js +39 -39
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +85 -85
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -142
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -67
- 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 +121 -121
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +55 -55
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/getColumns.js +21 -21
- package/server/routes/data/index.mjs +12 -12
- package/server/routes/menu/controllers/getMenu.js +33 -33
- package/server/routes/menu/index.mjs +5 -5
- 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 +14 -14
- 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 +8 -8
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as m, a as C } from "./import-file-ChmncuMJ.js";
|
|
2
2
|
import { u as B } from "./userMenu-CT1xO2Pt.js";
|
|
3
|
-
import { openBlock as a, createElementBlock as i, createStaticVNode as A, createTextVNode as T, toDisplayString as V, createCommentVNode as v, createElementVNode as l, Fragment as x, resolveComponent as d, createVNode as
|
|
4
|
-
|
|
3
|
+
import { openBlock as a, createElementBlock as i, createStaticVNode as A, createTextVNode as T, toDisplayString as V, createCommentVNode as v, createElementVNode as l, Fragment as x, resolveComponent as d, createVNode as h, withCtx as y, createBlock as g, withModifiers as re, renderList as S, withDirectives as Y, vModelCheckbox as le, normalizeStyle as j, normalizeClass as ne, resolveDynamicComponent as X, Transition as se, vShow as ae } from "vue";
|
|
4
|
+
import { I as oe } from "./IconSearch-BtomZb8r.js";
|
|
5
|
+
const ie = {}, de = {
|
|
5
6
|
class: "h21yx vs0hq",
|
|
6
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
8
|
width: "24",
|
|
@@ -13,12 +14,12 @@ const oe = {}, ie = {
|
|
|
13
14
|
"stroke-linecap": "round",
|
|
14
15
|
"stroke-linejoin": "round"
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
-
return a(), i("svg",
|
|
17
|
+
function ce(t, e, r, o, n, s) {
|
|
18
|
+
return a(), i("svg", de, e[0] || (e[0] = [
|
|
18
19
|
A('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
|
|
19
20
|
]));
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const ue = /* @__PURE__ */ m(ie, [["render", ce]]), he = {
|
|
22
23
|
data() {
|
|
23
24
|
return {
|
|
24
25
|
currentSort: ""
|
|
@@ -76,10 +77,10 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
|
|
|
76
77
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
},
|
|
80
|
+
}, pe = {
|
|
80
81
|
scope: "col",
|
|
81
82
|
class: "text-start"
|
|
82
|
-
},
|
|
83
|
+
}, me = {
|
|
83
84
|
class: "flex-shrink-0 size-3.5",
|
|
84
85
|
xmlns: "http://www.w3.org/2000/svg",
|
|
85
86
|
width: "24",
|
|
@@ -93,30 +94,30 @@ const ce = /* @__PURE__ */ b(oe, [["render", de]]), ue = {
|
|
|
93
94
|
}, be = {
|
|
94
95
|
key: 0,
|
|
95
96
|
d: "m7 15 5 5 5-5"
|
|
96
|
-
},
|
|
97
|
+
}, fe = {
|
|
97
98
|
key: 1,
|
|
98
99
|
d: "m7 9 5-5 5 5"
|
|
99
|
-
},
|
|
100
|
+
}, ge = {
|
|
100
101
|
key: 1,
|
|
101
102
|
class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500"
|
|
102
103
|
};
|
|
103
|
-
function
|
|
104
|
-
return a(), i("th",
|
|
104
|
+
function xe(t, e, r, o, n, s) {
|
|
105
|
+
return a(), i("th", pe, [
|
|
105
106
|
s.getVisibleIcon ? (a(), i("button", {
|
|
106
107
|
key: 0,
|
|
107
108
|
type: "button",
|
|
108
109
|
class: "text-sm text-gray-800 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
|
|
109
|
-
onClick: e[0] || (e[0] = (
|
|
110
|
+
onClick: e[0] || (e[0] = (b) => s.handleClickSortBtn(n.currentSort))
|
|
110
111
|
}, [
|
|
111
112
|
T(V(s.label) + " ", 1),
|
|
112
|
-
(a(), i("svg",
|
|
113
|
+
(a(), i("svg", me, [
|
|
113
114
|
n.currentSort === "asc" || n.currentSort === "" ? (a(), i("path", be)) : v("", !0),
|
|
114
|
-
n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path",
|
|
115
|
+
n.currentSort === "desc" || n.currentSort === "" ? (a(), i("path", fe)) : v("", !0)
|
|
115
116
|
]))
|
|
116
|
-
])) : (a(), i("p",
|
|
117
|
+
])) : (a(), i("p", ge, V(s.label), 1))
|
|
117
118
|
]);
|
|
118
119
|
}
|
|
119
|
-
const
|
|
120
|
+
const ye = /* @__PURE__ */ m(he, [["render", xe]]), ke = {}, we = {
|
|
120
121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
121
122
|
viewBox: "0 0 24 24",
|
|
122
123
|
fill: "none",
|
|
@@ -126,8 +127,8 @@ const xe = /* @__PURE__ */ b(ue, [["render", ge]]), ye = {}, ke = {
|
|
|
126
127
|
"stroke-linejoin": "round",
|
|
127
128
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
|
|
128
129
|
};
|
|
129
|
-
function
|
|
130
|
-
return a(), i("svg",
|
|
130
|
+
function _e(t, e, r, o, n, s) {
|
|
131
|
+
return a(), i("svg", we, e[0] || (e[0] = [
|
|
131
132
|
l("path", {
|
|
132
133
|
stroke: "none",
|
|
133
134
|
d: "M0 0h24v24H0z",
|
|
@@ -138,7 +139,7 @@ function we(t, e, r, o, n, s) {
|
|
|
138
139
|
l("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
139
140
|
]));
|
|
140
141
|
}
|
|
141
|
-
const
|
|
142
|
+
const ve = /* @__PURE__ */ m(ke, [["render", _e]]), Ce = {}, $e = {
|
|
142
143
|
class: "flex-shrink-0 size-3.5",
|
|
143
144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
144
145
|
viewBox: "0 0 24 24",
|
|
@@ -148,21 +149,21 @@ const _e = /* @__PURE__ */ b(ye, [["render", we]]), ve = {}, Ce = {
|
|
|
148
149
|
"stroke-linecap": "round",
|
|
149
150
|
"stroke-linejoin": "round"
|
|
150
151
|
};
|
|
151
|
-
function
|
|
152
|
-
return a(), i("svg",
|
|
152
|
+
function Se(t, e, r, o, n, s) {
|
|
153
|
+
return a(), i("svg", $e, e[0] || (e[0] = [
|
|
153
154
|
A('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
|
|
154
155
|
]));
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const Te = /* @__PURE__ */ m(Ce, [["render", Se]]), Ve = {
|
|
157
158
|
props: {
|
|
158
159
|
height: { type: String, default: "16" },
|
|
159
160
|
width: { type: String, default: "12" },
|
|
160
161
|
color: { type: String, default: "black" }
|
|
161
162
|
}
|
|
162
|
-
},
|
|
163
|
-
function
|
|
163
|
+
}, De = { style: { display: "none" } }, Fe = ["height", "width", "fill"];
|
|
164
|
+
function Me(t, e, r, o, n, s) {
|
|
164
165
|
return a(), i(x, null, [
|
|
165
|
-
(a(), i("svg",
|
|
166
|
+
(a(), i("svg", De, e[0] || (e[0] = [
|
|
166
167
|
l("symbol", {
|
|
167
168
|
id: "icon-pencil",
|
|
168
169
|
viewBox: "0 0 32 32"
|
|
@@ -176,14 +177,14 @@ function Fe(t, e, r, o, n, s) {
|
|
|
176
177
|
fill: r.color
|
|
177
178
|
}, e[1] || (e[1] = [
|
|
178
179
|
l("use", { "xlink:href": "#icon-pencil" }, null, -1)
|
|
179
|
-
]), 8,
|
|
180
|
+
]), 8, Fe))
|
|
180
181
|
], 64);
|
|
181
182
|
}
|
|
182
|
-
const
|
|
183
|
+
const Ae = /* @__PURE__ */ m(Ve, [["render", Me]]), Ie = {
|
|
183
184
|
components: {
|
|
184
|
-
IconMore:
|
|
185
|
-
IconDelete:
|
|
186
|
-
IconEdit:
|
|
185
|
+
IconMore: ve,
|
|
186
|
+
IconDelete: Te,
|
|
187
|
+
IconEdit: Ae
|
|
187
188
|
},
|
|
188
189
|
emits: ["updateTable"],
|
|
189
190
|
props: { item: Object, table: String, isForm: null },
|
|
@@ -231,21 +232,21 @@ const Me = /* @__PURE__ */ b(Te, [["render", Fe]]), Ae = {
|
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
|
-
},
|
|
235
|
+
}, Be = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, je = { class: "gap-x-2 p-[4px] rounded-lg shadow-sm hover:border-transparent border focus:outline-none text-black hover:bg-gray-50" }, ze = { class: "flex flex-col items-start" }, Pe = {
|
|
235
236
|
key: 1,
|
|
236
237
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
|
237
|
-
},
|
|
238
|
-
function
|
|
239
|
-
const
|
|
238
|
+
}, Ee = { class: "p-4" }, Ue = { class: "mt-4 flex justify-end gap-x-3" };
|
|
239
|
+
function Le(t, e, r, o, n, s) {
|
|
240
|
+
const b = d("IconMore"), f = d("IconEdit"), k = d("router-link"), u = d("IconDelete"), w = d("VsPopover"), $ = d("VsDialog");
|
|
240
241
|
return a(), i(x, null, [
|
|
241
|
-
l("div",
|
|
242
|
-
|
|
242
|
+
l("div", Be, [
|
|
243
|
+
h(w, {
|
|
243
244
|
trigger: "click",
|
|
244
245
|
placement: "bottom-left"
|
|
245
246
|
}, {
|
|
246
247
|
reference: y(() => [
|
|
247
|
-
l("button",
|
|
248
|
-
|
|
248
|
+
l("button", je, [
|
|
249
|
+
h(b, {
|
|
249
250
|
height: "16",
|
|
250
251
|
width: "16"
|
|
251
252
|
})
|
|
@@ -254,24 +255,24 @@ function Ue(t, e, r, o, n, s) {
|
|
|
254
255
|
default: y(() => {
|
|
255
256
|
var _, D, F;
|
|
256
257
|
return [
|
|
257
|
-
l("div",
|
|
258
|
+
l("div", ze, [
|
|
258
259
|
r.isForm ? (a(), g(k, {
|
|
259
260
|
key: 0,
|
|
260
261
|
to: `/edit?table=${(D = (_ = t.$route) == null ? void 0 : _.params) == null ? void 0 : D.catchAll}&id=${(F = r.item) == null ? void 0 : F.id}`,
|
|
261
262
|
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"
|
|
262
263
|
}, {
|
|
263
264
|
default: y(() => [
|
|
264
|
-
|
|
265
|
+
h(f, { color: "#000" }),
|
|
265
266
|
e[4] || (e[4] = T(" Редагувати "))
|
|
266
267
|
]),
|
|
267
268
|
_: 1
|
|
268
269
|
}, 8, ["to"])) : v("", !0),
|
|
269
|
-
r.isForm ? (a(), i("div",
|
|
270
|
+
r.isForm ? (a(), i("div", Pe)) : v("", !0),
|
|
270
271
|
l("button", {
|
|
271
272
|
onClick: e[0] || (e[0] = re((...I) => s.openConfirm && s.openConfirm(...I), ["stop"])),
|
|
272
273
|
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"
|
|
273
274
|
}, [
|
|
274
|
-
|
|
275
|
+
h(u),
|
|
275
276
|
e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
|
|
276
277
|
])
|
|
277
278
|
])
|
|
@@ -280,15 +281,15 @@ function Ue(t, e, r, o, n, s) {
|
|
|
280
281
|
_: 1
|
|
281
282
|
})
|
|
282
283
|
]),
|
|
283
|
-
|
|
284
|
+
h($, {
|
|
284
285
|
visible: n.isDeleteConfirm,
|
|
285
286
|
"onUpdate:visible": e[3] || (e[3] = (_) => n.isDeleteConfirm = _),
|
|
286
287
|
title: "Ви впевнені?"
|
|
287
288
|
}, {
|
|
288
289
|
default: y(() => [
|
|
289
|
-
l("div",
|
|
290
|
+
l("div", Ee, [
|
|
290
291
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
|
291
|
-
l("div",
|
|
292
|
+
l("div", Ue, [
|
|
292
293
|
l("button", {
|
|
293
294
|
type: "button",
|
|
294
295
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm 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",
|
|
@@ -306,7 +307,7 @@ function Ue(t, e, r, o, n, s) {
|
|
|
306
307
|
}, 8, ["visible"])
|
|
307
308
|
], 64);
|
|
308
309
|
}
|
|
309
|
-
const
|
|
310
|
+
const qe = /* @__PURE__ */ m(Ie, [["render", Le]]), Oe = {}, We = {
|
|
310
311
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
|
311
312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
313
|
viewBox: "0 0 24 24",
|
|
@@ -316,16 +317,16 @@ const Le = /* @__PURE__ */ b(Ae, [["render", Ue]]), qe = {}, Oe = {
|
|
|
316
317
|
"stroke-linecap": "round",
|
|
317
318
|
"stroke-linejoin": "round"
|
|
318
319
|
};
|
|
319
|
-
function
|
|
320
|
-
return a(), i("svg",
|
|
320
|
+
function He(t, e, r, o, n, s) {
|
|
321
|
+
return a(), i("svg", We, e[0] || (e[0] = [
|
|
321
322
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
322
323
|
l("path", { d: "M7 20V4" }, null, -1),
|
|
323
324
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
|
324
325
|
l("path", { d: "M17 4v16" }, null, -1)
|
|
325
326
|
]));
|
|
326
327
|
}
|
|
327
|
-
const
|
|
328
|
-
components: { IconExport:
|
|
328
|
+
const Ne = /* @__PURE__ */ m(Oe, [["render", He]]), Re = {
|
|
329
|
+
components: { IconExport: Ne },
|
|
329
330
|
props: { table: String, columns: Array },
|
|
330
331
|
data() {
|
|
331
332
|
return {
|
|
@@ -368,15 +369,15 @@ const He = /* @__PURE__ */ b(qe, [["render", We]]), Ne = {
|
|
|
368
369
|
this.format = t;
|
|
369
370
|
}
|
|
370
371
|
}
|
|
371
|
-
},
|
|
372
|
-
function
|
|
373
|
-
const
|
|
372
|
+
}, Ge = { class: "p-4" }, Ze = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Je = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ke = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, Qe = { class: "mt-2 space-y-2" }, Xe = ["id", "onChange"], Ye = ["for"], et = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
|
373
|
+
function tt(t, e, r, o, n, s) {
|
|
374
|
+
const b = d("IconExport"), f = d("VsCheckbox"), k = d("VsDialog");
|
|
374
375
|
return a(), i(x, null, [
|
|
375
376
|
l("button", {
|
|
376
377
|
onClick: e[0] || (e[0] = (u) => n.isOpen = !0),
|
|
377
378
|
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"
|
|
378
379
|
}, [
|
|
379
|
-
|
|
380
|
+
h(b, {
|
|
380
381
|
height: "16",
|
|
381
382
|
width: "16"
|
|
382
383
|
}),
|
|
@@ -396,14 +397,14 @@ function et(t, e, r, o, n, s) {
|
|
|
396
397
|
l("path", { d: "m6 9 6 6 6-6" })
|
|
397
398
|
], -1))
|
|
398
399
|
]),
|
|
399
|
-
|
|
400
|
+
h(k, {
|
|
400
401
|
visible: n.isOpen,
|
|
401
402
|
"onUpdate:visible": e[3] || (e[3] = (u) => n.isOpen = u),
|
|
402
403
|
title: "Експорт таблиці",
|
|
403
404
|
size: "small"
|
|
404
405
|
}, {
|
|
405
406
|
footer: y(() => [
|
|
406
|
-
l("div",
|
|
407
|
+
l("div", et, [
|
|
407
408
|
e[8] || (e[8] = l("button", {
|
|
408
409
|
type: "button",
|
|
409
410
|
class: "py-2 px-3 text-nowrap inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
|
@@ -418,16 +419,16 @@ function et(t, e, r, o, n, s) {
|
|
|
418
419
|
]),
|
|
419
420
|
default: y(() => [
|
|
420
421
|
e[9] || (e[9] = l("div", { class: "dark:border-neutral-700" }, null, -1)),
|
|
421
|
-
l("div",
|
|
422
|
-
l("div",
|
|
422
|
+
l("div", Ge, [
|
|
423
|
+
l("div", Ze, [
|
|
423
424
|
e[6] || (e[6] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
|
424
|
-
l("div",
|
|
425
|
+
l("div", Je, [
|
|
425
426
|
(a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("div", {
|
|
426
427
|
class: "flex items-center",
|
|
427
428
|
key: w,
|
|
428
429
|
style: { width: "calc((100% - 10px) / 2)" }
|
|
429
430
|
}, [
|
|
430
|
-
|
|
431
|
+
h(f, {
|
|
431
432
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
|
432
433
|
modelValue: n.cols,
|
|
433
434
|
"onUpdate:modelValue": e[1] || (e[1] = ($) => n.cols = $),
|
|
@@ -437,9 +438,9 @@ function et(t, e, r, o, n, s) {
|
|
|
437
438
|
]))), 128))
|
|
438
439
|
])
|
|
439
440
|
]),
|
|
440
|
-
l("div",
|
|
441
|
+
l("div", Ke, [
|
|
441
442
|
e[7] || (e[7] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
|
442
|
-
l("div",
|
|
443
|
+
l("div", Qe, [
|
|
443
444
|
(a(!0), i(x, null, S(n.tableFormats, (u, w) => (a(), i("div", {
|
|
444
445
|
class: "flex items-center",
|
|
445
446
|
key: w
|
|
@@ -450,11 +451,11 @@ function et(t, e, r, o, n, s) {
|
|
|
450
451
|
class: "shrink-0 border-gray-300 rounded-full text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
|
451
452
|
id: u,
|
|
452
453
|
onChange: ($) => s.selectFormat(u)
|
|
453
|
-
}, null, 40,
|
|
454
|
+
}, null, 40, Xe),
|
|
454
455
|
l("label", {
|
|
455
456
|
for: u,
|
|
456
457
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
457
|
-
}, " Формат " + V(u), 9,
|
|
458
|
+
}, " Формат " + V(u), 9, Ye)
|
|
458
459
|
]))), 128))
|
|
459
460
|
])
|
|
460
461
|
])
|
|
@@ -464,7 +465,7 @@ function et(t, e, r, o, n, s) {
|
|
|
464
465
|
}, 8, ["visible"])
|
|
465
466
|
], 64);
|
|
466
467
|
}
|
|
467
|
-
const
|
|
468
|
+
const rt = /* @__PURE__ */ m(Re, [["render", tt]]), lt = {}, nt = {
|
|
468
469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
469
470
|
viewBox: "0 0 24 24",
|
|
470
471
|
fill: "none",
|
|
@@ -474,12 +475,12 @@ const tt = /* @__PURE__ */ b(Ne, [["render", et]]), rt = {}, lt = {
|
|
|
474
475
|
"stroke-linejoin": "round",
|
|
475
476
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
|
476
477
|
};
|
|
477
|
-
function
|
|
478
|
-
return a(), i("svg",
|
|
478
|
+
function st(t, e, r, o, n, s) {
|
|
479
|
+
return a(), i("svg", nt, e[0] || (e[0] = [
|
|
479
480
|
A('<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)
|
|
480
481
|
]));
|
|
481
482
|
}
|
|
482
|
-
const
|
|
483
|
+
const at = /* @__PURE__ */ m(lt, [["render", st]]), ot = {
|
|
483
484
|
props: { column: Object },
|
|
484
485
|
emits: ["update-column"],
|
|
485
486
|
data() {
|
|
@@ -496,21 +497,21 @@ const st = /* @__PURE__ */ b(rt, [["render", nt]]), at = {
|
|
|
496
497
|
var t;
|
|
497
498
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
|
498
499
|
}
|
|
499
|
-
},
|
|
500
|
-
function
|
|
501
|
-
var
|
|
502
|
-
return a(), i("label",
|
|
503
|
-
|
|
500
|
+
}, it = { class: "flex w-full gap-[8px] items-centr" };
|
|
501
|
+
function dt(t, e, r, o, n, s) {
|
|
502
|
+
var b, f;
|
|
503
|
+
return a(), i("label", it, [
|
|
504
|
+
Y(l("input", {
|
|
504
505
|
"onUpdate:modelValue": e[0] || (e[0] = (k) => n.value = k),
|
|
505
506
|
type: "checkbox"
|
|
506
507
|
}, null, 512), [
|
|
507
508
|
[le, n.value]
|
|
508
509
|
]),
|
|
509
|
-
T(" " + V(((
|
|
510
|
+
T(" " + V(((b = r.column) == null ? void 0 : b.ua) || ((f = r.column) == null ? void 0 : f.title)), 1)
|
|
510
511
|
]);
|
|
511
512
|
}
|
|
512
|
-
const
|
|
513
|
-
components: { IconColumns:
|
|
513
|
+
const ct = /* @__PURE__ */ m(ot, [["render", dt]]), ut = {
|
|
514
|
+
components: { IconColumns: at, AdminTableColumnsHiddenItem: ct },
|
|
514
515
|
emits: ["update-columns"],
|
|
515
516
|
props: { columns: Array },
|
|
516
517
|
methods: {
|
|
@@ -519,27 +520,27 @@ const dt = /* @__PURE__ */ b(at, [["render", it]]), ct = {
|
|
|
519
520
|
r[e] = t, this.$emit("update-columns", [...r]);
|
|
520
521
|
}
|
|
521
522
|
}
|
|
522
|
-
},
|
|
523
|
+
}, ht = { 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" }, pt = { class: "py-[10px] px-[10px] w-[260px]" }, mt = { 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" };
|
|
523
524
|
function bt(t, e, r, o, n, s) {
|
|
524
|
-
const
|
|
525
|
+
const b = d("IconColumns"), f = d("AdminTableColumnsHiddenItem"), k = d("VsPopover");
|
|
525
526
|
return a(), g(k, {
|
|
526
527
|
trigger: "click",
|
|
527
528
|
placement: "bottom"
|
|
528
529
|
}, {
|
|
529
530
|
reference: y(() => [
|
|
530
|
-
l("button",
|
|
531
|
-
|
|
531
|
+
l("button", ht, [
|
|
532
|
+
h(b, {
|
|
532
533
|
height: "20",
|
|
533
534
|
width: "16"
|
|
534
535
|
})
|
|
535
536
|
])
|
|
536
537
|
]),
|
|
537
538
|
default: y(() => [
|
|
538
|
-
l("div",
|
|
539
|
+
l("div", pt, [
|
|
539
540
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
|
540
|
-
l("ul",
|
|
541
|
+
l("ul", mt, [
|
|
541
542
|
(a(!0), i(x, null, S(r.columns, (u, w) => (a(), i("li", { key: w }, [
|
|
542
|
-
|
|
543
|
+
h(f, {
|
|
543
544
|
column: u,
|
|
544
545
|
onUpdateColumn: s.updateColumn
|
|
545
546
|
}, null, 8, ["column", "onUpdateColumn"])
|
|
@@ -550,14 +551,14 @@ function bt(t, e, r, o, n, s) {
|
|
|
550
551
|
_: 1
|
|
551
552
|
});
|
|
552
553
|
}
|
|
553
|
-
const
|
|
554
|
+
const ft = /* @__PURE__ */ m(ut, [["render", bt]]), gt = {}, xt = {
|
|
554
555
|
class: "hidden sm:block shrink-0 size-3",
|
|
555
556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
556
557
|
fill: "currentColor",
|
|
557
558
|
viewBox: "0 0 16 16"
|
|
558
559
|
};
|
|
559
|
-
function
|
|
560
|
-
return a(), i("svg",
|
|
560
|
+
function yt(t, e, r, o, n, s) {
|
|
561
|
+
return a(), i("svg", xt, e[0] || (e[0] = [
|
|
561
562
|
l("path", {
|
|
562
563
|
"fill-rule": "evenodd",
|
|
563
564
|
"clip-rule": "evenodd",
|
|
@@ -565,23 +566,23 @@ function xt(t, e, r, o, n, s) {
|
|
|
565
566
|
}, null, -1)
|
|
566
567
|
]));
|
|
567
568
|
}
|
|
568
|
-
const
|
|
569
|
-
function
|
|
570
|
-
return a(), i("div",
|
|
569
|
+
const kt = /* @__PURE__ */ m(gt, [["render", yt]]), wt = {}, _t = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
|
|
570
|
+
function vt(t, e, r, o, n, s) {
|
|
571
|
+
return a(), i("div", _t, e[0] || (e[0] = [
|
|
571
572
|
A('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
|
|
572
573
|
]));
|
|
573
574
|
}
|
|
574
|
-
const
|
|
575
|
+
const Ct = /* @__PURE__ */ m(wt, [["render", vt]]), $t = {
|
|
575
576
|
props: { table: String, title: String },
|
|
576
577
|
components: {
|
|
577
|
-
IconFilter:
|
|
578
|
-
AdminTableControl:
|
|
579
|
-
AdminTableExport:
|
|
580
|
-
AdminTableColumnsHidden:
|
|
581
|
-
AdminTableColumn:
|
|
582
|
-
AdminNodata:
|
|
583
|
-
IconPlus:
|
|
584
|
-
IconSearch:
|
|
578
|
+
IconFilter: ue,
|
|
579
|
+
AdminTableControl: qe,
|
|
580
|
+
AdminTableExport: rt,
|
|
581
|
+
AdminTableColumnsHidden: ft,
|
|
582
|
+
AdminTableColumn: ye,
|
|
583
|
+
AdminNodata: Ct,
|
|
584
|
+
IconPlus: kt,
|
|
585
|
+
IconSearch: oe
|
|
585
586
|
},
|
|
586
587
|
data() {
|
|
587
588
|
return {
|
|
@@ -698,33 +699,33 @@ const vt = /* @__PURE__ */ b(kt, [["render", _t]]), Ct = {
|
|
|
698
699
|
((e = this.tableData) == null ? void 0 : e.card) === !1 || this.$router.push(`/card/${this.table}/${t}`);
|
|
699
700
|
}
|
|
700
701
|
}
|
|
701
|
-
},
|
|
702
|
+
}, St = { class: "w-[calc(100vw - 320px)]" }, Tt = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, Vt = { class: "text-xl font-medium h-[20px]" }, Dt = {
|
|
702
703
|
style: { height: "calc(100vh - 140px)", width: "calc(100vw - 260px)" },
|
|
703
704
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
|
704
|
-
},
|
|
705
|
+
}, Ft = { class: "bg-white w-full rounded-xl border p-[20px]" }, Mt = { class: "flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative" }, At = { class: "flex gap-[6px] ml-auto" }, It = {
|
|
705
706
|
key: 0,
|
|
706
707
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
|
707
|
-
},
|
|
708
|
+
}, Bt = { class: "space-y-5 flex items-start w-full justify-start" }, jt = {
|
|
708
709
|
style: { height: "calc(100vh - 310px)" },
|
|
709
710
|
class: "overflow-x-auto w-full border-t [&::-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"
|
|
710
|
-
},
|
|
711
|
+
}, zt = { class: "inline-block w-full align-middle" }, Pt = {
|
|
711
712
|
key: 0,
|
|
712
713
|
class: "divide-y divide-gray-200 min-w-full dark:divide-neutral-700 relative table-fixed"
|
|
713
|
-
},
|
|
714
|
-
function
|
|
714
|
+
}, Et = { class: "sticky top-0 bg-white w-full relative after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Ut = { class: "border-stone-200 right-0 z-[1]" }, Lt = { class: "divide-y divide-gray-200" }, qt = ["onClick"], Ot = { class: "text-center sticky right-0 bg-white w-[80px] px-[10px]" }, Wt = { class: "p-[20px] flex justify-end w-full" }, Ht = { 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" };
|
|
715
|
+
function Nt(t, e, r, o, n, s) {
|
|
715
716
|
var z, P, E, U, L, q;
|
|
716
|
-
const
|
|
717
|
+
const b = d("IconPlus"), f = d("router-link"), k = d("IconSearch"), u = d("VsText"), w = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), _ = d("IconFilter"), D = d("AdminTableColumn"), F = d("AdminTableControl"), I = d("AdminNodata"), ee = d("VsPagination"), te = d("VsFilter");
|
|
717
718
|
return a(), i(x, null, [
|
|
718
|
-
l("div",
|
|
719
|
-
l("div",
|
|
720
|
-
l("h2",
|
|
719
|
+
l("div", St, [
|
|
720
|
+
l("div", Tt, [
|
|
721
|
+
l("h2", Vt, V(r.title), 1),
|
|
721
722
|
s.isForm ? (a(), g(f, {
|
|
722
723
|
key: 0,
|
|
723
724
|
to: `/add?table=${(P = (z = t.$route) == null ? void 0 : z.params) == null ? void 0 : P.catchAll}`,
|
|
724
725
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 hover:text-white duration-300"
|
|
725
726
|
}, {
|
|
726
727
|
default: y(() => [
|
|
727
|
-
|
|
728
|
+
h(b, {
|
|
728
729
|
height: "16",
|
|
729
730
|
width: "16"
|
|
730
731
|
}),
|
|
@@ -733,27 +734,27 @@ function Ht(t, e, r, o, n, s) {
|
|
|
733
734
|
_: 1
|
|
734
735
|
}, 8, ["to"])) : v("", !0)
|
|
735
736
|
]),
|
|
736
|
-
l("div",
|
|
737
|
-
l("div",
|
|
738
|
-
l("div",
|
|
739
|
-
|
|
737
|
+
l("div", Dt, [
|
|
738
|
+
l("div", Ft, [
|
|
739
|
+
l("div", Mt, [
|
|
740
|
+
h(k, {
|
|
740
741
|
height: "14",
|
|
741
742
|
width: "14",
|
|
742
743
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
|
743
744
|
}),
|
|
744
|
-
|
|
745
|
+
h(u, {
|
|
745
746
|
modelValue: n.searchValue,
|
|
746
747
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => n.searchValue = c),
|
|
747
748
|
placeholder: "Пошук...",
|
|
748
749
|
clearable: !0,
|
|
749
750
|
class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
|
750
751
|
}, null, 8, ["modelValue"]),
|
|
751
|
-
l("div",
|
|
752
|
-
|
|
752
|
+
l("div", At, [
|
|
753
|
+
h(w, {
|
|
753
754
|
columns: (E = n.tableData) == null ? void 0 : E.columns,
|
|
754
755
|
onUpdateColumns: e[1] || (e[1] = (c) => n.tableData.columns = c)
|
|
755
756
|
}, null, 8, ["columns"]),
|
|
756
|
-
|
|
757
|
+
h($, {
|
|
757
758
|
table: r.table,
|
|
758
759
|
columns: (U = n.tableData) == null ? void 0 : U.columns
|
|
759
760
|
}, null, 8, ["table", "columns"]),
|
|
@@ -761,21 +762,21 @@ function Ht(t, e, r, o, n, s) {
|
|
|
761
762
|
onClick: e[2] || (e[2] = (c) => n.isFilters = !n.isFilters),
|
|
762
763
|
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"
|
|
763
764
|
}, [
|
|
764
|
-
|
|
765
|
+
h(_, {
|
|
765
766
|
height: "16",
|
|
766
767
|
width: "16"
|
|
767
768
|
}),
|
|
768
769
|
e[6] || (e[6] = T(" Фільтри ")),
|
|
769
|
-
n.onFilters ? (a(), i("span",
|
|
770
|
+
n.onFilters ? (a(), i("span", It, V(n.onFilters), 1)) : v("", !0)
|
|
770
771
|
])
|
|
771
772
|
])
|
|
772
773
|
]),
|
|
773
|
-
l("div",
|
|
774
|
-
l("div",
|
|
775
|
-
l("div",
|
|
776
|
-
s.isNoData ? (a(), g(I, { key: 1 })) : (a(), i("table",
|
|
777
|
-
l("thead",
|
|
778
|
-
l("tr",
|
|
774
|
+
l("div", Bt, [
|
|
775
|
+
l("div", jt, [
|
|
776
|
+
l("div", zt, [
|
|
777
|
+
s.isNoData ? (a(), g(I, { key: 1 })) : (a(), i("table", Pt, [
|
|
778
|
+
l("thead", Et, [
|
|
779
|
+
l("tr", Ut, [
|
|
779
780
|
(a(!0), i(x, null, S(s.columns, (c) => (a(), g(D, {
|
|
780
781
|
key: c.name,
|
|
781
782
|
style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
|
|
@@ -786,7 +787,7 @@ function Ht(t, e, r, o, n, s) {
|
|
|
786
787
|
e[7] || (e[7] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
|
|
787
788
|
])
|
|
788
789
|
]),
|
|
789
|
-
l("tbody",
|
|
790
|
+
l("tbody", Lt, [
|
|
790
791
|
(a(!0), i(x, null, S((L = n.tableData) == null ? void 0 : L.rows, (c, M) => {
|
|
791
792
|
var O, W, H, N, R, G, Z, J;
|
|
792
793
|
return a(), i("tr", { key: M }, [
|
|
@@ -800,7 +801,7 @@ function Ht(t, e, r, o, n, s) {
|
|
|
800
801
|
((O = n.tableData) == null ? void 0 : O.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
|
801
802
|
]])
|
|
802
803
|
}, [
|
|
803
|
-
(a(), g(
|
|
804
|
+
(a(), g(X(
|
|
804
805
|
((W = s.columns[0]) == null ? void 0 : W.format) === "custom" ? (H = s.columns[0]) == null ? void 0 : H.component : t.$componentsConfig[`table-format-${((R = (N = s.columns[0]) == null ? void 0 : N.format) == null ? void 0 : R.toLowerCase()) || "text"}`]
|
|
805
806
|
), {
|
|
806
807
|
name: (G = s.columns[0]) == null ? void 0 : G.name,
|
|
@@ -808,29 +809,29 @@ function Ht(t, e, r, o, n, s) {
|
|
|
808
809
|
value: c == null ? void 0 : c[(Z = s.columns[0]) == null ? void 0 : Z.name],
|
|
809
810
|
table: r.table
|
|
810
811
|
}, null, 8, ["name", "data", "value", "table"]))
|
|
811
|
-
], 10,
|
|
812
|
+
], 10, qt)
|
|
812
813
|
], 4),
|
|
813
|
-
(a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (
|
|
814
|
-
var K;
|
|
814
|
+
(a(!0), i(x, null, S((J = s.columns) == null ? void 0 : J.slice(1), (p) => {
|
|
815
|
+
var K, Q;
|
|
815
816
|
return a(), i("td", {
|
|
816
817
|
class: "text-start px-[4px] py-3 text-sm text-gray-600",
|
|
817
818
|
style: j({ minWidth: s.rowWidth, maxWidth: s.rowWidth }),
|
|
818
|
-
key:
|
|
819
|
+
key: p.name
|
|
819
820
|
}, [
|
|
820
|
-
(a(), g(
|
|
821
|
-
(
|
|
821
|
+
(a(), g(X(
|
|
822
|
+
(p == null ? void 0 : p.format) === "custom" ? p == null ? void 0 : p.component : t.$componentsConfig[`table-format-${((K = p == null ? void 0 : p.format) == null ? void 0 : K.toLowerCase()) || "text"}`]
|
|
822
823
|
), {
|
|
823
824
|
onUpdateTable: s.getTableData,
|
|
824
|
-
name:
|
|
825
|
+
name: p == null ? void 0 : p.name,
|
|
825
826
|
data: c,
|
|
826
|
-
value: c == null ? void 0 : c[
|
|
827
|
+
value: c == null ? void 0 : c[p == null ? void 0 : p.name],
|
|
827
828
|
table: r.table,
|
|
828
|
-
inline: (
|
|
829
|
+
inline: ((Q = n.tableData) == null ? void 0 : Q.inline) || !1
|
|
829
830
|
}, null, 40, ["onUpdateTable", "name", "data", "value", "table", "inline"]))
|
|
830
831
|
], 4);
|
|
831
832
|
}), 128)),
|
|
832
|
-
l("td",
|
|
833
|
-
|
|
833
|
+
l("td", Ot, [
|
|
834
|
+
h(F, {
|
|
834
835
|
isForm: s.isForm,
|
|
835
836
|
item: c,
|
|
836
837
|
table: r.table,
|
|
@@ -844,8 +845,8 @@ function Ht(t, e, r, o, n, s) {
|
|
|
844
845
|
])
|
|
845
846
|
])
|
|
846
847
|
]),
|
|
847
|
-
l("div",
|
|
848
|
-
n.limit ? (a(), g(
|
|
848
|
+
l("div", Wt, [
|
|
849
|
+
n.limit ? (a(), g(ee, {
|
|
849
850
|
key: 0,
|
|
850
851
|
goTo: !1,
|
|
851
852
|
class: "justify-end",
|
|
@@ -860,17 +861,17 @@ function Ht(t, e, r, o, n, s) {
|
|
|
860
861
|
])
|
|
861
862
|
])
|
|
862
863
|
]),
|
|
863
|
-
|
|
864
|
+
h(se, { name: "fade" }, {
|
|
864
865
|
default: y(() => {
|
|
865
866
|
var c;
|
|
866
867
|
return [
|
|
867
|
-
|
|
868
|
+
Y(l("div", {
|
|
868
869
|
onClick: e[4] || (e[4] = (...M) => s.closeFilter && s.closeFilter(...M)),
|
|
869
870
|
style: { height: "100vh" },
|
|
870
871
|
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)]"
|
|
871
872
|
}, [
|
|
872
|
-
l("div",
|
|
873
|
-
(c = n.filterScheme) != null && c.length ? (a(), g(
|
|
873
|
+
l("div", Ht, [
|
|
874
|
+
(c = n.filterScheme) != null && c.length ? (a(), g(te, {
|
|
874
875
|
key: 0,
|
|
875
876
|
ref: "filter",
|
|
876
877
|
scheme: n.filterScheme,
|
|
@@ -892,8 +893,8 @@ function Ht(t, e, r, o, n, s) {
|
|
|
892
893
|
})
|
|
893
894
|
], 64);
|
|
894
895
|
}
|
|
895
|
-
const
|
|
896
|
-
components: { AdminTable:
|
|
896
|
+
const Rt = /* @__PURE__ */ m($t, [["render", Nt]]), Gt = {
|
|
897
|
+
components: { AdminTable: Rt },
|
|
897
898
|
data() {
|
|
898
899
|
return {
|
|
899
900
|
table: !1,
|
|
@@ -953,10 +954,10 @@ const Nt = /* @__PURE__ */ b(Ct, [["render", Ht]]), Rt = {
|
|
|
953
954
|
}
|
|
954
955
|
}
|
|
955
956
|
}
|
|
956
|
-
},
|
|
957
|
-
function
|
|
958
|
-
const
|
|
959
|
-
return n.table ? (a(), g(
|
|
957
|
+
}, Zt = ["innerHTML"];
|
|
958
|
+
function Jt(t, e, r, o, n, s) {
|
|
959
|
+
const b = d("AdminTable");
|
|
960
|
+
return n.table ? (a(), g(b, {
|
|
960
961
|
key: 0,
|
|
961
962
|
table: n.table,
|
|
962
963
|
title: n.title
|
|
@@ -965,9 +966,9 @@ function Zt(t, e, r, o, n, s) {
|
|
|
965
966
|
class: "w-full bg-gray-50",
|
|
966
967
|
style: { height: "calc(100vh - 120px)" },
|
|
967
968
|
innerHTML: n.interface
|
|
968
|
-
}, null, 8,
|
|
969
|
+
}, null, 8, Zt));
|
|
969
970
|
}
|
|
970
|
-
const
|
|
971
|
+
const er = /* @__PURE__ */ m(Gt, [["render", Jt]]);
|
|
971
972
|
export {
|
|
972
|
-
|
|
973
|
+
er as default
|
|
973
974
|
};
|