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