v-sistec-features 1.23.2 → 1.24.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,8 +1,8 @@
1
- import { defineComponent as Q, useSlots as je, inject as fe, onMounted as he, computed as C, watch as J, resolveComponent as Ae, createElementBlock as l, openBlock as e, createCommentVNode as b, createElementVNode as r, withDirectives as ye, withKeys as Pe, vModelText as ke, Fragment as V, renderList as I, createBlock as N, withCtx as L, createTextVNode as H, toDisplayString as S, normalizeClass as k, withModifiers as _e, ref as $, nextTick as be, resolveDynamicComponent as ee, normalizeProps as me, mergeProps as se, createStaticVNode as Z, Comment as qe, Text as Le, provide as Fe, readonly as Ue, renderSlot as O, Teleport as ge, unref as f, createVNode as W, TransitionGroup as Ke, Transition as Ye, normalizeStyle as Xe } from "vue";
2
- import { D as Ge } from "./datatableConfig-BMFlKtgh.js";
3
- import { _ as re, P as We } from "./Pagination-DtVDFQ07.js";
4
- import Je from "vuedraggable";
5
- const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
1
+ import { defineComponent as Q, useSlots as Ae, inject as fe, onMounted as ye, computed as C, watch as J, resolveComponent as Pe, createElementBlock as l, openBlock as t, createCommentVNode as b, createElementVNode as r, withDirectives as ke, withKeys as qe, vModelText as be, Fragment as V, renderList as I, createBlock as N, withCtx as L, createTextVNode as H, toDisplayString as S, normalizeClass as k, withModifiers as me, ref as $, nextTick as xe, resolveDynamicComponent as ee, normalizeProps as ve, mergeProps as re, createStaticVNode as Z, Comment as Le, Text as Fe, provide as Ue, readonly as Ke, renderSlot as O, Teleport as ge, unref as h, createVNode as W, TransitionGroup as Ye, Transition as Xe, normalizeStyle as Ge } from "vue";
2
+ import { D as We } from "./datatableConfig-BMFlKtgh.js";
3
+ import { _ as oe, P as Je } from "./Pagination-DtVDFQ07.js";
4
+ import Qe from "vuedraggable";
5
+ const we = Symbol("v-datatable-key"), _a = /* @__PURE__ */ Q({
6
6
  __name: "VColumn",
7
7
  props: {
8
8
  field: { default: null },
@@ -24,16 +24,16 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
24
24
  class_rules: { default: () => ({}) }
25
25
  },
26
26
  setup(d) {
27
- const o = d, _ = je(), t = fe(xe);
28
- if (!t)
27
+ const o = d, _ = Ae(), e = fe(we);
28
+ if (!e)
29
29
  throw new Error("VColumn deve ser usado dentro de um VDataTable.");
30
- const g = ["text", "img", "date", "html"];
31
- return he(() => {
30
+ const v = ["text", "img", "date", "html"];
31
+ return ye(() => {
32
32
  if (o.field !== null && !o.field)
33
33
  throw new Error('A propriedade "field" é obrigatória em VColumn.');
34
34
  if (!o.header)
35
35
  throw new Error('A propriedade "header" é obrigatória em VColumn.');
36
- if (o.field !== null && !g.includes(o.type))
36
+ if (o.field !== null && !v.includes(o.type))
37
37
  throw new Error(`O tipo "${o.type}" não é suportado em VColumn. Tipos suportados: text, img, date, html.`);
38
38
  if (o.limite_text) {
39
39
  if (o.type !== "text")
@@ -43,7 +43,7 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
43
43
  if (isNaN(Number(o.limite_text)) || Number(o.limite_text) <= 0)
44
44
  throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
45
45
  }
46
- t.addColumn({
46
+ e.addColumn({
47
47
  field: o.field,
48
48
  header: o.header,
49
49
  type: o.type,
@@ -69,19 +69,19 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
69
69
  });
70
70
  }), (c, T) => null;
71
71
  }
72
- }), Qe = { class: "dropdown d-flex" }, Re = {
72
+ }), Re = { class: "dropdown d-flex" }, Ze = {
73
73
  key: 0,
74
74
  href: "#",
75
75
  class: "btn dropdown-toggle",
76
76
  "data-bs-toggle": "dropdown",
77
77
  title: "Pesquisas Prédefinidas"
78
- }, Ze = { class: "input-icon" }, et = ["placeholder"], tt = {
78
+ }, et = { class: "input-icon" }, tt = ["placeholder"], at = {
79
79
  key: 1,
80
80
  class: "input-icon-addon"
81
- }, at = {
81
+ }, lt = {
82
82
  key: 1,
83
83
  class: "dropdown-menu"
84
- }, lt = ["onClick"], nt = ["onClick"], st = /* @__PURE__ */ Q({
84
+ }, nt = ["onClick"], st = ["onClick"], rt = /* @__PURE__ */ Q({
85
85
  __name: "SearchDatatable",
86
86
  props: {
87
87
  search: {},
@@ -94,15 +94,15 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
94
94
  },
95
95
  emits: ["update:search", "update:filter", "search", "clickedClearSearch"],
96
96
  setup(d, { emit: o }) {
97
- const _ = d, t = o, g = C({
97
+ const _ = d, e = o, v = C({
98
98
  get: () => _.search,
99
- set: (s) => t("update:search", s)
99
+ set: (s) => e("update:search", s)
100
100
  }), c = C({
101
101
  get: () => _.filter,
102
- set: (s) => t("update:filter", s)
102
+ set: (s) => e("update:filter", s)
103
103
  });
104
104
  J(c, () => {
105
- t("search");
105
+ e("search");
106
106
  }), J(
107
107
  () => _.list_filter,
108
108
  (s) => {
@@ -116,18 +116,18 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
116
116
  c.value === s ? c.value = "" : c.value = s;
117
117
  }
118
118
  function w() {
119
- g.value = "", _.deactivate_search_on_clear || t("search"), t("clickedClearSearch");
119
+ v.value = "", _.deactivate_search_on_clear || e("search"), e("clickedClearSearch");
120
120
  }
121
- function h(s) {
121
+ function f(s) {
122
122
  s.click && typeof s.click == "function" ? s.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
123
123
  }
124
- function v() {
125
- _.deactivate_search_empty && g.value.trim() === "" || t("search");
124
+ function g() {
125
+ _.deactivate_search_empty && v.value.trim() === "" || e("search");
126
126
  }
127
127
  return (s, a) => {
128
- const x = Ae("router-link");
129
- return e(), l("div", Qe, [
130
- d.item_use.includes(2) ? (e(), l("a", Re, [...a[2] || (a[2] = [
128
+ const x = Pe("router-link");
129
+ return t(), l("div", Re, [
130
+ d.item_use.includes(2) ? (t(), l("a", Ze, [...a[2] || (a[2] = [
131
131
  r("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  class: "icon icon-tabler icon-tabler-filter",
@@ -148,18 +148,18 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
148
148
  r("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" })
149
149
  ], -1)
150
150
  ])])) : b("", !0),
151
- r("div", Ze, [
152
- ye(r("input", {
151
+ r("div", et, [
152
+ ke(r("input", {
153
153
  type: "text",
154
154
  class: "form-control ms-1",
155
155
  id: "inputSearchVDataTable",
156
- "onUpdate:modelValue": a[0] || (a[0] = (m) => g.value = m),
157
- onKeyup: Pe(v, ["enter"]),
156
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => v.value = m),
157
+ onKeyup: qe(g, ["enter"]),
158
158
  placeholder: d.placeholder_search
159
- }, null, 40, et), [
160
- [ke, g.value]
159
+ }, null, 40, tt), [
160
+ [be, v.value]
161
161
  ]),
162
- g.value ? (e(), l("span", {
162
+ v.value ? (t(), l("span", {
163
163
  key: 0,
164
164
  onClick: a[1] || (a[1] = (m) => w()),
165
165
  class: "inputClose",
@@ -185,7 +185,7 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
185
185
  r("path", { d: "M18 6l-12 12" }),
186
186
  r("path", { d: "M6 6l12 12" })
187
187
  ], -1)
188
- ])])) : (e(), l("span", tt, [...a[4] || (a[4] = [
188
+ ])])) : (t(), l("span", at, [...a[4] || (a[4] = [
189
189
  r("svg", {
190
190
  xmlns: "http://www.w3.org/2000/svg",
191
191
  width: "24",
@@ -208,9 +208,9 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
208
208
  ], -1)
209
209
  ])]))
210
210
  ]),
211
- d.item_use.includes(2) ? (e(), l("div", at, [
212
- (e(!0), l(V, null, I(_.list_filter, (m, B) => (e(), l(V, { key: B }, [
213
- "type" in m && m.type === 1 && (!("visible" in m) || m.visible) ? (e(), N(x, {
211
+ d.item_use.includes(2) ? (t(), l("div", lt, [
212
+ (t(!0), l(V, null, I(_.list_filter, (m, B) => (t(), l(V, { key: B }, [
213
+ "type" in m && m.type === 1 && (!("visible" in m) || m.visible) ? (t(), N(x, {
214
214
  key: 0,
215
215
  to: m?.to,
216
216
  class: "dropdown-item cursor-pointer"
@@ -219,95 +219,95 @@ const xe = Symbol("v-datatable-key"), pa = /* @__PURE__ */ Q({
219
219
  H(S(m.text), 1)
220
220
  ]),
221
221
  _: 2
222
- }, 1032, ["to"])) : (!("type" in m) || m.type === 2) && (!("visible" in m) || m.visible) ? (e(), l("a", {
222
+ }, 1032, ["to"])) : (!("type" in m) || m.type === 2) && (!("visible" in m) || m.visible) ? (t(), l("a", {
223
223
  key: 1,
224
- onClick: _e((M) => T(String(m.value)), ["prevent"]),
224
+ onClick: me((M) => T(String(m.value)), ["prevent"]),
225
225
  class: k(["dropdown-item cursor-pointer", c.value === m?.value ? "bg-info text-dark selected" : ""])
226
- }, S(m.text), 11, lt)) : (!("type" in m) || m.type === 3) && (!("visible" in m) || m.visible) ? (e(), l("a", {
226
+ }, S(m.text), 11, nt)) : (!("type" in m) || m.type === 3) && (!("visible" in m) || m.visible) ? (t(), l("a", {
227
227
  key: 2,
228
- onClick: _e((M) => h(m), ["prevent"]),
228
+ onClick: me((M) => f(m), ["prevent"]),
229
229
  class: k(["dropdown-item cursor-pointer", m?.active ? "bg-info text-dark selected" : ""])
230
- }, S(m.text), 11, nt)) : b("", !0)
230
+ }, S(m.text), 11, st)) : b("", !0)
231
231
  ], 64))), 128))
232
232
  ])) : b("", !0)
233
233
  ]);
234
234
  };
235
235
  }
236
- }), rt = /* @__PURE__ */ re(st, [["__scopeId", "data-v-ed591287"]]);
237
- function ot() {
238
- const d = $(!1), o = $(""), _ = $(0), t = $(0), g = C(() => ({
236
+ }), ot = /* @__PURE__ */ oe(rt, [["__scopeId", "data-v-ed591287"]]);
237
+ function it() {
238
+ const d = $(!1), o = $(""), _ = $(0), e = $(0), v = C(() => ({
239
239
  position: "fixed",
240
240
  zIndex: 9999,
241
241
  pointerEvents: "none",
242
- top: `${t.value + 15}px`,
242
+ top: `${e.value + 15}px`,
243
243
  left: `${_.value + 15}px`
244
244
  }));
245
- function c(v) {
246
- const s = v.clientX, a = v.clientY, x = window.innerHeight, m = 15, B = 300;
245
+ function c(g) {
246
+ const s = g.clientX, a = g.clientY, x = window.innerHeight, m = 15, B = 300;
247
247
  let M = a + m;
248
- M + B > x && (M = a - B - m, M < 0 && (M = 0)), _.value = s, t.value = M;
248
+ M + B > x && (M = a - B - m, M < 0 && (M = 0)), _.value = s, e.value = M;
249
249
  }
250
- function T(v, s) {
251
- d.value = !0, o.value = s, c(v);
250
+ function T(g, s) {
251
+ d.value = !0, o.value = s, c(g);
252
252
  }
253
- function w(v) {
254
- d.value && c(v);
253
+ function w(g) {
254
+ d.value && c(g);
255
255
  }
256
- function h() {
256
+ function f() {
257
257
  d.value = !1;
258
258
  }
259
259
  return {
260
260
  isHovering: d,
261
261
  previewSrc: o,
262
- previewStyle: g,
262
+ previewStyle: v,
263
263
  handleMouseOver: T,
264
264
  handleMouseMove: w,
265
- handleMouseLeave: h
265
+ handleMouseLeave: f
266
266
  };
267
267
  }
268
- function it(d, o, _, t) {
269
- const g = $([]);
268
+ function dt(d, o, _, e) {
269
+ const v = $([]);
270
270
  function c() {
271
- g.value = [];
271
+ v.value = [];
272
272
  }
273
- function T(v) {
274
- const s = v[o];
275
- return g.value.some((a) => a === s);
273
+ function T(g) {
274
+ const s = g[o];
275
+ return v.value.some((a) => a === s);
276
276
  }
277
- function w(v) {
278
- const s = v[o], a = g.value.findIndex((m) => m === s), x = a > -1;
279
- d ? (c(), x || (g.value.push(s), t && h(s))) : x ? g.value.splice(a, 1) : (g.value.push(s), t && h(s));
277
+ function w(g) {
278
+ const s = g[o], a = v.value.findIndex((m) => m === s), x = a > -1;
279
+ d ? (c(), x || (v.value.push(s), e && f(s))) : x ? v.value.splice(a, 1) : (v.value.push(s), e && f(s));
280
280
  }
281
- function h(v) {
282
- be(() => {
281
+ function f(g) {
282
+ xe(() => {
283
283
  if (_) {
284
- const s = document.querySelector("#expand-item-" + v);
284
+ const s = document.querySelector("#expand-item-" + g);
285
285
  s && s.scrollIntoView({ behavior: "smooth", block: "center" });
286
286
  return;
287
287
  } else
288
288
  setTimeout(() => {
289
- const s = document.querySelector("#expand-item-" + v);
289
+ const s = document.querySelector("#expand-item-" + g);
290
290
  s && s.scrollIntoView({ behavior: "smooth", block: "center" });
291
291
  }, 600);
292
292
  });
293
293
  }
294
294
  return {
295
- expanded_items: g,
295
+ expanded_items: v,
296
296
  is_item_expanded: T,
297
297
  expand_item_toggle: w,
298
298
  close_all_expanded_items: c
299
299
  };
300
300
  }
301
- function dt(d, o, _, t, g, c) {
302
- const T = $([]), w = C(() => (o.value.current_page = d.page_starts_at, d.endpoint)), h = C(() => ({
301
+ function ut(d, o, _, e, v, c) {
302
+ const T = $([]), w = C(() => (o.value.current_page = d.page_starts_at, d.endpoint)), f = C(() => ({
303
303
  [d.page_param_name]: o.value.current_page + 1,
304
304
  [d.page_size_param_name]: o.value.limit_per_page,
305
305
  [d.search_param_name]: o.value.search || "",
306
306
  [d.filter_param_name]: o.value.filter || ""
307
- })), v = C(() => {
307
+ })), g = C(() => {
308
308
  const D = {};
309
309
  for (const z of _.value)
310
- z.use_ordering && (t.value[z.header] === "increasing" ? D[z.param_ordering] = z.increasing_value || "increasing" : t.value[z.header] === "decreasing" && (D[z.param_ordering] = z.decreasing_value || "decreasing"));
310
+ z.use_ordering && (e.value[z.header] === "increasing" ? D[z.param_ordering] = z.increasing_value || "increasing" : e.value[z.header] === "decreasing" && (D[z.param_ordering] = z.decreasing_value || "decreasing"));
311
311
  return D;
312
312
  }), { data: s, pending: a, error: x, execute: m, attempt: B } = d.fetch(w, {
313
313
  disable_request: () => d.disable_request,
@@ -321,11 +321,11 @@ function dt(d, o, _, t, g, c) {
321
321
  z = d.add_params || {};
322
322
  return d.deactivate_default_params ? {
323
323
  ...z,
324
- ...v.value
324
+ ...g.value
325
325
  } : {
326
- ...h.value,
326
+ ...f.value,
327
327
  ...d.add_params,
328
- ...v.value
328
+ ...g.value
329
329
  };
330
330
  },
331
331
  retry: d.retry_attempts,
@@ -336,7 +336,7 @@ function dt(d, o, _, t, g, c) {
336
336
  async function U() {
337
337
  y.value || (y.value = !0), A.value && clearTimeout(A.value), M.value = !0, A.value = setTimeout(() => {
338
338
  M.value = !1;
339
- }, d.min_loading_delay), c(), g("beforeFetch"), await m(), g("afterFetch");
339
+ }, d.min_loading_delay), c(), v("beforeFetch"), await m(), v("afterFetch");
340
340
  }
341
341
  function K() {
342
342
  o.value.current_page = d.page_starts_at, U();
@@ -348,73 +348,73 @@ function dt(d, o, _, t, g, c) {
348
348
  execute: m,
349
349
  response: s,
350
350
  attempt: B,
351
- default_params: h,
351
+ default_params: f,
352
352
  fetchDataWithDelay: U,
353
353
  reSearch: K,
354
354
  showLoadingState: F,
355
355
  first_fetch: y
356
356
  };
357
357
  }
358
- function ut(d, o) {
359
- const _ = $(null), t = $([]), g = (v) => {
358
+ function ct(d, o) {
359
+ const _ = $(null), e = $([]), v = (g) => {
360
360
  const s = d.item_key;
361
- return t.value.some((a) => a[s] === v[s]);
361
+ return e.value.some((a) => a[s] === g[s]);
362
362
  }, c = C(() => {
363
363
  if (!o.value.length) return !1;
364
- const v = o.value.filter((s) => g(s)).length;
365
- return v === 0 ? !1 : v === o.value.length ? !0 : "indeterminate";
366
- }), T = C(() => t.value.length > 0);
367
- J([c, _], ([v]) => {
368
- _.value && (v === "indeterminate" ? (_.value.checked = !1, _.value.indeterminate = !0) : (_.value.checked = v, _.value.indeterminate = !1));
364
+ const g = o.value.filter((s) => v(s)).length;
365
+ return g === 0 ? !1 : g === o.value.length ? !0 : "indeterminate";
366
+ }), T = C(() => e.value.length > 0);
367
+ J([c, _], ([g]) => {
368
+ _.value && (g === "indeterminate" ? (_.value.checked = !1, _.value.indeterminate = !0) : (_.value.checked = g, _.value.indeterminate = !1));
369
369
  }, {
370
370
  immediate: !0,
371
371
  flush: "post"
372
372
  });
373
373
  function w() {
374
- const v = o.value;
375
- if (!v.length) return;
374
+ const g = o.value;
375
+ if (!g.length) return;
376
376
  const s = c.value;
377
377
  if (s === !0 || s === "indeterminate") {
378
- const a = v.map((x) => x[d.item_key]);
379
- t.value = t.value.filter(
378
+ const a = g.map((x) => x[d.item_key]);
379
+ e.value = e.value.filter(
380
380
  (x) => !a.includes(x[d.item_key])
381
381
  );
382
382
  } else
383
- v.forEach((a) => {
384
- g(a) || t.value.push(a);
383
+ g.forEach((a) => {
384
+ v(a) || e.value.push(a);
385
385
  });
386
386
  }
387
- function h(v) {
388
- const s = d.item_key, a = t.value.findIndex((x) => x[s] === v[s]);
389
- a > -1 ? t.value.splice(a, 1) : t.value.push(v);
387
+ function f(g) {
388
+ const s = d.item_key, a = e.value.findIndex((x) => x[s] === g[s]);
389
+ a > -1 ? e.value.splice(a, 1) : e.value.push(g);
390
390
  }
391
391
  return {
392
392
  selectAllCheckbox: _,
393
- selected_items: t,
394
- isSelected: g,
393
+ selected_items: e,
394
+ isSelected: v,
395
395
  selectAllState: c,
396
396
  atLeastOneSelected: T,
397
397
  toggleSelectAll: w,
398
- toggleItemSelection: h
398
+ toggleItemSelection: f
399
399
  };
400
400
  }
401
- const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt = {
401
+ const pt = { class: "loading-container" }, _t = { key: 0 }, mt = { key: 2 }, vt = {
402
402
  key: 5,
403
403
  class: "text-danger erro-custom-container"
404
- }, gt = { class: "badge bg-orange text-white erro-custom-text" }, vt = { key: 0 }, ft = { key: 2 }, ht = {
404
+ }, gt = { class: "badge bg-orange text-white erro-custom-text" }, ht = { key: 0 }, ft = { key: 2 }, yt = {
405
405
  key: 5,
406
406
  class: "text-danger erro-custom-container"
407
- }, yt = { class: "badge bg-orange text-white erro-custom-text" }, kt = ["colspan"], bt = {
407
+ }, kt = { class: "badge bg-orange text-white erro-custom-text" }, bt = ["colspan"], xt = {
408
408
  key: 0,
409
409
  class: "d-flex flex-column justify-content-center align-items-center",
410
410
  style: { height: "6rem" }
411
- }, xt = {
411
+ }, wt = {
412
412
  key: 1,
413
413
  style: { height: "3rem" }
414
- }, wt = {
414
+ }, St = {
415
415
  key: 2,
416
416
  class: "p-3 text-center text-secondary"
417
- }, St = /* @__PURE__ */ Q({
417
+ }, Ct = /* @__PURE__ */ Q({
418
418
  __name: "VDataTableLoading",
419
419
  props: {
420
420
  columns: {},
@@ -427,94 +427,94 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
427
427
  },
428
428
  setup(d) {
429
429
  const o = d;
430
- return (_, t) => (e(), l("div", ct, [
431
- o.custom_loading ? (e(), N(ee(o.custom_loading), { key: 0 })) : (e(), l("table", {
430
+ return (_, e) => (t(), l("div", pt, [
431
+ o.custom_loading ? (t(), N(ee(o.custom_loading), { key: 0 })) : (t(), l("table", {
432
432
  key: 1,
433
433
  class: k(["table table-vcenter table-selectable", o.class_table])
434
434
  }, [
435
435
  r("thead", null, [
436
436
  r("tr", null, [
437
- (e(!0), l(V, null, I(d.columns, (g) => (e(), l("th", {
438
- key: g.field || g.header,
439
- class: k(g.class_column)
440
- }, S(g.header), 3))), 128))
437
+ (t(!0), l(V, null, I(d.columns, (v) => (t(), l("th", {
438
+ key: v.field || v.header,
439
+ class: k(v.class_column)
440
+ }, S(v.header), 3))), 128))
441
441
  ])
442
442
  ]),
443
443
  r("tbody", null, [
444
- o.type_loading === "placeholder" ? (e(!0), l(V, { key: 0 }, I(d.pagination.limit_per_page, (g) => (e(), l("tr", {
445
- key: "placeholder-" + g,
444
+ o.type_loading === "placeholder" ? (t(!0), l(V, { key: 0 }, I(d.pagination.limit_per_page, (v) => (t(), l("tr", {
445
+ key: "placeholder-" + v,
446
446
  class: "placeholder-glow"
447
447
  }, [
448
- (e(!0), l(V, null, I(d.columns, (c) => (e(), l("td", {
448
+ (t(!0), l(V, null, I(d.columns, (c) => (t(), l("td", {
449
449
  key: c.field || c.header,
450
450
  class: k(c.class_row)
451
451
  }, [
452
- c.bodySlot ? (e(), l("span", pt, [...t[0] || (t[0] = [
452
+ c.bodySlot ? (t(), l("span", _t, [...e[0] || (e[0] = [
453
453
  r("span", { class: "placeholder col-8" }, null, -1)
454
- ])])) : c.type === "text" ? (e(), l("span", {
454
+ ])])) : c.type === "text" ? (t(), l("span", {
455
455
  key: 1,
456
456
  class: k(c.class_item)
457
- }, [...t[1] || (t[1] = [
457
+ }, [...e[1] || (e[1] = [
458
458
  r("span", { class: "placeholder col-8" }, null, -1)
459
- ])], 2)) : c.type === "date" ? (e(), l("span", _t, [...t[2] || (t[2] = [
459
+ ])], 2)) : c.type === "date" ? (t(), l("span", mt, [...e[2] || (e[2] = [
460
460
  r("span", { class: "placeholder col-9" }, null, -1)
461
- ])])) : c.type === "html" ? (e(), l("div", {
461
+ ])])) : c.type === "html" ? (t(), l("div", {
462
462
  key: 3,
463
463
  class: k(c.class_item)
464
- }, [...t[3] || (t[3] = [
464
+ }, [...e[3] || (e[3] = [
465
465
  r("div", { class: "placeholder col-12" }, null, -1)
466
- ])], 2)) : c.type === "img" ? (e(), l("div", {
466
+ ])], 2)) : c.type === "img" ? (t(), l("div", {
467
467
  key: 4,
468
468
  class: k(c.class_item)
469
- }, [...t[4] || (t[4] = [
469
+ }, [...e[4] || (e[4] = [
470
470
  r("div", { class: "placeholder placeholder-img" }, null, -1)
471
- ])], 2)) : (e(), l("span", mt, [
472
- t[5] || (t[5] = H("tipo ", -1)),
471
+ ])], 2)) : (t(), l("span", vt, [
472
+ e[5] || (e[5] = H("tipo ", -1)),
473
473
  r("span", gt, S(c.type), 1),
474
- t[6] || (t[6] = H(" não suportado ", -1))
474
+ e[6] || (e[6] = H(" não suportado ", -1))
475
475
  ]))
476
476
  ], 2))), 128))
477
- ]))), 128)) : o.type_loading === "spiner-table" ? (e(!0), l(V, { key: 1 }, I(d.pagination.limit_per_page, (g) => (e(), l("tr", {
478
- key: "placeholder-" + g
477
+ ]))), 128)) : o.type_loading === "spiner-table" ? (t(!0), l(V, { key: 1 }, I(d.pagination.limit_per_page, (v) => (t(), l("tr", {
478
+ key: "placeholder-" + v
479
479
  }, [
480
- (e(!0), l(V, null, I(d.columns, (c) => (e(), l("td", {
480
+ (t(!0), l(V, null, I(d.columns, (c) => (t(), l("td", {
481
481
  key: c.field || c.header,
482
482
  class: k(c.class_row)
483
483
  }, [
484
- c.bodySlot ? (e(), l("span", vt, [...t[7] || (t[7] = [
484
+ c.bodySlot ? (t(), l("span", ht, [...e[7] || (e[7] = [
485
485
  r("span", {
486
486
  class: "spinner-border spinner-border-sm",
487
487
  role: "status",
488
488
  "aria-hidden": "true"
489
489
  }, null, -1)
490
- ])])) : c.type === "text" ? (e(), l("span", {
490
+ ])])) : c.type === "text" ? (t(), l("span", {
491
491
  key: 1,
492
492
  class: k(c.class_item)
493
- }, [...t[8] || (t[8] = [
493
+ }, [...e[8] || (e[8] = [
494
494
  r("span", {
495
495
  class: "spinner-border spinner-border-sm",
496
496
  role: "status",
497
497
  "aria-hidden": "true"
498
498
  }, null, -1)
499
- ])], 2)) : c.type === "date" ? (e(), l("span", ft, [...t[9] || (t[9] = [
499
+ ])], 2)) : c.type === "date" ? (t(), l("span", ft, [...e[9] || (e[9] = [
500
500
  r("span", {
501
501
  class: "spinner-border spinner-border-sm",
502
502
  role: "status",
503
503
  "aria-hidden": "true"
504
504
  }, null, -1)
505
- ])])) : c.type === "html" ? (e(), l("div", {
505
+ ])])) : c.type === "html" ? (t(), l("div", {
506
506
  key: 3,
507
507
  class: k(c.class_item)
508
- }, [...t[10] || (t[10] = [
508
+ }, [...e[10] || (e[10] = [
509
509
  r("span", {
510
510
  class: "spinner-border spinner-border-sm",
511
511
  role: "status",
512
512
  "aria-hidden": "true"
513
513
  }, null, -1)
514
- ])], 2)) : c.type === "img" ? (e(), l("div", {
514
+ ])], 2)) : c.type === "img" ? (t(), l("div", {
515
515
  key: 4,
516
516
  class: k(["", c.class_item])
517
- }, [...t[11] || (t[11] = [
517
+ }, [...e[11] || (e[11] = [
518
518
  r("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
519
519
  r("span", {
520
520
  class: "spinner-border spinner-border-sm",
@@ -522,34 +522,34 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
522
522
  "aria-hidden": "true"
523
523
  })
524
524
  ], -1)
525
- ])], 2)) : (e(), l("span", ht, [
526
- t[12] || (t[12] = H("tipo ", -1)),
527
- r("span", yt, S(c.type), 1),
528
- t[13] || (t[13] = H(" não suportado ", -1))
525
+ ])], 2)) : (t(), l("span", yt, [
526
+ e[12] || (e[12] = H("tipo ", -1)),
527
+ r("span", kt, S(c.type), 1),
528
+ e[13] || (e[13] = H(" não suportado ", -1))
529
529
  ]))
530
530
  ], 2))), 128))
531
- ]))), 128)) : o.type_loading === "spiner" ? (e(!0), l(V, { key: 2 }, I(d.pagination.limit_per_page, (g) => (e(), l("tr", { key: g }, [
531
+ ]))), 128)) : o.type_loading === "spiner" ? (t(!0), l(V, { key: 2 }, I(d.pagination.limit_per_page, (v) => (t(), l("tr", { key: v }, [
532
532
  r("td", {
533
533
  colspan: d.columns.length,
534
534
  class: "text-center p-0",
535
535
  style: { "border-bottom": "none" }
536
536
  }, [
537
- g === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (e(), l("div", bt, [...t[14] || (t[14] = [
537
+ v === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (t(), l("div", xt, [...e[14] || (e[14] = [
538
538
  r("div", {
539
539
  class: "spinner-border",
540
540
  style: { width: "3rem", height: "3rem" },
541
541
  role: "status"
542
542
  }, null, -1),
543
543
  r("span", { class: "mt-2" }, "Carregando...", -1)
544
- ])])) : (e(), l("div", xt))
545
- ], 8, kt)
544
+ ])])) : (t(), l("div", wt))
545
+ ], 8, bt)
546
546
  ]))), 128)) : b("", !0)
547
547
  ])
548
548
  ], 2)),
549
- d.attempt && d.attempt.current > 1 ? (e(), l("div", wt, " A conexão falhou. Tentando novamente... (Tentativa " + S(d.attempt.current) + " de " + S(d.attempt.total) + ") ", 1)) : b("", !0)
549
+ d.attempt && d.attempt.current > 1 ? (t(), l("div", St, " A conexão falhou. Tentando novamente... (Tentativa " + S(d.attempt.current) + " de " + S(d.attempt.total) + ") ", 1)) : b("", !0)
550
550
  ]));
551
551
  }
552
- }), Ct = /* @__PURE__ */ re(St, [["__scopeId", "data-v-3b019685"]]), $t = {
552
+ }), $t = /* @__PURE__ */ oe(Ct, [["__scopeId", "data-v-3b019685"]]), Mt = {
553
553
  key: 0,
554
554
  xmlns: "http://www.w3.org/2000/svg",
555
555
  width: "16",
@@ -560,7 +560,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
560
560
  "stroke-width": "2",
561
561
  "stroke-linecap": "round",
562
562
  "stroke-linejoin": "round"
563
- }, Mt = {
563
+ }, zt = {
564
564
  key: 1,
565
565
  xmlns: "http://www.w3.org/2000/svg",
566
566
  width: "16",
@@ -571,7 +571,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
571
571
  "stroke-width": "2",
572
572
  "stroke-linecap": "round",
573
573
  "stroke-linejoin": "round"
574
- }, zt = {
574
+ }, Tt = {
575
575
  key: 2,
576
576
  xmlns: "http://www.w3.org/2000/svg",
577
577
  width: "16",
@@ -582,7 +582,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
582
582
  "stroke-width": "2",
583
583
  "stroke-linecap": "round",
584
584
  "stroke-linejoin": "round"
585
- }, ve = /* @__PURE__ */ Q({
585
+ }, he = /* @__PURE__ */ Q({
586
586
  __name: "VThDataTable",
587
587
  props: {
588
588
  header: {},
@@ -594,34 +594,34 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
594
594
  },
595
595
  emits: ["toggleOrderingState"],
596
596
  setup(d, { emit: o }) {
597
- const _ = d, t = C(() => ({
597
+ const _ = d, e = C(() => ({
598
598
  "header-draggable": !_.locked,
599
599
  "header-locked": _.locked,
600
600
  [_.class_column]: !0
601
- })), g = o, c = (w) => !w || w.length === 0 ? !0 : w.every((h) => h.type === qe || h.type === Le && typeof h.children == "string" && !h.children.trim() ? !0 : h.type === V || h.type === Symbol.for("v-fgt") || String(h.type) === "Symbol(Fragment)" ? c(h.children) : !1), T = C(() => {
601
+ })), v = o, c = (w) => !w || w.length === 0 ? !0 : w.every((f) => f.type === Le || f.type === Fe && typeof f.children == "string" && !f.children.trim() ? !0 : f.type === V || f.type === Symbol.for("v-fgt") || String(f.type) === "Symbol(Fragment)" ? c(f.children) : !1), T = C(() => {
602
602
  if (!_.col || !_.col.colHeaderSlot) return !1;
603
603
  const w = _.col.colHeaderSlot({ col: _.col, locked: _.locked });
604
604
  return !c(w);
605
605
  });
606
- return (w, h) => (e(), l("th", {
607
- class: k(t.value)
606
+ return (w, f) => (t(), l("th", {
607
+ class: k(e.value)
608
608
  }, [
609
609
  r("div", {
610
610
  class: k({ "header-ordering": d.use_ordering })
611
611
  }, [
612
- T.value ? (e(), N(ee(d.col.colHeaderSlot), me(se({ key: 0 }, { col: _.col, locked: _.locked })), null, 16)) : (e(), l(V, { key: 1 }, [
612
+ T.value ? (t(), N(ee(d.col.colHeaderSlot), ve(re({ key: 0 }, { col: _.col, locked: _.locked })), null, 16)) : (t(), l(V, { key: 1 }, [
613
613
  r("span", null, S(_.header), 1),
614
- d.col.colHeaderMidleSlot ? (e(), N(ee(d.col.colHeaderMidleSlot), me(se({ key: 0 }, { col: _.col, locked: _.locked })), null, 16)) : b("", !0),
615
- d.use_ordering ? (e(), l("span", {
614
+ d.col.colHeaderMidleSlot ? (t(), N(ee(d.col.colHeaderMidleSlot), ve(re({ key: 0 }, { col: _.col, locked: _.locked })), null, 16)) : b("", !0),
615
+ d.use_ordering ? (t(), l("span", {
616
616
  key: 1,
617
- onClick: h[0] || (h[0] = (v) => g("toggleOrderingState")),
617
+ onClick: f[0] || (f[0] = (g) => v("toggleOrderingState")),
618
618
  class: "ms-2 cursor-pointer"
619
619
  }, [
620
- !_.orderings_state || _.orderings_state === "none" ? (e(), l("svg", $t, [...h[1] || (h[1] = [
620
+ !_.orderings_state || _.orderings_state === "none" ? (t(), l("svg", Mt, [...f[1] || (f[1] = [
621
621
  Z('<path d="m3 8 4-4 4 4"></path><path d="m11 16-4 4-4-4"></path><path d="M7 4v16"></path><path d="M15 8h6"></path><path d="M15 16h6"></path><path d="M13 12h8"></path>', 6)
622
- ])])) : _.orderings_state === "decreasing" ? (e(), l("svg", Mt, [...h[2] || (h[2] = [
622
+ ])])) : _.orderings_state === "decreasing" ? (t(), l("svg", zt, [...f[2] || (f[2] = [
623
623
  Z('<path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="M11 4h10"></path><path d="M11 8h7"></path><path d="M11 12h4"></path>', 5)
624
- ])])) : _.orderings_state === "increasing" ? (e(), l("svg", zt, [...h[3] || (h[3] = [
624
+ ])])) : _.orderings_state === "increasing" ? (t(), l("svg", Tt, [...f[3] || (f[3] = [
625
625
  Z('<path d="m3 8 4-4 4 4"></path><path d="M7 4v16"></path><path d="M11 12h4"></path><path d="M11 16h7"></path><path d="M11 20h10"></path>', 5)
626
626
  ])])) : b("", !0)
627
627
  ])) : b("", !0)
@@ -629,29 +629,29 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
629
629
  ], 2)
630
630
  ], 2));
631
631
  }
632
- }), Tt = { class: "mx-2 d-inline-block" }, Bt = {
632
+ }), Bt = { class: "mx-2 d-inline-block" }, Vt = {
633
633
  key: 0,
634
634
  class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
635
635
  role: "alert"
636
- }, Vt = { class: "alert-title m-0" }, Dt = { class: "badge bg-azure text-azure-fg" }, Et = {
636
+ }, Dt = { class: "alert-title m-0" }, Et = { class: "badge bg-azure text-azure-fg" }, It = {
637
637
  key: 1,
638
638
  class: "feedback-container text-center"
639
- }, It = {
639
+ }, Nt = {
640
640
  key: 0,
641
641
  class: "text-secondary"
642
- }, Nt = {
642
+ }, Ht = {
643
643
  key: 1,
644
644
  class: "text-secondary"
645
- }, Ht = {
645
+ }, Ot = {
646
646
  key: 2,
647
647
  class: "table-responsive"
648
- }, Ot = { key: 0 }, jt = { key: 0 }, At = {
648
+ }, jt = { key: 0 }, At = { key: 0 }, Pt = {
649
649
  key: 1,
650
650
  class: "w-1"
651
- }, Pt = {
651
+ }, qt = {
652
652
  key: 0,
653
653
  class: "w-1"
654
- }, qt = ["onClick"], Lt = {
654
+ }, Lt = ["onClick"], Ft = {
655
655
  key: 0,
656
656
  xmlns: "http://www.w3.org/2000/svg",
657
657
  width: "24",
@@ -663,7 +663,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
663
663
  "stroke-linecap": "round",
664
664
  "stroke-linejoin": "round",
665
665
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-right icon-transition-arrow"
666
- }, Ft = {
666
+ }, Ut = {
667
667
  key: 1,
668
668
  xmlns: "http://www.w3.org/2000/svg",
669
669
  width: "20",
@@ -675,16 +675,16 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
675
675
  "stroke-linecap": "round",
676
676
  "stroke-linejoin": "round",
677
677
  class: "icon icon-transition-plus"
678
- }, Ut = {
678
+ }, Kt = {
679
679
  key: 1,
680
680
  class: "w-1"
681
- }, Kt = ["checked", "onChange"], Yt = ["onClick"], Xt = ["onClick"], Gt = { key: 0 }, Wt = { key: 1 }, Jt = ["onClick", "innerHTML"], Qt = ["onClick"], Rt = ["src"], Zt = ["src"], ea = {
681
+ }, Yt = ["checked", "onChange"], Xt = ["onClick"], Gt = ["onClick"], Wt = { key: 0 }, Jt = { key: 1 }, Qt = ["onClick", "innerHTML"], Rt = ["onClick"], Zt = ["src"], ea = ["src"], ta = {
682
682
  key: 5,
683
683
  class: "text-danger erro-custom-container"
684
- }, ta = { class: "badge bg-orange text-white erro-custom-text" }, aa = ["id"], la = ["colspan"], na = { key: 1 }, sa = {
684
+ }, aa = { class: "badge bg-orange text-white erro-custom-text" }, la = ["id"], na = ["colspan"], sa = { key: 1 }, ra = {
685
685
  key: 2,
686
686
  class: "text-center p-4 text-secondary"
687
- }, ra = ["src"], oa = /* @__PURE__ */ Q({
687
+ }, oa = ["src"], ia = /* @__PURE__ */ Q({
688
688
  __name: "VDataTable",
689
689
  props: {
690
690
  fetch: {},
@@ -730,48 +730,50 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
730
730
  disable_search: { type: Boolean, default: !1 },
731
731
  disable_request: { default: !1 },
732
732
  pagination_teleport: { default: null },
733
- search_teleport: { default: null }
733
+ search_teleport: { default: null },
734
+ show_header_when_empty: { type: Boolean, default: !1 }
734
735
  },
735
736
  emits: ["tradePage", "beforeFetch", "afterFetch", "clickedClearSearch"],
736
737
  setup(d, { expose: o, emit: _ }) {
737
- const t = fe(Ge, {}), {
738
- isHovering: g,
738
+ const e = fe(We, {}), {
739
+ isHovering: v,
739
740
  previewSrc: c,
740
741
  previewStyle: T,
741
742
  handleMouseOver: w,
742
- handleMouseMove: h,
743
- handleMouseLeave: v
744
- } = ot(), s = d, a = C(() => ({
743
+ handleMouseMove: f,
744
+ handleMouseLeave: g
745
+ } = it(), s = d, a = C(() => ({
745
746
  // Primeiro, espelha todas as props originais.
746
747
  ...s,
747
748
  // Agora SOBRESCREVEMOS as propriedades que precisam de lógica Global/Default
748
749
  // (Prioridade para Prop, mas aceita Global)
749
750
  // === TEXTOS ===
750
- first_text_page_size: s.first_text_page_size ?? t.first_text_page_size ?? "Mostrar",
751
- second_text_page_size: s.second_text_page_size ?? t.second_text_page_size ?? "registros",
752
- placeholder_search: s.placeholder_search ?? t.placeholder_search ?? "Buscar...",
751
+ first_text_page_size: s.first_text_page_size ?? e.first_text_page_size ?? "Mostrar",
752
+ second_text_page_size: s.second_text_page_size ?? e.second_text_page_size ?? "registros",
753
+ placeholder_search: s.placeholder_search ?? e.placeholder_search ?? "Buscar...",
753
754
  // === CLASSES ===
754
- class_table: s.class_table || t.class_table || "",
755
- class_pagination: s.class_pagination || t.class_pagination || "",
756
- class_container: s.class_container || t.class_container || "",
757
- class_content: s.class_content || t.class_content || "",
758
- class_filters: s.class_filters || t.class_filters || "",
759
- class_page_size: s.class_page_size || t.class_page_size || "",
755
+ class_table: s.class_table || e.class_table || "",
756
+ class_pagination: s.class_pagination || e.class_pagination || "",
757
+ class_container: s.class_container || e.class_container || "",
758
+ class_content: s.class_content || e.class_content || "",
759
+ class_filters: s.class_filters || e.class_filters || "",
760
+ class_page_size: s.class_page_size || e.class_page_size || "",
760
761
  // === CONFIGURAÇÃO DE API ===
761
- filter_param_name: s.filter_param_name ?? t.filter_param_name ?? "filter",
762
- search_param_name: s.search_param_name ?? t.search_param_name ?? "search",
763
- page_param_name: s.page_param_name ?? t.page_param_name ?? "page",
764
- page_size_param_name: s.page_size_param_name ?? t.page_size_param_name ?? "page_size",
765
- page_starts_at: s.page_starts_at ?? t.page_starts_at ?? 0,
766
- item_key: s.item_key ?? t.item_key ?? "id",
767
- data_key: s.data_key ?? t.data_key ?? "results",
768
- total_key: s.total_key ?? t.total_key ?? "count",
762
+ filter_param_name: s.filter_param_name ?? e.filter_param_name ?? "filter",
763
+ search_param_name: s.search_param_name ?? e.search_param_name ?? "search",
764
+ page_param_name: s.page_param_name ?? e.page_param_name ?? "page",
765
+ page_size_param_name: s.page_size_param_name ?? e.page_size_param_name ?? "page_size",
766
+ page_starts_at: s.page_starts_at ?? e.page_starts_at ?? 0,
767
+ item_key: s.item_key ?? e.item_key ?? "id",
768
+ data_key: s.data_key ?? e.data_key ?? "results",
769
+ total_key: s.total_key ?? e.total_key ?? "count",
769
770
  // === COMPORTAMENTO ===
770
- limit_per_page: s.limit_per_page ?? t.limit_per_page ?? 5,
771
- type_loading: s.type_loading ?? t.type_loading ?? "placeholder",
772
- min_loading_delay: s.min_loading_delay ?? t.min_loading_delay ?? 600,
773
- retry_attempts: s.retry_attempts ?? t.retry_attempts ?? 3,
774
- retry_delay: s.retry_delay ?? t.retry_delay ?? 2e3
771
+ limit_per_page: s.limit_per_page ?? e.limit_per_page ?? 5,
772
+ type_loading: s.type_loading ?? e.type_loading ?? "placeholder",
773
+ min_loading_delay: s.min_loading_delay ?? e.min_loading_delay ?? 600,
774
+ retry_attempts: s.retry_attempts ?? e.retry_attempts ?? 3,
775
+ retry_delay: s.retry_delay ?? e.retry_delay ?? 2e3,
776
+ show_header_when_empty: s.show_header_when_empty ?? e.show_header_when_empty ?? !1
775
777
  })), x = _, m = $({}), B = $([]), M = $(0), A = $(!1), y = $({
776
778
  current_page: a.value.page_starts_at,
777
779
  // pagina atual
@@ -787,7 +789,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
787
789
  expand_item_toggle: F,
788
790
  close_all_expanded_items: U,
789
791
  is_item_expanded: K
790
- } = it(
792
+ } = dt(
791
793
  a.value.close_expanded_item_on_expand_new,
792
794
  a.value.item_key,
793
795
  a.value.deactivate_animation_expand,
@@ -797,19 +799,19 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
797
799
  error: z,
798
800
  response: te,
799
801
  attempt: ae,
800
- default_params: we,
802
+ default_params: Se,
801
803
  fetchDataWithDelay: P,
802
804
  reSearch: E,
803
- showLoadingState: Se,
804
- first_fetch: Ce
805
- } = dt(a.value, y, B, m, x, U), {
806
- selectAllCheckbox: oe,
805
+ showLoadingState: Ce,
806
+ first_fetch: $e
807
+ } = ut(a.value, y, B, m, x, U), {
808
+ selectAllCheckbox: ie,
807
809
  selected_items: q,
808
- isSelected: ie,
809
- atLeastOneSelected: $e,
810
- toggleSelectAll: de,
811
- toggleItemSelection: Me
812
- } = ut(a.value, D), le = C(
810
+ isSelected: de,
811
+ atLeastOneSelected: Me,
812
+ toggleSelectAll: ue,
813
+ toggleItemSelection: ze
814
+ } = ct(a.value, D), le = C(
813
815
  () => B.value.filter((i) => i.locked)
814
816
  ), ne = C({
815
817
  get() {
@@ -819,23 +821,23 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
819
821
  const u = le.value;
820
822
  B.value = [...i, ...u];
821
823
  }
822
- }), ze = C(() => [...ne.value, ...le.value]), ue = C(() => {
824
+ }), Te = C(() => [...ne.value, ...le.value]), ce = C(() => {
823
825
  let i = [1];
824
826
  return a.value.list_filter.length > 0 && i.push(2), i;
825
- });
827
+ }), se = C(() => D.value.length > 0);
826
828
  J(te, (i) => {
827
829
  i ? (D.value = i[a.value.data_key] || [], M.value = i[a.value.total_key] || 0, y.value.count = M.value) : (D.value = [], M.value = 0);
828
830
  }, { immediate: !0 });
829
- function Te() {
831
+ function Be() {
830
832
  setTimeout(() => {
831
833
  A.value = !1;
832
834
  }, 500);
833
835
  }
834
- function Be(i) {
836
+ function Ve(i) {
835
837
  B.value.push(i);
836
838
  }
837
- Fe(xe, { addColumn: Be });
838
- const ce = (i) => {
839
+ Ue(we, { addColumn: Ve });
840
+ const pe = (i) => {
839
841
  const u = i.target, n = parseInt(u.value, 10);
840
842
  n > 0 && (y.value.limit_per_page = n, y.value.limit_per_page = n, E());
841
843
  };
@@ -847,32 +849,32 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
847
849
  p && typeof p == "object" && X in p ? p = p[X] : console.error(`Caminho inválido ou valor nulo em: ${i} na parte ${X}`);
848
850
  return n && (p = n(p)), p;
849
851
  }
850
- function Ve(i, u) {
852
+ function De(i, u) {
851
853
  return u && typeof u == "number" && u > 0 && typeof i == "string" && i.length > u ? i.substring(0, u) + "..." : i;
852
854
  }
853
- function pe(i) {
855
+ function _e(i) {
854
856
  for (const n in m.value)
855
857
  n !== i && (m.value[n] = "none");
856
858
  const u = m.value[i] || "none";
857
859
  u === "none" ? m.value[i] = "increasing" : u === "increasing" ? m.value[i] = "decreasing" : m.value[i] = "none", E();
858
860
  }
859
- function De(i) {
861
+ function Ee(i) {
860
862
  i > 0 ? (y.value.limit_per_page = i, E()) : console.warn("O limite deve ser um número maior que zero.");
861
863
  }
862
- function Ee(i) {
864
+ function Ie(i) {
863
865
  y.value.search = i, E();
864
866
  }
865
- function Ie(i) {
867
+ function Ne(i) {
866
868
  y.value.filter = i, E();
867
869
  }
868
- function Ne(i) {
870
+ function He(i) {
869
871
  i >= 0 && i <= Math.ceil(y.value.count / y.value.limit_per_page) ? (y.value.current_page = i, P()) : console.warn("Número de página inválido.");
870
872
  }
871
- function He() {
873
+ function Oe() {
872
874
  let i = B.value.length;
873
875
  return a.value.use_checkbox && (i += 1), a.value.use_expandable_items && (i += 1), i;
874
876
  }
875
- function Oe() {
877
+ function je() {
876
878
  x("tradePage"), P();
877
879
  }
878
880
  const R = (i, u) => {
@@ -885,19 +887,19 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
885
887
  return o({
886
888
  execute: P,
887
889
  reSearch: E,
888
- pagination: Ue(y),
889
- set_limit_per_page: De,
890
- set_search: Ee,
891
- set_filter: Ie,
892
- set_page: Ne,
893
- default_params: we,
890
+ pagination: Ke(y),
891
+ set_limit_per_page: Ee,
892
+ set_search: Ie,
893
+ set_filter: Ne,
894
+ set_page: He,
895
+ default_params: Se,
894
896
  selected_items: q,
895
- atLeastOneSelected: $e,
897
+ atLeastOneSelected: Me,
896
898
  expand_item_toggle: F,
897
899
  close_all_expanded_items: U,
898
- selectAllCheckbox: oe
899
- }), he(() => {
900
- a.value.immediate && be(() => {
900
+ selectAllCheckbox: ie
901
+ }), ye(() => {
902
+ a.value.immediate && xe(() => {
901
903
  E();
902
904
  });
903
905
  }), J(
@@ -906,7 +908,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
906
908
  E();
907
909
  },
908
910
  { deep: !0 }
909
- ), (i, u) => (e(), l("div", null, [
911
+ ), (i, u) => (t(), l("div", null, [
910
912
  r("div", {
911
913
  class: k(["", a.value.class_container])
912
914
  }, [
@@ -918,17 +920,17 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
918
920
  class: k([a.value.class_filters, "d-flex justify-content-between align-items-start"])
919
921
  }, [
920
922
  O(i.$slots, "pageSize", {
921
- changePageSize: ce,
923
+ changePageSize: pe,
922
924
  limit_per_page: y.value.limit_per_page
923
925
  }, () => [
924
926
  r("div", {
925
927
  class: k(["text-secondary", a.value.class_page_size])
926
928
  }, [
927
929
  H(S(a.value.first_text_page_size) + " ", 1),
928
- r("div", Tt, [
929
- ye(r("input", {
930
+ r("div", Bt, [
931
+ ke(r("input", {
930
932
  class: "form-control form-control-sm",
931
- onChange: ce,
933
+ onChange: pe,
932
934
  "onUpdate:modelValue": u[0] || (u[0] = (n) => y.value.limit_per_page = n),
933
935
  min: "1",
934
936
  size: "3",
@@ -936,7 +938,7 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
936
938
  type: "number"
937
939
  }, null, 544), [
938
940
  [
939
- ke,
941
+ be,
940
942
  y.value.limit_per_page,
941
943
  void 0,
942
944
  { lazy: !0 }
@@ -947,26 +949,26 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
947
949
  ], 2)
948
950
  ], !0),
949
951
  O(i.$slots, "fieldMiddle", {}, void 0, !0),
950
- (e(), N(ge, {
952
+ (t(), N(ge, {
951
953
  to: a.value.search_teleport || "body",
952
954
  disabled: !a.value.search_teleport
953
955
  }, [
954
956
  O(i.$slots, "search-field", {
955
957
  search: y.value.search,
956
958
  filter: y.value.filter,
957
- reSearch: f(E),
959
+ reSearch: h(E),
958
960
  list_filter: a.value.list_filter,
959
- item_use: ue.value
961
+ item_use: ce.value
960
962
  }, () => [
961
- a.value.disable_search ? b("", !0) : (e(), N(rt, {
963
+ a.value.disable_search ? b("", !0) : (t(), N(ot, {
962
964
  key: 0,
963
965
  search: y.value.search,
964
966
  "onUpdate:search": u[1] || (u[1] = (n) => y.value.search = n),
965
967
  filter: y.value.filter,
966
968
  "onUpdate:filter": u[2] || (u[2] = (n) => y.value.filter = n),
967
969
  list_filter: a.value.list_filter,
968
- item_use: ue.value,
969
- onSearch: f(E),
970
+ item_use: ce.value,
971
+ onSearch: h(E),
970
972
  deactivate_search_on_clear: a.value.deactivate_search_on_clear,
971
973
  placeholder_search: a.value.placeholder_search,
972
974
  deactivate_search_empty: a.value.deactivate_search_empty,
@@ -976,47 +978,47 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
976
978
  ], 8, ["to", "disabled"]))
977
979
  ], 2),
978
980
  O(i.$slots, "item-selected-info", {
979
- selected_items: f(q),
981
+ selected_items: h(q),
980
982
  clearSelection: () => q.value = []
981
983
  }, () => [
982
- a.value.use_checkbox && f(q).length > 0 && !a.value.deactivate_selected_info ? (e(), l("div", Bt, [
983
- r("h4", Vt, [
984
+ a.value.use_checkbox && h(q).length > 0 && !a.value.deactivate_selected_info ? (t(), l("div", Vt, [
985
+ r("h4", Dt, [
984
986
  u[10] || (u[10] = r("strong", null, "oi Itens Selecionados:", -1)),
985
987
  u[11] || (u[11] = H()),
986
- r("span", Dt, S(f(q).length), 1)
988
+ r("span", Et, S(h(q).length), 1)
987
989
  ]),
988
990
  r("a", {
989
991
  class: "cursor-pointer",
990
992
  onClick: u[4] || (u[4] = (n) => q.value = [])
991
993
  }, [...u[12] || (u[12] = [
992
- Z('<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-7d2530f6><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-7d2530f6></path><path d="M4 7l16 0" data-v-7d2530f6></path><path d="M10 11l0 6" data-v-7d2530f6></path><path d="M14 11l0 6" data-v-7d2530f6></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-7d2530f6></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-7d2530f6></path></svg> Limpar Seleção', 2)
994
+ Z('<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-757871c1><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-757871c1></path><path d="M4 7l16 0" data-v-757871c1></path><path d="M10 11l0 6" data-v-757871c1></path><path d="M14 11l0 6" data-v-757871c1></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-757871c1></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-757871c1></path></svg> Limpar Seleção', 2)
993
995
  ])])
994
996
  ])) : b("", !0)
995
997
  ], !0),
996
- f(Se) ? (e(), N(Ct, {
998
+ h(Ce) ? (t(), N($t, {
997
999
  key: 0,
998
1000
  columns: B.value,
999
1001
  limit: y.value.limit_per_page,
1000
1002
  type_loading: a.value.type_loading,
1001
1003
  custom_loading: a.value.custom_loading,
1002
1004
  class_table: a.value.class_table,
1003
- attempt: f(ae),
1005
+ attempt: h(ae),
1004
1006
  pagination: y.value
1005
- }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : f(z) ? (e(), l("div", Et, [
1007
+ }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : h(z) ? (t(), l("div", It, [
1006
1008
  u[13] || (u[13] = r("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
1007
- f(ae) ? (e(), l("p", It, " Não foi possível carregar os dados após " + S(f(ae).total) + " tentativa(s). ", 1)) : (e(), l("p", Nt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1009
+ h(ae) ? (t(), l("p", Nt, " Não foi possível carregar os dados após " + S(h(ae).total) + " tentativa(s). ", 1)) : (t(), l("p", Ht, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1008
1010
  r("button", {
1009
1011
  class: "btn btn-primary mt-2",
1010
1012
  onClick: u[5] || (u[5] = //@ts-ignore
1011
- (...n) => f(P) && f(P)(...n))
1013
+ (...n) => h(P) && h(P)(...n))
1012
1014
  }, " Tentar Novamente ")
1013
- ])) : f(D) ? (e(), l("div", Ht, [
1014
- f(D).length > 0 ? (e(), l("div", Ot, [
1015
+ ])) : h(D) ? (t(), l("div", Ot, [
1016
+ se.value || a.value.show_header_when_empty ? (t(), l("div", jt, [
1015
1017
  r("table", {
1016
1018
  class: k(["table table-vcenter table-selectable", a.value.class_table])
1017
1019
  }, [
1018
1020
  r("thead", null, [
1019
- W(f(Je), {
1021
+ W(h(Qe), {
1020
1022
  modelValue: ne.value,
1021
1023
  "onUpdate:modelValue": u[7] || (u[7] = (n) => ne.value = n),
1022
1024
  tag: "tr",
@@ -1025,41 +1027,41 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
1025
1027
  "ghost-class": "ghost-item",
1026
1028
  "drag-class": "dragging-item",
1027
1029
  onStart: u[8] || (u[8] = (n) => A.value = !0),
1028
- onEnd: u[9] || (u[9] = () => Te())
1030
+ onEnd: u[9] || (u[9] = () => Be())
1029
1031
  }, {
1030
1032
  header: L(() => [
1031
- a.value.use_expandable_items ? (e(), l("th", jt)) : b("", !0),
1032
- a.value.use_checkbox ? (e(), l("th", At, [
1033
+ a.value.use_expandable_items ? (t(), l("th", At)) : b("", !0),
1034
+ a.value.use_checkbox ? (t(), l("th", Pt, [
1033
1035
  r("input", {
1034
1036
  class: "form-check-input m-0",
1035
1037
  type: "checkbox",
1036
1038
  ref_key: "selectAllCheckbox",
1037
- ref: oe,
1039
+ ref: ie,
1038
1040
  onChange: u[6] || (u[6] = //@ts-ignore
1039
- (...n) => f(de) && f(de)(...n)),
1041
+ (...n) => h(ue) && h(ue)(...n)),
1040
1042
  "aria-label": "Selecionar todos os itens na página"
1041
1043
  }, null, 544)
1042
1044
  ])) : b("", !0)
1043
1045
  ]),
1044
1046
  item: L(({ element: n }) => [
1045
- W(ve, {
1047
+ W(he, {
1046
1048
  header: n.header,
1047
1049
  class_column: n.class_column,
1048
1050
  use_ordering: n.use_ordering,
1049
1051
  orderings_state: m.value[n.header] || "none",
1050
- onToggleOrderingState: () => pe(n.header),
1052
+ onToggleOrderingState: () => _e(n.header),
1051
1053
  locked: !1,
1052
1054
  col: n
1053
1055
  }, null, 8, ["header", "class_column", "use_ordering", "orderings_state", "onToggleOrderingState", "col"])
1054
1056
  ]),
1055
1057
  footer: L(() => [
1056
- (e(!0), l(V, null, I(le.value, (n) => (e(), N(ve, {
1058
+ (t(!0), l(V, null, I(le.value, (n) => (t(), N(he, {
1057
1059
  key: n.field || n.header,
1058
1060
  header: n.header,
1059
1061
  class_column: n.class_column,
1060
1062
  use_ordering: n.use_ordering,
1061
1063
  orderings_state: m.value[n.header] || "none",
1062
- onToggleOrderingState: () => pe(n.header),
1064
+ onToggleOrderingState: () => _e(n.header),
1063
1065
  col: n,
1064
1066
  locked: ""
1065
1067
  }, null, 8, ["header", "class_column", "use_ordering", "orderings_state", "onToggleOrderingState", "col"]))), 128))
@@ -1068,34 +1070,34 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
1068
1070
  }, 8, ["modelValue"])
1069
1071
  ]),
1070
1072
  r("tbody", null, [
1071
- (e(!0), l(V, null, I(f(D), (n, Y) => (e(), l(V, {
1073
+ se.value ? (t(!0), l(V, { key: 0 }, I(h(D), (n, Y) => (t(), l(V, {
1072
1074
  key: n[a.value.item_key]
1073
1075
  }, [
1074
- W(Ke, {
1076
+ W(Ye, {
1075
1077
  tag: "tr",
1076
1078
  name: A.value ? "column-move" : ""
1077
1079
  }, {
1078
1080
  default: L(() => [
1079
- a.value.use_expandable_items ? (e(), l("td", Pt, [
1081
+ a.value.use_expandable_items ? (t(), l("td", qt, [
1080
1082
  O(i.$slots, "expand-button", {
1081
1083
  item: n,
1082
1084
  index: Y,
1083
- isExpanded: f(K)(n),
1084
- expand_item_toggle: f(F)
1085
+ isExpanded: h(K)(n),
1086
+ expand_item_toggle: h(F)
1085
1087
  }, () => [
1086
1088
  r("button", {
1087
1089
  type: "button",
1088
- class: k(["btn-clean btn-icon-anim", { "is-expanded": f(K)(n) }]),
1089
- onClick: (p) => f(F)(n)
1090
+ class: k(["btn-clean btn-icon-anim", { "is-expanded": h(K)(n) }]),
1091
+ onClick: (p) => h(F)(n)
1090
1092
  }, [
1091
- a.value.type_button_expand === "arrow" ? (e(), l("svg", Lt, [...u[14] || (u[14] = [
1093
+ a.value.type_button_expand === "arrow" ? (t(), l("svg", Ft, [...u[14] || (u[14] = [
1092
1094
  r("path", {
1093
1095
  stroke: "none",
1094
1096
  d: "M0 0h24v24H0z",
1095
1097
  fill: "none"
1096
1098
  }, null, -1),
1097
1099
  r("path", { d: "M9 6l6 6l-6 6" }, null, -1)
1098
- ])])) : (e(), l("svg", Ft, [...u[15] || (u[15] = [
1100
+ ])])) : (t(), l("svg", Ut, [...u[15] || (u[15] = [
1099
1101
  r("path", {
1100
1102
  stroke: "none",
1101
1103
  d: "M0 0h24v24H0z",
@@ -1107,148 +1109,152 @@ const ct = { class: "loading-container" }, pt = { key: 0 }, _t = { key: 2 }, mt
1107
1109
  }, null, -1),
1108
1110
  r("path", { d: "M5 12l14 0" }, null, -1)
1109
1111
  ])]))
1110
- ], 10, qt)
1112
+ ], 10, Lt)
1111
1113
  ], !0)
1112
1114
  ])) : b("", !0),
1113
- a.value.use_checkbox ? (e(), l("td", Ut, [
1115
+ a.value.use_checkbox ? (t(), l("td", Kt, [
1114
1116
  r("input", {
1115
1117
  class: "form-check-input m-0",
1116
1118
  type: "checkbox",
1117
- checked: f(ie)(n),
1118
- onChange: (p) => f(Me)(n),
1119
+ checked: h(de)(n),
1120
+ onChange: (p) => h(ze)(n),
1119
1121
  "aria-label": "Selecionar este item"
1120
- }, null, 40, Kt)
1122
+ }, null, 40, Yt)
1121
1123
  ])) : b("", !0),
1122
- (e(!0), l(V, null, I(ze.value, (p, X) => (e(), l("td", {
1124
+ (t(!0), l(V, null, I(Te.value, (p, X) => (t(), l("td", {
1123
1125
  key: p.field || p.header,
1124
1126
  class: k(p.class_row)
1125
1127
  }, [
1126
- p.bodySlot ? (e(), N(ee(p.bodySlot), {
1128
+ p.bodySlot ? (t(), N(ee(p.bodySlot), {
1127
1129
  key: 0,
1128
1130
  item: n,
1129
1131
  index: X,
1130
- "is-selected": f(ie)(n)
1131
- }, null, 8, ["item", "index", "is-selected"])) : p.type === "text" ? (e(), l("span", {
1132
+ "is-selected": h(de)(n)
1133
+ }, null, 8, ["item", "index", "is-selected"])) : p.type === "text" ? (t(), l("span", {
1132
1134
  key: 1,
1133
1135
  onClick: (G) => p.click ? p.click(n) : null,
1134
1136
  class: k(R(p, n))
1135
- }, S(Ve(j(p.field, n, p.transform_function), p.limite_text ?? null)), 11, Yt)) : p.type === "date" ? (e(), l("span", {
1137
+ }, S(De(j(p.field, n, p.transform_function), p.limite_text ?? null)), 11, Xt)) : p.type === "date" ? (t(), l("span", {
1136
1138
  key: 2,
1137
1139
  onClick: (G) => p.click ? p.click(n) : null,
1138
1140
  class: k(R(p, n))
1139
1141
  }, [
1140
- p.format === "complete" ? (e(), l("span", Gt, S(new Date(j(p.field, n)).toLocaleString()), 1)) : b("", !0),
1141
- p.format === "simple" ? (e(), l("span", Wt, S(new Date(j(
1142
+ p.format === "complete" ? (t(), l("span", Wt, S(new Date(j(
1143
+ p.field,
1144
+ n
1145
+ )).toLocaleString()), 1)) : b("", !0),
1146
+ p.format === "simple" ? (t(), l("span", Jt, S(new Date(j(
1142
1147
  p.field,
1143
1148
  n
1144
1149
  )).toLocaleDateString()), 1)) : b("", !0)
1145
- ], 10, Xt)) : p.type === "html" ? (e(), l("div", {
1150
+ ], 10, Gt)) : p.type === "html" ? (t(), l("div", {
1146
1151
  key: 3,
1147
1152
  onClick: (G) => p.click ? p.click(n) : null,
1148
1153
  class: k(R(p, n)),
1149
1154
  innerHTML: j(p.field, n)
1150
- }, null, 10, Jt)) : p.type === "img" ? (e(), l("div", {
1155
+ }, null, 10, Qt)) : p.type === "img" ? (t(), l("div", {
1151
1156
  key: 4,
1152
1157
  onClick: (G) => p.click ? p.click(n) : null,
1153
1158
  class: k(R(p, n))
1154
1159
  }, [
1155
- j(p.field, n) ? (e(), l("div", se({
1160
+ j(p.field, n) ? (t(), l("div", re({
1156
1161
  key: 0,
1157
1162
  ref_for: !0
1158
1163
  }, p.deactivate_img_preview ? {
1159
1164
  class: "container-img"
1160
1165
  } : {
1161
- onMouseover: (G) => f(w)(G, j(p.field, n)),
1162
- onMousemove: f(h),
1163
- onMouseleave: f(v),
1166
+ onMouseover: (G) => h(w)(G, j(p.field, n)),
1167
+ onMousemove: h(f),
1168
+ onMouseleave: h(g),
1164
1169
  class: "container-img container-img-preview"
1165
1170
  }), [
1166
1171
  r("img", {
1167
1172
  class: "img-tamanho",
1168
1173
  src: j(p.field, n)
1169
- }, null, 8, Rt),
1174
+ }, null, 8, Zt),
1170
1175
  r("img", {
1171
1176
  class: "img-tamanho-cover",
1172
1177
  src: j(p.field, n)
1173
- }, null, 8, Zt),
1178
+ }, null, 8, ea),
1174
1179
  u[16] || (u[16] = r("div", { class: "bg-img" }, null, -1))
1175
1180
  ], 16)) : b("", !0)
1176
- ], 10, Qt)) : (e(), l("span", ea, [
1181
+ ], 10, Rt)) : (t(), l("span", ta, [
1177
1182
  u[17] || (u[17] = H("tipo ", -1)),
1178
- r("span", ta, S(p.type), 1),
1183
+ r("span", aa, S(p.type), 1),
1179
1184
  u[18] || (u[18] = H(" não suportado", -1))
1180
1185
  ]))
1181
1186
  ], 2))), 128))
1182
1187
  ]),
1183
1188
  _: 2
1184
1189
  }, 1032, ["name"]),
1185
- W(Ye, {
1190
+ W(Xe, {
1186
1191
  name: "expand-item-" + a.value.type_animation_expand,
1187
1192
  css: !a.value.deactivate_animation_expand
1188
1193
  }, {
1189
1194
  default: L(() => [
1190
- f(K)(n) ? (e(), l("tr", {
1195
+ h(K)(n) ? (t(), l("tr", {
1191
1196
  key: 0,
1192
1197
  id: "expand-item-" + n[a.value.item_key],
1193
1198
  class: "expanded-item-row"
1194
1199
  }, [
1195
1200
  r("td", {
1196
- colspan: He()
1201
+ colspan: Oe()
1197
1202
  }, [
1198
1203
  O(i.$slots, "after-row", { item: n }, void 0, !0)
1199
- ], 8, la)
1200
- ], 8, aa)) : b("", !0)
1204
+ ], 8, na)
1205
+ ], 8, la)) : b("", !0)
1201
1206
  ]),
1202
1207
  _: 2
1203
1208
  }, 1032, ["name", "css"])
1204
- ], 64))), 128))
1209
+ ], 64))), 128)) : b("", !0)
1205
1210
  ])
1206
1211
  ], 2)
1207
- ])) : f(Ce) === !1 ? (e(), l("div", na, [
1212
+ ])) : b("", !0),
1213
+ !se.value && h($e) === !1 ? (t(), l("div", sa, [
1208
1214
  O(i.$slots, "idle-state", {}, void 0, !0)
1209
- ])) : (e(), l("div", sa, [...u[19] || (u[19] = [
1215
+ ])) : (t(), l("div", ra, [...u[19] || (u[19] = [
1210
1216
  r("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
1211
1217
  ])]))
1212
1218
  ])) : b("", !0)
1213
1219
  ], 2)
1214
1220
  ], 2),
1215
- (e(), N(ge, {
1221
+ (t(), N(ge, {
1216
1222
  to: a.value.pagination_teleport || "body",
1217
1223
  disabled: !a.value.pagination_teleport
1218
1224
  }, [
1219
1225
  O(i.$slots, "pagination", {
1220
1226
  pagination: y.value,
1221
- tradePage: f(P),
1222
- error: f(z)
1227
+ tradePage: h(P),
1228
+ error: h(z)
1223
1229
  }, () => [
1224
- !f(z) && y.value.count > 0 ? (e(), l("div", {
1230
+ !h(z) && y.value.count > 0 ? (t(), l("div", {
1225
1231
  key: 0,
1226
1232
  class: k(["px-3", a.value.class_pagination])
1227
1233
  }, [
1228
- W(We, {
1234
+ W(Je, {
1229
1235
  page_starts_at: a.value.page_starts_at,
1230
1236
  filtering: !0,
1231
1237
  pagination: y.value,
1232
- onTradePage: Oe
1238
+ onTradePage: je
1233
1239
  }, null, 8, ["page_starts_at", "pagination"])
1234
1240
  ], 2)) : b("", !0)
1235
1241
  ], !0)
1236
1242
  ], 8, ["to", "disabled"])),
1237
- f(g) ? (e(), l("div", {
1243
+ h(v) ? (t(), l("div", {
1238
1244
  key: 0,
1239
1245
  class: "image-preview-container",
1240
- style: Xe(f(T))
1246
+ style: Ge(h(T))
1241
1247
  }, [
1242
1248
  r("img", {
1243
- src: f(c),
1249
+ src: h(c),
1244
1250
  alt: "Preview",
1245
1251
  class: "image-preview-large"
1246
- }, null, 8, ra)
1252
+ }, null, 8, oa)
1247
1253
  ], 4)) : b("", !0)
1248
1254
  ]));
1249
1255
  }
1250
- }), _a = /* @__PURE__ */ re(oa, [["__scopeId", "data-v-7d2530f6"]]);
1256
+ }), ma = /* @__PURE__ */ oe(ia, [["__scopeId", "data-v-757871c1"]]);
1251
1257
  export {
1252
- pa as VColumn,
1253
- _a as VDataTable
1258
+ _a as VColumn,
1259
+ ma as VDataTable
1254
1260
  };