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