v-sistec-features 1.15.0 → 1.16.0
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/vDataTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as se, useSlots as qe, inject as Ae, onMounted as Pe, computed as B, watch as F, resolveComponent as He, createElementBlock as r, openBlock as s, createCommentVNode as g, createElementVNode as t, withDirectives as pe, withKeys as Oe, vModelText as _e, Fragment as $, renderList as V, createBlock as ne, withCtx as O, createTextVNode as T, toDisplayString as h, normalizeClass as p, withModifiers as ue, ref as w, nextTick as me, provide as Le, readonly as Fe, renderSlot as D, createVNode as L, createStaticVNode as Ue, resolveDynamicComponent as ce, unref as v, TransitionGroup as Ke, mergeProps as Ye, Transition as Xe, normalizeStyle as Ge } from "vue";
|
|
2
|
+
import { _ as ve, P as We } from "./Pagination-DtVDFQ07.js";
|
|
3
|
+
import Je from "vuedraggable";
|
|
4
|
+
const he = Symbol("v-datatable-key"), _a = /* @__PURE__ */ se({
|
|
5
5
|
__name: "VColumn",
|
|
6
6
|
props: {
|
|
7
7
|
field: { default: null },
|
|
@@ -19,14 +19,15 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
19
19
|
use_ordering: { type: Boolean, default: !1 },
|
|
20
20
|
param_ordering: { default: "" },
|
|
21
21
|
decreasing_value: { default: "" },
|
|
22
|
-
increasing_value: { default: "" }
|
|
22
|
+
increasing_value: { default: "" },
|
|
23
|
+
class_rules: { default: () => ({}) }
|
|
23
24
|
},
|
|
24
25
|
setup(b) {
|
|
25
|
-
const i = b,
|
|
26
|
-
if (!
|
|
26
|
+
const i = b, x = qe(), y = Ae(he);
|
|
27
|
+
if (!y)
|
|
27
28
|
throw new Error("VColumn deve ser usado dentro de um VDataTable.");
|
|
28
29
|
const f = ["text", "img", "date", "html"];
|
|
29
|
-
return
|
|
30
|
+
return Pe(() => {
|
|
30
31
|
if (i.field !== null && !i.field)
|
|
31
32
|
throw new Error('A propriedade "field" é obrigatória em VColumn.');
|
|
32
33
|
if (!i.header)
|
|
@@ -41,7 +42,7 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
41
42
|
if (isNaN(Number(i.limite_text)) || Number(i.limite_text) <= 0)
|
|
42
43
|
throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
+
y.addColumn({
|
|
45
46
|
field: i.field,
|
|
46
47
|
header: i.header,
|
|
47
48
|
type: i.type,
|
|
@@ -55,26 +56,27 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
55
56
|
param_ordering: i.param_ordering,
|
|
56
57
|
decreasing_value: i.decreasing_value,
|
|
57
58
|
increasing_value: i.increasing_value,
|
|
58
|
-
|
|
59
|
+
class_rules: i.class_rules,
|
|
60
|
+
bodySlot: x.body,
|
|
59
61
|
...i.type === "text" && { limite_text: Number(i.limite_text) },
|
|
60
62
|
...i.type === "img" && { deactivate_img_preview: i.deactivate_img_preview },
|
|
61
63
|
...i.type === "date" && { format: i.format }
|
|
62
64
|
});
|
|
63
|
-
}), (
|
|
65
|
+
}), (C, j) => null;
|
|
64
66
|
}
|
|
65
|
-
}),
|
|
67
|
+
}), Qe = { class: "dropdown d-flex" }, Re = {
|
|
66
68
|
key: 0,
|
|
67
69
|
href: "#",
|
|
68
70
|
class: "btn dropdown-toggle",
|
|
69
71
|
"data-bs-toggle": "dropdown",
|
|
70
72
|
title: "Pesquisas Prédefinidas"
|
|
71
|
-
},
|
|
73
|
+
}, Ze = { class: "input-icon" }, et = ["placeholder"], tt = {
|
|
72
74
|
key: 1,
|
|
73
75
|
class: "input-icon-addon"
|
|
74
|
-
},
|
|
76
|
+
}, at = {
|
|
75
77
|
key: 1,
|
|
76
78
|
class: "dropdown-menu"
|
|
77
|
-
},
|
|
79
|
+
}, nt = ["onClick"], st = ["onClick"], lt = /* @__PURE__ */ se({
|
|
78
80
|
__name: "SearchDatatable",
|
|
79
81
|
props: {
|
|
80
82
|
search: {},
|
|
@@ -87,40 +89,40 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
87
89
|
},
|
|
88
90
|
emits: ["update:search", "update:filter", "search", "clickedClearSearch"],
|
|
89
91
|
setup(b, { emit: i }) {
|
|
90
|
-
const
|
|
91
|
-
get: () =>
|
|
92
|
-
set: (u) =>
|
|
93
|
-
}),
|
|
94
|
-
get: () =>
|
|
95
|
-
set: (u) =>
|
|
92
|
+
const x = b, y = i, f = B({
|
|
93
|
+
get: () => x.search,
|
|
94
|
+
set: (u) => y("update:search", u)
|
|
95
|
+
}), C = B({
|
|
96
|
+
get: () => x.filter,
|
|
97
|
+
set: (u) => y("update:filter", u)
|
|
96
98
|
});
|
|
97
|
-
F(
|
|
98
|
-
|
|
99
|
+
F(C, () => {
|
|
100
|
+
y("search");
|
|
99
101
|
}), F(
|
|
100
|
-
() =>
|
|
102
|
+
() => x.list_filter,
|
|
101
103
|
(u) => {
|
|
102
104
|
Array.isArray(u) ? (u.forEach((_, m) => {
|
|
103
105
|
_?.type === 1 && !_.to && console.error(`Filtro na posição ${m} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
|
|
104
|
-
}),
|
|
106
|
+
}), x.item_use.includes(2) && u.length === 0 && console.error("Nenhum filtro foi passado. Certifique-se de que o array de filtros não está vazio.")) : console.error("list_filter deve ser um array.");
|
|
105
107
|
},
|
|
106
108
|
{ immediate: !0, deep: !0 }
|
|
107
109
|
);
|
|
108
110
|
function j(u) {
|
|
109
|
-
|
|
111
|
+
C.value === u ? C.value = "" : C.value = u;
|
|
110
112
|
}
|
|
111
113
|
function q() {
|
|
112
|
-
f.value = "",
|
|
114
|
+
f.value = "", x.deactivate_search_on_clear || y("search"), y("clickedClearSearch");
|
|
113
115
|
}
|
|
114
116
|
function N(u) {
|
|
115
117
|
u.click && typeof u.click == "function" ? u.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
|
|
116
118
|
}
|
|
117
119
|
function n() {
|
|
118
|
-
|
|
120
|
+
x.deactivate_search_empty && f.value.trim() === "" || y("search");
|
|
119
121
|
}
|
|
120
122
|
return (u, _) => {
|
|
121
|
-
const m =
|
|
122
|
-
return s(),
|
|
123
|
-
b.item_use.includes(2) ? (s(),
|
|
123
|
+
const m = He("router-link");
|
|
124
|
+
return s(), r("div", Qe, [
|
|
125
|
+
b.item_use.includes(2) ? (s(), r("a", Re, [..._[2] || (_[2] = [
|
|
124
126
|
t("svg", {
|
|
125
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
126
128
|
class: "icon icon-tabler icon-tabler-filter",
|
|
@@ -141,18 +143,18 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
141
143
|
t("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })
|
|
142
144
|
], -1)
|
|
143
145
|
])])) : g("", !0),
|
|
144
|
-
t("div",
|
|
145
|
-
|
|
146
|
+
t("div", Ze, [
|
|
147
|
+
pe(t("input", {
|
|
146
148
|
type: "text",
|
|
147
149
|
class: "form-control ms-1",
|
|
148
150
|
id: "inputSearchVDataTable",
|
|
149
151
|
"onUpdate:modelValue": _[0] || (_[0] = (d) => f.value = d),
|
|
150
|
-
onKeyup:
|
|
152
|
+
onKeyup: Oe(n, ["enter"]),
|
|
151
153
|
placeholder: b.placeholder_search
|
|
152
|
-
}, null, 40,
|
|
153
|
-
[
|
|
154
|
+
}, null, 40, et), [
|
|
155
|
+
[_e, f.value]
|
|
154
156
|
]),
|
|
155
|
-
f.value ? (s(),
|
|
157
|
+
f.value ? (s(), r("span", {
|
|
156
158
|
key: 0,
|
|
157
159
|
onClick: _[1] || (_[1] = (d) => q()),
|
|
158
160
|
class: "inputClose",
|
|
@@ -178,7 +180,7 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
178
180
|
t("path", { d: "M18 6l-12 12" }),
|
|
179
181
|
t("path", { d: "M6 6l12 12" })
|
|
180
182
|
], -1)
|
|
181
|
-
])])) : (s(),
|
|
183
|
+
])])) : (s(), r("span", tt, [..._[4] || (_[4] = [
|
|
182
184
|
t("svg", {
|
|
183
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
186
|
width: "24",
|
|
@@ -201,9 +203,9 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
201
203
|
], -1)
|
|
202
204
|
])]))
|
|
203
205
|
]),
|
|
204
|
-
b.item_use.includes(2) ? (s(),
|
|
205
|
-
(s(!0),
|
|
206
|
-
"type" in d && d.type === 1 && (!("visible" in d) || d.visible) ? (s(),
|
|
206
|
+
b.item_use.includes(2) ? (s(), r("div", at, [
|
|
207
|
+
(s(!0), r($, null, V(x.list_filter, (d, M) => (s(), r($, { key: M }, [
|
|
208
|
+
"type" in d && d.type === 1 && (!("visible" in d) || d.visible) ? (s(), ne(m, {
|
|
207
209
|
key: 0,
|
|
208
210
|
to: d?.to,
|
|
209
211
|
class: "dropdown-item cursor-pointer"
|
|
@@ -212,39 +214,39 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
|
|
|
212
214
|
T(h(d.text), 1)
|
|
213
215
|
]),
|
|
214
216
|
_: 2
|
|
215
|
-
}, 1032, ["to"])) : (!("type" in d) || d.type === 2) && (!("visible" in d) || d.visible) ? (s(),
|
|
217
|
+
}, 1032, ["to"])) : (!("type" in d) || d.type === 2) && (!("visible" in d) || d.visible) ? (s(), r("a", {
|
|
216
218
|
key: 1,
|
|
217
|
-
onClick:
|
|
218
|
-
class: p(["dropdown-item cursor-pointer",
|
|
219
|
-
}, h(d.text), 11,
|
|
219
|
+
onClick: ue((z) => j(String(d.value)), ["prevent"]),
|
|
220
|
+
class: p(["dropdown-item cursor-pointer", C.value === d?.value ? "bg-info text-dark selected" : ""])
|
|
221
|
+
}, h(d.text), 11, nt)) : (!("type" in d) || d.type === 3) && (!("visible" in d) || d.visible) ? (s(), r("a", {
|
|
220
222
|
key: 2,
|
|
221
|
-
onClick:
|
|
223
|
+
onClick: ue((z) => N(d), ["prevent"]),
|
|
222
224
|
class: p(["dropdown-item cursor-pointer", d?.active ? "bg-info text-dark selected" : ""])
|
|
223
|
-
}, h(d.text), 11,
|
|
225
|
+
}, h(d.text), 11, st)) : g("", !0)
|
|
224
226
|
], 64))), 128))
|
|
225
227
|
])) : g("", !0)
|
|
226
228
|
]);
|
|
227
229
|
};
|
|
228
230
|
}
|
|
229
|
-
}),
|
|
230
|
-
function
|
|
231
|
-
const b =
|
|
231
|
+
}), rt = /* @__PURE__ */ ve(lt, [["__scopeId", "data-v-ed591287"]]);
|
|
232
|
+
function ot() {
|
|
233
|
+
const b = w(!1), i = w(""), x = w(0), y = w(0), f = B(() => ({
|
|
232
234
|
position: "fixed",
|
|
233
235
|
zIndex: 9999,
|
|
234
236
|
pointerEvents: "none",
|
|
235
|
-
top: `${
|
|
236
|
-
left: `${
|
|
237
|
+
top: `${y.value + 15}px`,
|
|
238
|
+
left: `${x.value + 15}px`
|
|
237
239
|
}));
|
|
238
|
-
function
|
|
239
|
-
const u = n.clientX, _ = n.clientY, m = window.innerHeight, d = 15,
|
|
240
|
+
function C(n) {
|
|
241
|
+
const u = n.clientX, _ = n.clientY, m = window.innerHeight, d = 15, M = 300;
|
|
240
242
|
let z = _ + d;
|
|
241
|
-
z +
|
|
243
|
+
z + M > m && (z = _ - M - d, z < 0 && (z = 0)), x.value = u, y.value = z;
|
|
242
244
|
}
|
|
243
245
|
function j(n, u) {
|
|
244
|
-
b.value = !0, i.value = u,
|
|
246
|
+
b.value = !0, i.value = u, C(n);
|
|
245
247
|
}
|
|
246
248
|
function q(n) {
|
|
247
|
-
b.value &&
|
|
249
|
+
b.value && C(n);
|
|
248
250
|
}
|
|
249
251
|
function N() {
|
|
250
252
|
b.value = !1;
|
|
@@ -258,9 +260,9 @@ function rt() {
|
|
|
258
260
|
handleMouseLeave: N
|
|
259
261
|
};
|
|
260
262
|
}
|
|
261
|
-
function
|
|
262
|
-
const f =
|
|
263
|
-
function
|
|
263
|
+
function it(b, i, x, y) {
|
|
264
|
+
const f = w([]);
|
|
265
|
+
function C() {
|
|
264
266
|
f.value = [];
|
|
265
267
|
}
|
|
266
268
|
function j(n) {
|
|
@@ -269,11 +271,11 @@ function ot(b, i, w, k) {
|
|
|
269
271
|
}
|
|
270
272
|
function q(n) {
|
|
271
273
|
const u = n[i], _ = f.value.findIndex((d) => d === u), m = _ > -1;
|
|
272
|
-
b ? (
|
|
274
|
+
b ? (C(), m || (f.value.push(u), y && N(u))) : m ? f.value.splice(_, 1) : (f.value.push(u), y && N(u));
|
|
273
275
|
}
|
|
274
276
|
function N(n) {
|
|
275
|
-
|
|
276
|
-
if (
|
|
277
|
+
me(() => {
|
|
278
|
+
if (x) {
|
|
277
279
|
const u = document.querySelector("#expand-item-" + n);
|
|
278
280
|
u && u.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
279
281
|
return;
|
|
@@ -288,45 +290,45 @@ function ot(b, i, w, k) {
|
|
|
288
290
|
expanded_items: f,
|
|
289
291
|
is_item_expanded: j,
|
|
290
292
|
expand_item_toggle: q,
|
|
291
|
-
close_all_expanded_items:
|
|
293
|
+
close_all_expanded_items: C
|
|
292
294
|
};
|
|
293
295
|
}
|
|
294
|
-
const
|
|
296
|
+
const dt = { class: "mx-2 d-inline-block" }, ut = {
|
|
295
297
|
key: 0,
|
|
296
298
|
class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
|
|
297
299
|
role: "alert"
|
|
298
|
-
},
|
|
300
|
+
}, ct = { class: "alert-title m-0" }, pt = { class: "badge bg-azure text-azure-fg" }, _t = { key: 0 }, mt = { key: 2 }, vt = {
|
|
299
301
|
key: 5,
|
|
300
302
|
class: "text-danger erro-custom-container"
|
|
301
|
-
},
|
|
303
|
+
}, ht = { class: "badge bg-orange text-white erro-custom-text" }, ft = { key: 0 }, gt = { key: 2 }, yt = {
|
|
302
304
|
key: 5,
|
|
303
305
|
class: "text-danger erro-custom-container"
|
|
304
|
-
}, kt = { class: "badge bg-orange text-white erro-custom-text" },
|
|
306
|
+
}, kt = { class: "badge bg-orange text-white erro-custom-text" }, wt = ["colspan"], xt = {
|
|
305
307
|
key: 0,
|
|
306
308
|
class: "d-flex flex-column justify-content-center align-items-center",
|
|
307
309
|
style: { height: "6rem" }
|
|
308
310
|
}, bt = {
|
|
309
311
|
key: 1,
|
|
310
312
|
style: { height: "3rem" }
|
|
311
|
-
},
|
|
313
|
+
}, Ct = {
|
|
312
314
|
key: 2,
|
|
313
315
|
class: "p-3 text-center text-secondary"
|
|
314
|
-
},
|
|
316
|
+
}, Mt = {
|
|
315
317
|
key: 1,
|
|
316
318
|
class: "feedback-container text-center"
|
|
317
|
-
},
|
|
319
|
+
}, St = {
|
|
318
320
|
key: 0,
|
|
319
321
|
class: "text-secondary"
|
|
320
|
-
},
|
|
322
|
+
}, $t = {
|
|
321
323
|
key: 1,
|
|
322
324
|
class: "text-secondary"
|
|
323
|
-
},
|
|
325
|
+
}, Bt = {
|
|
324
326
|
key: 2,
|
|
325
327
|
class: "table-responsive"
|
|
326
|
-
},
|
|
328
|
+
}, zt = { key: 0 }, Vt = { key: 0 }, Tt = {
|
|
327
329
|
key: 1,
|
|
328
330
|
class: "w-1"
|
|
329
|
-
},
|
|
331
|
+
}, Et = { class: "header-ordering" }, jt = ["onClick"], Nt = {
|
|
330
332
|
key: 0,
|
|
331
333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
332
334
|
width: "16",
|
|
@@ -337,7 +339,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
337
339
|
"stroke-width": "2",
|
|
338
340
|
"stroke-linecap": "round",
|
|
339
341
|
"stroke-linejoin": "round"
|
|
340
|
-
},
|
|
342
|
+
}, It = {
|
|
341
343
|
key: 1,
|
|
342
344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
345
|
width: "16",
|
|
@@ -348,7 +350,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
348
350
|
"stroke-width": "2",
|
|
349
351
|
"stroke-linecap": "round",
|
|
350
352
|
"stroke-linejoin": "round"
|
|
351
|
-
},
|
|
353
|
+
}, Dt = {
|
|
352
354
|
key: 2,
|
|
353
355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
354
356
|
width: "16",
|
|
@@ -359,7 +361,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
359
361
|
"stroke-width": "2",
|
|
360
362
|
"stroke-linecap": "round",
|
|
361
363
|
"stroke-linejoin": "round"
|
|
362
|
-
},
|
|
364
|
+
}, qt = { class: "header-ordering" }, At = ["onClick"], Pt = {
|
|
363
365
|
key: 0,
|
|
364
366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
365
367
|
width: "16",
|
|
@@ -370,7 +372,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
370
372
|
"stroke-width": "2",
|
|
371
373
|
"stroke-linecap": "round",
|
|
372
374
|
"stroke-linejoin": "round"
|
|
373
|
-
},
|
|
375
|
+
}, Ht = {
|
|
374
376
|
key: 1,
|
|
375
377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
376
378
|
width: "16",
|
|
@@ -381,7 +383,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
381
383
|
"stroke-width": "2",
|
|
382
384
|
"stroke-linecap": "round",
|
|
383
385
|
"stroke-linejoin": "round"
|
|
384
|
-
},
|
|
386
|
+
}, Ot = {
|
|
385
387
|
key: 2,
|
|
386
388
|
xmlns: "http://www.w3.org/2000/svg",
|
|
387
389
|
width: "16",
|
|
@@ -392,10 +394,10 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
392
394
|
"stroke-width": "2",
|
|
393
395
|
"stroke-linecap": "round",
|
|
394
396
|
"stroke-linejoin": "round"
|
|
395
|
-
},
|
|
397
|
+
}, Lt = {
|
|
396
398
|
key: 0,
|
|
397
399
|
class: "w-1"
|
|
398
|
-
},
|
|
400
|
+
}, Ft = ["onClick"], Ut = {
|
|
399
401
|
key: 0,
|
|
400
402
|
xmlns: "http://www.w3.org/2000/svg",
|
|
401
403
|
width: "24",
|
|
@@ -407,7 +409,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
407
409
|
"stroke-linecap": "round",
|
|
408
410
|
"stroke-linejoin": "round",
|
|
409
411
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-right icon-transition-arrow"
|
|
410
|
-
},
|
|
412
|
+
}, Kt = {
|
|
411
413
|
key: 1,
|
|
412
414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
413
415
|
width: "20",
|
|
@@ -419,16 +421,16 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
419
421
|
"stroke-linecap": "round",
|
|
420
422
|
"stroke-linejoin": "round",
|
|
421
423
|
class: "icon icon-transition-plus"
|
|
422
|
-
},
|
|
424
|
+
}, Yt = {
|
|
423
425
|
key: 1,
|
|
424
426
|
class: "w-1"
|
|
425
|
-
},
|
|
427
|
+
}, Xt = ["checked", "onChange"], Gt = ["onClick"], Wt = ["onClick"], Jt = { key: 0 }, Qt = { key: 1 }, Rt = ["onClick", "innerHTML"], Zt = ["onClick"], ea = ["src"], ta = ["src"], aa = {
|
|
426
428
|
key: 5,
|
|
427
429
|
class: "text-danger erro-custom-container"
|
|
428
|
-
},
|
|
430
|
+
}, na = { class: "badge bg-orange text-white erro-custom-text" }, sa = ["id"], la = ["colspan"], ra = { key: 1 }, oa = {
|
|
429
431
|
key: 2,
|
|
430
432
|
class: "text-center p-4 text-secondary"
|
|
431
|
-
},
|
|
433
|
+
}, ia = ["src"], da = /* @__PURE__ */ se({
|
|
432
434
|
__name: "VDataTable",
|
|
433
435
|
props: {
|
|
434
436
|
fetch: {},
|
|
@@ -474,15 +476,15 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
474
476
|
disable_request: { default: !1 }
|
|
475
477
|
},
|
|
476
478
|
emits: ["tradePage", "beforeFetch", "afterFetch", "clickedClearSearch"],
|
|
477
|
-
setup(b, { expose: i, emit:
|
|
479
|
+
setup(b, { expose: i, emit: x }) {
|
|
478
480
|
const {
|
|
479
|
-
isHovering:
|
|
481
|
+
isHovering: y,
|
|
480
482
|
previewSrc: f,
|
|
481
|
-
previewStyle:
|
|
483
|
+
previewStyle: C,
|
|
482
484
|
handleMouseOver: j,
|
|
483
485
|
handleMouseMove: q,
|
|
484
486
|
handleMouseLeave: N
|
|
485
|
-
} =
|
|
487
|
+
} = ot(), n = b, u = x, _ = w(!1), m = w({}), d = w([]), M = w([]), z = w(0), S = w([]), A = w(null), X = w(!1), G = w(null), W = w(!1), c = w({
|
|
486
488
|
current_page: n.page_starts_at,
|
|
487
489
|
// pagina atual
|
|
488
490
|
count: 0,
|
|
@@ -493,16 +495,16 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
493
495
|
// termo de busca
|
|
494
496
|
filter: ""
|
|
495
497
|
// filtro selecionado
|
|
496
|
-
}),
|
|
497
|
-
expanded_items:
|
|
498
|
-
expand_item_toggle:
|
|
499
|
-
is_item_expanded:
|
|
500
|
-
} =
|
|
498
|
+
}), fe = B(() => (c.value.current_page = n.page_starts_at, n.endpoint)), {
|
|
499
|
+
expanded_items: ge,
|
|
500
|
+
expand_item_toggle: J,
|
|
501
|
+
is_item_expanded: Q
|
|
502
|
+
} = it(
|
|
501
503
|
n.close_expanded_item_on_expand_new,
|
|
502
504
|
n.item_key,
|
|
503
505
|
n.deactivate_animation_expand,
|
|
504
506
|
n.scroll_to_expanded_item
|
|
505
|
-
), { data:
|
|
507
|
+
), { data: ye, pending: ke, error: R, execute: we, attempt: P } = n.fetch(fe, {
|
|
506
508
|
disable_request: () => n.disable_request,
|
|
507
509
|
params: () => n.deactivate_default_params ? n.add_params && typeof n.add_params == "function" ? {
|
|
508
510
|
...n.add_params(),
|
|
@@ -511,11 +513,11 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
511
513
|
...n.add_params,
|
|
512
514
|
...U.value
|
|
513
515
|
} : n.add_params && typeof n.add_params == "function" ? {
|
|
514
|
-
...
|
|
516
|
+
...te.value,
|
|
515
517
|
...n.add_params(),
|
|
516
518
|
...U.value
|
|
517
519
|
} : {
|
|
518
|
-
...
|
|
520
|
+
...te.value,
|
|
519
521
|
...n.add_params,
|
|
520
522
|
...U.value
|
|
521
523
|
},
|
|
@@ -523,177 +525,184 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
523
525
|
retryDelay: n.retry_delay,
|
|
524
526
|
paramsReactives: !1,
|
|
525
527
|
immediate: !1
|
|
526
|
-
}, n.fetch_name),
|
|
527
|
-
() => d.value.filter((
|
|
528
|
-
),
|
|
528
|
+
}, n.fetch_name), Z = B(
|
|
529
|
+
() => d.value.filter((l) => l.locked)
|
|
530
|
+
), ee = B({
|
|
529
531
|
get() {
|
|
530
|
-
return d.value.filter((
|
|
532
|
+
return d.value.filter((l) => !l.locked);
|
|
531
533
|
},
|
|
532
|
-
set(
|
|
533
|
-
const e =
|
|
534
|
-
d.value = [...
|
|
534
|
+
set(l) {
|
|
535
|
+
const e = Z.value;
|
|
536
|
+
d.value = [...l, ...e];
|
|
535
537
|
}
|
|
536
|
-
}),
|
|
537
|
-
let
|
|
538
|
-
return n.list_filter.length > 0 &&
|
|
538
|
+
}), xe = B(() => [...ee.value, ...Z.value]), be = B(() => {
|
|
539
|
+
let l = [1];
|
|
540
|
+
return n.list_filter.length > 0 && l.push(2), l;
|
|
539
541
|
}), U = B(() => {
|
|
540
|
-
const
|
|
542
|
+
const l = {};
|
|
541
543
|
for (const e of d.value)
|
|
542
544
|
if (e.use_ordering)
|
|
543
545
|
if (m.value[e.header] === "increasing")
|
|
544
|
-
|
|
546
|
+
l[e.param_ordering] = e.increasing_value || "increasing";
|
|
545
547
|
else if (m.value[e.header] === "decreasing")
|
|
546
|
-
|
|
548
|
+
l[e.param_ordering] = e.decreasing_value || "decreasing";
|
|
547
549
|
else
|
|
548
550
|
continue;
|
|
549
551
|
else
|
|
550
552
|
continue;
|
|
551
|
-
return
|
|
552
|
-
}),
|
|
553
|
+
return l;
|
|
554
|
+
}), te = B(() => ({
|
|
553
555
|
[n.page_param_name]: c.value.current_page + 1,
|
|
554
556
|
[n.page_size_param_name]: c.value.limit_per_page,
|
|
555
557
|
[n.search_param_name]: c.value.search || "",
|
|
556
558
|
[n.filter_param_name]: c.value.filter || ""
|
|
557
|
-
})),
|
|
559
|
+
})), Ce = B(() => ke.value || X.value), K = (l) => {
|
|
558
560
|
const e = n.item_key;
|
|
559
|
-
return
|
|
560
|
-
},
|
|
561
|
-
if (!
|
|
562
|
-
const
|
|
563
|
-
return
|
|
564
|
-
}),
|
|
565
|
-
F([
|
|
566
|
-
A.value && (
|
|
561
|
+
return S.value.some((a) => a[e] === l[e]);
|
|
562
|
+
}, le = B(() => {
|
|
563
|
+
if (!M.value.length) return !1;
|
|
564
|
+
const l = M.value.filter((e) => K(e)).length;
|
|
565
|
+
return l === 0 ? !1 : l === M.value.length ? !0 : "indeterminate";
|
|
566
|
+
}), Me = B(() => S.value.length > 0);
|
|
567
|
+
F([le, A], ([l]) => {
|
|
568
|
+
A.value && (l === "indeterminate" ? (A.value.checked = !1, A.value.indeterminate = !0) : (A.value.checked = l, A.value.indeterminate = !1));
|
|
567
569
|
}, {
|
|
568
570
|
immediate: !0,
|
|
569
571
|
flush: "post"
|
|
570
|
-
}), F(
|
|
571
|
-
|
|
572
|
+
}), F(ye, (l) => {
|
|
573
|
+
l ? (M.value = l[n.data_key] || [], z.value = l[n.total_key] || 0, c.value.count = z.value) : (M.value = [], z.value = 0);
|
|
572
574
|
}, { immediate: !0 });
|
|
573
|
-
function
|
|
575
|
+
function Se() {
|
|
574
576
|
setTimeout(() => {
|
|
575
|
-
|
|
577
|
+
W.value = !1;
|
|
576
578
|
}, 500);
|
|
577
579
|
}
|
|
578
|
-
function
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
581
|
-
const e =
|
|
580
|
+
function $e() {
|
|
581
|
+
const l = M.value;
|
|
582
|
+
if (!l.length) return;
|
|
583
|
+
const e = le.value;
|
|
582
584
|
if (e === !0 || e === "indeterminate") {
|
|
583
|
-
const a =
|
|
584
|
-
|
|
585
|
+
const a = l.map((o) => o[n.item_key]);
|
|
586
|
+
S.value = S.value.filter(
|
|
585
587
|
(o) => !a.includes(o[n.item_key])
|
|
586
588
|
);
|
|
587
589
|
} else
|
|
588
|
-
|
|
589
|
-
K(a) ||
|
|
590
|
+
l.forEach((a) => {
|
|
591
|
+
K(a) || S.value.push(a);
|
|
590
592
|
});
|
|
591
593
|
}
|
|
592
|
-
function
|
|
593
|
-
const e = n.item_key, a =
|
|
594
|
-
a > -1 ?
|
|
594
|
+
function Be(l) {
|
|
595
|
+
const e = n.item_key, a = S.value.findIndex((o) => o[e] === l[e]);
|
|
596
|
+
a > -1 ? S.value.splice(a, 1) : S.value.push(l);
|
|
595
597
|
}
|
|
596
|
-
function
|
|
597
|
-
d.value.push(
|
|
598
|
+
function ze(l) {
|
|
599
|
+
d.value.push(l);
|
|
598
600
|
}
|
|
599
|
-
|
|
601
|
+
Le(he, { addColumn: ze });
|
|
600
602
|
async function H() {
|
|
601
|
-
_.value || (_.value = !0),
|
|
602
|
-
|
|
603
|
-
}, n.min_loading_delay),
|
|
603
|
+
_.value || (_.value = !0), G.value && clearTimeout(G.value), X.value = !0, G.value = setTimeout(() => {
|
|
604
|
+
X.value = !1;
|
|
605
|
+
}, n.min_loading_delay), ie(), u("beforeFetch"), await we(), u("afterFetch");
|
|
604
606
|
}
|
|
605
607
|
function E() {
|
|
606
608
|
c.value.current_page = n.page_starts_at, H();
|
|
607
609
|
}
|
|
608
|
-
const
|
|
609
|
-
const e =
|
|
610
|
+
const re = (l) => {
|
|
611
|
+
const e = l.target, a = parseInt(e.value, 10);
|
|
610
612
|
a > 0 && (c.value.limit_per_page = a, c.value.limit_per_page = a, E());
|
|
611
613
|
};
|
|
612
|
-
function I(
|
|
613
|
-
if (!
|
|
614
|
-
const o =
|
|
615
|
-
let
|
|
616
|
-
for (const
|
|
617
|
-
|
|
618
|
-
return a && (
|
|
614
|
+
function I(l, e, a = null) {
|
|
615
|
+
if (!l) return e;
|
|
616
|
+
const o = l.split(".");
|
|
617
|
+
let k = e;
|
|
618
|
+
for (const ae of o)
|
|
619
|
+
k && typeof k == "object" && ae in k ? k = k[ae] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${ae}`);
|
|
620
|
+
return a && (k = a(k)), k;
|
|
619
621
|
}
|
|
620
|
-
function
|
|
621
|
-
return e && typeof e == "number" && e > 0 && typeof
|
|
622
|
+
function Ve(l, e) {
|
|
623
|
+
return e && typeof e == "number" && e > 0 && typeof l == "string" && l.length > e ? l.substring(0, e) + "..." : l;
|
|
622
624
|
}
|
|
623
|
-
function
|
|
625
|
+
function oe(l) {
|
|
624
626
|
for (const a in m.value)
|
|
625
|
-
a !==
|
|
626
|
-
const e = m.value[
|
|
627
|
-
e === "none" ? m.value[
|
|
627
|
+
a !== l && (m.value[a] = "none");
|
|
628
|
+
const e = m.value[l] || "none";
|
|
629
|
+
e === "none" ? m.value[l] = "increasing" : e === "increasing" ? m.value[l] = "decreasing" : m.value[l] = "none", E();
|
|
628
630
|
}
|
|
629
|
-
function
|
|
630
|
-
|
|
631
|
+
function Te(l) {
|
|
632
|
+
l > 0 ? (c.value.limit_per_page = l, E()) : console.warn("O limite deve ser um número maior que zero.");
|
|
631
633
|
}
|
|
632
|
-
function
|
|
633
|
-
c.value.search =
|
|
634
|
+
function Ee(l) {
|
|
635
|
+
c.value.search = l, E();
|
|
634
636
|
}
|
|
635
|
-
function
|
|
636
|
-
c.value.filter =
|
|
637
|
+
function je(l) {
|
|
638
|
+
c.value.filter = l, E();
|
|
637
639
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
+
function Ne(l) {
|
|
641
|
+
l >= 0 && l <= Math.ceil(c.value.count / c.value.limit_per_page) ? (c.value.current_page = l, H()) : console.warn("Número de página inválido.");
|
|
640
642
|
}
|
|
641
|
-
function
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
function Ne() {
|
|
645
|
-
let r = d.value.length;
|
|
646
|
-
return n.use_checkbox && (r += 1), n.use_expandable_items && (r += 1), r;
|
|
643
|
+
function ie() {
|
|
644
|
+
ge.value = [];
|
|
647
645
|
}
|
|
648
646
|
function Ie() {
|
|
647
|
+
let l = d.value.length;
|
|
648
|
+
return n.use_checkbox && (l += 1), n.use_expandable_items && (l += 1), l;
|
|
649
|
+
}
|
|
650
|
+
function De() {
|
|
649
651
|
u("tradePage"), H();
|
|
650
652
|
}
|
|
653
|
+
const Y = (l, e) => {
|
|
654
|
+
const a = [l.class_item || ""];
|
|
655
|
+
if (l.click && a.push("cursor-pointer"), l.class_rules)
|
|
656
|
+
for (const [o, k] of Object.entries(l.class_rules))
|
|
657
|
+
typeof k == "function" && k(e) && a.push(o);
|
|
658
|
+
return a.join(" ").trim();
|
|
659
|
+
};
|
|
651
660
|
i({
|
|
652
661
|
execute: H,
|
|
653
662
|
reSearch: E,
|
|
654
|
-
pagination:
|
|
655
|
-
set_limit_per_page:
|
|
656
|
-
set_search:
|
|
657
|
-
set_filter:
|
|
658
|
-
set_page:
|
|
659
|
-
default_params:
|
|
660
|
-
selected_items:
|
|
661
|
-
atLeastOneSelected:
|
|
662
|
-
expand_item_toggle:
|
|
663
|
-
close_all_expanded_items:
|
|
663
|
+
pagination: Fe(c),
|
|
664
|
+
set_limit_per_page: Te,
|
|
665
|
+
set_search: Ee,
|
|
666
|
+
set_filter: je,
|
|
667
|
+
set_page: Ne,
|
|
668
|
+
default_params: te,
|
|
669
|
+
selected_items: S,
|
|
670
|
+
atLeastOneSelected: Me,
|
|
671
|
+
expand_item_toggle: J,
|
|
672
|
+
close_all_expanded_items: ie
|
|
664
673
|
});
|
|
665
|
-
const
|
|
674
|
+
const de = w(!1);
|
|
666
675
|
return F(
|
|
667
676
|
() => n.add_params,
|
|
668
677
|
() => {
|
|
669
|
-
|
|
678
|
+
de.value ? E() : (de.value = !0, me(() => {
|
|
670
679
|
E();
|
|
671
680
|
}));
|
|
672
681
|
},
|
|
673
682
|
{ deep: !0, immediate: n.immediate }
|
|
674
|
-
), (
|
|
683
|
+
), (l, e) => (s(), r("div", null, [
|
|
675
684
|
t("div", {
|
|
676
685
|
class: p(["", n.class_container])
|
|
677
686
|
}, [
|
|
678
|
-
D(
|
|
687
|
+
D(l.$slots, "default", {}, void 0, !0),
|
|
679
688
|
t("div", {
|
|
680
689
|
class: p(["", n.class_content])
|
|
681
690
|
}, [
|
|
682
691
|
t("div", {
|
|
683
692
|
class: p([n.class_filters, "d-flex justify-content-between align-items-start"])
|
|
684
693
|
}, [
|
|
685
|
-
D(
|
|
686
|
-
changePageSize:
|
|
694
|
+
D(l.$slots, "pageSize", {
|
|
695
|
+
changePageSize: re,
|
|
687
696
|
limit_per_page: c.value.limit_per_page
|
|
688
697
|
}, () => [
|
|
689
698
|
t("div", {
|
|
690
699
|
class: p(["text-secondary", n.class_page_size])
|
|
691
700
|
}, [
|
|
692
701
|
T(h(n.first_text_page_size) + " ", 1),
|
|
693
|
-
t("div",
|
|
694
|
-
|
|
702
|
+
t("div", dt, [
|
|
703
|
+
pe(t("input", {
|
|
695
704
|
class: "form-control form-control-sm",
|
|
696
|
-
onChange:
|
|
705
|
+
onChange: re,
|
|
697
706
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => c.value.limit_per_page = a),
|
|
698
707
|
min: "1",
|
|
699
708
|
size: "3",
|
|
@@ -701,7 +710,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
701
710
|
type: "number"
|
|
702
711
|
}, null, 544), [
|
|
703
712
|
[
|
|
704
|
-
|
|
713
|
+
_e,
|
|
705
714
|
c.value.limit_per_page,
|
|
706
715
|
void 0,
|
|
707
716
|
{ lazy: !0 }
|
|
@@ -711,8 +720,8 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
711
720
|
T(" " + h(n.second_text_page_size), 1)
|
|
712
721
|
], 2)
|
|
713
722
|
], !0),
|
|
714
|
-
D(
|
|
715
|
-
L(
|
|
723
|
+
D(l.$slots, "fieldMiddle", {}, void 0, !0),
|
|
724
|
+
L(rt, {
|
|
716
725
|
search: c.value.search,
|
|
717
726
|
"onUpdate:search": e[1] || (e[1] = (a) => c.value.search = a),
|
|
718
727
|
filter: c.value.filter,
|
|
@@ -723,88 +732,88 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
723
732
|
deactivate_search_on_clear: n.deactivate_search_on_clear,
|
|
724
733
|
placeholder_search: n.placeholder_search,
|
|
725
734
|
deactivate_search_empty: n.deactivate_search_empty,
|
|
726
|
-
onClickedClearSearch: e[3] || (e[3] = (a) =>
|
|
735
|
+
onClickedClearSearch: e[3] || (e[3] = (a) => l.$emit("clickedClearSearch"))
|
|
727
736
|
}, null, 8, ["search", "filter", "list_filter", "item_use", "deactivate_search_on_clear", "placeholder_search", "deactivate_search_empty"])
|
|
728
737
|
], 2),
|
|
729
|
-
D(
|
|
730
|
-
selected_items:
|
|
731
|
-
clearSelection: () =>
|
|
738
|
+
D(l.$slots, "item-selected-info", {
|
|
739
|
+
selected_items: S.value,
|
|
740
|
+
clearSelection: () => S.value = []
|
|
732
741
|
}, () => [
|
|
733
|
-
n.use_checkbox &&
|
|
734
|
-
t("h4",
|
|
742
|
+
n.use_checkbox && S.value.length > 0 && !n.deactivate_selected_info ? (s(), r("div", ut, [
|
|
743
|
+
t("h4", ct, [
|
|
735
744
|
e[8] || (e[8] = t("strong", null, "Itens Selecionados:", -1)),
|
|
736
745
|
e[9] || (e[9] = T()),
|
|
737
|
-
t("span",
|
|
746
|
+
t("span", pt, h(S.value.length), 1)
|
|
738
747
|
]),
|
|
739
748
|
t("a", {
|
|
740
749
|
class: "cursor-pointer",
|
|
741
|
-
onClick: e[4] || (e[4] = (a) =>
|
|
750
|
+
onClick: e[4] || (e[4] = (a) => S.value = [])
|
|
742
751
|
}, [...e[10] || (e[10] = [
|
|
743
|
-
|
|
752
|
+
Ue('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-4da5ec67><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-4da5ec67></path><path d="M4 7l16 0" data-v-4da5ec67></path><path d="M10 11l0 6" data-v-4da5ec67></path><path d="M14 11l0 6" data-v-4da5ec67></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-4da5ec67></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-4da5ec67></path></svg> Limpar Seleção', 2)
|
|
744
753
|
])])
|
|
745
754
|
])) : g("", !0)
|
|
746
755
|
], !0),
|
|
747
|
-
|
|
748
|
-
n.custom_loading ? (s(),
|
|
756
|
+
Ce.value ? (s(), r($, { key: 0 }, [
|
|
757
|
+
n.custom_loading ? (s(), ne(ce(n.custom_loading), { key: 0 })) : (s(), r("table", {
|
|
749
758
|
key: 1,
|
|
750
759
|
class: p(["table table-vcenter table-selectable", n.class_table])
|
|
751
760
|
}, [
|
|
752
761
|
t("thead", null, [
|
|
753
762
|
t("tr", null, [
|
|
754
|
-
(s(!0),
|
|
763
|
+
(s(!0), r($, null, V(d.value, (a) => (s(), r("th", {
|
|
755
764
|
key: a.field || a.header,
|
|
756
765
|
class: p(a.class_column)
|
|
757
766
|
}, h(a.header), 3))), 128))
|
|
758
767
|
])
|
|
759
768
|
]),
|
|
760
769
|
t("tbody", null, [
|
|
761
|
-
n.type_loading === "placeholder" ? (s(!0),
|
|
770
|
+
n.type_loading === "placeholder" ? (s(!0), r($, { key: 0 }, V(c.value.limit_per_page, (a) => (s(), r("tr", {
|
|
762
771
|
key: "placeholder-" + a,
|
|
763
772
|
class: "placeholder-glow"
|
|
764
773
|
}, [
|
|
765
|
-
(s(!0),
|
|
774
|
+
(s(!0), r($, null, V(d.value, (o) => (s(), r("td", {
|
|
766
775
|
key: o.field || o.header,
|
|
767
776
|
class: p(o.class_row)
|
|
768
777
|
}, [
|
|
769
|
-
o.bodySlot ? (s(),
|
|
778
|
+
o.bodySlot ? (s(), r("span", _t, [...e[11] || (e[11] = [
|
|
770
779
|
t("span", { class: "placeholder col-8" }, null, -1)
|
|
771
|
-
])])) : o.type === "text" ? (s(),
|
|
780
|
+
])])) : o.type === "text" ? (s(), r("span", {
|
|
772
781
|
key: 1,
|
|
773
782
|
class: p(o.class_item)
|
|
774
783
|
}, [...e[12] || (e[12] = [
|
|
775
784
|
t("span", { class: "placeholder col-8" }, null, -1)
|
|
776
|
-
])], 2)) : o.type === "date" ? (s(),
|
|
785
|
+
])], 2)) : o.type === "date" ? (s(), r("span", mt, [...e[13] || (e[13] = [
|
|
777
786
|
t("span", { class: "placeholder col-9" }, null, -1)
|
|
778
|
-
])])) : o.type === "html" ? (s(),
|
|
787
|
+
])])) : o.type === "html" ? (s(), r("div", {
|
|
779
788
|
key: 3,
|
|
780
789
|
class: p(o.class_item)
|
|
781
790
|
}, [...e[14] || (e[14] = [
|
|
782
791
|
t("div", { class: "placeholder col-12" }, null, -1)
|
|
783
|
-
])], 2)) : o.type === "img" ? (s(),
|
|
792
|
+
])], 2)) : o.type === "img" ? (s(), r("div", {
|
|
784
793
|
key: 4,
|
|
785
794
|
class: p(o.class_item)
|
|
786
795
|
}, [...e[15] || (e[15] = [
|
|
787
796
|
t("div", { class: "placeholder placeholder-img" }, null, -1)
|
|
788
|
-
])], 2)) : (s(),
|
|
797
|
+
])], 2)) : (s(), r("span", vt, [
|
|
789
798
|
e[16] || (e[16] = T("tipo ", -1)),
|
|
790
|
-
t("span",
|
|
799
|
+
t("span", ht, h(o.type), 1),
|
|
791
800
|
e[17] || (e[17] = T(" não suportado ", -1))
|
|
792
801
|
]))
|
|
793
802
|
], 2))), 128))
|
|
794
|
-
]))), 128)) : n.type_loading === "spiner-table" ? (s(!0),
|
|
803
|
+
]))), 128)) : n.type_loading === "spiner-table" ? (s(!0), r($, { key: 1 }, V(c.value.limit_per_page, (a) => (s(), r("tr", {
|
|
795
804
|
key: "placeholder-" + a
|
|
796
805
|
}, [
|
|
797
|
-
(s(!0),
|
|
806
|
+
(s(!0), r($, null, V(d.value, (o) => (s(), r("td", {
|
|
798
807
|
key: o.field || o.header,
|
|
799
808
|
class: p(o.class_row)
|
|
800
809
|
}, [
|
|
801
|
-
o.bodySlot ? (s(),
|
|
810
|
+
o.bodySlot ? (s(), r("span", ft, [...e[18] || (e[18] = [
|
|
802
811
|
t("span", {
|
|
803
812
|
class: "spinner-border spinner-border-sm",
|
|
804
813
|
role: "status",
|
|
805
814
|
"aria-hidden": "true"
|
|
806
815
|
}, null, -1)
|
|
807
|
-
])])) : o.type === "text" ? (s(),
|
|
816
|
+
])])) : o.type === "text" ? (s(), r("span", {
|
|
808
817
|
key: 1,
|
|
809
818
|
class: p(o.class_item)
|
|
810
819
|
}, [...e[19] || (e[19] = [
|
|
@@ -813,13 +822,13 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
813
822
|
role: "status",
|
|
814
823
|
"aria-hidden": "true"
|
|
815
824
|
}, null, -1)
|
|
816
|
-
])], 2)) : o.type === "date" ? (s(),
|
|
825
|
+
])], 2)) : o.type === "date" ? (s(), r("span", gt, [...e[20] || (e[20] = [
|
|
817
826
|
t("span", {
|
|
818
827
|
class: "spinner-border spinner-border-sm",
|
|
819
828
|
role: "status",
|
|
820
829
|
"aria-hidden": "true"
|
|
821
830
|
}, null, -1)
|
|
822
|
-
])])) : o.type === "html" ? (s(),
|
|
831
|
+
])])) : o.type === "html" ? (s(), r("div", {
|
|
823
832
|
key: 3,
|
|
824
833
|
class: p(o.class_item)
|
|
825
834
|
}, [...e[21] || (e[21] = [
|
|
@@ -828,7 +837,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
828
837
|
role: "status",
|
|
829
838
|
"aria-hidden": "true"
|
|
830
839
|
}, null, -1)
|
|
831
|
-
])], 2)) : o.type === "img" ? (s(),
|
|
840
|
+
])], 2)) : o.type === "img" ? (s(), r("div", {
|
|
832
841
|
key: 4,
|
|
833
842
|
class: p(["", o.class_item])
|
|
834
843
|
}, [...e[22] || (e[22] = [
|
|
@@ -839,143 +848,143 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
839
848
|
"aria-hidden": "true"
|
|
840
849
|
})
|
|
841
850
|
], -1)
|
|
842
|
-
])], 2)) : (s(),
|
|
851
|
+
])], 2)) : (s(), r("span", yt, [
|
|
843
852
|
e[23] || (e[23] = T("tipo ", -1)),
|
|
844
853
|
t("span", kt, h(o.type), 1),
|
|
845
854
|
e[24] || (e[24] = T(" não suportado ", -1))
|
|
846
855
|
]))
|
|
847
856
|
], 2))), 128))
|
|
848
|
-
]))), 128)) : n.type_loading === "spiner" ? (s(!0),
|
|
857
|
+
]))), 128)) : n.type_loading === "spiner" ? (s(!0), r($, { key: 2 }, V(c.value.limit_per_page, (a) => (s(), r("tr", { key: a }, [
|
|
849
858
|
t("td", {
|
|
850
859
|
colspan: d.value.length,
|
|
851
860
|
class: "text-center p-0",
|
|
852
861
|
style: { "border-bottom": "none" }
|
|
853
862
|
}, [
|
|
854
|
-
a === Math.floor(c.value.limit_per_page / 2) + 1 ? (s(),
|
|
863
|
+
a === Math.floor(c.value.limit_per_page / 2) + 1 ? (s(), r("div", xt, [...e[25] || (e[25] = [
|
|
855
864
|
t("div", {
|
|
856
865
|
class: "spinner-border",
|
|
857
866
|
style: { width: "3rem", height: "3rem" },
|
|
858
867
|
role: "status"
|
|
859
868
|
}, null, -1),
|
|
860
869
|
t("span", { class: "mt-2" }, "Carregando...", -1)
|
|
861
|
-
])])) : (s(),
|
|
862
|
-
], 8,
|
|
870
|
+
])])) : (s(), r("div", bt))
|
|
871
|
+
], 8, wt)
|
|
863
872
|
]))), 128)) : g("", !0)
|
|
864
873
|
])
|
|
865
874
|
], 2)),
|
|
866
|
-
v(P) && v(P).current > 1 ? (s(),
|
|
867
|
-
], 64)) : v(
|
|
875
|
+
v(P) && v(P).current > 1 ? (s(), r("div", Ct, " A conexão falhou. Tentando novamente... (Tentativa " + h(v(P).current) + " de " + h(v(P).total) + ") ", 1)) : g("", !0)
|
|
876
|
+
], 64)) : v(R) ? (s(), r("div", Mt, [
|
|
868
877
|
e[26] || (e[26] = t("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
|
|
869
|
-
v(P) ? (s(),
|
|
878
|
+
v(P) ? (s(), r("p", St, " Não foi possível carregar os dados após " + h(v(P).total) + " tentativa(s). ", 1)) : (s(), r("p", $t, " Não foi possível carregar os dados. Verifique sua conexão. ")),
|
|
870
879
|
t("button", {
|
|
871
880
|
class: "btn btn-primary mt-2",
|
|
872
881
|
onClick: H
|
|
873
882
|
}, " Tentar Novamente ")
|
|
874
|
-
])) :
|
|
875
|
-
|
|
883
|
+
])) : M.value ? (s(), r("div", Bt, [
|
|
884
|
+
M.value.length > 0 ? (s(), r("div", zt, [
|
|
876
885
|
t("table", {
|
|
877
886
|
class: p(["table table-vcenter table-selectable", n.class_table])
|
|
878
887
|
}, [
|
|
879
888
|
t("thead", null, [
|
|
880
|
-
L(v(
|
|
881
|
-
modelValue:
|
|
882
|
-
"onUpdate:modelValue": e[5] || (e[5] = (a) =>
|
|
889
|
+
L(v(Je), {
|
|
890
|
+
modelValue: ee.value,
|
|
891
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => ee.value = a),
|
|
883
892
|
tag: "tr",
|
|
884
893
|
"item-key": "header",
|
|
885
894
|
animation: 400,
|
|
886
895
|
"ghost-class": "ghost-item",
|
|
887
896
|
"drag-class": "dragging-item",
|
|
888
|
-
onStart: e[6] || (e[6] = (a) =>
|
|
889
|
-
onEnd: e[7] || (e[7] = () =>
|
|
897
|
+
onStart: e[6] || (e[6] = (a) => W.value = !0),
|
|
898
|
+
onEnd: e[7] || (e[7] = () => Se())
|
|
890
899
|
}, {
|
|
891
900
|
header: O(() => [
|
|
892
|
-
n.use_expandable_items ? (s(),
|
|
893
|
-
n.use_checkbox ? (s(),
|
|
901
|
+
n.use_expandable_items ? (s(), r("th", Vt)) : g("", !0),
|
|
902
|
+
n.use_checkbox ? (s(), r("th", Tt, [
|
|
894
903
|
t("input", {
|
|
895
904
|
class: "form-check-input m-0",
|
|
896
905
|
type: "checkbox",
|
|
897
906
|
ref_key: "selectAllCheckbox",
|
|
898
907
|
ref: A,
|
|
899
|
-
onChange:
|
|
908
|
+
onChange: $e,
|
|
900
909
|
"aria-label": "Selecionar todos os itens na página"
|
|
901
910
|
}, null, 544)
|
|
902
911
|
])) : g("", !0)
|
|
903
912
|
]),
|
|
904
913
|
item: O(({ element: a }) => [
|
|
905
|
-
a.use_ordering ? (s(),
|
|
914
|
+
a.use_ordering ? (s(), r("th", {
|
|
906
915
|
key: 0,
|
|
907
916
|
class: p(["header-draggable", a.class_column])
|
|
908
917
|
}, [
|
|
909
|
-
t("div",
|
|
918
|
+
t("div", Et, [
|
|
910
919
|
t("span", null, h(a.header), 1),
|
|
911
920
|
t("span", {
|
|
912
|
-
onClick: () =>
|
|
921
|
+
onClick: () => oe(a.header),
|
|
913
922
|
class: "ms-2 cursor-pointer"
|
|
914
923
|
}, [
|
|
915
|
-
!m.value[a.header] || m.value[a.header] === "none" ? (s(),
|
|
924
|
+
!m.value[a.header] || m.value[a.header] === "none" ? (s(), r("svg", Nt, [...e[27] || (e[27] = [
|
|
916
925
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
917
926
|
t("path", { d: "m11 16-4 4-4-4" }, null, -1),
|
|
918
927
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
919
928
|
t("path", { d: "M15 8h6" }, null, -1),
|
|
920
929
|
t("path", { d: "M15 16h6" }, null, -1),
|
|
921
930
|
t("path", { d: "M13 12h8" }, null, -1)
|
|
922
|
-
])])) : m.value[a.header] === "decreasing" ? (s(),
|
|
931
|
+
])])) : m.value[a.header] === "decreasing" ? (s(), r("svg", It, [...e[28] || (e[28] = [
|
|
923
932
|
t("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
924
933
|
t("path", { d: "M7 20V4" }, null, -1),
|
|
925
934
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
926
935
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
927
936
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
928
|
-
])])) : m.value[a.header] === "increasing" ? (s(),
|
|
937
|
+
])])) : m.value[a.header] === "increasing" ? (s(), r("svg", Dt, [...e[29] || (e[29] = [
|
|
929
938
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
930
939
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
931
940
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
932
941
|
t("path", { d: "M11 16h7" }, null, -1),
|
|
933
942
|
t("path", { d: "M11 20h10" }, null, -1)
|
|
934
943
|
])])) : g("", !0)
|
|
935
|
-
], 8,
|
|
944
|
+
], 8, jt)
|
|
936
945
|
])
|
|
937
|
-
], 2)) : (s(),
|
|
946
|
+
], 2)) : (s(), r("th", {
|
|
938
947
|
key: 1,
|
|
939
948
|
class: p(["header-draggable", a.class_column])
|
|
940
949
|
}, h(a.header), 3))
|
|
941
950
|
]),
|
|
942
951
|
footer: O(() => [
|
|
943
|
-
(s(!0),
|
|
952
|
+
(s(!0), r($, null, V(Z.value, (a) => (s(), r($, {
|
|
944
953
|
key: a.field || a.header
|
|
945
954
|
}, [
|
|
946
|
-
a.use_ordering ? (s(),
|
|
955
|
+
a.use_ordering ? (s(), r("th", {
|
|
947
956
|
key: 0,
|
|
948
957
|
class: p(["header-locked header-ordering", a.class_column])
|
|
949
958
|
}, [
|
|
950
|
-
t("div",
|
|
959
|
+
t("div", qt, [
|
|
951
960
|
t("span", null, h(a.header), 1),
|
|
952
961
|
t("span", {
|
|
953
|
-
onClick: () =>
|
|
962
|
+
onClick: () => oe(a.header),
|
|
954
963
|
class: "ms-2 cursor-pointer"
|
|
955
964
|
}, [
|
|
956
|
-
!m.value[a.header] || m.value[a.header] === "none" ? (s(),
|
|
965
|
+
!m.value[a.header] || m.value[a.header] === "none" ? (s(), r("svg", Pt, [...e[30] || (e[30] = [
|
|
957
966
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
958
967
|
t("path", { d: "m11 16-4 4-4-4" }, null, -1),
|
|
959
968
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
960
969
|
t("path", { d: "M15 8h6" }, null, -1),
|
|
961
970
|
t("path", { d: "M15 16h6" }, null, -1),
|
|
962
971
|
t("path", { d: "M13 12h8" }, null, -1)
|
|
963
|
-
])])) : m.value[a.header] === "decreasing" ? (s(),
|
|
972
|
+
])])) : m.value[a.header] === "decreasing" ? (s(), r("svg", Ht, [...e[31] || (e[31] = [
|
|
964
973
|
t("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
965
974
|
t("path", { d: "M7 20V4" }, null, -1),
|
|
966
975
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
967
976
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
968
977
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
969
|
-
])])) : m.value[a.header] === "increasing" ? (s(),
|
|
978
|
+
])])) : m.value[a.header] === "increasing" ? (s(), r("svg", Ot, [...e[32] || (e[32] = [
|
|
970
979
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
971
980
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
972
981
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
973
982
|
t("path", { d: "M11 16h7" }, null, -1),
|
|
974
983
|
t("path", { d: "M11 20h10" }, null, -1)
|
|
975
984
|
])])) : g("", !0)
|
|
976
|
-
], 8,
|
|
985
|
+
], 8, At)
|
|
977
986
|
])
|
|
978
|
-
], 2)) : (s(),
|
|
987
|
+
], 2)) : (s(), r("th", {
|
|
979
988
|
key: 1,
|
|
980
989
|
class: p(["header-locked", a.class_column])
|
|
981
990
|
}, h(a.header), 3))
|
|
@@ -985,33 +994,33 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
985
994
|
}, 8, ["modelValue"])
|
|
986
995
|
]),
|
|
987
996
|
t("tbody", null, [
|
|
988
|
-
(s(!0),
|
|
997
|
+
(s(!0), r($, null, V(M.value, (a) => (s(), r($, {
|
|
989
998
|
key: a[n.item_key]
|
|
990
999
|
}, [
|
|
991
|
-
L(
|
|
1000
|
+
L(Ke, {
|
|
992
1001
|
tag: "tr",
|
|
993
|
-
name:
|
|
1002
|
+
name: W.value ? "column-move" : ""
|
|
994
1003
|
}, {
|
|
995
1004
|
default: O(() => [
|
|
996
|
-
n.use_expandable_items ? (s(),
|
|
997
|
-
D(
|
|
1005
|
+
n.use_expandable_items ? (s(), r("td", Lt, [
|
|
1006
|
+
D(l.$slots, "expand-button", {
|
|
998
1007
|
item: a,
|
|
999
|
-
isExpanded: v(
|
|
1000
|
-
expand_item_toggle: v(
|
|
1008
|
+
isExpanded: v(Q)(a),
|
|
1009
|
+
expand_item_toggle: v(J)
|
|
1001
1010
|
}, () => [
|
|
1002
1011
|
t("button", {
|
|
1003
1012
|
type: "button",
|
|
1004
|
-
class: p(["btn-clean btn-icon-anim", { "is-expanded": v(
|
|
1005
|
-
onClick: (o) => v(
|
|
1013
|
+
class: p(["btn-clean btn-icon-anim", { "is-expanded": v(Q)(a) }]),
|
|
1014
|
+
onClick: (o) => v(J)(a)
|
|
1006
1015
|
}, [
|
|
1007
|
-
n.type_button_expand === "arrow" ? (s(),
|
|
1016
|
+
n.type_button_expand === "arrow" ? (s(), r("svg", Ut, [...e[33] || (e[33] = [
|
|
1008
1017
|
t("path", {
|
|
1009
1018
|
stroke: "none",
|
|
1010
1019
|
d: "M0 0h24v24H0z",
|
|
1011
1020
|
fill: "none"
|
|
1012
1021
|
}, null, -1),
|
|
1013
1022
|
t("path", { d: "M9 6l6 6l-6 6" }, null, -1)
|
|
1014
|
-
])])) : (s(),
|
|
1023
|
+
])])) : (s(), r("svg", Kt, [...e[34] || (e[34] = [
|
|
1015
1024
|
t("path", {
|
|
1016
1025
|
stroke: "none",
|
|
1017
1026
|
d: "M0 0h24v24H0z",
|
|
@@ -1023,57 +1032,57 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
1023
1032
|
}, null, -1),
|
|
1024
1033
|
t("path", { d: "M5 12l14 0" }, null, -1)
|
|
1025
1034
|
])]))
|
|
1026
|
-
], 10,
|
|
1035
|
+
], 10, Ft)
|
|
1027
1036
|
], !0)
|
|
1028
1037
|
])) : g("", !0),
|
|
1029
|
-
n.use_checkbox ? (s(),
|
|
1038
|
+
n.use_checkbox ? (s(), r("td", Yt, [
|
|
1030
1039
|
t("input", {
|
|
1031
1040
|
class: "form-check-input m-0",
|
|
1032
1041
|
type: "checkbox",
|
|
1033
1042
|
checked: K(a),
|
|
1034
|
-
onChange: (o) =>
|
|
1043
|
+
onChange: (o) => Be(a),
|
|
1035
1044
|
"aria-label": "Selecionar este item"
|
|
1036
|
-
}, null, 40,
|
|
1045
|
+
}, null, 40, Xt)
|
|
1037
1046
|
])) : g("", !0),
|
|
1038
|
-
(s(!0),
|
|
1047
|
+
(s(!0), r($, null, V(xe.value, (o) => (s(), r("td", {
|
|
1039
1048
|
key: o.field || o.header,
|
|
1040
1049
|
class: p(o.class_row)
|
|
1041
1050
|
}, [
|
|
1042
|
-
o.bodySlot ? (s(),
|
|
1051
|
+
o.bodySlot ? (s(), ne(ce(o.bodySlot), {
|
|
1043
1052
|
key: 0,
|
|
1044
1053
|
item: a,
|
|
1045
1054
|
"is-selected": K(a)
|
|
1046
|
-
}, null, 8, ["item", "is-selected"])) : o.type === "text" ? (s(),
|
|
1055
|
+
}, null, 8, ["item", "is-selected"])) : o.type === "text" ? (s(), r("span", {
|
|
1047
1056
|
key: 1,
|
|
1048
|
-
onClick: (
|
|
1049
|
-
class: p(
|
|
1050
|
-
}, h(
|
|
1057
|
+
onClick: (k) => o.click ? o.click(a) : null,
|
|
1058
|
+
class: p(Y(o, a))
|
|
1059
|
+
}, h(Ve(I(o.field, a, o.transform_function), o.limite_text ?? null)), 11, Gt)) : o.type === "date" ? (s(), r("span", {
|
|
1051
1060
|
key: 2,
|
|
1052
|
-
onClick: (
|
|
1053
|
-
class: p(
|
|
1061
|
+
onClick: (k) => o.click ? o.click(a) : null,
|
|
1062
|
+
class: p(Y(o, a))
|
|
1054
1063
|
}, [
|
|
1055
|
-
o.format === "complete" ? (s(),
|
|
1056
|
-
o.format === "simple" ? (s(),
|
|
1064
|
+
o.format === "complete" ? (s(), r("span", Jt, h(new Date(I(o.field, a)).toLocaleString()), 1)) : g("", !0),
|
|
1065
|
+
o.format === "simple" ? (s(), r("span", Qt, h(new Date(I(
|
|
1057
1066
|
o.field,
|
|
1058
1067
|
a
|
|
1059
1068
|
)).toLocaleDateString()), 1)) : g("", !0)
|
|
1060
|
-
], 10,
|
|
1069
|
+
], 10, Wt)) : o.type === "html" ? (s(), r("div", {
|
|
1061
1070
|
key: 3,
|
|
1062
|
-
onClick: (
|
|
1063
|
-
class: p(
|
|
1071
|
+
onClick: (k) => o.click ? o.click(a) : null,
|
|
1072
|
+
class: p(Y(o, a)),
|
|
1064
1073
|
innerHTML: I(o.field, a)
|
|
1065
|
-
}, null, 10,
|
|
1074
|
+
}, null, 10, Rt)) : o.type === "img" ? (s(), r("div", {
|
|
1066
1075
|
key: 4,
|
|
1067
|
-
onClick: (
|
|
1068
|
-
class: p(
|
|
1076
|
+
onClick: (k) => o.click ? o.click(a) : null,
|
|
1077
|
+
class: p(Y(o, a))
|
|
1069
1078
|
}, [
|
|
1070
|
-
I(o.field, a) ? (s(),
|
|
1079
|
+
I(o.field, a) ? (s(), r("div", Ye({
|
|
1071
1080
|
key: 0,
|
|
1072
1081
|
ref_for: !0
|
|
1073
1082
|
}, o.deactivate_img_preview ? {
|
|
1074
1083
|
class: "container-img"
|
|
1075
1084
|
} : {
|
|
1076
|
-
onMouseover: (
|
|
1085
|
+
onMouseover: (k) => v(j)(k, I(o.field, a)),
|
|
1077
1086
|
onMousemove: v(q),
|
|
1078
1087
|
onMouseleave: v(N),
|
|
1079
1088
|
class: "container-img container-img-preview"
|
|
@@ -1081,84 +1090,84 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
|
|
|
1081
1090
|
t("img", {
|
|
1082
1091
|
class: "img-tamanho",
|
|
1083
1092
|
src: I(o.field, a)
|
|
1084
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, ea),
|
|
1085
1094
|
t("img", {
|
|
1086
1095
|
class: "img-tamanho-cover",
|
|
1087
1096
|
src: I(o.field, a)
|
|
1088
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, ta),
|
|
1089
1098
|
e[35] || (e[35] = t("div", { class: "bg-img" }, null, -1))
|
|
1090
1099
|
], 16)) : g("", !0)
|
|
1091
|
-
], 10,
|
|
1100
|
+
], 10, Zt)) : (s(), r("span", aa, [
|
|
1092
1101
|
e[36] || (e[36] = T("tipo ", -1)),
|
|
1093
|
-
t("span",
|
|
1102
|
+
t("span", na, h(o.type), 1),
|
|
1094
1103
|
e[37] || (e[37] = T(" não suportado", -1))
|
|
1095
1104
|
]))
|
|
1096
1105
|
], 2))), 128))
|
|
1097
1106
|
]),
|
|
1098
1107
|
_: 2
|
|
1099
1108
|
}, 1032, ["name"]),
|
|
1100
|
-
L(
|
|
1109
|
+
L(Xe, {
|
|
1101
1110
|
name: "expand-item-" + n.type_animation_expand,
|
|
1102
1111
|
css: !n.deactivate_animation_expand
|
|
1103
1112
|
}, {
|
|
1104
1113
|
default: O(() => [
|
|
1105
|
-
v(
|
|
1114
|
+
v(Q)(a) ? (s(), r("tr", {
|
|
1106
1115
|
key: 0,
|
|
1107
1116
|
id: "expand-item-" + a[n.item_key],
|
|
1108
1117
|
class: "expanded-item-row"
|
|
1109
1118
|
}, [
|
|
1110
1119
|
t("td", {
|
|
1111
|
-
colspan:
|
|
1120
|
+
colspan: Ie()
|
|
1112
1121
|
}, [
|
|
1113
|
-
D(
|
|
1114
|
-
], 8,
|
|
1115
|
-
], 8,
|
|
1122
|
+
D(l.$slots, "after-row", { item: a }, void 0, !0)
|
|
1123
|
+
], 8, la)
|
|
1124
|
+
], 8, sa)) : g("", !0)
|
|
1116
1125
|
]),
|
|
1117
1126
|
_: 2
|
|
1118
1127
|
}, 1032, ["name", "css"])
|
|
1119
1128
|
], 64))), 128))
|
|
1120
1129
|
])
|
|
1121
1130
|
], 2)
|
|
1122
|
-
])) : _.value === !1 ? (s(),
|
|
1123
|
-
D(
|
|
1124
|
-
])) : (s(),
|
|
1131
|
+
])) : _.value === !1 ? (s(), r("div", ra, [
|
|
1132
|
+
D(l.$slots, "idle-state", {}, void 0, !0)
|
|
1133
|
+
])) : (s(), r("div", oa, [...e[38] || (e[38] = [
|
|
1125
1134
|
t("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
|
|
1126
1135
|
])]))
|
|
1127
1136
|
])) : g("", !0)
|
|
1128
1137
|
], 2)
|
|
1129
1138
|
], 2),
|
|
1130
|
-
D(
|
|
1139
|
+
D(l.$slots, "pagination", {
|
|
1131
1140
|
pagination: c.value,
|
|
1132
1141
|
tradePage: H,
|
|
1133
|
-
error: v(
|
|
1142
|
+
error: v(R)
|
|
1134
1143
|
}, () => [
|
|
1135
|
-
!v(
|
|
1144
|
+
!v(R) && c.value.count > 0 ? (s(), r("div", {
|
|
1136
1145
|
key: 0,
|
|
1137
1146
|
class: p(["px-3", n.class_pagination])
|
|
1138
1147
|
}, [
|
|
1139
|
-
L(
|
|
1148
|
+
L(We, {
|
|
1140
1149
|
page_starts_at: n.page_starts_at,
|
|
1141
1150
|
filtering: !0,
|
|
1142
1151
|
pagination: c.value,
|
|
1143
|
-
onTradePage:
|
|
1152
|
+
onTradePage: De
|
|
1144
1153
|
}, null, 8, ["page_starts_at", "pagination"])
|
|
1145
1154
|
], 2)) : g("", !0)
|
|
1146
1155
|
], !0),
|
|
1147
|
-
v(
|
|
1156
|
+
v(y) ? (s(), r("div", {
|
|
1148
1157
|
key: 0,
|
|
1149
1158
|
class: "image-preview-container",
|
|
1150
|
-
style:
|
|
1159
|
+
style: Ge(v(C))
|
|
1151
1160
|
}, [
|
|
1152
1161
|
t("img", {
|
|
1153
1162
|
src: v(f),
|
|
1154
1163
|
alt: "Preview",
|
|
1155
1164
|
class: "image-preview-large"
|
|
1156
|
-
}, null, 8,
|
|
1165
|
+
}, null, 8, ia)
|
|
1157
1166
|
], 4)) : g("", !0)
|
|
1158
1167
|
]));
|
|
1159
1168
|
}
|
|
1160
|
-
}),
|
|
1169
|
+
}), ma = /* @__PURE__ */ ve(da, [["__scopeId", "data-v-4da5ec67"]]);
|
|
1161
1170
|
export {
|
|
1162
|
-
|
|
1163
|
-
|
|
1171
|
+
_a as VColumn,
|
|
1172
|
+
ma as VDataTable
|
|
1164
1173
|
};
|