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