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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as ne, useSlots as Ne, inject as Ee, onMounted as De, computed as S, watch as U, resolveComponent as Ie, createElementBlock as s, openBlock as n, createCommentVNode as h, createElementVNode as t, withDirectives as ce, withKeys as Ae, vModelText as pe, Fragment as C, renderList as V, createBlock as ae, withCtx as H, createTextVNode as T, toDisplayString as v, normalizeClass as c, withModifiers as de, ref as g, provide as Pe, readonly as He, nextTick as Oe, renderSlot as E, createVNode as F, createStaticVNode as qe, resolveDynamicComponent as ue, unref as f, TransitionGroup as Le, mergeProps as Fe, Transition as Ue, normalizeStyle as Ke } from "vue";
2
- import { _ as _e, P as Ye } from "./Pagination-DtVDFQ07.js";
3
- import Xe from "vuedraggable";
4
- const me = Symbol("v-datatable-key"), da = /* @__PURE__ */ ne({
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(M) {
25
- const i = M, k = Ne(), y = Ee(me);
26
- if (!y)
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 $ = ["text", "img", "date", "html"];
29
- return De(() => {
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 && !$.includes(i.type))
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
- y.addColumn({
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: k.body,
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
- }), (B, I) => null;
63
+ }), (b, j) => null;
64
64
  }
65
- }), Ge = { class: "dropdown d-flex" }, We = {
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
- }, Je = { class: "input-icon" }, Qe = ["placeholder"], Re = {
71
+ }, Re = { class: "input-icon" }, Ze = ["placeholder"], et = {
72
72
  key: 1,
73
73
  class: "input-icon-addon"
74
- }, Ze = {
74
+ }, tt = {
75
75
  key: 1,
76
76
  class: "dropdown-menu"
77
- }, et = ["onClick"], tt = ["onClick"], at = /* @__PURE__ */ ne({
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(M, { emit: i }) {
90
- const k = M, y = i, $ = S({
91
- get: () => k.search,
92
- set: (p) => y("update:search", p)
93
- }), B = S({
94
- get: () => k.filter,
95
- set: (p) => y("update:filter", p)
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
- U(B, () => {
98
- y("search");
99
- }), U(
100
- () => k.list_filter,
101
- (p) => {
102
- Array.isArray(p) ? (p.forEach((m, _) => {
103
- m?.type === 1 && !m.to && console.error(`Filtro na posição ${_} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
104
- }), k.item_use.includes(2) && p.length === 0 && console.error("Nenhum filtro foi passado. Certifique-se de que o array de filtros não está vazio.")) : console.error("list_filter deve ser um array.");
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 I(p) {
109
- B.value === p ? B.value = "" : B.value = p;
108
+ function j(u) {
109
+ b.value === u ? b.value = "" : b.value = u;
110
110
  }
111
- function O() {
112
- $.value = "", k.deactivate_search_on_clear || y("search"), y("clickedClearSearch");
111
+ function A() {
112
+ f.value = "", w.deactivate_search_on_clear || k("search"), k("clickedClearSearch");
113
113
  }
114
- function q(p) {
115
- p.click && typeof p.click == "function" ? p.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
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 o() {
118
- k.deactivate_search_empty && $.value.trim() === "" || y("search");
117
+ function n() {
118
+ w.deactivate_search_empty && f.value.trim() === "" || k("search");
119
119
  }
120
- return (p, m) => {
121
- const _ = Ie("router-link");
122
- return n(), s("div", Ge, [
123
- M.item_use.includes(2) ? (n(), s("a", We, [...m[2] || (m[2] = [
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
- ])])) : h("", !0),
144
- t("div", Je, [
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": m[0] || (m[0] = (d) => $.value = d),
150
- onKeyup: Ae(o, ["enter"]),
151
- placeholder: M.placeholder_search
152
- }, null, 40, Qe), [
153
- [pe, $.value]
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
- $.value ? (n(), s("span", {
155
+ f.value ? (s(), l("span", {
156
156
  key: 0,
157
- onClick: m[1] || (m[1] = (d) => O()),
157
+ onClick: _[1] || (_[1] = (d) => A()),
158
158
  class: "inputClose",
159
159
  title: "Limpar pesquisa"
160
- }, [...m[3] || (m[3] = [
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
- ])])) : (n(), s("span", Re, [...m[4] || (m[4] = [
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
- M.item_use.includes(2) ? (n(), s("div", Ze, [
205
- (n(!0), s(C, null, V(k.list_filter, (d, w) => (n(), s(C, { key: w }, [
206
- "type" in d && d.type === 1 && (!("visible" in d) || d.visible) ? (n(), ae(_, {
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: H(() => [
212
- T(v(d.text), 1)
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) ? (n(), s("a", {
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) => I(String(d.value)), ["prevent"]),
218
- class: c(["dropdown-item cursor-pointer", B.value === d?.value ? "bg-info text-dark selected" : ""])
219
- }, v(d.text), 11, et)) : (!("type" in d) || d.type === 3) && (!("visible" in d) || d.visible) ? (n(), s("a", {
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) => q(d), ["prevent"]),
222
- class: c(["dropdown-item cursor-pointer", d?.active ? "bg-info text-dark selected" : ""])
223
- }, v(d.text), 11, tt)) : h("", !0)
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
- ])) : h("", !0)
225
+ ])) : g("", !0)
226
226
  ]);
227
227
  };
228
228
  }
229
- }), nt = /* @__PURE__ */ _e(at, [["__scopeId", "data-v-ed591287"]]);
230
- function st() {
231
- const M = g(!1), i = g(""), k = g(0), y = g(0), $ = S(() => ({
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: `${y.value + 15}px`,
236
- left: `${k.value + 15}px`
235
+ top: `${k.value + 15}px`,
236
+ left: `${w.value + 15}px`
237
237
  }));
238
- function B(o) {
239
- const p = o.clientX, m = o.clientY, _ = window.innerHeight, d = 15, w = 300;
240
- let z = m + d;
241
- z + w > _ && (z = m - w - d, z < 0 && (z = 0)), k.value = p, y.value = z;
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 I(o, p) {
244
- M.value = !0, i.value = p, B(o);
243
+ function j(n, u) {
244
+ x.value = !0, i.value = u, b(n);
245
245
  }
246
- function O(o) {
247
- M.value && B(o);
246
+ function A(n) {
247
+ x.value && b(n);
248
248
  }
249
- function q() {
250
- M.value = !1;
249
+ function N() {
250
+ x.value = !1;
251
251
  }
252
252
  return {
253
- isHovering: M,
253
+ isHovering: x,
254
254
  previewSrc: i,
255
- previewStyle: $,
256
- handleMouseOver: I,
257
- handleMouseMove: O,
258
- handleMouseLeave: q
255
+ previewStyle: f,
256
+ handleMouseOver: j,
257
+ handleMouseMove: A,
258
+ handleMouseLeave: N
259
259
  };
260
260
  }
261
- const lt = { class: "mx-2 d-inline-block" }, rt = {
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
- }, ot = { class: "alert-title m-0" }, it = { class: "badge bg-azure text-azure-fg" }, dt = { key: 0 }, ut = { key: 2 }, ct = {
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
- }, pt = { class: "badge bg-orange text-white erro-custom-text" }, _t = { key: 0 }, mt = { key: 2 }, vt = {
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
- }, ht = { class: "badge bg-orange text-white erro-custom-text" }, ft = ["colspan"], gt = {
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
- }, kt = {
308
+ }, xt = {
276
309
  key: 1,
277
310
  style: { height: "3rem" }
278
- }, yt = {
311
+ }, bt = {
279
312
  key: 2,
280
313
  class: "p-3 text-center text-secondary"
281
- }, wt = {
314
+ }, Ct = {
282
315
  key: 1,
283
316
  class: "feedback-container text-center"
284
- }, xt = {
317
+ }, Mt = {
285
318
  key: 0,
286
319
  class: "text-secondary"
287
- }, bt = {
320
+ }, St = {
288
321
  key: 1,
289
322
  class: "text-secondary"
290
- }, Ct = {
323
+ }, $t = {
291
324
  key: 2,
292
325
  class: "table-responsive"
293
- }, Mt = { key: 0 }, St = { key: 0 }, $t = {
326
+ }, Bt = { key: 0 }, zt = { key: 0 }, Vt = {
294
327
  key: 1,
295
328
  class: "w-1"
296
- }, Bt = { class: "header-ordering" }, zt = ["onClick"], Vt = {
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
- }, Tt = {
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
- }, jt = {
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
- }, Nt = { class: "header-ordering" }, Et = ["onClick"], Dt = {
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
- }, It = {
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
- }, At = {
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
- }, Pt = {
395
+ }, Ot = {
363
396
  key: 0,
364
397
  class: "w-1"
365
- }, Ht = ["onClick"], Ot = {
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
- }, qt = {
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
- }, Lt = {
422
+ }, Kt = {
390
423
  key: 1,
391
424
  class: "w-1"
392
- }, Ft = ["checked", "onChange"], Ut = ["onClick"], Kt = ["onClick"], Yt = { key: 0 }, Xt = { key: 1 }, Gt = ["onClick", "innerHTML"], Wt = ["onClick"], Jt = ["src"], Qt = ["src"], Rt = {
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
- }, Zt = { class: "badge bg-orange text-white erro-custom-text" }, ea = {
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
- }, sa = ["src"], la = /* @__PURE__ */ ne({
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(M, { expose: i, emit: k }) {
476
+ setup(x, { expose: i, emit: w }) {
445
477
  const {
446
- isHovering: y,
447
- previewSrc: $,
448
- previewStyle: B,
449
- handleMouseOver: I,
450
- handleMouseMove: O,
451
- handleMouseLeave: q
452
- } = st(), o = M, p = k, m = g(!1), _ = g({}), d = g([]), w = g([]), z = g(0), x = g([]), L = g([]), D = g(null), X = g(!1), G = g(null), u = g({
453
- current_page: o.page_starts_at,
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: o.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
- }), ve = S(() => (u.value.current_page = o.page_starts_at, o.endpoint)), { data: he, pending: fe, error: W, execute: ge, attempt: A } = o.fetch(ve, {
464
- params: () => o.deactivate_default_params ? o.add_params && typeof o.add_params == "function" ? {
465
- ...o.add_params(),
466
- ...K.value
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
- ...o.add_params,
469
- ...K.value
470
- } : o.add_params && typeof o.add_params == "function" ? {
471
- ...R.value,
472
- ...o.add_params(),
473
- ...K.value
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
- ...R.value,
476
- ...o.add_params,
477
- ...K.value
516
+ ...ee.value,
517
+ ...n.add_params,
518
+ ...U.value
478
519
  },
479
- retry: o.retry_attempts,
480
- retryDelay: o.retry_delay,
520
+ retry: n.retry_attempts,
521
+ retryDelay: n.retry_delay,
481
522
  paramsReactives: !1,
482
523
  immediate: !1
483
- }, o.fetch_name), J = S(
484
- () => d.value.filter((l) => l.locked)
485
- ), Q = S({
524
+ }, n.fetch_name), R = B(
525
+ () => d.value.filter((r) => r.locked)
526
+ ), Z = B({
486
527
  get() {
487
- return d.value.filter((l) => !l.locked);
528
+ return d.value.filter((r) => !r.locked);
488
529
  },
489
- set(l) {
490
- const e = J.value;
491
- d.value = [...l, ...e];
530
+ set(r) {
531
+ const e = R.value;
532
+ d.value = [...r, ...e];
492
533
  }
493
- }), ke = S(() => [...Q.value, ...J.value]), ye = S(() => {
494
- let l = [1];
495
- return o.list_filter.length > 0 && l.push(2), l;
496
- }), K = S(() => {
497
- const l = {};
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 (_.value[e.header] === "increasing")
501
- l[e.param_ordering] = e.increasing_value || "increasing";
502
- else if (_.value[e.header] === "decreasing")
503
- l[e.param_ordering] = e.decreasing_value || "decreasing";
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 l;
509
- }), R = S(() => ({
510
- [o.page_param_name]: u.value.current_page + 1,
511
- [o.page_size_param_name]: u.value.limit_per_page,
512
- [o.search_param_name]: u.value.search || "",
513
- [o.filter_param_name]: u.value.filter || ""
514
- })), we = S(() => fe.value || X.value), Y = (l) => {
515
- const e = o.item_key;
516
- return x.value.some((a) => a[e] === l[e]);
517
- }, se = S(() => {
518
- if (!w.value.length) return !1;
519
- const l = w.value.filter((e) => Y(e)).length;
520
- return l === 0 ? !1 : l === w.value.length ? !0 : "indeterminate";
521
- }), xe = S(() => x.value.length > 0);
522
- U([se, D], ([l]) => {
523
- D.value && (l === "indeterminate" ? (D.value.checked = !1, D.value.indeterminate = !0) : (D.value.checked = l, D.value.indeterminate = !1));
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
- }), U(he, (l) => {
528
- l ? (w.value = l[o.data_key] || [], z.value = l[o.total_key] || 0, u.value.count = z.value) : (w.value = [], z.value = 0);
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 be() {
531
- const l = w.value;
532
- if (!l.length) return;
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 = l.map((r) => r[o.item_key]);
536
- x.value = x.value.filter(
537
- (r) => !a.includes(r[o.item_key])
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
- l.forEach((a) => {
541
- Y(a) || x.value.push(a);
586
+ r.forEach((a) => {
587
+ K(a) || M.value.push(a);
542
588
  });
543
589
  }
544
- function Ce(l) {
545
- const e = o.item_key, a = x.value.findIndex((r) => r[e] === l[e]);
546
- a > -1 ? x.value.splice(a, 1) : x.value.push(l);
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 Me(l) {
549
- d.value.push(l);
594
+ function Be(r) {
595
+ d.value.push(r);
550
596
  }
551
- Pe(me, { addColumn: Me });
552
- async function P() {
553
- m.value || (m.value = !0), G.value && clearTimeout(G.value), X.value = !0, G.value = setTimeout(() => {
554
- X.value = !1;
555
- }, o.min_loading_delay), oe(), p("beforeFetch"), await ge(), p("afterFetch");
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 j() {
558
- u.value.current_page = o.page_starts_at, P();
603
+ function E() {
604
+ c.value.current_page = n.page_starts_at, q();
559
605
  }
560
- const le = (l) => {
561
- const e = l.target, a = parseInt(e.value, 10);
562
- a > 0 && (u.value.limit_per_page = a, u.value.limit_per_page = a, j());
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 N(l, e, a = null) {
565
- if (!l) return e;
566
- const r = l.split(".");
567
- let b = e;
568
- for (const te of r)
569
- b && typeof b == "object" && te in b ? b = b[te] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${te}`);
570
- return a && (b = a(b)), b;
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 re(l) {
576
- for (const a in _.value)
577
- a !== l && (_.value[a] = "none");
578
- const e = _.value[l] || "none";
579
- e === "none" ? _.value[l] = "increasing" : e === "increasing" ? _.value[l] = "decreasing" : _.value[l] = "none", j();
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 $e(l) {
582
- l > 0 ? (u.value.limit_per_page = l, j()) : console.warn("O limite deve ser um número maior que zero.");
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 Be(l) {
585
- u.value.search = l, j();
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 ze(l) {
588
- u.value.filter = l, j();
630
+ function Te(r) {
631
+ c.value.search = r, E();
589
632
  }
590
- function Ve(l) {
591
- l >= 0 && l <= Math.ceil(u.value.count / u.value.limit_per_page) ? (u.value.current_page = l, P()) : console.warn("Número de página inválido.");
633
+ function Ee(r) {
634
+ c.value.filter = r, E();
592
635
  }
593
- function Z(l) {
594
- const e = l[o.item_key], a = L.value.findIndex((r) => r === e);
595
- a > -1 ? L.value.splice(a, 1) : L.value.push(e);
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
- L.value = [];
640
+ fe.value = [];
603
641
  }
604
- function Te() {
605
- let l = d.value.length;
606
- return o.use_checkbox && (l += 1), o.use_expandable_items && (l += 1), l;
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 je() {
609
- p("tradePage"), P();
646
+ function Ie() {
647
+ u("tradePage"), q();
610
648
  }
611
649
  i({
612
- execute: P,
613
- reSearch: j,
614
- pagination: He(u),
615
- set_limit_per_page: $e,
616
- set_search: Be,
617
- set_filter: ze,
618
- set_page: Ve,
619
- default_params: R,
620
- selected_items: x,
621
- atLeastOneSelected: xe,
622
- expand_item_toggle: Z,
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 = g(!1);
626
- return U(
627
- () => o.add_params,
663
+ const ie = y(!1);
664
+ return F(
665
+ () => n.add_params,
628
666
  () => {
629
- ie.value ? j() : (ie.value = !0, Oe(() => {
630
- j();
667
+ ie.value ? E() : (ie.value = !0, _e(() => {
668
+ E();
631
669
  }));
632
670
  },
633
- { deep: !0, immediate: o.immediate }
634
- ), (l, e) => (n(), s("div", null, [
671
+ { deep: !0, immediate: n.immediate }
672
+ ), (r, e) => (s(), l("div", null, [
635
673
  t("div", {
636
- class: c(["", o.class_container])
674
+ class: p(["", n.class_container])
637
675
  }, [
638
- E(l.$slots, "default", {}, void 0, !0),
676
+ D(r.$slots, "default", {}, void 0, !0),
639
677
  t("div", {
640
- class: c(["", o.class_content])
678
+ class: p(["", n.class_content])
641
679
  }, [
642
680
  t("div", {
643
- class: c([o.class_filters, "d-flex justify-content-between align-items-start"])
681
+ class: p([n.class_filters, "d-flex justify-content-between align-items-start"])
644
682
  }, [
645
- E(l.$slots, "pageSize", {
683
+ D(r.$slots, "pageSize", {
646
684
  changePageSize: le,
647
- limit_per_page: u.value.limit_per_page
685
+ limit_per_page: c.value.limit_per_page
648
686
  }, () => [
649
687
  t("div", {
650
- class: c(["text-secondary", o.class_page_size])
688
+ class: p(["text-secondary", n.class_page_size])
651
689
  }, [
652
- T(v(o.first_text_page_size) + " ", 1),
653
- t("div", lt, [
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) => u.value.limit_per_page = 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
- u.value.limit_per_page,
703
+ c.value.limit_per_page,
666
704
  void 0,
667
705
  { lazy: !0 }
668
706
  ]
669
707
  ])
670
708
  ]),
671
- T(" " + v(o.second_text_page_size), 1)
709
+ T(" " + h(n.second_text_page_size), 1)
672
710
  ], 2)
673
711
  ], !0),
674
- E(l.$slots, "fieldMiddle", {}, void 0, !0),
675
- F(nt, {
676
- search: u.value.search,
677
- "onUpdate:search": e[1] || (e[1] = (a) => u.value.search = a),
678
- filter: u.value.filter,
679
- "onUpdate:filter": e[2] || (e[2] = (a) => u.value.filter = a),
680
- list_filter: o.list_filter,
681
- item_use: ye.value,
682
- onSearch: j,
683
- deactivate_search_on_clear: o.deactivate_search_on_clear,
684
- placeholder_search: o.placeholder_search,
685
- deactivate_search_empty: o.deactivate_search_empty,
686
- onClickedClearSearch: e[3] || (e[3] = (a) => l.$emit("clickedClearSearch"))
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
- E(l.$slots, "item-selected-info", {
690
- selected_items: x.value,
691
- clearSelection: () => x.value = []
727
+ D(r.$slots, "item-selected-info", {
728
+ selected_items: M.value,
729
+ clearSelection: () => M.value = []
692
730
  }, () => [
693
- o.use_checkbox && x.value.length > 0 && !o.deactivate_selected_info ? (n(), s("div", rt, [
694
- t("h4", ot, [
695
- e[6] || (e[6] = t("strong", null, "Itens Selecionados:", -1)),
696
- e[7] || (e[7] = T()),
697
- t("span", it, v(x.value.length), 1)
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) => x.value = [])
702
- }, [...e[8] || (e[8] = [
703
- qe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-8ec30dd4><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-8ec30dd4></path><path d="M4 7l16 0" data-v-8ec30dd4></path><path d="M10 11l0 6" data-v-8ec30dd4></path><path d="M14 11l0 6" data-v-8ec30dd4></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-8ec30dd4></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-8ec30dd4></path></svg> Limpar Seleção', 2)
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
- ])) : h("", !0)
743
+ ])) : g("", !0)
706
744
  ], !0),
707
- we.value ? (n(), s(C, { key: 0 }, [
708
- o.custom_loading ? (n(), ae(ue(o.custom_loading), { key: 0 })) : (n(), s("table", {
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: c(["table table-vcenter table-selectable", o.class_table])
748
+ class: p(["table table-vcenter table-selectable", n.class_table])
711
749
  }, [
712
750
  t("thead", null, [
713
751
  t("tr", null, [
714
- (n(!0), s(C, null, V(d.value, (a) => (n(), s("th", {
752
+ (s(!0), l($, null, V(d.value, (a) => (s(), l("th", {
715
753
  key: a.field || a.header,
716
- class: c(a.class_column)
717
- }, v(a.header), 3))), 128))
754
+ class: p(a.class_column)
755
+ }, h(a.header), 3))), 128))
718
756
  ])
719
757
  ]),
720
758
  t("tbody", null, [
721
- o.type_loading === "placeholder" ? (n(!0), s(C, { key: 0 }, V(u.value.limit_per_page, (a) => (n(), s("tr", {
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
- (n(!0), s(C, null, V(d.value, (r) => (n(), s("td", {
726
- key: r.field || r.header,
727
- class: c(r.class_row)
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
- r.bodySlot ? (n(), s("span", dt, [...e[9] || (e[9] = [
767
+ o.bodySlot ? (s(), l("span", pt, [...e[11] || (e[11] = [
730
768
  t("span", { class: "placeholder col-8" }, null, -1)
731
- ])])) : r.type === "text" ? (n(), s("span", {
769
+ ])])) : o.type === "text" ? (s(), l("span", {
732
770
  key: 1,
733
- class: c(r.class_item)
734
- }, [...e[10] || (e[10] = [
771
+ class: p(o.class_item)
772
+ }, [...e[12] || (e[12] = [
735
773
  t("span", { class: "placeholder col-8" }, null, -1)
736
- ])], 2)) : r.type === "date" ? (n(), s("span", ut, [...e[11] || (e[11] = [
774
+ ])], 2)) : o.type === "date" ? (s(), l("span", _t, [...e[13] || (e[13] = [
737
775
  t("span", { class: "placeholder col-9" }, null, -1)
738
- ])])) : r.type === "html" ? (n(), s("div", {
776
+ ])])) : o.type === "html" ? (s(), l("div", {
739
777
  key: 3,
740
- class: c(r.class_item)
741
- }, [...e[12] || (e[12] = [
778
+ class: p(o.class_item)
779
+ }, [...e[14] || (e[14] = [
742
780
  t("div", { class: "placeholder col-12" }, null, -1)
743
- ])], 2)) : r.type === "img" ? (n(), s("div", {
781
+ ])], 2)) : o.type === "img" ? (s(), l("div", {
744
782
  key: 4,
745
- class: c(r.class_item)
746
- }, [...e[13] || (e[13] = [
783
+ class: p(o.class_item)
784
+ }, [...e[15] || (e[15] = [
747
785
  t("div", { class: "placeholder placeholder-img" }, null, -1)
748
- ])], 2)) : (n(), s("span", ct, [
749
- e[14] || (e[14] = T("tipo ", -1)),
750
- t("span", pt, v(r.type), 1),
751
- e[15] || (e[15] = T(" não suportado ", -1))
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)) : o.type_loading === "spiner-table" ? (n(!0), s(C, { key: 1 }, V(u.value.limit_per_page, (a) => (n(), s("tr", {
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
- (n(!0), s(C, null, V(d.value, (r) => (n(), s("td", {
758
- key: r.field || r.header,
759
- class: c(r.class_row)
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
- r.bodySlot ? (n(), s("span", _t, [...e[16] || (e[16] = [
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
- ])])) : r.type === "text" ? (n(), s("span", {
805
+ ])])) : o.type === "text" ? (s(), l("span", {
768
806
  key: 1,
769
- class: c(r.class_item)
770
- }, [...e[17] || (e[17] = [
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)) : r.type === "date" ? (n(), s("span", mt, [...e[18] || (e[18] = [
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
- ])])) : r.type === "html" ? (n(), s("div", {
820
+ ])])) : o.type === "html" ? (s(), l("div", {
783
821
  key: 3,
784
- class: c(r.class_item)
785
- }, [...e[19] || (e[19] = [
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)) : r.type === "img" ? (n(), s("div", {
829
+ ])], 2)) : o.type === "img" ? (s(), l("div", {
792
830
  key: 4,
793
- class: c(["", r.class_item])
794
- }, [...e[20] || (e[20] = [
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)) : (n(), s("span", vt, [
803
- e[21] || (e[21] = T("tipo ", -1)),
804
- t("span", ht, v(r.type), 1),
805
- e[22] || (e[22] = T(" não suportado ", -1))
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)) : o.type_loading === "spiner" ? (n(!0), s(C, { key: 2 }, V(u.value.limit_per_page, (a) => (n(), s("tr", { key: a }, [
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(u.value.limit_per_page / 2) + 1 ? (n(), s("div", gt, [...e[23] || (e[23] = [
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
- ])])) : (n(), s("div", kt))
822
- ], 8, ft)
823
- ]))), 128)) : h("", !0)
859
+ ])])) : (s(), l("div", xt))
860
+ ], 8, yt)
861
+ ]))), 128)) : g("", !0)
824
862
  ])
825
863
  ], 2)),
826
- f(A) && f(A).current > 1 ? (n(), s("div", yt, " A conexão falhou. Tentando novamente... (Tentativa " + v(f(A).current) + " de " + v(f(A).total) + ") ", 1)) : h("", !0)
827
- ], 64)) : f(W) ? (n(), s("div", wt, [
828
- e[24] || (e[24] = t("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
829
- f(A) ? (n(), s("p", xt, " Não foi possível carregar os dados após " + v(f(A).total) + " tentativa(s). ", 1)) : (n(), s("p", bt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
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: P
870
+ onClick: q
833
871
  }, " Tentar Novamente ")
834
- ])) : w.value ? (n(), s("div", Ct, [
835
- w.value.length > 0 ? (n(), s("div", Mt, [
872
+ ])) : C.value ? (s(), l("div", $t, [
873
+ C.value.length > 0 ? (s(), l("div", Bt, [
836
874
  t("table", {
837
- class: c(["table table-vcenter table-selectable", o.class_table])
875
+ class: p(["table table-vcenter table-selectable", n.class_table])
838
876
  }, [
839
877
  t("thead", null, [
840
- F(f(Xe), {
841
- modelValue: Q.value,
842
- "onUpdate:modelValue": e[5] || (e[5] = (a) => Q.value = 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: H(() => [
850
- o.use_expandable_items ? (n(), s("th", St)) : h("", !0),
851
- o.use_checkbox ? (n(), s("th", $t, [
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: D,
857
- onChange: be,
896
+ ref: P,
897
+ onChange: Se,
858
898
  "aria-label": "Selecionar todos os itens na página"
859
899
  }, null, 544)
860
- ])) : h("", !0)
900
+ ])) : g("", !0)
861
901
  ]),
862
- item: H(({ element: a }) => [
863
- a.use_ordering ? (n(), s("th", {
902
+ item: O(({ element: a }) => [
903
+ a.use_ordering ? (s(), l("th", {
864
904
  key: 0,
865
- class: c(["header-draggable", a.class_column])
905
+ class: p(["header-draggable", a.class_column])
866
906
  }, [
867
- t("div", Bt, [
868
- t("span", null, v(a.header), 1),
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
- !_.value[a.header] || _.value[a.header] === "none" ? (n(), s("svg", Vt, [...e[25] || (e[25] = [
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
- ])])) : _.value[a.header] === "decreasing" ? (n(), s("svg", Tt, [...e[26] || (e[26] = [
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
- ])])) : _.value[a.header] === "increasing" ? (n(), s("svg", jt, [...e[27] || (e[27] = [
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
- ])])) : h("", !0)
893
- ], 8, zt)
932
+ ])])) : g("", !0)
933
+ ], 8, Et)
894
934
  ])
895
- ], 2)) : (n(), s("th", {
935
+ ], 2)) : (s(), l("th", {
896
936
  key: 1,
897
- class: c(["header-draggable", a.class_column])
898
- }, v(a.header), 3))
937
+ class: p(["header-draggable", a.class_column])
938
+ }, h(a.header), 3))
899
939
  ]),
900
- footer: H(() => [
901
- (n(!0), s(C, null, V(J.value, (a) => (n(), s(C, {
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 ? (n(), s("th", {
944
+ a.use_ordering ? (s(), l("th", {
905
945
  key: 0,
906
- class: c(["header-locked header-ordering", a.class_column])
946
+ class: p(["header-locked header-ordering", a.class_column])
907
947
  }, [
908
- t("div", Nt, [
909
- t("span", null, v(a.header), 1),
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
- !_.value[a.header] || _.value[a.header] === "none" ? (n(), s("svg", Dt, [...e[28] || (e[28] = [
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
- ])])) : _.value[a.header] === "decreasing" ? (n(), s("svg", It, [...e[29] || (e[29] = [
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
- ])])) : _.value[a.header] === "increasing" ? (n(), s("svg", At, [...e[30] || (e[30] = [
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
- ])])) : h("", !0)
934
- ], 8, Et)
973
+ ])])) : g("", !0)
974
+ ], 8, At)
935
975
  ])
936
- ], 2)) : (n(), s("th", {
976
+ ], 2)) : (s(), l("th", {
937
977
  key: 1,
938
- class: c(["header-locked", a.class_column])
939
- }, v(a.header), 3))
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
- (n(!0), s(C, null, V(w.value, (a) => (n(), s(C, {
947
- key: a[o.item_key]
986
+ (s(!0), l($, null, V(C.value, (a) => (s(), l($, {
987
+ key: a[n.item_key]
948
988
  }, [
949
- F(Le, {
989
+ L(Ue, {
950
990
  tag: "tr",
951
- name: "column-move"
991
+ name: G.value ? "column-move" : ""
952
992
  }, {
953
- default: H(() => [
954
- o.use_expandable_items ? (n(), s("td", Pt, [
955
- E(l.$slots, "expand-button", {
993
+ default: O(() => [
994
+ n.use_expandable_items ? (s(), l("td", Ot, [
995
+ D(r.$slots, "expand-button", {
956
996
  item: a,
957
- isExpanded: ee(a),
958
- expand_item_toggle: Z
997
+ isExpanded: v(J)(a),
998
+ expand_item_toggle: v(W)
959
999
  }, () => [
960
1000
  t("button", {
961
1001
  type: "button",
962
- class: c(["btn-clean btn-icon-anim", { "is-expanded": ee(a) }]),
963
- onClick: (r) => Z(a)
1002
+ class: p(["btn-clean btn-icon-anim", { "is-expanded": v(J)(a) }]),
1003
+ onClick: (o) => v(W)(a)
964
1004
  }, [
965
- o.type_button_expand === "arrow" ? (n(), s("svg", Ot, [...e[31] || (e[31] = [
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
- ])])) : (n(), s("svg", qt, [...e[32] || (e[32] = [
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, Ht)
1024
+ ], 10, Lt)
985
1025
  ], !0)
986
- ])) : h("", !0),
987
- o.use_checkbox ? (n(), s("td", Lt, [
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: Y(a),
992
- onChange: (r) => Ce(a),
1031
+ checked: K(a),
1032
+ onChange: (o) => $e(a),
993
1033
  "aria-label": "Selecionar este item"
994
- }, null, 40, Ft)
995
- ])) : h("", !0),
996
- (n(!0), s(C, null, V(ke.value, (r) => (n(), s("td", {
997
- key: r.field || r.header,
998
- class: c(r.class_row)
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
- r.bodySlot ? (n(), ae(ue(r.bodySlot), {
1040
+ o.bodySlot ? (s(), ae(ue(o.bodySlot), {
1001
1041
  key: 0,
1002
1042
  item: a,
1003
- "is-selected": Y(a)
1004
- }, null, 8, ["item", "is-selected"])) : r.type === "text" ? (n(), s("span", {
1043
+ "is-selected": K(a)
1044
+ }, null, 8, ["item", "is-selected"])) : o.type === "text" ? (s(), l("span", {
1005
1045
  key: 1,
1006
- onClick: (b) => r.click ? r.click(a) : null,
1007
- class: c(r.class_item + (r.click ? " cursor-pointer" : ""))
1008
- }, v(Se(N(r.field, a, r.transform_function), r.limite_text ?? null)), 11, Ut)) : r.type === "date" ? (n(), s("span", {
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: (b) => r.click ? r.click(a) : null,
1011
- class: c(r.class_item + (r.click ? " cursor-pointer" : ""))
1050
+ onClick: (S) => o.click ? o.click(a) : null,
1051
+ class: p(o.class_item + (o.click ? " cursor-pointer" : ""))
1012
1052
  }, [
1013
- r.format === "complete" ? (n(), s("span", Yt, v(new Date(N(r.field, a)).toLocaleString()), 1)) : h("", !0),
1014
- r.format === "simple" ? (n(), s("span", Xt, v(new Date(N(
1015
- r.field,
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)) : h("", !0)
1018
- ], 10, Kt)) : r.type === "html" ? (n(), s("div", {
1057
+ )).toLocaleDateString()), 1)) : g("", !0)
1058
+ ], 10, Gt)) : o.type === "html" ? (s(), l("div", {
1019
1059
  key: 3,
1020
- onClick: (b) => r.click ? r.click(a) : null,
1021
- class: c(r.class_item + (r.click ? " cursor-pointer" : "")),
1022
- innerHTML: N(r.field, a)
1023
- }, null, 10, Gt)) : r.type === "img" ? (n(), s("div", {
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: (b) => r.click ? r.click(a) : null,
1026
- class: c(r.class_item + (r.click ? " cursor-pointer" : ""))
1065
+ onClick: (S) => o.click ? o.click(a) : null,
1066
+ class: p(o.class_item + (o.click ? " cursor-pointer" : ""))
1027
1067
  }, [
1028
- N(r.field, a) ? (n(), s("div", Fe({
1068
+ I(o.field, a) ? (s(), l("div", Ke({
1029
1069
  key: 0,
1030
1070
  ref_for: !0
1031
- }, r.deactivate_img_preview ? {
1071
+ }, o.deactivate_img_preview ? {
1032
1072
  class: "container-img"
1033
1073
  } : {
1034
- onMouseover: (b) => f(I)(b, N(r.field, a)),
1035
- onMousemove: f(O),
1036
- onMouseleave: f(q),
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: N(r.field, a)
1042
- }, null, 8, Jt),
1081
+ src: I(o.field, a)
1082
+ }, null, 8, Zt),
1043
1083
  t("img", {
1044
1084
  class: "img-tamanho-cover",
1045
- src: N(r.field, a)
1046
- }, null, 8, Qt),
1047
- e[33] || (e[33] = t("div", { class: "bg-img" }, null, -1))
1048
- ], 16)) : h("", !0)
1049
- ], 10, Wt)) : (n(), s("span", Rt, [
1050
- e[34] || (e[34] = T("tipo ", -1)),
1051
- t("span", Zt, v(r.type), 1),
1052
- e[35] || (e[35] = T(" não suportado", -1))
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
- }, 1024),
1058
- F(Ue, {
1059
- name: "expand-item-" + o.type_animation_expand,
1060
- css: !o.deactivate_animation_expand
1097
+ }, 1032, ["name"]),
1098
+ L(Ye, {
1099
+ name: "expand-item-" + n.type_animation_expand,
1100
+ css: !n.deactivate_animation_expand
1061
1101
  }, {
1062
- default: H(() => [
1063
- ee(a) ? (n(), s("tr", ea, [
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: Te()
1109
+ colspan: Ne()
1066
1110
  }, [
1067
- E(l.$slots, "after-row", { item: a }, void 0, !0)
1068
- ], 8, ta)
1069
- ])) : h("", !0)
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
- ])) : m.value === !1 ? (n(), s("div", aa, [
1077
- E(l.$slots, "idle-state", {}, void 0, !0)
1078
- ])) : (n(), s("div", na, [...e[36] || (e[36] = [
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
- ])) : h("", !0)
1125
+ ])) : g("", !0)
1082
1126
  ], 2)
1083
1127
  ], 2),
1084
- E(l.$slots, "pagination", {
1085
- pagination: u.value,
1086
- tradePage: P,
1087
- error: f(W)
1128
+ D(r.$slots, "pagination", {
1129
+ pagination: c.value,
1130
+ tradePage: q,
1131
+ error: v(Q)
1088
1132
  }, () => [
1089
- !f(W) && u.value.count > 0 ? (n(), s("div", {
1133
+ !v(Q) && c.value.count > 0 ? (s(), l("div", {
1090
1134
  key: 0,
1091
- class: c(["px-3", o.class_pagination])
1135
+ class: p(["px-3", n.class_pagination])
1092
1136
  }, [
1093
- F(Ye, {
1094
- page_starts_at: o.page_starts_at,
1137
+ L(Ge, {
1138
+ page_starts_at: n.page_starts_at,
1095
1139
  filtering: !0,
1096
- pagination: u.value,
1097
- onTradePage: je
1140
+ pagination: c.value,
1141
+ onTradePage: Ie
1098
1142
  }, null, 8, ["page_starts_at", "pagination"])
1099
- ], 2)) : h("", !0)
1143
+ ], 2)) : g("", !0)
1100
1144
  ], !0),
1101
- f(y) ? (n(), s("div", {
1145
+ v(k) ? (s(), l("div", {
1102
1146
  key: 0,
1103
1147
  class: "image-preview-container",
1104
- style: Ke(f(B))
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, sa)
1111
- ], 4)) : h("", !0)
1154
+ }, null, 8, oa)
1155
+ ], 4)) : g("", !0)
1112
1156
  ]));
1113
1157
  }
1114
- }), ua = /* @__PURE__ */ _e(la, [["__scopeId", "data-v-8ec30dd4"]]);
1158
+ }), _a = /* @__PURE__ */ me(ia, [["__scopeId", "data-v-40ea3de7"]]);
1115
1159
  export {
1116
- da as VColumn,
1117
- ua as VDataTable
1160
+ pa as VColumn,
1161
+ _a as VDataTable
1118
1162
  };