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